/* ── Reset y Tokens ─────────────────────────────────── */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --navy:   #0F2A47;
            --red:    #E02020;
            --orange: #FF7F46;
            --gray:   #F4F4F4;
            --font:   'Plus Jakarta Sans', system-ui, sans-serif;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font);
            background: #f8fafc;
            color: #1e293b;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* ── Barra Arriba ───────────────────────────────────── */
        .topbar {
            background: var(--navy);
            color: #fff;
            font-size: 0.8rem;
            padding: 7px 1.5rem;
            display: none;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,.08);
        }
        /* ── New Top Bar ────────────────────────────────────── */
        .topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; }
        .topbar-info { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
        .topbar-info a { color: rgba(255,255,255,.65); font-size: .75rem; font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: .4rem; transition: color .2s; }
        .topbar-info a:hover { color: var(--orange); }
        .topbar-socials { display: flex; align-items: center; gap: .35rem; }
        .topbar-socials a { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); text-decoration: none; transition: background .2s; }
        .topbar-socials a:hover { background: var(--orange); }
        .topbar-socials svg { fill: currentColor; }

        @media (min-width: 768px) { .topbar { display: flex; } }
        .topbar a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color .2s; }
        .topbar a:hover { color: var(--orange); }
        .topbar .links { display: flex; gap: 1.5rem; }
        .topbar .social { display: flex; gap: 1rem; }

        .stripe { height: 4px; background: repeating-linear-gradient(45deg, var(--red) 0, var(--red) 10px, var(--orange) 10px, var(--orange) 20px); }

        /* ── Navegación ─────────────────────────────────────── */
        .navbar {
            background: #fff;
            border-bottom: 1px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 50;
            transition: box-shadow .3s;
        }
        .navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); }
        .nav-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 72px;
        }
        .nav-logo img { height: 52px; width: auto; object-fit: contain; }
        .nav-links { display: none; gap: 2rem; align-items: center; }
        @media (min-width: 1024px) { .nav-links { display: flex; } }
        .nav-links a {
            color: var(--navy);
            text-decoration: none;
            font-weight: 700;
            font-size: .85rem;
            text-transform: uppercase;
            letter-spacing: .05em;
            transition: color .2s;
        }
        .nav-links a:hover { color: var(--red); }
        .btn-intranet {
            display: none;
            padding: 8px 20px;
            background: var(--navy);
            color: #fff;
            font-weight: 700;
            font-size: .85rem;
            text-decoration: none;
            border-radius: 6px;
            transition: background .2s;
            align-items: center;
            gap: 6px;
        }
        @media (min-width: 640px) { .btn-intranet { display: flex; } }
        .btn-intranet:hover { background: var(--orange); }

        /* Menú móvil */
        .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; border: none; background: none; }
        .hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }
        @media (min-width: 1024px) { .hamburger { display: none; } }
        .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
        .hamburger.open span:nth-child(2) { opacity: 0; }
        .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

        .mobile-menu {
            background: #fff;
            border-bottom: 1px solid #e2e8f0;
            overflow: hidden;
            max-height: 0;
            transition: max-height .35s ease;
        }
        .mobile-menu.open { max-height: 400px; }
        .mobile-menu a {
            display: block;
            padding: 14px 1.5rem;
            color: var(--navy);
            text-decoration: none;
            font-weight: 700;
            font-size: .9rem;
            border-bottom: 1px solid #f1f5f9;
            transition: background .2s;
        }
        .mobile-menu a:hover { background: #f8fafc; color: var(--red); }

        /* ── Hero ───────────────────────────────────────────── */
        /* CRÍTICO PARA MÓVIL: NO usar background-attachment:fixed */
        .hero {
            position: relative;
            padding: 5rem 1.5rem 6rem;
            text-align: center;
            background-color: var(--navy);
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url('<?= htmlspecialchars($cfg('home_hero_image', $cfg('hero_imagen', 'https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&q=70&w=1400'))) ?>');
            background-size: cover;
            background-position: center;
            /* Truco para parallax suave sin fixed (compatible móvil) */
            will-change: transform;
            opacity: .25;
        }
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(160deg, rgba(15,42,71,.92) 0%, rgba(15,42,71,.75) 100%);
        }
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }
        .hero-badge {
            display: inline-block;
            color: var(--orange);
            font-weight: 700;
            font-size: .8rem;
            letter-spacing: .15em;
            text-transform: uppercase;
            margin-bottom: 1.25rem;
        }
        .hero h1 {
            font-size: clamp(2rem, 6vw, 3.75rem);
            font-weight: 800;
            color: #fff;
            line-height: 1.1;
            margin-bottom: 1.25rem;
        }
        .hero p {
            color: rgba(255,255,255,.8);
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            line-height: 1.7;
            margin-bottom: 2rem;
            max-width: 680px;
            margin-left: auto;
            margin-right: auto;
        }
        .hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
        .btn-primary {
            padding: 14px 32px;
            background: var(--red);
            color: #fff;
            font-weight: 700;
            font-size: .95rem;
            border-radius: 6px;
            text-decoration: none;
            transition: background .2s, transform .2s;
        }
        .btn-primary:hover { background: #c01818; transform: translateY(-1px); }
        .btn-secondary {
            padding: 14px 32px;
            background: rgba(255,255,255,.12);
            color: #fff;
            font-weight: 700;
            font-size: .95rem;
            border-radius: 6px;
            text-decoration: none;
            border: 1px solid rgba(255,255,255,.3);
            transition: background .2s;
        }
        .btn-secondary:hover { background: rgba(255,255,255,.2); }

        /* ── Accesos Rápidos ────────────────────────────────── */
        .quick-access {
            background: #fff;
            border-top: 4px solid var(--red);
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -4px 30px rgba(0,0,0,.06);
            max-width: 1280px;
            margin: -2.5rem auto 0;
            position: relative;
            z-index: 10;
            padding: 2rem 1.5rem;
        }
        .quick-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        @media (min-width: 768px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
        .quick-item {
            text-align: center;
            padding: 1.5rem 1rem;
            border-radius: 12px;
            text-decoration: none;
            transition: background .2s, transform .2s;
        }
        .quick-item:hover { background: #f8fafc; transform: translateY(-2px); }
        .quick-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 1rem;
            background: rgba(15,42,71,.06);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background .2s;
        }
        .quick-item:hover .quick-icon { background: rgba(224,32,32,.08); }
        .quick-icon svg { width: 26px; height: 26px; stroke: var(--navy); transition: stroke .2s; }
        .quick-item:hover .quick-icon svg { stroke: var(--red); }
        .quick-item h3 { font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: .25rem; }
        .quick-item p { font-size: .8rem; color: #64748b; }

        /* ── Sección Noticias ───────────────────────────────── */
        .news-section {
            max-width: 1280px;
            margin: 0 auto;
            padding: 4rem 1.5rem 5rem;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 2.5rem;
        }
        .section-badge {
            color: var(--orange);
            font-weight: 700;
            font-size: .8rem;
            letter-spacing: .12em;
            text-transform: uppercase;
            margin-bottom: .5rem;
        }
        .section-header h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); }
        .all-news-link {
            color: var(--red);
            font-weight: 700;
            font-size: .9rem;
            text-decoration: none;
            display: none;
            align-items: center;
            gap: 4px;
            transition: color .2s;
        }
        @media (min-width: 768px) { .all-news-link { display: flex; } }
        .all-news-link:hover { color: var(--navy); }

        .news-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
        @media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

        /* Tarjeta principal (destacada) */
        .card-featured {
            grid-column: 1;
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,.06);
            border: 1px solid #e2e8f0;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            transition: box-shadow .3s, transform .3s;
        }
        @media (min-width: 640px) { .card-featured { grid-column: span 2; } }
        @media (min-width: 1024px) { .card-featured { grid-column: span 2; flex-direction: row; } }
        .card-featured:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-2px); }

        .card-img-wrap { position: relative; overflow: hidden; background: #e2e8f0; }
        .card-featured .card-img-wrap { min-height: 220px; flex: 0 0 55%; }
        .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
        .card-featured:hover .card-img-wrap img { transform: scale(1.04); }

        .card-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: .7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: #fff;
        }
        .card-featured .card-badge { background: var(--red); }
        .card-badge-sm { background: var(--navy); }

        .card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
        .card-title {
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--navy);
            margin-bottom: .75rem;
            line-height: 1.25;
            transition: color .2s;
        }
        .card-featured:hover .card-title { color: var(--red); }
        .card-excerpt { color: #475569; line-height: 1.65; margin-bottom: 1.5rem; flex: 1; font-size: 1rem; }
        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: .8rem;
            color: #94a3b8;
            font-weight: 600;
            border-top: 1px solid #f1f5f9;
            padding-top: 1rem;
            margin-top: auto;
        }
        .card-meta .read-more { color: var(--red); font-weight: 700; }

        /* Tarjeta normal */
        .card-normal {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,.05);
            border: 1px solid #e2e8f0;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            transition: box-shadow .3s, transform .3s;
        }
        .card-normal:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
        .card-normal .card-img-wrap { height: 190px; }
        .card-normal .card-body { padding: 1.25rem; }
        .card-normal .card-title { font-size: 1.05rem; }
        .card-normal:hover .card-title { color: var(--orange); }
        .card-normal .card-excerpt { font-size: .9rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
        .card-normal:hover .card-img-wrap img { transform: scale(1.06); }

        .img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
        .img-placeholder svg { width: 40px; height: 40px; stroke: #cbd5e1; }

        /* ── Footer ─────────────────────────────────────────── */
        footer {
            background: var(--navy);
            color: #fff;
            padding: 4rem 1.5rem 2rem;
            border-top: 6px solid var(--red);
            margin-top: 2rem;
        }
        .footer-grid {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2.5rem;
            margin-bottom: 3rem;
        }
        @media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
        .footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 8px; margin-bottom: 1.25rem; }
        .footer-logo img { height: 52px; width: auto; display: block; }
        .footer-desc { color: #94a3b8; font-size: .9rem; line-height: 1.65; }
        .footer-col h4 { color: var(--orange); font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: .65rem; }
        .footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: .9rem; transition: color .2s; }
        .footer-col ul li a:hover { color: #fff; }
        .footer-contact li { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .75rem; color: #94a3b8; font-size: .9rem; }
        .footer-contact svg { width: 18px; height: 18px; stroke: var(--red); flex-shrink: 0; margin-top: 1px; }
        .footer-bottom {
            max-width: 1280px;
            margin: 0 auto;
            border-top: 1px solid rgba(255,255,255,.08);
            padding-top: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: .75rem;
            align-items: center;
            text-align: center;
            color: #64748b;
            font-size: .8rem;
        }
        @media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
        .footer-bottom a { color: #64748b; text-decoration: none; transition: color .2s; }
        .footer-bottom a:hover { color: #fff; }
    
        /* ── Dropdown & Fixes ──────────────────────────────────────── */
        .nav-links a.btn-intranet { color: #fff !important; }
        .nav-item { position: relative; }
        .nav-item > a { display: flex; align-items: center; gap: .3rem; }
        .nav-caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .2s; }
        .nav-caret-right { transform: rotate(-90deg); margin-left: auto; }
        .nav-item:hover > a .nav-caret:not(.nav-caret-right) { transform: rotate(180deg); }
        .nav-dropdown {
            position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%) translateY(5px);
            background: #fff; border-radius: 10px; min-width: 200px;
            box-shadow: 0 8px 32px rgba(0,0,0,.18); padding: .4rem 0;
            opacity: 0; pointer-events: none;
            transition: opacity .2s, transform .2s; z-index: 9999;
        }
        /* Bridge para que el ratón no pierda el hover */
        .nav-dropdown::before { content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; }
        .nav-item:hover > .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
        
        /* Submenús infinitos (Fly-outs) */
        .nav-dropdown .nav-item { position: relative; }
        .nav-dropdown .nav-dropdown {
            top: 0; left: 100%; transform: translateX(5px) translateY(0);
        }
        .nav-dropdown .nav-dropdown::before { content: ''; position: absolute; top: 0; left: -15px; width: 15px; height: 100%; }
        .nav-dropdown .nav-item:hover > .nav-dropdown { transform: translateX(0) translateY(0); }
        
        .nav-dropdown a { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; color: #334155; font-size: .82rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
        .nav-dropdown a:hover { background: #f1f5f9; color: var(--navy); }
        .mobile-sub { padding-left: 1.5rem; border-left: 2px solid rgba(255,255,255,0.1); margin-left: 1.5rem; margin-top: .5rem; display: none; }
        .mobile-sub.open { display: block; }
        .mobile-item { display: block; padding: .6rem 0; color: var(--navy); text-decoration: none; font-size: .9rem; }
        .mobile-item:hover { color: var(--red); }
        .mobile-menu a { border-bottom: none; }
        .mobile-menu > a { border-bottom: 1px solid #f1f5f9; }
        
        /* ── Mensaje de Dirección ───────────────────────────── */
        .director-section {
            max-width: 1280px;
            margin: 4rem auto;
            padding: 0 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 3rem;
            align-items: center;
        }
        @media (min-width: 768px) {
            .director-section {
                flex-direction: row;
            }
        }
        .director-img-wrap {
            width: 280px;
            height: 280px;
            border-radius: 50% 50% 50% 8%;
            overflow: hidden;
            border: 8px solid #fff;
            box-shadow: 0 10px 30px rgba(0,0,0,.08);
            flex-shrink: 0;
            background: #e2e8f0;
        }
        .director-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .director-content {
            flex: 1;
        }
        .director-content h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--navy);
            margin-bottom: 0.5rem;
        }
        .director-content .director-role {
            color: var(--orange);
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1.5rem;
            display: block;
        }
        .director-content .director-text {
            color: #475569;
            font-size: 1.05rem;
            line-height: 1.8;
            white-space: pre-line;
        }

        /* ════════════════════════════════════════════════
           DRAWER MÓVIL — Off-canvas slide-over menu
           ════════════════════════════════════════════════ */

        /* Hamburger refinado */
        .hamburger {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            padding: 8px;
            border: none;
            background: none;
            border-radius: 8px;
            transition: background .2s;
            width: 40px;
            height: 40px;
        }
        .hamburger:hover { background: rgba(15,42,71,.07); }
        .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--navy);
            border-radius: 2px;
            transition: all .3s cubic-bezier(.4,0,.2,1);
            transform-origin: center;
        }
        @media (min-width: 1024px) { .hamburger { display: none; } }
        .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
        .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* Backdrop (fondo difuminado) */
        .drawer-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity .3s ease;
        }
        .drawer-backdrop.active {
            opacity: 1;
            pointer-events: all;
        }

        /* Drawer panel */
        .drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: min(340px, 88vw);
            height: 100%;
            background: #fff;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform .32s cubic-bezier(.4,0,.2,1);
            box-shadow: -4px 0 32px rgba(0,0,0,.12);
            overflow: hidden;
        }
        .drawer.open {
            transform: translateX(0);
        }
        @media (min-width: 1024px) {
            .drawer, .drawer-backdrop { display: none !important; }
        }

        /* Drawer header */
        .drawer-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px;
            background: var(--navy);
            flex-shrink: 0;
        }
        .drawer-header img {
            height: 40px;
            width: auto;
            filter: brightness(0) invert(1);
        }
        .drawer-header-text {
            flex: 1;
            min-width: 0;
        }
        .drawer-header-text strong {
            display: block;
            color: #fff;
            font-size: .85rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .drawer-header-text span {
            color: rgba(255,255,255,.6);
            font-size: .72rem;
        }
        .drawer-close {
            background: rgba(255,255,255,.12);
            border: none;
            border-radius: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            transition: background .2s;
            flex-shrink: 0;
        }
        .drawer-close:hover { background: rgba(255,255,255,.22); }
        .drawer-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

        /* Stripe decorativa */
        .drawer-stripe {
            height: 3px;
            background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 10px, var(--orange) 10px, var(--orange) 20px);
            flex-shrink: 0;
        }

        /* Drawer body scrollable */
        .drawer-body {
            flex: 1;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 8px 0 16px;
        }
        .drawer-body::-webkit-scrollbar { width: 4px; }
        .drawer-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

        /* Items de nivel 1 */
        .drawer-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            color: var(--navy);
            text-decoration: none;
            font-size: .95rem;
            font-weight: 600;
            border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
            transition: background .15s, color .15s;
            gap: 8px;
        }
        .drawer-item:hover { background: #f8fafc; color: var(--red); }
        .drawer-item .drawer-caret {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
            flex-shrink: 0;
            transition: transform .25s ease;
        }
        .drawer-item.has-sub { user-select: none; }
        .drawer-item.has-sub.expanded .drawer-caret { transform: rotate(180deg); }

        /* Submenú acordeón */
        .drawer-sub {
            max-height: 0;
            overflow: hidden;
            transition: max-height .3s ease;
            background: #f8fafc;
            border-bottom: 1px solid #f1f5f9;
        }
        .drawer-sub.open { max-height: 600px; }
        .drawer-sub a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 11px 20px 11px 36px;
            color: #475569;
            text-decoration: none;
            font-size: .88rem;
            font-weight: 500;
            transition: color .15s, background .15s;
            border-bottom: 1px solid #eef2f7;
        }
        .drawer-sub a::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--red);
            flex-shrink: 0;
        }
        .drawer-sub a:hover { color: var(--red); background: #fff; }

        /* Footer del drawer: botones CTA */
        .drawer-footer {
            padding: 16px 20px;
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-shrink: 0;
        }
        .drawer-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 13px 16px;
            border-radius: 10px;
            text-decoration: none;
            font-size: .88rem;
            font-weight: 700;
            transition: transform .15s, box-shadow .15s;
        }
        .drawer-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
        .drawer-cta-primary {
            background: var(--navy);
            color: #fff;
        }
        .drawer-cta-secondary {
            background: linear-gradient(135deg, var(--red), var(--orange));
            color: #fff;
        }

        /* Garantizar logo visible en navbar móvil */
        .nav-logo { display: flex; align-items: center; }
        .nav-logo img { height: 40px; width: auto; max-width: 160px; }

        /* Ocultar menú mobile antiguo */
        .mobile-menu { display: none !important; }

        
        /* ── WhatsApp Float ────────────────────────────────── */
        .wa-float {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #25D366;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(37,211,102,0.4);
            z-index: 50;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
        }
        .wa-float:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 18px rgba(37,211,102,0.5);
            color: #fff;
        }
        .wa-float svg {
            width: 35px;
            height: 35px;
        }
