/*
Theme Name: Hero News
Theme URI: https://trafficamerican.com/
Author: Luis Cardenas
Author URI: https://luchohero.com/
Description: El tema de WordPress para noticias más rápido de la historia. Diseñado sobre Vanilla JS y CSS nativo siguiendo estrictamente la Guía de la Web Moderna de Chrome, con optimizaciones avanzadas de LCP, INP, precarga inteligente y modos Claro/Oscuro automáticos y seleccionables.
Version: 0.2.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: hero-news
*/

/* ==========================================================================
   1. SYSTEM VARIABLES & DESIGN SYSTEM (LIGHT & DARK MODES)
   ========================================================================== */

/* Light Mode (Default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    
    --brand-blue: #1e73be;
    --brand-sky: #4db2ec;
    --brand-sky-light: rgba(77, 178, 236, 0.15);
    
    --color-dark: #222222;
    --color-white: #ffffff;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-headings: var(--font-sans);
    --font-body: var(--font-sans);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    
    --text-primary: #f5f5f5;
    --text-secondary: #cbd5e0;
    --text-tertiary: #a0aec0;
    
    --border-color: #2d3748;
    --border-light: #1a202c;
    
    --brand-blue: #4db2ec;
    --brand-sky: #63b3ed;
    --brand-sky-light: rgba(99, 179, 237, 0.1);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. FONT-FACE DEFINITIONS (Locally Hosted Fonts for GDPR & LOPDP Compliance)
   ========================================================================== */

/* Plus Jakarta Sans */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/plus-jakarta-sans-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Inter */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Merriweather */
@font-face {
    font-family: 'Merriweather';
    src: url('assets/fonts/merriweather-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Merriweather';
    src: url('assets/fonts/merriweather-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Merriweather';
    src: url('assets/fonts/merriweather-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Outfit */
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   3. CSS RESET & CORE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300; /* Tipografía ultra ligera */
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   4. LAYOUT CONTAINERS
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* ==========================================================================
   5. PREMIUM COMMON COMPONENTS & DECORATIONS
   ========================================================================== */

/* Glassmorphism Navigation */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
[data-theme="dark"] .glass-header {
    background: rgba(18, 18, 18, 0.8);
}

/* ==========================================================================
   4.1. TOP BAR & WORLD CLOCKS STYLING
   ========================================================================== */
.top-bar {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
    letter-spacing: 0.03em;
}
[data-theme="dark"] .top-bar {
    background-color: #0b0b0b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.top-bar-clocks {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.top-bar-label {
    color: var(--brand-sky);
    font-weight: 700;
    font-size: 0.68rem;
    margin-right: 0.2rem;
}
.clock-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar-tagline {
    font-style: italic;
    opacity: 0.75;
}
@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }
    .top-bar-tagline {
        display: none;
    }
}

/* ==========================================================================
   4.2. HEADER NEWS TICKER STYLING (MARQUESINA COMPACTA)
   ========================================================================== */
.header-ticker-container {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.header-ticker-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.ticker-label {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0 0.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}
.header-marquee-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}
.header-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: header-marquee 55s linear infinite;
    align-items: center;
}
.header-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 300;
    transition: var(--transition-smooth);
}
.header-marquee-item:hover {
    color: var(--brand-sky);
}
.ticker-dot {
    width: 5px;
    height: 5px;
    background-color: var(--brand-sky);
    border-radius: 50%;
    margin-right: 0.75rem;
    display: inline-block;
    flex-shrink: 0;
}
.ticker-cat {
    color: var(--brand-blue);
    margin-right: 0.35rem;
    font-weight: 500;
}
[data-theme="dark"] .ticker-cat {
    color: var(--brand-sky);
}

@keyframes header-marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Category Badge */
.badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    background-color: var(--brand-sky-light);
    color: var(--brand-sky);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   5.1. DYNAMIC CATEGORY COLOR PALETTE (Unificación de Marca Traffic - 100% Azul & Pizarra)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GRUPO A: AZUL CORPORATIVO TRAFFIC (#1E73BE)
   Categorías principales, institucionales y firmas de opinión
   -------------------------------------------------------------------------- */
.badge-destinos,
.badge-destinos-turisticos,
.badge-turismo,
.badge-turismo-y-destinos,
.badge-opinion,
.badge-editorial,
.badge-opiniones-de-guido-calderon,
.badge-opiniones-del-director,
.badge-opiniones-del-ceo,
.badge-personaje,
.badge-personajes,
.badge-ecuador {
    background-color: #1e73be !important;
    color: #ffffff !important;
    border: 1px solid rgba(30, 115, 190, 0.2) !important;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.25) !important;
}
[data-theme="dark"] .badge-destinos,
[data-theme="dark"] .badge-destinos-turisticos,
[data-theme="dark"] .badge-turismo,
[data-theme="dark"] .badge-turismo-y-destinos,
[data-theme="dark"] .badge-opinion,
[data-theme="dark"] .badge-editorial,
[data-theme="dark"] .badge-opiniones-de-guido-calderon,
[data-theme="dark"] .badge-opiniones-del-director,
[data-theme="dark"] .badge-opiniones-del-ceo,
[data-theme="dark"] .badge-personaje,
[data-theme="dark"] .badge-personajes,
[data-theme="dark"] .badge-ecuador {
    background-color: #4db2ec !important; /* Celeste más visible en Modo Oscuro */
    color: #ffffff !important;
    border: 1px solid rgba(77, 178, 236, 0.2) !important;
}

/* --------------------------------------------------------------------------
   GRUPO B: CELESTE CIELO ACENTO TRAFFIC (#4DB2EC)
   Categorías dinámicas de transporte, alojamiento y eventos/ferias
   -------------------------------------------------------------------------- */
.badge-aerolineas,
.badge-aviacion,
.badge-vuelos,
.badge-cruceros,
.badge-mar,
.badge-nautica,
.badge-cruceros-y-nautica,
.badge-hoteleria,
.badge-hoteles,
.badge-alojamiento,
.badge-hospitalidad,
.badge-ferias,
.badge-eventos,
.badge-exposiciones,
.badge-ferias-y-eventos,
.badge-ferias-de-turismo {
    background-color: #4db2ec !important;
    color: #ffffff !important;
    border: 1px solid rgba(77, 178, 236, 0.2) !important;
    box-shadow: 0 2px 8px rgba(77, 178, 236, 0.2) !important;
}
[data-theme="dark"] .badge-aerolineas,
[data-theme="dark"] .badge-aviacion,
[data-theme="dark"] .badge-vuelos,
[data-theme="dark"] .badge-cruceros,
[data-theme="dark"] .badge-mar,
[data-theme="dark"] .badge-nautica,
[data-theme="dark"] .badge-cruceros-y-nautica,
[data-theme="dark"] .badge-hoteleria,
[data-theme="dark"] .badge-hoteles,
[data-theme="dark"] .badge-alojamiento,
[data-theme="dark"] .badge-hospitalidad,
[data-theme="dark"] .badge-ferias,
[data-theme="dark"] .badge-eventos,
[data-theme="dark"] .badge-exposiciones,
[data-theme="dark"] .badge-ferias-y-eventos,
[data-theme="dark"] .badge-ferias-de-turismo {
    background-color: #7dd3fc !important; /* Celeste claro vibrante en dark */
    color: #ffffff !important;
    border: 1px solid rgba(125, 211, 252, 0.2) !important;
}

