/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2933;
    background-color: #ffffff;
}

/* =========================
   ENLACES
========================= */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
    background-color: #111827;
    color: #ffffff;
}

.site-header .container,
.site-header .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header nav a {
    color: #e5e7eb;
    margin-left: 18px;
    font-weight: 500;
}

.site-header nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   MAIN / CONTENEDOR
========================= */
main {
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #9ca3af;
}

.breadcrumb a:hover {
    color: #111827;
}

/* =========================
   HERO / TITULARES
========================= */
h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}

.home-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
}

h1 + p,
.home-hero .hero-subtitle {
    font-size: 18px;
    color: #4b5563;
    max-width: 780px;
    margin-bottom: 36px;
}

.home-hero .hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0;
}

.home-hero {
    margin-bottom: 56px;
}

/* =========================
   HOME · ESTRUCTURA
========================= */
.home-news--featured {
    margin-bottom: 48px;
}

.home-news--featured h2 {
    font-size: 26px;
    margin-bottom: 22px;
}

.home-news-list .summary,
.home-news--featured .summary {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #4b5563;
    font-weight: 400;
}

.home-sections {
    margin-top: 0;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.home-sections .home-block {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .home-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        align-items: start;
    }

    .home-sections .home-categories {
        grid-column: 1 / -1;
    }
}

/* =========================
   BLOQUES HOME
========================= */
.home-block {
    background-color: #f9fafb;
    padding: 28px 32px;
    border-radius: 10px;
    margin-bottom: 48px;
}

.home-block:last-child {
    margin-bottom: 24px;
}

.home-block h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 4px solid #2563eb;
    border-bottom: none;
    padding-bottom: 0;
}

/* =========================
   SECCIONES
========================= */
section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 18px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}

/* =========================
   FECHA DE PUBLICACIÓN
========================= */
.item-date {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* =========================
   LISTADOS
========================= */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 18px;
}

li a {
    font-weight: 600;
    font-size: 16px;
}

li p {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 15px;
}

/* =========================
   BLOQUES VACÍOS
========================= */
.empty {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 8px;
}

/* =========================
   ENLACES "VER TODOS"
========================= */
.section-more,
.home-block > p:last-of-type a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background-color: #e5e7eb;
    border-radius: 8px;
}

.section-more:hover,
.home-block > p:last-of-type a:hover {
    color: #111827;
    background-color: #d1d5db;
    text-decoration: none;
}

/* =========================
   CATEGORÍAS
========================= */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.categories a {
    display: block;
    padding: 14px 16px;
    background-color: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #111827;
}

.categories a:hover {
    background-color: #e5e7eb;
    text-decoration: none;
}

/* =========================
   ARTÍCULO · LECTURA LARGA
========================= */
article {
    max-width: 860px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e5e7eb;
}

article h1 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 18px;
}

article h2 {
    font-size: 24px;
    margin-top: 44px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

article h3 {
    font-size: 20px;
    margin-top: 32px;
}

article p {
    font-size: 17px;
    line-height: 1.75;
    margin: 18px 0;
    color: #374151;
}

article ul {
    margin: 18px 0 18px 24px;
    list-style: disc;
}

article li {
    margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */
footer {
    margin-top: 80px;
    padding: 28px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    h1 + p,
    .home-hero .hero-subtitle {
        font-size: 16px;
    }

    .home-hero {
        margin-bottom: 40px;
    }

    article h1 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .site-header .container,
    .site-header .wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header nav {
        margin-top: 10px;
    }

    .site-header nav a {
        margin-left: 0;
        margin-right: 14px;
    }

    .home-block {
        padding: 22px 20px;
    }
}