/* ═══════════════════════════════════════════
   ARTICLE / PROSE TYPOGRAPHY
   ═══════════════════════════════════════════ */
.prose {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}
.prose p {
    margin-bottom: 1.25em;
}
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2em;
    margin-bottom: 0.75em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e5e7eb;
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75em;
    margin-bottom: 0.6em;
}
.prose h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.prose strong, .prose b {
    font-weight: 700;
    color: #1e293b;
}
.prose em, .prose i {
    font-style: italic;
    color: #475569;
}
.prose blockquote {
    border-left: 4px solid #2563eb;
    background: #f0f5ff;
    padding: 1em 1.25em;
    margin: 1.5em 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #334155;
}
.prose blockquote p {
    margin-bottom: 0.5em;
}
.prose blockquote p:last-child {
    margin-bottom: 0;
}
.prose ul, .prose ol {
    margin: 1em 0;
    padding-left: 1.75em;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-bottom: 0.4em;
    padding-left: 0.25em;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.prose a:hover {
    color: #1d4ed8;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 0.5em auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.prose section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 2em 0;
}
@media (max-width: 640px) {
    .prose section {
        grid-template-columns: repeat(2, 1fr);
    }
}
.prose section img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 0;
}
.prose section a {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    text-decoration: none;
}
.prose section a img {
    transition: transform 0.4s ease;
}
.prose section a:hover img {
    transform: scale(1.05);
}
.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2em 0;
}