/* --------------------------------------------------------------------------
   GRUPO C: GRIS PIZARRA / AZUL NOCHE EDITORIAL (#475569)
   Categorías analíticas, tecnológicas, complementarias y de actualidad
   -------------------------------------------------------------------------- */
.badge-tecnologia,
.badge-tech,
.badge-innovacion,
.badge-tecnologia-y-turismo,
.badge-negocios,
.badge-economia,
.badge-finanzas,
.badge-negocios-y-empresas,
.badge-gastronomia,
.badge-restaurantes,
.badge-cocina,
.badge-alimentos,
.badge-actualidad,
.badge-parques,
.badge-atracciones,
.badge-bienestar,
.badge-turismo-de-bienestar {
    background-color: #475569 !important;
    color: #ffffff !important;
    border: 1px solid rgba(71, 85, 105, 0.2) !important;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2) !important;
}
[data-theme="dark"] .badge-tecnologia,
[data-theme="dark"] .badge-tech,
[data-theme="dark"] .badge-innovacion,
[data-theme="dark"] .badge-tecnologia-y-turismo,
[data-theme="dark"] .badge-negocios,
[data-theme="dark"] .badge-economia,
[data-theme="dark"] .badge-finanzas,
[data-theme="dark"] .badge-negocios-y-empresas,
[data-theme="dark"] .badge-gastronomia,
[data-theme="dark"] .badge-restaurantes,
[data-theme="dark"] .badge-cocina,
[data-theme="dark"] .badge-alimentos,
[data-theme="dark"] .badge-actualidad,
[data-theme="dark"] .badge-parques,
[data-theme="dark"] .badge-atracciones,
[data-theme="dark"] .badge-bienestar,
[data-theme="dark"] .badge-turismo-de-bienestar {
    background-color: #64748b !important; /* Gris claro en dark */
    color: #ffffff !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

/* ==========================================================================
   5.2. HERO EDITORIAL PREMIUM LAYOUT
   ========================================================================== */
.hero-editorial {
    display: grid;
    grid-template-columns: 1.4fr 300px 280px;
    grid-template-rows: auto;
    gap: 0.75rem;
    min-height: 560px;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--brand-blue);
    margin-bottom: 0.5rem;
    position: relative;
}
.hero-editorial::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background-color: var(--brand-sky);
}

/* --- HERO PRINCIPAL (Imagen full con overlay cinematográfico) --- */
.hero-main-card {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 560px;
    background-color: var(--bg-tertiary);
    box-shadow: 0 4px 20px rgba(30, 115, 190, 0.15);
}
.hero-main-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(5, 10, 18, 0.92) 0%,
        rgba(5, 10, 18, 0.6) 35%,
        rgba(0, 0, 0, 0.15) 60%,
        transparent 100%
    );
    transition: var(--transition-smooth);
}
.hero-main-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(5, 10, 18, 0.95) 0%,
        rgba(5, 10, 18, 0.7) 40%,
        rgba(0, 0, 0, 0.2) 65%,
        transparent 100%
    );
}
.hero-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-main-card:hover .hero-main-img {
    transform: scale(1.04);
}
.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.hero-main-overlay .badge {
    align-self: flex-start;
}
.hero-main-title {
    color: #ffffff;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-main-excerpt {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-main-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}
.hero-meta-date {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}
.hero-meta-action {
    color: var(--brand-sky);
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s ease;
}
.hero-main-card:hover .hero-meta-action {
    opacity: 1;
    transform: translateX(0);
}

/* --- 3 TARJETAS MEDIANAS CON OVERLAY --- */
.hero-mid-col {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hero-mid-card {
    position: relative;
    display: block;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    min-height: 170px;
    background-color: var(--bg-tertiary);
    box-shadow: 0 2px 12px rgba(30, 115, 190, 0.1);
}
.hero-mid-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(5, 10, 18, 0.9) 0%,
        rgba(5, 10, 18, 0.45) 50%,
        transparent 100%
    );
    transition: var(--transition-smooth);
}
.hero-mid-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-mid-card:hover .hero-mid-img {
    transform: scale(1.05);
}
.hero-mid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.hero-mid-overlay .badge {
    align-self: flex-start;
}
.hero-mid-title {
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-mid-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

/* --- SIDEBAR EDITORIAL CON NUMERACIÓN --- */
.hero-sidebar {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--brand-blue);
    padding-left: 1rem;
}
.hero-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.hero-sidebar-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}
.hero-sidebar-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--brand-sky), transparent);
    border-radius: 2px;
}
.hero-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    text-decoration: none;
}
.hero-sidebar-item:last-child {
    border-bottom: none;
}
.hero-sidebar-item:hover {
    background-color: var(--bg-secondary);
    padding-left: 0.35rem;
    border-radius: 6px;
}
.hero-sidebar-num {
    color: var(--brand-sky);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    min-width: 32px;
    opacity: 0.35;
    transition: var(--transition-smooth);
}
.hero-sidebar-item:hover .hero-sidebar-num {
    opacity: 0.8;
    color: var(--brand-blue);
}
.hero-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.hero-sidebar-content .badge {
    align-self: flex-start;
}
.hero-sidebar-item-title {
    color: var(--text-primary);
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.hero-sidebar-item:hover .hero-sidebar-item-title {
    color: var(--brand-sky);
}
.hero-sidebar-date {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}
/* --- TARJETA DEL DIRECTOR (Guido Calderón - Silueta Limpia) --- */
.director-card {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(30, 115, 190, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.director-card-img {
    width: 170px;
    height: 170px;
    border-radius: 0 !important;
    overflow: visible !important;
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}
.director-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.director-card:hover .director-card-img img {
    transform: scale(1.05);
}
.director-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.08), rgba(15, 23, 42, 0.04));
    padding: 0.85rem 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(30, 115, 190, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
}
.director-card:hover .director-card-info {
    border-color: rgba(30, 115, 190, 0.5);
    box-shadow: 0 6px 25px rgba(30, 115, 190, 0.15);
}
.director-card-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.director-card-role {
    font-size: 0.7rem;
    background: #1e73be;
    color: #ffffff !important;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.3);
    display: inline-block;
}
.director-card-brand {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e73be !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- HERO EDITORIAL RESPONSIVE --- */
@media (max-width: 1200px) {
    .hero-editorial {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .hero-main-card {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 420px;
    }
    .hero-mid-col {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
    }
    .hero-mid-card {
        min-height: 180px;
    }
    .hero-sidebar {
        grid-column: 2;
        grid-row: 2;
        border-left: 2px solid var(--brand-blue);
        padding-left: 1rem;
    }
}
@media (max-width: 768px) {
    .hero-editorial {
        grid-template-columns: 1fr;
    }
    .hero-main-card {
        min-height: 320px;
    }
    .hero-main-title {
        font-size: 1.35rem;
    }
    .hero-mid-col {
        grid-column: 1;
        flex-direction: column;
    }
    .hero-mid-card {
        min-height: 180px;
    }
    .hero-sidebar {
        grid-column: 1;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--brand-blue);
        padding-top: 1rem;
    }
}

/* Premium Card hover style */
.news-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-sky);
}
.news-card:hover h3,
.news-card:hover h4 {
    color: #1e73be !important;
}
.news-card img {
    transition: transform 0.5s ease;
}
.news-card:hover img {
    transform: scale(1.03);
}

