/**
 * ============================================================
 * ENSOBRADOS 2035
 * HUBS TERRITORIALES
 * ============================================================
 */

.ens-2035-territorial-hub {
    --ens-territorial-gap: 28px;
}


/* ============================================================
   LOCALIDADES — NAVEGACIÓN SUPERIOR
   ============================================================ */

.ens-2035-territorial-localities {
    margin: 28px 0 36px;
    padding: 20px 0;
    border-top: 1px solid var(--ens-border);
    border-bottom: 1px solid var(--ens-border);
}

.ens-2035-territorial-localities-heading {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ens-muted);
}

.ens-2035-territorial-localities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ens-2035-territorial-locality {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--ens-border);
    border-radius: 999px;
    background: var(--ens-surface);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.ens-2035-territorial-locality:hover {
    border-color: var(--ens-border-strong);
    background: var(--ens-surface-strong);
    transform: translateY(-1px);
}

.ens-2035-territorial-locality span {
    font-size: 14px;
    font-weight: 650;
}

.ens-2035-territorial-locality small {
    font-size: 11px;
    color: var(--ens-muted);
}


/* ============================================================
   BLOQUES EDITORIALES
   ============================================================ */

.ens-2035-territorial-section {
    margin-top: 64px;
}

.ens-2035-territorial-section .ens-2035-category-section-heading {
    margin-bottom: 22px;
}

.ens-2035-territorial-section .ens-2035-category-section-heading h2 {
    max-width: 850px;
}


/* ============================================================
   GRILLA DE NOTICIAS SECUNDARIAS
   ============================================================ */

.ens-2035-territorial-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ens-2035-territorial-post {
    min-width: 0;
}

.ens-2035-territorial-post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 13px;
    border-radius: 8px;
    background: var(--ens-surface-strong);
}

.ens-2035-territorial-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.ens-2035-territorial-post-image:hover img {
    transform: scale(1.025);
}

.ens-2035-territorial-post-content h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: -.01em;
}

.ens-2035-territorial-post-content h3 a {
    color: inherit;
    text-decoration: none;
}

.ens-2035-territorial-post-content h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ens-2035-territorial-post-content time {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ens-muted);
}


/* ============================================================
   LOCALIDADES — BLOQUE SEO
   ============================================================ */

.ens-2035-territorial-locality-section {
    padding-top: 8px;
}

.ens-2035-territorial-locality-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ens-2035-territorial-locality-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--ens-border);
    border-radius: 10px;
    background: var(--ens-surface);
    color: inherit;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.ens-2035-territorial-locality-card:hover {
    border-color: var(--ens-border-strong);
    background: var(--ens-surface-strong);
    transform: translateY(-2px);
}

.ens-2035-territorial-locality-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.ens-2035-territorial-locality-card span {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ens-muted);
}


/* ============================================================
   QUINTA SECCIÓN
   ============================================================ */

.ens-2035-territorial-region {
    padding: 26px 28px 30px;
    border-top: 1px solid var(--ens-border);
    border-bottom: 1px solid var(--ens-border);
}

.ens-2035-territorial-region p {
    max-width: 850px;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ens-muted);
}

.ens-2035-territorial-region-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.ens-2035-territorial-region-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .ens-2035-territorial-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ens-2035-territorial-locality-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .ens-2035-territorial-section {
        margin-top: 48px;
    }

    .ens-2035-territorial-post-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ens-2035-territorial-locality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ens-2035-territorial-region {
        padding: 22px 0;
    }

}


@media (max-width: 480px) {

    .ens-2035-territorial-locality-grid {
        grid-template-columns: 1fr;
    }

    .ens-2035-territorial-localities {
        margin-top: 22px;
    }

}