/* Article wrapper */
.article-wrapper {
    min-height: 60vh;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.article-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}
.article-hero-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    padding: 2rem 2.5rem 3rem;
}
@media (max-width: 640px) {
    .article-body {
        padding: 1.5rem 1.25rem 2rem;
    }
    .article-hero-img {
        height: 240px;
    }
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}
.article-meta .cat-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.2em 0.75em;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .article-title {
        font-size: 1.5rem;
    }
}
.article-excerpt {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 300;
}

/* 404 / Not Found */
.noticia-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.noticia-404 h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}
.noticia-404 p {
    color: #64748b;
    margin-bottom: 2rem;
}
.noticia-404 a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent, #2563eb);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}
.noticia-404 a:hover {
    background: #1d4ed8;
}

/* ═══════════════════════════════════════════
   GALERÍA DE IMÁGENES MODERNA
   ═══════════════════════════════════════════ */
.prose section,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin: 2em 0;
}
@media (max-width: 640px) {
    .prose section,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.prose section > div,
.prose section > a,
.gallery-grid > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.625rem;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    text-decoration: none;
}
.prose section > div img,
.prose section > a img,
.gallery-grid > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: transform 0.5s cubic-bezier(.25,.46,.45,.94), filter 0.4s ease;
}
.prose section > div:hover img,
.prose section > a:hover img,
.gallery-grid > a:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}
.prose section > div::after,
.prose section > a::after,
.gallery-grid > a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: 0.625rem;
}
.prose section > div:hover::after,
.prose section > a:hover::after,
.gallery-grid > a:hover::after {
    opacity: 1;
}
.prose section > div::before,
.prose section > a::before,
.gallery-grid > a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cline x1='15' y1='15' x2='19' y2='19'/%3E%3Cline x1='9' y1='6' x2='9' y2='12'/%3E%3Cline x1='6' y1='9' x2='12' y2='9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}
.prose section > div:hover::before,
.prose section > a:hover::before,
.gallery-grid > a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Gallery counter badge */
.gallery-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.gallery-count svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