/* Slider slides styling */
.premium-slideshow {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for clean visual */
}
.premium-slideshow::-webkit-scrollbar {
    display: none;
}
.premium-slideshow-item {
    flex: 0 0 calc(20% - 0.8rem); /* 5 cards in single viewport */
    scroll-snap-align: start;
    min-width: 220px;
}
@media (max-width: 1024px) {
    .premium-slideshow-item {
        flex: 0 0 calc(33.333% - 0.66rem); /* 3 cards on tablets */
    }
}
@media (max-width: 640px) {
    .premium-slideshow-item {
        flex: 0 0 calc(80% - 0.5rem); /* 1.2 cards on mobile */
    }
}

/* Ticker marquee styling */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    padding-right: 3rem;
    font-size: 0.875rem;
}
.marquee-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-sky);
    margin-right: 0.75rem;
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Horizontal line item layout */
.news-line-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    align-items: center;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.news-line-item:hover {
    opacity: 0.95;
}
.news-line-item:hover h3 {
    color: #1e73be !important;
}
.news-line-item:last-child {
    border-bottom: none;
}
.news-line-item-img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-line-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom settings popover for frontend toggling */
.settings-popover {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    max-width: 320px;
    transition: var(--transition-smooth);
}
.settings-popover::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Navigation List & Dropdown Menus */
.header-nav-list {
    display: flex;
    align-items: center;
    gap: 1.1rem; /* Reducido para evitar aglomeración horizontal */
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav-list li {
    position: relative;
}
.header-nav-list > li > a {
    display: block;
    padding: 1.25rem 0.3rem; /* Padding horizontal ligeramente reducido */
    color: var(--menu-text);
    font-weight: 300;
    font-size: 0.88rem; /* Tamaño de fuente optimizado para entrar en línea */
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    transition: var(--transition-smooth);
    white-space: nowrap; /* Evitar quiebres de línea de manera absoluta */
}
.header-nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-sky);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}
.header-nav-list > li:hover > a {
    color: var(--brand-sky);
}
.header-nav-list > li:hover > a::after,
.header-nav-list > li.current-menu-item > a::after {
    width: 80%;
}

/* Sub-menus dropdown style */
.header-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 250px;
    background-color: var(--menu-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    list-style: none;
    margin: 0;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    pointer-events: none;
}
.header-nav-list li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.header-nav-list .sub-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}
.header-nav-list .sub-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--menu-text);
    opacity: 0.85;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    transition: var(--transition-smooth);
    border-radius: 0;
}
.header-nav-list .sub-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--brand-sky);
    padding-left: 1.75rem; /* Efecto micro-animación deslizante */
}

/* --- BOTONERA DE COMPARTIR EN NOTAS INDIVIDUALES --- */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 740px;
    margin: 0 auto 2.5rem auto;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.post-share-bar .share-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-right: 0.5rem;
}
.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.share-facebook { background-color: #1877f2; }
.share-whatsapp { background-color: #25d366; }
.share-twitter { background-color: #000000; }
.share-telegram { background-color: #0088cc; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    filter: brightness(1.08);
}

/* --- CUERPO DEL ARTÍCULO (Justificado & Letra Capitular) --- */
.post-entry-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}
.post-entry-content p {
    margin-bottom: 1.5rem;
}
.post-entry-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 0.65rem;
    margin-top: 0.15rem;
    color: #1e73be; /* Azul oficial corporativo de Traffic */
    font-family: inherit;
}

/* --- SECCIÓN DE NOTICIAS RELACIONADAS PREMIUM --- */
.related-header {
    margin-bottom: 3rem;
    position: relative;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1.25rem;
}
.related-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e73be; /* Color azul oficial de Traffic */
    display: inline-block;
    margin-bottom: 0.4rem;
}
.related-title {
    font-weight: 300;
    font-size: 1.95rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ==========================================================================
   10. SECCIÓN DE NOTICIAS RELACIONADAS DE ANCHO COMPLETO & TRANSICIÓN DE PIE
   ========================================================================== */
.related-news-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    margin-top: 0;
    transition: var(--transition-smooth);
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.related-news-section .container {
    max-width: 960px; /* Mantener la lectura compacta y premium */
    margin: 0 auto;
    padding: 0 1.5rem;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.related-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    border: none !important;
}

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-sky) !important;
}

.related-card-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
    border: none !important;
}

.related-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img-wrapper img {
    transform: scale(1.05);
}

.related-card-img-wrapper .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.68rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.related-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 1rem;
    border: none !important;
}

