/* 
   PROTOCOLO DE COMPATIBILIDAD UNIVERSAL v7.0 🌐🛡️
   Reset y Normalización Avanzada (Cross-Browser Foundation)
*/
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden; /* Prevent Ghost Overflow */
    width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Mobile optimization */
}

body {
    min-height: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

img, svg, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* 3. ESTILOS BASE ESPECÍFICOS */
* {
    scroll-margin-top: calc(var(--header-height, 180px) + 20px);
}

:root {
    --header-height: 180px; /* Default fallback */
}

body {
    font-family: var(--font-body);
    color: var(--ink-color);
    line-height: 1.6;
    font-size: var(--fz-body);
    background-color: var(--paper-color) !important;
    /* H-14: Textura unificada en body::before — eliminada la duplicada aquí */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Textura de papel sobre todo el sitio */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E");
    opacity: 0.7;
    pointer-events: none;
    z-index: 0; /* Base level texture, below Tapa 1 */
    mix-blend-mode: multiply;
}

/* OVERLAY MÓVIL (v7.1 Final: Zero-Blur) 🌑 */
body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 41, 38, 0.7); /* Solid opacity, no blur */
    z-index: 900; 
    animation: fadeIn 0.3s ease;
}

body.menu-open {
    overflow: hidden; /* Lock scroll */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 4. CABEZAL Y MAQUETACIÓN (MASTHEAD) */
.masthead-container {
    width: 100%;
    padding: 0;
    background-color: var(--paper-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Masthead Hierarchy - Shielding */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ESTADO STICKY: Reducción dinámica (v7.1 Final: Zero-Blur) ⚓ */
.masthead-container.is-sticky {
    box-shadow: 0 10px 30px rgba(45, 41, 38, 0.15);
    background-color: #d7c19e !important; /* Solid Paper Base */
}

.mancheta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none !important; /* v5.0: Exterminio definitivo de barra de textura */
    padding: 15px var(--section-padding);
    transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-sticky .mancheta-row {
    padding: 5px var(--section-padding);
}

/* BARRA DE INFORMACIÓN INSTITUCIONAL (v8.0 — H-13) */
.masthead-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px var(--section-padding);
    border-bottom: 1px solid var(--ink-primary);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-color);
    transition: all 0.3s ease;
}

.is-sticky .masthead-info-bar {
    padding: 3px var(--section-padding);
    font-size: 0.6rem;
}

.masthead-info-left,
.masthead-info-right {
    flex: 0 0 auto;
}

.masthead-info-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.masthead-ear {
    text-decoration: none;
    color: var(--alert-color);
    font-weight: bold;
    border: 1px solid var(--alert-color);
    padding: 2px 10px;
    transition: all 0.2s ease;
}

a.masthead-ear:hover {
    background-color: var(--alert-color);
    color: var(--paper-color);
}

.masthead-edition {
    font-weight: bold;
}

.masthead-date {
    opacity: 0.8;
}

.masthead-extra {
    opacity: 0.7;
    font-size: 0.65rem;
}

.logo-central img,
.custom-logo-link img {
    width: 100% !important;
    max-width: 700px !important; /* REBUSTEZ: Reducción del 36% para evitar ocupar media pantalla */
    height: auto !important;
    mix-blend-mode: multiply;
    display: block;
    margin: 0 auto;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.is-sticky .logo-central img,
.is-sticky .custom-logo-link img {
    max-width: 500px !important; /* Escala al ~50% del tamaño original de impacto */
}

/* Ajuste de margen del menú para ahorrar espacio vertical 📏 */
.nav-editorial {
    margin: 15px auto 10px;
    padding: 0 var(--section-padding);
    z-index: 110; /* Above Masthead */
    transition: margin 0.5s ease;
}

.is-sticky .nav-editorial {
    margin: 10px auto;
}

.nav-editorial>ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.nav-editorial>ul>li>a {
    display: block;
    padding: 10px 16px;
    font-size: 0.78rem;
    text-decoration: none !important;
    color: #ffffff !important;
    font-family: var(--font-navigation);
    text-transform: uppercase;
    clip-path: polygon(2% 0%, 98% 1%, 100% 4%, 99% 95%, 97% 100%, 3% 98%, 0% 96%, 1% 5%);
    display: flex; /* Accordion support */
    align-items: center;
}

.nav-editorial>ul>li:nth-child(4n+1)>a,
.nav-editorial>ul>li:nth-child(4n+1) .sub-menu {
    background-color: var(--color-rojo-politica);
}

.nav-editorial>ul>li:nth-child(4n+2)>a,
.nav-editorial>ul>li:nth-child(4n+2) .sub-menu {
    background-color: var(--color-azul-economia);
}

.nav-editorial>ul>li:nth-child(4n+3)>a,
.nav-editorial>ul>li:nth-child(4n+3) .sub-menu {
    background-color: var(--color-ocre-social);
}

.nav-editorial>ul>li:nth-child(4n+4)>a,
.nav-editorial>ul>li:nth-child(4n+4) .sub-menu {
    background-color: var(--color-verde-analisis);
}

/* Estilo para links del Walker Editorial */
.editorial-link-item {
    display: flex !important;
    align-items: center;
    width: 100%;
}

.indicator-dot {
    margin-left: auto; /* Push to the right */
    font-size: 0.8em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    display: inline-block;
}

.is-expanded > a .indicator-dot {
    transform: rotate(180deg);
    color: var(--alert-color);
    opacity: 1;
}

/* Hover effect for contrast and life */
.nav-editorial>ul>li>a:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* EXTERMINIO DEFINITIVO DE BALAS (MAX ESPECIFICIDAD v7.0) 🚫🔴 */
.nav-editorial ul li,
.nav-editorial ul li::before,
.nav-editorial ul li::after {
    list-style: none !important;
    content: none !important;
    margin: 0;
    padding: 0;
}

/* 5c. BOTÓN HAMBURGUESA (Base) */
.hamburger-toggle {
    display: none; /* Oculto en escritorio */
    cursor: pointer;
    border: none;
    background: transparent;
}

/* 5b. TIPOGRAFÍA Y CONTENIDOS */
.newspaper-sheet {
    margin-top: var(--header-height, 150px); /* Ajuste dinámico más sutil */
    background-color: var(--paper-color);
    padding: 0 0 60px;
    position: relative;
    z-index: 1; /* Tapa Hierarchy */
    overflow-x: hidden; /* ELIMINA DESPLAZAMIENTO LATERAL */
}

/* 5c. EFECTO HALFTONE — Sepia to Color Reveal (v9.0 Producción) */
.halftone-wrapper {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.halftone-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.halftone-wrapper img {
    display: block;
    width: 100%;
    filter: sepia(1);
    transition: filter 0.5s ease;
    will-change: filter;
}

.halftone-wrapper:hover img {
    filter: sepia(0);
}

.halftone-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--ink-primary) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: multiply;
    transition: opacity 0.4s ease;
}

.halftone-wrapper:hover::after {
    opacity: 0.05;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-headline);
    color: var(--ink-color);
    line-height: 1.1;
    font-weight: 900;
}