/* ═══════════════════════════════════════════
   BOTONES DE COMPARTIR
   ═══════════════════════════════════════════ */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}
.share-bar .share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    filter: brightness(1.08);
}
.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.share-btn.fb     { background: #1877f2; }
.share-btn.wa     { background: #25d366; }
.share-btn.tg     { background: #0088cc; }
.share-btn.tt     { background: #010101; }
.share-btn.copy   { background: #475569; }
.share-btn.copy.copied { background: #16a34a; }

@media (max-width: 640px) {
    .share-btn span { display: none; }
    .share-btn { padding: 0.6rem; border-radius: 50%; }
}

/* ═══════════════════════════════════════════
   SVG GLOBAL PROTECTION
   ═══════════════════════════════════════════ */
svg {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════
   STATIC PAGES (page.php)
   ═══════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, #0F2A47 0%, #1a3a5c 100%);
    padding: 3rem 1rem 2.5rem;
    color: #fff;
}
.page-hero-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.page-hero .breadcrumb a:hover {
    color: #fff;
}
.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}
.page-hero .accent {
    display: block;
    width: 60px;
    height: 4px;
    background: #E02020;
    border-radius: 2px;
    margin-top: 1rem;
}
@media (max-width: 640px) {
    .page-hero { padding: 2rem 1rem 1.5rem; }
    .page-hero h1 { font-size: 1.5rem; }
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}

.page-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    min-height: 50vh;
}
@media (max-width: 640px) {
    .page-content { padding: 1.5rem 1.25rem; }
}
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1em 0;
}
.page-content p {
    margin-bottom: 1.25em;
    line-height: 1.8;
    color: #374151;
}
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2em 0 0.75em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e5e7eb;
}
.page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.75em 0 0.6em;
}
.page-content strong, .page-content b {
    font-weight: 700;
    color: #1e293b;
}
.page-content blockquote {
    border-left: 4px solid #2563eb;
    background: #f0f5ff;
    padding: 1em 1.25em;
    margin: 1.5em 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}
.page-content ul, .page-content ol {
    margin: 1em 0;
    padding-left: 1.75em;
}
.page-content ul { list-style-type: disc; }
.page-content ol { list-style-type: decimal; }
.page-content li { margin-bottom: 0.4em; }
.page-content svg {
    max-width: 48px;
    max-height: 48px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sidebar-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F2A47;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}
.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-card ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.sidebar-card ul li a:hover {
    background: #f1f5f9;
    color: #0F2A47;
}
.sidebar-card ul li a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}
.sidebar-card ul li a svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
}
.contact-item svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   CATEGORY FILTERS & PUBLIC PAGINATION
   ═══════════════════════════════════════════ */
.cat-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.filter-chip {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.filter-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.filter-chip.active {
    background: #0F2A47;
    border-color: #0F2A47;
    color: #fff;
}

.public-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-btn:hover:not(.disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.page-numbers {
    display: flex;
    gap: 0.35rem;
}
.num-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.num-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.num-btn.active {
    background: #E02020;
    border-color: #E02020;
    color: #fff;
}