.related-card-info h4 {
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.related-card:hover .related-card-info h4 {
    color: var(--brand-blue) !important;
}

.related-card-date {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ELIMINAR CUALQUIER BORDE Y CAJA TOSCA EN EL DETALLE DE LA NOTA Y FOOTER */
#main-content,
#main-content article,
#main-content section,
#main-content .container,
#main-content .post-entry-content,
article.container,
main#main-content,
.wp-singular article,
.wp-singular section {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Transición fluida con el footer */
.related-news-section + footer,
.category-posts-section + footer {
    margin-top: 0 !important;
}

/* ==========================================================================
   11. PREMIUM CATEGORY ARCHIVE STYLING (Elegancia Editorial)
   ========================================================================== */
.category-header-banner {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.category-badge-label {
    margin-bottom: 0.75rem !important;
    font-size: 0.72rem !important;
    padding: 0.4rem 1.15rem !important;
    background-color: var(--brand-sky-light) !important;
    color: #1e73be !important;
    border: 1px solid rgba(30, 115, 190, 0.18) !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.category-header-title {
    font-weight: 200;
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.category-header-desc,
.category-header-desc-fallback {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.7;
}

.category-header-desc-fallback {
    color: var(--text-tertiary);
    font-size: 1.02rem;
}

/* Sección de Cuadrícula de Artículos de Categoría */
.category-posts-section {
    background-color: var(--bg-secondary);
    padding: 6rem 0;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.category-posts-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    border: none !important;
}

/* Sobrescribir el estilo de la cuadrícula en la sección de categorías para que sea ultra-premium */
.category-posts-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 3rem !important;
    border: none !important;
}

/* Modificaciones Premium para .news-card dentro de Categorías */
.category-posts-section .news-card {
    background-color: var(--bg-primary) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden !important;
    transition: var(--transition-smooth) !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.category-posts-section .news-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(30, 115, 190, 0.12) !important;
    border-color: var(--brand-sky) !important;
}

.category-posts-section .news-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.category-posts-section .news-card:hover img {
    transform: scale(1.06) !important;
}

.category-posts-section .news-card h3 {
    font-weight: 300 !important;
    font-size: 1.32rem !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth) !important;
    margin-bottom: 0.85rem !important;
    letter-spacing: -0.01em !important;
}

.category-posts-section .news-card:hover h3 {
    color: #1e73be !important;
}

.category-posts-section .news-card p {
    color: var(--text-secondary) !important;
    font-size: 0.88rem !important;
    line-weight: 1.6 !important;
    margin-bottom: 1.25rem !important;
    font-weight: 300 !important;
}

.category-posts-section .news-card .badge {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    font-size: 0.68rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.category-posts-section .news-card div:last-child {
    border: none !important;
}

/* Efecto hover interactivo para el enlace "Leer más" en el pie de tarjeta de categoría */
.category-posts-section .news-card:hover .news-card-action {
    color: var(--brand-blue) !important;
    transform: translateX(5px);
}

/* Forzar perfecta visibilidad de badges en overlays oscuros (Hero y tarjetas con imágenes oscuras de fondo) */
.hero-main-overlay .badge,
.hero-mid-overlay .badge {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

/* Responsividad premium para celulares */
@media (max-width: 768px) {
    .category-header-banner {
        padding: 2.5rem 0 1.75rem 0;
    }
    .category-header-title {
        font-size: 2rem;
    }
    .category-header-desc,
    .category-header-desc-fallback {
        font-size: 0.95rem;
        padding: 0 1.25rem;
        line-height: 1.6;
    }
    .category-posts-section {
        padding: 4rem 0;
    }
    .category-posts-section .grid {
        gap: 2rem !important;
    }
}

.category-empty-state {
    text-align: center;
    padding: 6rem 0;
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.category-empty-state svg {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.category-empty-state h3 {
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-empty-state p {
    color: var(--text-tertiary);
    font-weight: 300;
    font-size: 0.95rem;
}

/* Forzar la eliminación de bordes en vistas de archivos/categorías */
.wp-theme-hero-news.archive #main-content,
.wp-theme-hero-news.archive article,
.wp-theme-hero-news.archive section,
.wp-theme-hero-news.archive .container,
.wp-theme-hero-news.archive .grid {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   12. ELEGANTE PAGINACIÓN NUMÉRICA CIRCULAR
   ========================================================================== */
.pagination-wrapper {
    margin-top: 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.pagination-wrapper .page-numbers.current {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.35);
}

.pagination-wrapper .page-numbers:hover:not(.current):not(.dots) {
    background-color: var(--brand-sky-light);
    border-color: var(--brand-sky);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    border-radius: 30px;
    padding: 0 1.25rem;
    min-width: auto;
}

.pagination-wrapper .page-numbers.dots {
    background: none;
    border: none;
    box-shadow: none;
    cursor: default;
    color: var(--text-tertiary);
}

/* ==========================================================================
   13. MENÚ MÓVIL RESPONSIVO PREMIUM (DRAWER & OFF-CANVAS)
   ========================================================================== */
.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .main-nav-bar {
        display: none !important; /* Ocultar menú de escritorio */
    }
    .mobile-only {
        display: inline-flex !important; /* Mostrar elementos móviles */
    }
    
    /* Botón hamburguesa */
    .menu-toggle-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        background-color: var(--bg-tertiary);
        transition: var(--transition-smooth);
        cursor: pointer;
    }
    .menu-toggle-btn svg {
        width: 22px;
        height: 22px;
        stroke: var(--text-primary);
        fill: none;
    }
    .menu-toggle-btn:hover {
        background-color: var(--brand-sky-light);
        border-color: var(--brand-sky);
    }
    .menu-toggle-btn:hover svg {
        stroke: var(--brand-sky);
    }
}

/* Estilos para el Drawer de navegación móvil lateral (Off-canvas) */
.mobile-menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    transition: visibility 0.4s;
    overflow: hidden;
}
.mobile-menu-drawer.is-active {
    visibility: visible;
}

/* Telón de fondo translúcido y con desenfoque */
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 10, 18, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-drawer.is-active .drawer-backdrop {
    opacity: 1;
}

/* Contenido del menú desplegable lateral */
.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .drawer-content {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}
.mobile-menu-drawer.is-active .drawer-content {
    transform: translateX(0);
}

/* Cabecera del Drawer */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.drawer-logo img {
    max-height: 38px;
    width: auto;
}
.drawer-close-btn {
    border: 1px solid var(--border-color);
    background: none;
}
.drawer-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

/* Contenedor de la navegación interior */
.drawer-nav-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

/* Listado del menú móvil */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-list li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.mobile-nav-list li:last-child {
    border-bottom: none;
}
.mobile-nav-list a {
    display: block;
    padding: 1rem 1.75rem;
    color: var(--text-primary);
    font-weight: 300;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.mobile-nav-list a:hover,
.mobile-nav-list li.current-menu-item > a {
    color: var(--brand-sky);
    background-color: var(--bg-secondary);
    padding-left: 2rem;
}

/* Relojes y pie del Drawer */
.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}
.drawer-clocks-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.drawer-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.mclock-item {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-weight: 400;
    text-align: center;
}
.mclock-item span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.72rem;
}
.drawer-tagline {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Acordeón y soporte para submenús en móviles */
.mobile-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 52px;
    background: none;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
[data-theme="dark"] .mobile-submenu-toggle {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}
.mobile-submenu-toggle.is-active svg {
    transform: rotate(180deg);
}
.mobile-submenu-toggle.is-active {
    color: var(--brand-sky);
    background-color: rgba(77, 178, 236, 0.05);
}

/* Sub-menu en móviles colapsable */
.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--bg-secondary);
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s ease-out, opacity 0.25s, transform 0.25s, visibility 0.25s;
    border-left: 3px solid var(--brand-sky);
}
.mobile-nav-list .sub-menu.is-expanded {
    max-height: 500px; /* Suficiente para expandirse completamente */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-nav-list .sub-menu a {
    padding: 0.75rem 2.25rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
}
.mobile-nav-list .sub-menu a:hover {
    color: var(--brand-sky);
    padding-left: 2.5rem;
}

/* ==========================================================================
   14. ESTILOS DE MAQUETACIÓN PARA LOS NUEVOS DISEÑOS PREMIUM DE LA HOME
   ========================================================================== */

/* 1. MASONRY (Cuadrícula Asimétrica) */
.editorial-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.masonry-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-sky);
}
.masonry-card-large {
    grid-column: span 2;
    flex-direction: row;
}
.masonry-card-large .masonry-card-img-wrapper {
    width: 50%;
    height: 100%;
}
.masonry-card-large .masonry-card-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.masonry-card-img-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}
.masonry-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.masonry-card:hover .masonry-card-img-wrapper img {
    transform: scale(1.03);
}
.masonry-card-img-wrapper .badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.masonry-card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.masonry-card-info h3 {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.masonry-card:hover h3 {
    color: var(--brand-blue) !important;
}
.masonry-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.masonry-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.masonry-card-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.masonry-card-action {
    font-size: 0.75rem;
    color: var(--brand-sky);
}
@media (max-width: 992px) {
    .editorial-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-card-large {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .editorial-masonry {
        grid-template-columns: 1fr;
    }
    .masonry-card-large {
        grid-column: span 1;
        flex-direction: column;
    }
    .masonry-card-large .masonry-card-img-wrapper,
    .masonry-card-large .masonry-card-info {
        width: 100%;
    }
}

/* 2. LIST COMPACT (Lista Compacta de Prensa) */
.list-compact-press {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
}
.list-compact-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.list-compact-item:last-child {
    border-bottom: none;
}
.list-compact-item:hover {
    background-color: var(--bg-secondary);
}
.list-compact-item .badge {
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.list-compact-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.25rem;
}
.list-compact-content h3 {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    transition: var(--transition-smooth);
}
.list-compact-item:hover h3 {
    color: var(--brand-blue) !important;
}
.list-compact-date {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.list-compact-arrow {
    font-size: 1.1rem;
    color: var(--brand-sky);
    margin-left: 1rem;
    transition: transform 0.3s ease;
}
.list-compact-item:hover .list-compact-arrow {
    transform: translateX(4px);
}
@media (max-width: 640px) {
    .list-compact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .list-compact-item .badge {
        margin-right: 0;
    }
    .list-compact-arrow {
        display: none;
    }
}

/* 3. TWO COLUMNS (Dos Columnas con Miniatura Flanqueada) */
.two-columns-flanked {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.flanked-card {
    display: flex;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.flanked-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-sky);
}
.flanked-card-img {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.flanked-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.flanked-card:hover .flanked-card-img img {
    transform: scale(1.04);
}
.flanked-card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex-grow: 1;
}
.flanked-card-info h3 {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.flanked-card:hover h3 {
    color: var(--brand-blue) !important;
}
.flanked-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.flanked-card-date {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
@media (max-width: 992px) {
    .two-columns-flanked {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .flanked-card {
        flex-direction: column;
    }
    .flanked-card-img {
        width: 100%;
        height: 150px;
    }
}

/* 4. CAROUSEL HERO (Carrusel de Gran Foco) */
.carousel-hero-container {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    background-color: #000;
}
.carousel-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
/* Desactivar scroll horizontal táctil y snaps en PC/Mac con ratón/trackpad para evitar saltos accidentales en diagonal */
@media (hover: hover) and (pointer: fine) {
    .carousel-hero-track {
        overflow-x: hidden !important;
        scroll-snap-type: none !important;
    }
}
/* Desactivar hovers e interacciones en el carrusel al hacer scroll vertical en la página */
body.is-scrolling .carousel-hero-container,
body.is-scrolling .carousel-hero-container * {
    pointer-events: none !important;
}
.carousel-hero-track::-webkit-scrollbar {
    display: none;
}
.carousel-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: flex-end;
    scroll-snap-align: start;
}
.carousel-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.1, 1);
    filter: brightness(0.75);
}
.carousel-hero-slide:hover .carousel-hero-bg {
    transform: scale(1.05);
}

/* Glassmorphism Card Overlay */
.carousel-hero-glass-card {
    position: relative;
    z-index: 2;
    margin: 3rem;
    max-width: 580px;
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.1, 1, 0.1, 1);
}
.carousel-hero-slide:hover .carousel-hero-glass-card {
    transform: translateY(-8px);
    border-color: rgba(77, 178, 236, 0.5);
}
.carousel-hero-glass-card .badge {
    align-self: flex-start;
    background-color: var(--brand-sky) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.3rem 0.85rem;
}
.carousel-hero-glass-card h2.carousel-hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.03em;
}
.carousel-hero-glass-card h2.carousel-hero-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.carousel-hero-glass-card h2.carousel-hero-title a:hover {
    color: var(--brand-sky) !important;
}
.carousel-hero-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.carousel-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}
.carousel-hero-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}
.carousel-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--brand-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.carousel-hero-btn svg {
    transition: transform 0.3s ease;
}
.carousel-hero-btn:hover {
    background-color: var(--brand-sky);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(77, 178, 236, 0.4);
}
.carousel-hero-btn:hover svg {
    transform: translateX(4px);
}

/* Navigation Controls (Arrows) */
.carousel-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}
.carousel-hero-nav:hover {
    background: var(--brand-sky);
    border-color: var(--brand-sky);
    box-shadow: 0 0 15px rgba(77, 178, 236, 0.4);
}
.carousel-hero-prev {
    left: 1.5rem;
}
.carousel-hero-next {
    right: 1.5rem;
}

/* Dots Indicators */
.carousel-hero-dots {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.carousel-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}
.carousel-hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
.carousel-hero-dot.is-active {
    background: var(--brand-sky);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(77, 178, 236, 0.5);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .carousel-hero-slide {
        min-height: 480px;
    }
    .carousel-hero-glass-card {
        margin: 2rem;
        padding: 2rem;
    }
    .carousel-hero-glass-card h2.carousel-hero-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 768px) {
    .carousel-hero-slide {
        min-height: 400px;
    }
    .carousel-hero-glass-card {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
    .carousel-hero-glass-card h2.carousel-hero-title {
        font-size: 1.4rem;
    }
    .carousel-hero-excerpt {
        display: none;
    }
    .carousel-hero-nav {
        display: none;
    }
    .carousel-hero-dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 1.25rem;
    }
}

/* 5. MAGAZINE STRIP (Franja de Noticias) */
.magazine-strip-container {
    width: 100%;
    overflow: hidden;
}
.magazine-strip-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}
.magazine-strip-track::-webkit-scrollbar {
    display: none;
}
.magazine-strip-card {
    flex: 0 0 calc(25% - 0.95rem);
    min-width: 250px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.magazine-strip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-sky);
}
.magazine-card-img {
    height: 150px;
    position: relative;
    overflow: hidden;
}
.magazine-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.magazine-strip-card:hover .magazine-card-img img {
    transform: scale(1.05);
}
.magazine-card-img .badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.magazine-card-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 0.75rem;
}
.magazine-card-info h3 {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.magazine-strip-card:hover h3 {
    color: var(--brand-blue) !important;
}
.magazine-card-date {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
@media (max-width: 1024px) {
    .magazine-strip-card {
        flex: 0 0 calc(33.333% - 0.83rem);
    }
}
@media (max-width: 768px) {
    .magazine-strip-card {
        flex: 0 0 calc(50% - 0.63rem);
    }
}
@media (max-width: 480px) {
    .magazine-strip-card {
        flex: 0 0 80%;
    }
}

/* 6. NEWSPAPER COLUMNS (Mosaico de Periódico Multi-columna) */
.newspaper-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.newspaper-column-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}
.newspaper-column-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--brand-blue);
}
.newspaper-column-img {
    height: 120px;
    overflow: hidden;
}
.newspaper-column-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.newspaper-column-card:hover .newspaper-column-img img {
    transform: scale(1.03);
}
.newspaper-column-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}
.newspaper-column-info h3 {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.newspaper-column-card:hover h3 {
    color: var(--brand-blue) !important;
}
.newspaper-column-date {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: auto;
}
@media (max-width: 1024px) {
    .newspaper-columns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .newspaper-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .newspaper-columns-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CABECERAS DE SECCIONES HOME — ULTRA PREMIUM EDITORIAL --- */
.section-header-premium {
    margin-bottom: 3rem;
    padding: 0 0 1.5rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: none;
    overflow: visible;
}

/* Acento vertical lateral con gradiente animado */
.section-header-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-sky) 60%, transparent 100%);
    border-radius: 4px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-header-premium:hover::before {
    background: linear-gradient(180deg, var(--brand-sky) 0%, var(--brand-blue) 60%, rgba(30, 115, 190, 0.2) 100%);
}