.font-tech {
    font-family: var(--font-tech);
    text-transform: uppercase;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--ink-primary);
    color: var(--paper-color);
    font-family: var(--font-tech);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.filete {
    border-bottom: 1px solid var(--ink-primary);
    margin: 2rem 0;
}

/* FILETS & UTILITIES */
.br-ink {
    border-right: 1px solid var(--ink-primary) !important;
}

.bb-ink {
    border-bottom: 1px solid var(--ink-primary) !important;
}

.bb-ink-bold {
    border-bottom: 3px solid var(--ink-primary) !important;
}

.is-skeleton {
    background-color: rgba(0,0,0,0.03) !important;
    position: relative;
    overflow: hidden;
    min-height: 450px; /* Garantiza la retícula incluso en vacío */
}

.is-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skeleton-sweep 1.5s infinite;
}

@keyframes skeleton-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   8. GRILLA BROADSHEET (Integración Módulo 0 y Módulo 1)
   ========================================================================== */

.master-grid {
    padding-top: 2rem;
    padding-bottom: 4rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Layout Broadsheet: Flexbox limpio para la Home (H-04: sin márgenes negativos) */
.broadsheet-layout.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.broadsheet-cell {
    padding: 1.5rem 15px;
    position: relative;
}

/* Proporciones Desktop (solo para contexto broadsheet-layout) */
.broadsheet-layout > .col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    min-height: 450px;
}