/* Línea inferior decorativa con gradiente y animación de reveal */
.section-header-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.75rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky), transparent);
    border-radius: 10px;
    animation: sectionLineReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-play-state: paused;
}
.section-header-premium.is-visible::after {
    animation-play-state: running;
}

@keyframes sectionLineReveal {
    0% {
        width: 0;
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        width: calc(100% - 1.75rem);
        opacity: 1;
    }
}

/* Etiqueta superior (Tag) — estilo editorial con punto decorativo */
.section-header-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-sky);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
}
.section-header-tag .tag-divider {
    color: var(--brand-blue);
    font-size: 0.55rem;
    opacity: 0.6;
}
.section-header-premium:hover .section-header-tag {
    color: var(--brand-blue);
    letter-spacing: 0.16em;
}

/* Título Principal — tipografía editorial de alta gama */
.section-header-title {
    font-weight: 200;
    font-size: 2.35rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.15;
    text-transform: capitalize;
    position: relative;
    transition: var(--transition-smooth);
}
.section-header-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-sky);
    border-radius: 50%;
    margin-left: 0.45rem;
    vertical-align: super;
    opacity: 0.5;
    transition: var(--transition-smooth);
}
.section-header-premium:hover .section-header-title {
    letter-spacing: -0.03em;
}
.section-header-premium:hover .section-header-title::after {
    opacity: 1;
    background-color: var(--brand-blue);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(30, 115, 190, 0.4);
}

/* --- Responsive para Cabeceras de Sección --- */
@media (max-width: 768px) {
    .section-header-premium {
        padding-left: 1.25rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    .section-header-title {
        font-size: 1.65rem;
        letter-spacing: -0.02em;
    }
    .section-header-title::after {
        width: 6px;
        height: 6px;
    }
    .section-header-tag {
        font-size: 0.6rem;
    }
}
@media (max-width: 480px) {
    .section-header-premium {
        padding-left: 1rem;
        margin-bottom: 1.75rem;
    }
    .section-header-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */

.site-footer {
    background: var(--footer-bg, linear-gradient(175deg, #0f1923 0%, #0a1628 40%, #060d17 100%));
    color: #fff;
    padding: 0 0 2rem 0;
    margin-top: 5rem;
    font-weight: 300;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind footer content */
.site-footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(30, 115, 190, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Top accent gradient line */
.footer-accent-line {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-blue) 25%, var(--brand-sky) 50%, var(--brand-blue) 75%, transparent 100%);
    margin-bottom: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* -- Footer columns -- */
.footer-col {
    min-width: 0;
}

.footer-logo {
    max-height: 46px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.footer-logo:hover {
    opacity: 1;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    font-size: 0.84rem;
    font-weight: 300;
}

.footer-heading {
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--brand-sky);
    border-radius: 2px;
}

/* -- Footer nav list -- */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-nav-list li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.85rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}
.footer-nav-list li a:hover {
    color: var(--brand-sky);
    padding-left: 6px;
}

/* -- Contact items -- */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
    margin-left: -0.65rem;
}
a.footer-contact-item:hover {
    background: rgba(77, 178, 236, 0.08);
    color: var(--brand-sky);
}
a.footer-contact-item:hover .footer-contact-icon {
    color: #fff;
    background: var(--brand-sky);
    box-shadow: 0 0 12px rgba(77, 178, 236, 0.35);
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-sky);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-contact-text {
    line-height: 1.4;
}

/* -- Footer bottom bar -- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-sky) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(30, 115, 190, 0.3);
}
.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
    box-shadow: 0 6px 24px rgba(77, 178, 236, 0.5);
    transform: translateY(-2px) scale(1.05);
}
.scroll-top-btn:active {
    transform: translateY(0) scale(0.97);
}

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

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-accent-line {
        margin-bottom: 2.5rem;
    }
    .scroll-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/* ==========================================================================
   12. NUEVOS ESTILOS DE MAQUETACIÓN PREMIUM (Split Showcase & Tabbed Showcase)
   ========================================================================== */

/* A. MOSAICO DE FOCO DIVIDIDO (Split Showcase) */
.split-showcase-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.split-showcase-left-card {
    flex: 0 0 50%;
    width: 50%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
    background-color: #000;
}

.split-showcase-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.1, 1);
    filter: brightness(0.7);
}

.split-showcase-left-card:hover .split-showcase-bg-img {
    transform: scale(1.05);
}

.split-showcase-overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.split-showcase-title {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}

.split-showcase-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.split-showcase-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.split-showcase-btn {
    font-size: 0.85rem;
    color: var(--brand-sky);
    font-weight: 600;
    transition: color 0.3s ease;
}

.split-showcase-left-card:hover .split-showcase-btn {
    color: #fff;
}

/* Panel Derecho Grid 2x2 */
.split-showcase-right-grid {
    flex: 0 0 50%;
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.split-showcase-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.split-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-sky-light);
}

.split-showcase-item-img-wrapper {
    height: 135px;
    position: relative;
    overflow: hidden;
}

.split-showcase-item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.split-showcase-item:hover .split-showcase-item-img-wrapper img {
    transform: scale(1.06);
}

.split-showcase-item-img-wrapper .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
}

.split-showcase-item-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 0.5rem;
}

.split-showcase-item-info h3 {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.split-showcase-item:hover .split-showcase-item-info h3 {
    color: var(--brand-blue);
}

.split-showcase-item-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* B. ESCENARIO DE PESTAÑAS ÉLITE (Tabbed Showcase) */
.tabbed-showcase-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.tabbed-showcase-viewer {
    flex: 0 0 68%;
    width: 68%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    background-color: #000;
    box-shadow: var(--shadow-lg);
}

.tabbed-viewer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: flex-end;
}

.tabbed-viewer-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tabbed-viewer-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tabbed-viewer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

.tabbed-viewer-slide.is-active .tabbed-viewer-img-wrapper img {
    transform: scale(1.03);
}

.tabbed-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.tabbed-viewer-card {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tabbed-viewer-title {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin: 0;
}

.tabbed-viewer-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tabbed-viewer-title a:hover {
    color: var(--brand-sky);
}

.tabbed-viewer-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tabbed-viewer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
}

.tabbed-viewer-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.tabbed-viewer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    background-color: var(--brand-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.3);
    transition: all 0.3s ease;
}

.tabbed-viewer-btn:hover {
    background-color: var(--brand-sky);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 178, 236, 0.4);
}

.tabbed-viewer-btn svg {
    transition: transform 0.3s ease;
}

.tabbed-viewer-btn:hover svg {
    transform: translateX(4px);
}

/* Panel Derecho de Pestañas */
.tabbed-showcase-tabs {
    flex: 0 0 32%;
    width: 32%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tabbed-tabs-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tabbed-header-accent {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

.tabbed-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 440px;
    padding-right: 0.25rem;
}

.tabbed-tabs-list::-webkit-scrollbar {
    width: 4px;
}

.tabbed-tabs-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.tabbed-nav-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem;
    border-radius: 16px;
    background: none;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    outline: none;
}