.broadsheet-layout > .col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    min-height: 450px;
}

.broadsheet-layout > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 300px;
}

.broadsheet-layout > .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    min-height: 250px;
}

.broadsheet-layout > .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Ajustes Responsivos Broadsheet */
@media (max-width: 992px) {

    .broadsheet-layout > .col-8,
    .broadsheet-layout > .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .br-ink {
        border-right: none;
        border-bottom: var(--border-ink);
    }

    .hero-principal h1 {
        font-size: 2.5rem !important;
    }
}

/* Animaciones de Revelado */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton Base Classes */

.skeleton-box {
    background: rgba(45, 41, 38, 0.05);
    margin-bottom: 1rem;
}

.skeleton-text { height: 1em; width: 80%; }
.skeleton-title { height: 2em; width: 60%; }
.skeleton-img { aspect-ratio: 16/9; width: 100%; }


/* ==========================================================================
   11. NAVEGACIÓN Y EXTRAS (Walker & Fallback)
   ========================================================================== */

.nav-fallback-broadsheet {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.nav-fallback-broadsheet a {
    text-decoration: none;
    color: var(--ink-primary);
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: bold;
}

/* NAVEGACIÓN JERÁRQUICA (SUB-MENÚS) - HERENCIA DE COLOR Y ESTÉTICA */
.nav-editorial .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* El background-color se hereda arriba, según la posición nth-child del padre */
    padding: 0; 
    min-width: 220px;
    box-shadow: 6px 6px 0 rgba(45, 41, 38, 0.5); /* Tinta con opacidad para contraste */
    border: none;
    z-index: 999999 !important;
    margin-top: -2px; /* Superposición ligera para unir visualmente */
    clip-path: polygon(1% 0%, 99% 0%, 100% 3%, 99% 97%, 97% 100%, 3% 98%, 0% 96%, 1% 3%);
}

.nav-editorial li {
    position: relative;
    overflow: visible !important;
}

.nav-editorial li:hover > .sub-menu {
    display: block;
}

/* Soporte para anclas y enlaces dinámicos v3.0 */
.nav-editorial .sub-menu li a[href*="#"] {
    font-weight: bold;
    border-left: 2px solid var(--alert-color);
}

.nav-editorial .sub-menu li a:not([href*="#"]) {
    border-left: 2px solid transparent;
}

.nav-editorial .sub-menu li {
    margin: 0;
    padding: 0;
}

.nav-editorial .sub-menu a {
    color: #ffffff !important;
    font-size: 0.85rem;
    font-family: var(--font-tech);
    text-transform: uppercase;
    display: block;
    padding: 12px 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.nav-editorial .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-editorial .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding-left: 24px; /* Pequeño desplazamiento interactivo */
}

.nav-editorial li:hover .indicator-dot {
    transform: rotate(180deg);
    color: var(--alert-color);
}