.tabbed-nav-item:hover {
    background-color: var(--bg-tertiary);
}

.tabbed-nav-item.is-active {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tabbed-nav-num {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-tertiary);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.tabbed-nav-item.is-active .tabbed-nav-num {
    color: var(--brand-blue);
    font-weight: 700;
}

.tabbed-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.tabbed-nav-cat {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.tabbed-nav-item.is-active .tabbed-nav-cat {
    color: var(--brand-sky);
}

.tabbed-nav-title {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.tabbed-nav-item.is-active .tabbed-nav-title {
    color: var(--text-primary);
    font-weight: 600;
}

.tabbed-nav-indicator {
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background-color: var(--brand-blue);
    opacity: 0;
    transform: scaleY(0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tabbed-nav-item.is-active .tabbed-nav-indicator {
    opacity: 1;
    transform: scaleY(1);
}

/* Responsivo para Mosaico y Pestañas */
@media (max-width: 1024px) {
    .split-showcase-container {
        flex-direction: column;
    }
    .split-showcase-left-card {
        flex: 0 0 100%;
        width: 100%;
        min-height: 420px;
    }
    .split-showcase-right-grid {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .tabbed-showcase-container {
        flex-direction: column;
    }
    .tabbed-showcase-viewer {
        flex: 0 0 100%;
        width: 100%;
        min-height: 420px;
    }
    .tabbed-showcase-tabs {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .split-showcase-right-grid {
        grid-template-columns: 1fr;
    }
    .split-showcase-overlay {
        padding: 1.5rem;
    }
    .split-showcase-title {
        font-size: 1.5rem;
    }
    .tabbed-viewer-card {
        padding: 1.5rem;
    }
    .tabbed-viewer-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   13. ESTILOS DE FIRMA DE DESARROLLADOR & REDES SOCIALES (Contacto + Top Bar)
   ========================================================================== */

/* Firma del Desarrollador en Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    margin-top: 3.5rem;
}
.footer-signature {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}
.footer-signature .signature-link {
    color: var(--brand-sky);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.footer-signature .signature-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(77, 178, 236, 0.6);
}

/* Fila de Redes Sociales en Columna Contacto del Footer */
.footer-social-row {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-social-icon-btn:hover {
    background-color: var(--brand-sky-light);
    color: var(--brand-sky);
    border-color: var(--brand-sky);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 178, 236, 0.25);
}

/* Iconos de Redes Sociales en Barra Superior (Top Bar) */
.top-bar-social {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.top-bar-social-btn {
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.top-bar-social-btn:hover {
    color: var(--brand-sky);
    transform: scale(1.12);
}

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR & LOPDP ECUADOR)
   ========================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    max-width: 440px;
    background: rgba(15, 25, 35, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    transform: translateY(15px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
}
[data-theme="light"] .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 25, 35, 0.08);
    box-shadow: 0 8px 32px rgba(15, 25, 35, 0.06);
}
.cookie-consent-banner.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.cookie-consent-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.cookie-consent-text {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-weight: 300;
    flex: 1;
}
[data-theme="light"] .cookie-consent-text {
    color: rgba(15, 25, 35, 0.78);
}
.cookie-policy-link {
    color: var(--brand-sky);
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.cookie-policy-link:hover {
    color: #fff;
}
[data-theme="light"] .cookie-policy-link {
    color: var(--brand-blue);
}
[data-theme="light"] .cookie-policy-link:hover {
    color: #000;
}
.cookie-consent-btn {
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-sky) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 115, 190, 0.15);
}
.cookie-consent-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(77, 178, 236, 0.25);
}
.cookie-consent-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
        padding: 0.6rem 0.75rem;
    }
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .cookie-consent-btn {
        align-self: flex-end;
    }
}

/* ==========================================================================
   METADATA DE POST INDIVIDUAL PREMIUM
   ========================================================================== */
.post-meta-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin: 0.5rem auto;
    max-width: 100%;
}
.post-meta-capsule:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-sky-light);
    transform: translateY(-1px);
}
.post-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brand-sky);
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.post-meta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    line-height: 1.4;
}
.post-meta-author-name {
    font-weight: 600;
    color: var(--text-primary);
}
.post-meta-divider {
    opacity: 0.3;
}
.post-meta-date {
    font-weight: 300;
    color: var(--text-tertiary);
}

@media (max-width: 480px) {
    .post-meta-capsule {
        padding: 0.65rem 0.95rem;
        border-radius: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .post-meta-divider {
        display: none;
    }
}

/* ==========================================================================
   ESTILOS DE CABECERAS ADICIONALES (1, 2, 3, 4) - MEJORADOS PREMIUM
   ========================================================================== */

/* 1. COMPONENTES COMUNES Y HAMBURGUESA ANIMADO CSS PURO */
.glass-header {
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                backdrop-filter 0.4s ease;
}

/* Efecto hover premium con línea inferior expandible en gradiente */
.header-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}
.header-nav-list li {
    position: relative;
}
.header-nav-list li a {
    position: relative;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--menu-text);
    padding: 0.45rem 0;
    display: inline-block;
    transition: color 0.25s ease;
}
.header-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}
.header-nav-list li a:hover {
    color: var(--brand-sky);
}
.header-nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Indicador de página activa */
.header-nav-list li.current-menu-item > a {
    color: var(--brand-sky);
    font-weight: 600;
}
.header-nav-list li.current-menu-item > a::after {
    transform: scaleX(1);
    background: var(--brand-sky);
}

/* Transiciones de Clases Sticky Scrolled */
.glass-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(16px) saturate(180%);
}
[data-theme="dark"] .glass-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: rgba(18, 18, 18, 0.90) !important;
    backdrop-filter: blur(16px) saturate(180%);
}

/* Botón Hamburguesa Animado CSS */
.menu-toggle-btn {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
}
.hamburger-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 14px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: transform 0.28s cubic-bezier(0.215, 0.61, 0.355, 1), 
                background-color 0.28s ease,
                opacity 0.28s ease,
                top 0.28s ease,
                bottom 0.28s ease;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -6px;
}
.hamburger-inner::after {
    bottom: -6px;
}

/* Estado hamburguesa activo (se convierte en X) */
.menu-toggle-btn.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--brand-sky) !important;
}
.menu-toggle-btn.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transform: rotate(90deg);
}
.menu-toggle-btn.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: var(--brand-sky) !important;
}