/* MÓDULO 3: CINTILLO DE BREVES */
@keyframes scroll-breves {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#m2-breves {
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.breves-scroll {
    animation: scroll-breves 40s linear infinite !important;
}

.breves-scroll:hover {
    animation-play-state: paused;
}

.breves-scroll a:hover {
    color: var(--alert-color);
    text-decoration: underline;
}

/* UX: TAPA HOVER & CONSTRAINTS */
.tapa-link-wrapper {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tapa-link-wrapper:hover {
    transform: scale(1.03) translateY(-5px);
}

.tapa-link-wrapper:hover .tapa-image-frame {
    box-shadow: 20px 20px 0px var(--ink-secondary) !important;
}

/* M7: Edición Impresa — Grayscale to Color Hover */
#edicion-impresa .tapa-image-frame img {
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

#edicion-impresa .tapa-image-frame:hover img {
    filter: grayscale(0);
}

@media (min-width: 1800px) {
    .tapa-image-frame {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 350px) {
    .tapa-image-frame {
        box-shadow: 4px 4px 0px var(--ink-secondary) !important;
    }
    .tapa-link-wrapper:hover {
        transform: scale(1.01);
    }
}

/* ==========================================================================
   MÓDULOS DE PORTADA — Clases Reutilizables (v13.0)
   ========================================================================== */

/* M1: Zona del Carrusel de Entrevistas */
.entrevistas-carousel-zone {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.entrevistas-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
}

.entrevista-slide {
    width: 33.333%;
    padding: 3rem 2.5rem;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: var(--color-papel);
}

.entrevista-slide-layout {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.entrevista-slide-content {
    flex: 1;
}

.entrevista-slide-content h2 {
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.entrevista-slide-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.entrevista-img {
    flex: 0.8;
    border: 1px solid var(--ink-primary);
    box-shadow: 10px 10px 0px var(--color-ladrillo);
}

/* Etiqueta de categoría (epígrafe) */
.category-tag {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--alert-color);
}

.category-tag-large {
    font-size: 0.7rem;
    margin-bottom: 1rem;
    color: var(--alert-color);
    font-weight: bold;
}

/* Botón tipo CTA editorial */
.btn-editorial {
    font-weight: bold;
    padding: 8px 20px;
    border: 1px solid var(--ink-primary);
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.btn-editorial-light {
    padding: 12px 30px;
    background: var(--color-papel);
    color: var(--ink-primary);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Grid item de noticias (M2) */
.grid-item-image {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--ink-primary);
}

/* M3: Opinión — Círculo de autor */
.author-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--ink-primary);
    filter: grayscale(1);
}

/* M7: Zona oscura Edición Impresa */
.dark-zone {
    padding: 4rem 0;
    background-color: var(--ink-primary);
    color: var(--color-papel);
}

.dark-zone .section-tag {
    color: var(--color-papel);
    border-color: var(--color-papel);
    margin-bottom: 2rem;
}

.dark-zone h2 {
    font-size: 5rem;
    line-height: 0.8;
    margin-bottom: 2rem;
}

.dark-zone p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Navegación del carrusel (dots) */
.carousel-nav {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.8rem;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border: 1px solid var(--ink-primary);
    cursor: pointer;
    display: inline-block;
}

.nav-dot.active {
    background: var(--ink-primary);
}

/* ==========================================================================
   9. OPTIMIZACIÓN MÓVIL TOTAL (Consolidado)
   ========================================================================== */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Bloque eliminado: Las imágenes ya no se bloquean, se gestionan responsivamente */

@media (max-width: 768px) {

    /* 1. Reset de Grilla y Forza Bruta (v9.1 Emergency) 🚨 */
    .row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }

    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        border-right: none !important; /* Elimina filetes verticales que comprimen el texto */
    }

    .masthead-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 10px 0 !important;
        background-color: var(--paper-color) !important;
    }

    .mancheta-row {
        display: block !important;
        width: 100% !important;
        padding: 10px 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo-central, 
    .logo-central a,
    .logo-central img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .hamburger-toggle {
        display: flex !important;
        position: absolute !important; /* Fixed in corner for better UX */
        right: 15px;
        top: 15px;
        background: var(--paper-color);
        border: 1px solid var(--ink-primary);
        padding: 0.5rem;
        min-width: 44px; 
        min-height: 44px; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        z-index: 2100 !important;
    }

    .hamburger-toggle.is-active {
        position: fixed !important;
        right: 15px;
        top: 15px;
        margin: 0;
    }

    .hamburger-line {
        width: 24px;
        height: 2px;
        background-color: var(--ink-primary);
        transition: 0.3s;
    }

    /* 3. Arquitectura "Right-Drawer" (v5.0 Final) 🧭📐 */
    .nav-editorial {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 85vw !important;
        max-width: 320px; /* More compact for stability */
        height: 100vh !important;
        z-index: 2000 !important; 
        margin: 0 !important;
        padding-top: 5rem !important;
        transform: translateX(105%);
        visibility: hidden;
        background-color: var(--paper-color) !important; /* Unified Paper Color */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        pointer-events: none;
    }

    /* Fondo Desenfocado Independiente (Super-Sharp Text Fix) 🧊 */
    /* Blur pseudo-element removed for total clarity */

    /* Asegurar que el contenido del menú no se herede efectos */
    .nav-editorial ul {
        position: relative;
        z-index: 1; /* Sobre el ::before */
    }

    .nav-editorial.is-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .hamburger-toggle.is-active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger-toggle.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-toggle.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-flex-layout {
        flex-direction: column-reverse; /* Título arriba, imagen abajo en móvil */
    }

    .hero-main-image {
        width: 100% !important;
        margin-top: 1.5rem;
    }

    .small-feature-image, 
    .grid-item-image {
        display: block !important;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Tapa en móvil */
    .printed-edition-col {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .tapa-image-frame {
        max-width: 280px;
        margin: 0 auto;
    }
    .nav-editorial ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
        list-style: none !important;
    }

    /* BOTONES MÓVILES "ZEN" (Módulos Planos v5.0) 🧱 */
    .nav-editorial li {
        width: 100% !important;
        margin-bottom: 8px !important;
        list-style: none !important;
    }

    /* ELIMINACIÓN DE RUIDO VISUAL 🚫🔴 */
    .nav-editorial li::before,
    .nav-editorial li::after {
        content: none !important;
    }

    /* OPTIMIZACIÓN TÁCTIL (BLOQUE COMPLETO) 👆✅ */
    .nav-editorial li a {
        display: block !important;
        padding: 1.5rem !important;
        width: 100%;
        text-align: center !important;
        font-weight: 900 !important;
        font-family: var(--font-header) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        border: 2px solid var(--ink-primary) !important;
        box-shadow: 4px 4px 0px var(--ink-primary) !important;
        background-color: var(--paper-color) !important; /* Default paper-solid */
        color: var(--ink-primary) !important;
        text-decoration: none !important;
        transition: background 0.2s ease;
    }

    /* Colores por Segmento (v5.0 Final) */
    .nav-editorial li:nth-child(1) a { background-color: var(--color-ladrillo) !important; color: #fff !important; } /* INICIO */
    .nav-editorial li:nth-child(2) a { background-color: var(--color-petroleo) !important; color: #fff !important; } /* ACTUALIDAD */
    .nav-editorial li:nth-child(3) a { background-color: var(--color-mostaza) !important; color: #fff !important; } /* CULTURA */
    .nav-editorial li:nth-child(4) a { background-color: var(--color-bosque) !important; color: #fff !important; } /* ENTREVISTAS */
    .nav-editorial li:nth-child(5) a { background-color: var(--color-ladrillo) !important; color: #fff !important; } /* ESPECIALES */
    .nav-editorial li:nth-child(6) a { background-color: var(--color-petroleo) !important; color: #fff !important; } /* NOSOTROS */
    .nav-editorial li:nth-child(7) a { background-color: var(--color-mostaza) !important; color: #fff !important; } /* OPINION */

    /* IXD v5.1: Accordion Drawer Hierarchy 🧭 */
    .nav-editorial .sub-menu {
        display: none !important; /* Oculto por defecto */
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        /* El fondo coloreado ya viene del nth-child superior, 
           aplicamos un oscurecimiento sutil para diferenciar en móvil */
        filter: brightness(0.9);
        margin: 0 !important;
        overflow: hidden;
        clip-path: none; /* Elimina clip-path en móvil para acordeón limpio */
    }

    .nav-editorial li.is-expanded > .sub-menu {
        display: block !important;
        animation: accordionSlide 0.3s ease-out;
    }

    @keyframes accordionSlide {
        from { max-height: 0; opacity: 0; }
        to { max-height: 1000px; opacity: 1; }
    }

    .indicator-dot {
        display: inline-block;
        margin-left: 10px;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        pointer-events: auto; /* Permitir clics individuales */
    }

    .is-expanded > a .indicator-dot {
        transform: rotate(180deg);
    }



    /* 4. Jerarquía de Noticias 📰 */
    .broadsheet-cell {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
    }

    h1 {
        font-size: 2.25rem !important;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.15rem !important;
        line-height: 1.2;
    }

    /* PERFORMANCE MÓVIL: Desactivar sepia → color directo */
    .halftone-wrapper img {
        filter: none !important;
        will-change: auto;
    }

    .halftone-wrapper::after {
        opacity: 0.1;
        background-size: 2px 2px;
    }

    /* M7 Tapa: color directo en móvil */
    #edicion-impresa .tapa-image-frame img {
        filter: none !important;
    }

    /* M7 Layout: centrado vertical en móvil */
    #edicion-impresa .col-6 {
        text-align: center;
    }

    /* #edicion-impresa h2 → movido a CONSOLIDACIÓN v10.0 más abajo */

    /* ══════════════════════════════════════════════════════════════════════
       CONSOLIDACIÓN DE CONTENEDORES MÓVILES (v10.0)
       ══════════════════════════════════════════════════════════════════════ */

    /* Protección contra truncamiento de títulos */
    h1, h2, h3, h4 {
        word-break: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    /* M1: Entrevistas — Stack vertical en mobile */
    .entrevista-slide {
        padding: 1.5rem 1rem !important;
    }

    .entrevista-slide-layout {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .entrevista-slide h2 {
        font-size: 2rem !important;
        line-height: 1 !important;
    }

    .entrevista-img {
        width: 100% !important;
        flex: none !important;
        margin-top: 1rem;
    }

    /* M3: Opinión — Ancho completo y centrado */
    #m3-opinion .col-4 {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem;
    }

    #m3-opinion .author-circle {
        width: 80px !important;
        height: 80px !important;
    }

    /* M7: Edición Impresa — Centrado correcto */
    #edicion-impresa .container .row {
        flex-direction: column-reverse !important;
    }

    #edicion-impresa .tapa-container {
        max-width: 240px;
        margin: 0 auto 2rem;
    }

    #edicion-impresa h2 {
        font-size: 2.8rem !important;
    }

    /* ══════════════════════════════════════════════════════════════════════
       🛡️ BLINDAJE ANTI-BLUR MÓVIL v10.0 (Solo Mobile) 🛡️
       Garantiza nitidez absoluta en el menú hamburguesa sin afectar desktop.
       ══════════════════════════════════════════════════════════════════════ */
    .nav-editorial,
    .nav-editorial *,
    .hamburger-toggle,
    .masthead-container,
    body.menu-open::after {
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Menú lateral sólido (Contraste Máximo) */
    .nav-editorial {
        background-color: var(--paper-color) !important;
        border-left: 3px solid var(--ink-primary);
    }

    .nav-editorial li a {
        box-shadow: none !important;
        border: 1px solid var(--ink-primary) !important;
        margin-bottom: 2px !important;
        transition: none !important;
    }

} /* fin del @media (max-width: 768px) */

/* Fin del Archivo */