/* CABECERA 1: Élite (Original - Con comportamiento autolimpiante en scroll) */
.header-layout-style_1.glass-header {
    /* Base */
}
.glass-header .top-bar,
.glass-header .header-ticker-container {
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80px;
    overflow: hidden;
}
/* Al hacer scroll, encoge limpiando el top bar y la marquesina para lectura máxima */
.glass-header.scrolled .top-bar,
.glass-header.scrolled .header-ticker-container {
    max-height: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.header-layout-style_1.glass-header.scrolled .header-content-inner {
    height: 58px;
    transition: height 0.3s ease;
}
.header-layout-style_1.glass-header.scrolled .logo-img-wrapper img {
    max-height: 38px;
    transition: max-height 0.3s ease;
}


/* CABECERA 2: Editorial Clásica (Logo Gigante que se fusiona mágicamente en scroll) */
.header-layout-style_2 .header-content-inner {
    flex-direction: column;
    height: auto;
    padding: 1.5rem 0 0.85rem 0;
    gap: 1.2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_2 .logo-img-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_2 .logo-img-wrapper img {
    max-height: 85px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_2 .main-nav-bar {
    width: 100%;
    border-top: 1px solid rgba(135, 135, 135, 0.12);
    border-bottom: 1px solid rgba(135, 135, 135, 0.12);
    padding: 0.65rem 0;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_2 .header-actions {
    position: absolute;
    right: 0;
    top: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transición Mágica en Scroll (De Editorial Vertical a Horizontal Fina) */
.header-layout-style_2.glass-header.scrolled .header-content-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 58px;
    padding: 0;
    gap: 1.5rem;
}
.header-layout-style_2.glass-header.scrolled .logo-img-wrapper {
    width: auto;
    justify-content: flex-start;
}
.header-layout-style_2.glass-header.scrolled .logo-img-wrapper img {
    max-height: 38px;
}
.header-layout-style_2.glass-header.scrolled .main-nav-bar {
    width: auto;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}
.header-layout-style_2.glass-header.scrolled .header-actions {
    position: static;
    top: auto;
    right: auto;
}

@media (max-width: 992px) {
    .header-layout-style_2 .header-actions {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
    .header-layout-style_2.glass-header.scrolled .header-content-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0;
    }
    .header-layout-style_2.glass-header.scrolled .main-nav-bar {
        display: none !important; /* Ocultar menú en responsive y usar hamburguesa */
    }
    .header-layout-style_2.glass-header.scrolled .header-actions {
        width: auto;
        margin-top: 0;
    }
}


/* CABECERA 3: Compacta Pro (Asimétrica y Aerodinámica de Alta Gama) */
.header-layout-style_3 .header-content-inner {
    height: 75px;
    gap: 2.5rem;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_3 .logo-img-wrapper img {
    max-height: 48px;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-layout-style_3 .main-nav-bar {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}
.header-layout-style_3 .header-nav-list {
    gap: 1.8rem;
}

/* Efecto Scrolled */
.header-layout-style_3.glass-header.scrolled .header-content-inner {
    height: 58px;
}
.header-layout-style_3.glass-header.scrolled .logo-img-wrapper img {
    max-height: 38px;
}


/* CABECERA 4: Minimalista Sidebar Drawer (Súper Limpia y Vanguardista) */
.header-layout-style_4.glass-header {
    border-bottom: 1px solid rgba(135, 135, 135, 0.08);
}
.header-layout-style_4 .main-nav-bar {
    display: none !important;
}
.header-layout-style_4 .header-content-inner {
    height: 64px;
    transition: height 0.3s ease;
}
.header-layout-style_4.glass-header.scrolled .header-content-inner {
    height: 54px;
}
.header-layout-style_4 .logo-img-wrapper img {
    max-height: 40px;
}
.header-layout-style_4.glass-header.scrolled .logo-img-wrapper img {
    max-height: 34px;
}
.always-visible {
    display: inline-flex !important;
}

/* MEJORAS DE DISEÑO PREMIUM PARA EL DRAWER LATERAL (OFF-CANVAS) */
.mobile-menu-drawer {
    z-index: 101000;
}
.mobile-menu-drawer .drawer-backdrop {
    background: rgba(8, 12, 20, 0.65);
    backdrop-filter: blur(8px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-drawer .drawer-content {
    width: 385px;
    max-width: 100vw;
    background: var(--menu-bg);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.mobile-menu-drawer .drawer-logo img {
    max-height: 42px;
    width: auto;
}
.mobile-menu-drawer .drawer-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .mobile-menu-drawer .drawer-close-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Tipografía Escala Editorial de los Enlaces del Drawer */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.mobile-nav-list li a {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--menu-text);
    letter-spacing: -0.5px;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}
.mobile-nav-list li a:hover {
    color: var(--brand-sky);
    transform: translateX(8px);
}
.mobile-nav-list .menu-item-has-children {
    position: relative;
}

/* Submenús en el Drawer */
.mobile-nav-list .sub-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-left: 2px solid rgba(135, 135, 135, 0.1);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.4s ease;
}
.mobile-nav-list .sub-menu.is-expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.mobile-nav-list .sub-menu li a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.mobile-nav-list .sub-menu li a:hover {
    color: var(--brand-sky);
    transform: translateX(6px);
}

/* Flechas toggle de Submenús en Móviles */
.mobile-submenu-toggle {
    position: absolute;
    right: 0;
    top: 0.15rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
[data-theme="light"] .mobile-submenu-toggle {
    background: rgba(0, 0, 0, 0.02);
}
.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}
.mobile-submenu-toggle.is-active {
    background: var(--brand-sky-light);
    color: var(--brand-sky);
}
.mobile-submenu-toggle.is-active svg {
    transform: rotate(180deg);
}

/* Footer del Drawer */
.mobile-menu-drawer .drawer-footer {
    border-top: 1px solid rgba(135, 135, 135, 0.08);
    padding-top: 1.8rem;
    margin-top: 2rem;
}
.mobile-menu-drawer .drawer-clocks-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    display: block;
}
.mobile-menu-drawer .drawer-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.mobile-menu-drawer .mclock-item {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.35rem;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
[data-theme="light"] .mobile-menu-drawer .mclock-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
}
.mobile-menu-drawer .mclock-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}
.mobile-menu-drawer .drawer-tagline {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--text-tertiary);
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* ==========================================================================
   26. VISTA DE GALERÍAS PREMIUM Y RESPONSIVAS (Gutenberg & Classic Gallery)
   ========================================================================== */
.wp-block-gallery, .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Soporte de columnas específicas de WordPress */
.wp-block-gallery.columns-2, .gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}
.wp-block-gallery.columns-3, .gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}
.wp-block-gallery.columns-4, .gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}
.wp-block-gallery.columns-5, .gallery.columns-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

.wp-block-gallery .wp-block-image, 
.gallery-item {
    margin: 0 !important;
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: transform 0.4s cubic-bezier(0.1, 1, 0.1, 1), box-shadow 0.4s ease !important;
    background-color: var(--bg-secondary) !important;
}

.wp-block-gallery .wp-block-image:hover, 
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.wp-block-gallery .wp-block-image img, 
.gallery-icon img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    transition: filter 0.4s ease !important;
}

.wp-block-gallery .wp-block-image:hover img, 
.gallery-item:hover img {
    filter: brightness(0.9) saturate(115%) !important;
}

/* Captions / Leyendas de Galería */
.wp-block-gallery figcaption, 
.gallery-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    text-align: center !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    pointer-events: none !important;
    font-family: var(--font-body) !important;
}

.wp-block-gallery .wp-block-image:hover figcaption, 
.gallery-item:hover .gallery-caption {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wp-block-gallery, .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .wp-block-gallery .wp-block-image img, 
    .gallery-icon img {
        height: 180px !important;
    }
    .wp-block-gallery figcaption, 
    .gallery-caption {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .wp-block-gallery, .gallery {
        grid-template-columns: 1fr !important;
    }
}


