/* ═══════════════════════════════════════
   ESTILOS PREMIUM - INVITACIÓN ISSFA
   XXXIV Aniversario de Creación Institucional
   Paleta: Azul Navy ISSFA / Verde Institucional / Dorado
   ═══════════════════════════════════════ */

/* ── MODO NOCHE (por defecto) ── */
:root {
    --navy-deep: #0c2547;
    --navy-primary: #002d62;
    --navy-light: #1b457e;
    --white: #ffffff;
    --silver: #f8f9fa;
    --silver-dark: #cbd5e0;
    --gold: #c9a84c;
    --gold-glow: rgba(201, 168, 76, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(58, 134, 200, 0.25);
    --shadow-glow: rgba(0, 45, 98, 0.3);
    --green-issfa: #1a6b3c;
    --green-light: #28a060;
    --red-accent: #c0392b;

    /* Tokens semánticos modo noche */
    --bg-body: #0c2547;
    --bg-section: #0c2547;
    --bg-card: rgba(0, 45, 98, 0.15);
    --bg-nav: rgba(12, 37, 71, 0.92);
    --text-primary: #f8f9fa;
    --text-secondary: #cbd5e0;
    --text-muted: rgba(248, 249, 250, 0.6);
    --border-card: rgba(58, 134, 200, 0.25);
    --section-title-color: var(--gold);
    --icon-color: var(--gold);
}

/* ==========================================
   PRELOADER ISSFA (ZOOMED 4-COLOR RING)
   ========================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0c2547 0%, #030a1c 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.preloader-logo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring-4color {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        #28a060 0deg 90deg,     /* Verde ISSFA Sólido */
        #c9a84c 90deg 180deg,   /* Dorado Militar Sólido */
        #e74c3c 180deg 270deg,  /* Rojo Carmesí Sólido */
        #002d62 270deg 360deg   /* Azul Institucional Sólido */
    );
    mask: radial-gradient(transparent 102px, #000 104px);
    -webkit-mask: radial-gradient(transparent 102px, #000 104px);
    animation: preloaderSpin 2s linear infinite;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: preloaderPulse 2.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 30px rgba(40, 160, 96, 0.7));
    }
}

    /* READING PROGRESS BAR */
    .reading-progress-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.1);
    }

    .reading-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
        width: 0%;
        box-shadow: 0 0 10px var(--gold-glow);
        transition: width 0.1s ease;
    }

    #particles-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        opacity: 0.6;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background-color: var(--bg-body);
        background-image:
            repeating-linear-gradient(to right, transparent 0 100px, rgba(255, 255, 255, 0.02) 100px 101px),
            repeating-linear-gradient(to bottom, transparent 0 100px, rgba(255, 255, 255, 0.02) 100px 101px),
            radial-gradient(circle at 15% 50%, rgba(58, 134, 200, 0.22), transparent 50%),
            radial-gradient(circle at 85% 30%, rgba(0, 45, 98, 0.35), transparent 50%);
        color: var(--text-primary);
        font-family: 'Inter', sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
        background-attachment: fixed;
        transition: background-color 0.5s ease, color 0.5s ease;
    }

    h1,
    h2,
    h3,
    .font-military {
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    /* ─── NAV HEADER ─── */
    .nav-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
        z-index: 1000;
        background: rgba(5, 11, 24, 0.6);
        /* Noche: transparente inicial */
        backdrop-filter: blur(20px) saturate(150%);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.4s ease;
    }

    .nav-header.scrolled {
        background: rgba(5, 11, 24, 0.95);
        /* Noche: oscuro al scrollear */
    }

    .nav-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right,
                #1a6b3c 0%, #1a6b3c 25%,
                #002d62 25%, #002d62 50%,
                #c0392b 50%, #c0392b 75%,
                #3a86c8 75%, #3a86c8 100%);
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-primary);
        font-size: 1.5rem;
    }

    .nav-motto-elegant {
        font-family: 'Great Vibes', cursive;
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        /* Aumentado para el hero */
        font-weight: 400;
        color: var(--white);
        letter-spacing: 1px;
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
    }

    .hero-motto-container {
        margin-top: 30px;
        z-index: 20;
        text-align: center;
    }

    .nav-right {
        display: flex;
        gap: 15px;
    }

    .nav-btn {
        background: none;
        border: none;
        color: var(--white, #ffffff);
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
        box-shadow: none;
    }

    /* All topbar button icons & text in white */
    #btn-lang,
    a.nav-btn[data-i18n="nav-location"] i,
    #btn-sound i,
    #btn-share i {
        color: #ffffff !important;
    }

    .nav-btn:hover,
    .nav-btn:hover i {
        color: var(--gold, #c9a84c) !important;
        filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
    }

    .nav-btn i {
        font-size: 1.1rem;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .nav-btn:hover i {
        transform: scale(1.25);
    }

    .nav-btn.playing i {
        animation: soundPulse 1.5s infinite ease-in-out;
    }

    @keyframes soundPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.2);
            opacity: 0.7;
        }
    }

    .nav-btn:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: rgba(255, 255, 255, 0.2);
        pointer-events: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0;
        /* Gap 0 porque usamos padding y separadores */
    }

    /* LIVE COUNTER HEADER */
    .nav-live-counter {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.05);
        padding: 5px 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-left: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--silver);
        letter-spacing: 1px;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
        background-color: #4caf50;
        /* Verde activo */
        border-radius: 50%;
        position: relative;
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }

    .pulse-dot::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid #4caf50;
        animation: pulseActive 2s infinite;
    }

    @keyframes pulseActive {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(2.5);
            opacity: 0;
        }
    }

    #live-count {
        color: var(--gold);
        font-weight: 700;
    }

    .nav-btn i {
        font-size: 1.2rem;
    }

    /* ─── HERO CAROUSEL ─── */
    .hero-carousel {
        position: relative;
        width: 100%;
        height: 100vh;
        /* Pantalla completa */
        background: var(--navy-deep);
        overflow: hidden;
    }

    .hero-bg-iframe {
        position: absolute;
        top: -10px;
        /* Un poco arriba para cubrir cualquier gap */
        left: 50%;
        width: 110vw;
        height: 115vh;
        transform: translateX(-50%);
        pointer-events: none;
        filter: brightness(0.55) contrast(1.05);
    }

    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 20px 80px 20px;
        background: transparent;
    }

    .hero-content::before {
        content: '';
        position: absolute;
        inset: 0;
        background: transparent;
        pointer-events: none;
    }

    .hero-content::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
        background-size: 50px 50px;
        opacity: 0.05;
        animation: floatingGlints 20s linear infinite;
        pointer-events: none;
    }

    @keyframes floatingGlints {
        from {
            background-position: 0 0;
        }

        to {
            background-position: 500px 1000px;
        }
    }

    .hero-crest-container {
        width: clamp(330px, 52.5vw, 450px);
        height: clamp(330px, 52.5vw, 450px);
        margin-bottom: 25px;
        z-index: 20;
        perspective: 1000px;
        filter: drop-shadow(0 0 30px rgba(214, 175, 55, 0.3));
        animation: crestGlow 6s infinite alternate;
    }

    @keyframes crestGlow {
        from {
            filter: drop-shadow(0 0 20px rgba(214, 175, 55, 0.2));
        }

        to {
            filter: drop-shadow(0 0 45px rgba(214, 175, 55, 0.5));
        }
    }

    .hero-crest-flipper {
        width: 100%;
        height: 100%;
        position: relative;
        transform-style: preserve-3d;
        animation: crestRotate3D 6s ease-in-out infinite;
    }

    .hero-crest-flipper:hover {
        animation-play-state: paused;
    }

    .crest-front,
    .crest-back-face {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        object-fit: contain;
        filter: drop-shadow(0 0 25px rgba(214, 175, 55, 0.4));
    }

    .crest-front {
        transform: rotateY(0deg);
    }

    .crest-back-face {
        transform: rotateY(180deg) scaleX(-1);
    }

    @keyframes crestRotate3D {
        0% {
            transform: rotateY(0deg);
        }

        25% {
            transform: rotateY(15deg);
        }

        75% {
            transform: rotateY(-15deg);
        }

        100% {
            transform: rotateY(0deg);
        }
    }

    @keyframes cycleLogo2 {

        0%,
        45% {
            opacity: 0;
        }

        50%,
        90% {
            opacity: 1;
            filter: brightness(1);
        }

        95% {
            filter: brightness(3) drop-shadow(0 0 40px #0055ff);
        }

        100% {
            opacity: 0;
        }
    }

    .crest-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
    }

    .hero-subtitle {
        font-family: 'Oswald', sans-serif;
        font-size: clamp(2.8rem, 8vw, 5.2rem);
        font-weight: 700;
        letter-spacing: 6px;
        text-transform: uppercase;
        margin-bottom: 8px;
        background: linear-gradient(135deg,
                var(--white) 0%,
                var(--gold) 25%,
                var(--white) 50%,
                var(--gold) 75%,
                var(--white) 100%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.1;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        animation: textBreathing 8s infinite ease-in-out;
    }

    .hero-title {
        font-family: 'Oswald', sans-serif;
        font-size: clamp(1.2rem, 3.2vw, 2.2rem);
        background: linear-gradient(135deg,
                var(--white) 0%,
                var(--gold) 25%,
                var(--white) 50%,
                var(--gold) 75%,
                var(--white) 100%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
        margin-bottom: 20px;
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        font-weight: 600;
        letter-spacing: 2px;
        animation: textBreathing 8s infinite ease-in-out;
    }

    @keyframes textBreathing {

        0%,
        100% {
            background-position: 0% 50%;
            filter: brightness(1) drop-shadow(0 0 5px rgba(214, 175, 55, 0.2));
        }

        50% {
            background-position: 100% 50%;
            filter: brightness(1.3) drop-shadow(0 0 15px rgba(214, 175, 55, 0.5));
        }
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
        letter-spacing: 4px;
        color: var(--white);
        opacity: 0.9;
        margin-bottom: 10px;
    }

    .hero-motto {
        font-family: 'Oswald', sans-serif;
        font-size: 0.9rem;
        letter-spacing: 6px;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 10px;
    }

    .hero-epica {
        margin-top: 25px;
        font-family: 'Oswald', sans-serif;
        font-size: 1.1rem;
        letter-spacing: 2px;
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
        padding: 10px 30px;
        border-radius: 50px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    /* ─── PROFESSIONAL ANNIVERSARY SEAL ─── */
    .anniversary-seal {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
        position: relative;
        padding: 25px 35px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(214, 175, 55, 0.3);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        animation: sealGlow 4s infinite ease-in-out;
    }

    .seal-main-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .seal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-top: 2px solid;
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, transparent, var(--gold), var(--white), var(--gold), transparent) 1;
        padding: 10px 25px;
    }

    .seal-number {
        font-family: 'Cinzel', serif;
        font-size: clamp(3rem, 7vw, 4.5rem);
        font-weight: 700;
        line-height: 1;
        color: var(--gold);
        text-shadow: 0 0 20px var(--gold-glow);
        letter-spacing: 5px;
        animation: textShimmer 3s infinite alternate;
    }

    .seal-year {
        font-family: 'Cinzel', serif;
        font-size: 1.2rem;
        color: var(--white);
        letter-spacing: 12px;
        margin-top: 10px;
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    @keyframes textShimmer {
        from {
            filter: brightness(1);
        }

        to {
            filter: brightness(1.4) drop-shadow(0 0 10px var(--gold));
        }
    }

    .seal-prefix,
    .seal-suffix {
        font-family: 'Oswald', sans-serif;
        font-size: 0.8rem;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.6);
    }

    .seal-label {
        width: 100%;
        text-align: center;
        font-family: 'Oswald', sans-serif;
        font-size: 0.75rem;
        letter-spacing: 5px;
        color: #ffd700;
        margin-top: 8px;
        font-weight: 600;
    }

    @keyframes sealGlow {

        0%,
        100% {
            opacity: 0.8;
        }

        50% {
            opacity: 1;
            filter: brightness(1.2);
        }
    }

    /* Removed duplicate .anniversary-seal definition */

    /* ─── MILITARY COUNTDOWN ─── */
    /* ─── BANNER CAMBIO DE HORARIO EN HERO ─── */
    .hero-schedule-banner {
        margin-top: 15px;
        z-index: 20;
        display: flex;
        justify-content: center;
    }

    .hsb-inner {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 24px;
        border-radius: 50px;
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(139, 0, 0, 0.15) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 193, 7, 0.4);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 193, 7, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        animation: hsbGlow 3s ease-in-out infinite;
    }

    .hsb-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: alertPulse 2s ease-in-out infinite;
    }

    .hsb-icon svg {
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    }

    .hsb-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .hsb-tag {
        font-family: 'Oswald', sans-serif;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        color: #ffc107;
        text-transform: uppercase;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .hsb-datetime {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hsb-date {
        font-family: 'Oswald', sans-serif;
        font-size: 0.85rem;
        font-weight: 400;
        color: #ffffff;
        letter-spacing: 1px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    }

    .hsb-separator {
        color: rgba(255, 193, 7, 0.6);
        font-size: 0.8rem;
    }

    .hsb-time {
        font-family: 'Oswald', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: #ffc107;
        letter-spacing: 2px;
        text-shadow: 0 0 12px rgba(255, 193, 7, 0.5), 0 2px 6px rgba(0, 0, 0, 0.8);
    }

    @keyframes hsbGlow {

        0%,
        100% {
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 193, 7, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        50% {
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 45px rgba(255, 193, 7, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
    }

    @media (max-width: 480px) {
        .hsb-inner {
            border-radius: 16px;
            padding: 10px 18px;
            gap: 10px;
        }

        .hsb-datetime {
            gap: 6px;
        }

        .hsb-date {
            font-size: 0.75rem;
        }

        .hsb-time {
            font-size: 0.95rem;
        }
    }

    .countdown-container {
        margin-top: 15px;
        text-align: center;
        z-index: 20;
    }

    .scroll-indicator {
        margin-top: 15px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .countdown-label {
        font-family: 'Oswald', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 4px;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.4);
        margin-bottom: 16px;
        position: relative;
        text-transform: uppercase;
    }

    .countdown-grid {
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .countdown-block {
        background: linear-gradient(145deg, rgba(12, 25, 46, 0.85) 0%, rgba(6, 15, 30, 0.9) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-top: 2px solid var(--gold, #d4af37);
        min-width: 88px;
        padding: 14px 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 20px rgba(212, 175, 55, 0.15);
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .countdown-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
        pointer-events: none;
    }

    /* ─── HERO DECORATIONS ─── */
    .hero-decorations {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        pointer-events: none;
        z-index: 15;
    }

    .soldier-silhouettes {
        position: absolute;
        bottom: 10px;
        right: 20px;
        width: 400px;
        height: 200px;
        background: url('soldier_silhouettes_premium_1778541094120.png') no-repeat bottom right;
        background-size: contain;
        opacity: 0.6;
        filter: brightness(0);
    }

    /* ─── MEDIA QUERY MÓVIL PARA HERO (AJUSTE PRIMERA VISTA CON LOGO UN 25% MÁS PEQUEÑO) ─── */
    @media (max-width: 600px) {
        .nav-header {
            padding: 0 15px;
            justify-content: flex-end;
            gap: 15px;
        }

        .nav-left {
            flex: 1;
            justify-content: flex-end;
            gap: 10px;
        }

        .nav-live-counter {
            margin-left: 0;
            padding: 4px 8px;
            order: 1;
        }

        .live-text {
            display: none;
        }

        .nav-right {
            order: 3;
        }

        .hero-content {
            justify-content: flex-start !important;
            padding-top: 45px !important;
            padding-bottom: 5px !important;
        }

        /* Logotipo reducido para dar espacio */
        .hero-crest-container {
            width: 180px !important;
            height: 180px !important;
            margin-bottom: 10px !important;
        }

        .hero-subtitle {
            font-family: 'Oswald', sans-serif !important;
            font-size: 1.8rem !important;
            font-weight: 700 !important;
            letter-spacing: 2px !important;
            margin-bottom: 5px !important;
            line-height: 1.1 !important;
        }

        .hero-title {
            font-family: 'Oswald', sans-serif !important;
            font-size: 1rem !important;
            font-weight: 600 !important;
            margin-bottom: 10px !important;
            letter-spacing: 1px !important;
            line-height: 1.2 !important;
        }

        .anniversary-seal {
            padding: 10px 15px !important;
            margin-bottom: 10px !important;
            margin-top: 0 !important;
            transform: none !important;
        }

        .seal-number {
            font-size: 2rem !important;
        }

        .seal-year {
            font-size: 0.85rem !important;
            letter-spacing: 5px !important;
            margin-top: 5px !important;
        }

        .hero-schedule-banner {
            margin-top: 0 !important;
            margin-bottom: 12px !important;
            transform: none !important;
        }

        .hsb-inner {
            padding: 8px 16px !important;
            gap: 8px !important;
        }

        .hsb-icon {
            width: 28px !important;
            height: 28px !important;
        }

        .hsb-tag {
            font-size: 0.55rem !important;
        }

        .hsb-date {
            font-size: 0.75rem !important;
        }

        .hsb-time {
            font-size: 0.9rem !important;
        }

        .countdown-container {
            margin-top: 0 !important;
            transform: none !important;
            margin-bottom: 15px !important;
        }

        .countdown-block {
            min-width: 60px !important;
            padding: 8px 4px !important;
        }

        .count-num {
            font-size: 1.2rem !important;
        }

        .count-unit {
            font-size: 0.55rem !important;
        }

        .scroll-indicator {
            position: relative !important;
            bottom: auto !important;
            transform: scale(0.8) !important;
            left: auto !important;
            margin: 0 auto !important;
        }
    }

    .tricolor-bar {
        position: relative;
        margin-top: 35px;
        margin-bottom: 20px;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg,
                #1a6b3c 0%, #1a6b3c 25%,
                #002d62 25%, #002d62 50%,
                #c0392b 50%, #c0392b 75%,
                #3a86c8 75%, #3a86c8 100%);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        z-index: 99;
    }

    /* FOOTER & VISITOR COUNTER */
    .invite-footer {
        position: relative;
        padding: 60px 20px 40px;
        background: linear-gradient(to bottom, transparent, rgba(5, 11, 24, 0.9));
        text-align: center;
    }

    .visitor-counter-container {
        max-width: 900px;
        margin: 0 auto 30px;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.01);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(214, 175, 55, 0.1);
        border-bottom: 1px solid rgba(214, 175, 55, 0.1);
        position: relative;
    }

    .visitor-counter-container h3 {
        font-size: 0.8rem;
        opacity: 0.6;
        margin-bottom: 5px;
        letter-spacing: 2px;
    }

    .invite-text.final-phrase {
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-size: clamp(1.2rem, 3.2vw, 1.8rem);
        color: var(--gold);
        text-align: justify;
        text-justify: inter-word;
        margin-top: 40px;
        letter-spacing: 0;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .visitor-counter-container .count-num {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--gold);
        display: block;
        margin-bottom: 0;
        font-family: 'Oswald', sans-serif;
    }

    .counter-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        margin-top: 10px;
    }

    @media (max-width: 600px) {
        .counter-grid {
            grid-template-columns: repeat(5, 1fr);
            /* Mantener en una fila */
            gap: 2px;
        }

        .visitor-counter-container {
            padding: 10px 5px;
        }

        .visitor-counter-container .count-num {
            font-size: 1.1rem;
        }
    }

    .invite-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top left, rgba(214, 175, 55, 0.05), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .invite-container-corners {
        position: relative;
        overflow: hidden;
        z-index: 5;
    }

    @keyframes rotateShimmer {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* PREMIUM CARD STYLES - UPGRADED GLASSMORPHISM */
    .premium-card {
        position: relative;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(212, 175, 55, 0.2);
        background: rgba(3, 10, 28, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        padding: 2.5rem 2rem !important;
    }

    .premium-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
        pointer-events: none;
        z-index: 0;
    }

    .premium-card:hover {
        transform: translateY(-8px);
        border-color: rgba(212, 175, 55, 0.5);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.25);
    }

    .premium-card>*:first-child,
    .activity>*:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .premium-card>*:last-child,
    .activity>*:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .premium-card>* {
        position: relative;
        z-index: 2;
    }

    @media (max-width: 600px) {
        .visitor-counter-container .count-num {
            font-size: 1.1rem;
        }

        .count-label {
            font-size: 0.5rem;
        }
    }

    .counter-item {
        padding: 5px;
        transition: all 0.3s ease;
    }

    .counter-item:hover {
        background: rgba(214, 175, 55, 0.05);
        transform: translateY(-5px);
    }

    .count-label {
        text-transform: uppercase;
        font-size: 0.6rem;
        letter-spacing: 1px;
        color: var(--silver);
        opacity: 0.4;
    }

    .copyright {
        font-size: 0.9rem;
        color: var(--silver);
        opacity: 0.4;
        letter-spacing: 1px;
    }

    .countdown-block:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 215, 0, 0.7);
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 25px rgba(212, 175, 55, 0.35);
    }

    .count-num {
        font-family: 'Oswald', sans-serif;
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1;
        color: #f3ce5e;
        background: linear-gradient(180deg, #ffffff 0%, #f3ce5e 40%, #c59b27 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    }

    .count-unit {
        font-family: 'Oswald', sans-serif;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 2.5px;
        color: rgba(240, 240, 240, 0.9);
        margin-top: 6px;
        text-transform: uppercase;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    @media (max-width: 600px) {
        .countdown-grid {
            gap: 8px;
        }

        .countdown-block {
            min-width: 65px;
            padding: 10px;
        }

        .count-num {
            font-size: 1.5rem;
        }
    }

    .scroll-indicator {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        z-index: 30;
        transition: all 0.3s ease;
    }

    .mouse-icon {
        width: 28px;
        height: 44px;
        border: 2px solid var(--gold, #d4af37);
        border-radius: 16px;
        position: relative;
        background: rgba(10, 30, 61, 0.8);
        backdrop-filter: blur(8px);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.6);
    }

    .mouse-wheel {
        width: 4px;
        height: 8px;
        background: #ffea79;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
        box-shadow: 0 0 8px #ffea79;
        animation: mouse-scroll 1.6s infinite ease-in-out;
    }

    .scroll-text {
        font-family: 'Oswald', sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 4px;
        color: #ffea79;
        opacity: 1;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.5);
    }

    @keyframes mouse-scroll {
        0% {
            top: 8px;
            opacity: 1;
        }

        70% {
            top: 22px;
            opacity: 0;
        }

        100% {
            top: 8px;
            opacity: 0;
        }
    }

    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(-5px);
        filter: brightness(1.3);
    }

    /* Paginación Swiper Custom */
    .swiper-pagination-bullet {
        background: var(--white) !important;
        opacity: 0.3 !important;
    }

    .swiper-pagination-bullet-active {
        opacity: 1 !important;
        width: 30px !important;
        border-radius: 5px !important;
    }

    /* ─── FORMAL INVITATION SECTION ─── */
    .formal-invite {
        padding: 60px 15px 40px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .invite-container {
        background: rgba(3, 10, 28, 0.6);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 40px 15px;
        border-radius: 24px;
        position: relative;
        box-shadow:
            0 30px 60px -12px rgba(0, 0, 0, 0.9),
            inset 0 1px 2px rgba(255, 255, 255, 0.3);
        overflow: hidden;
        transition: border-color 0.5s ease;
    }

    /* Watermark removido por petición del usuario */
    .invite-container::after {
        display: none;
    }

    .invite-container:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

    /* Shine Animation - Ultra Premium (Fixed) */
    .glass-shine {
        position: absolute;
        top: 0;
        left: -150%;
        width: 100%;
        /* Más ancho para un degradado suave */
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0) 20%,
                rgba(255, 255, 255, 0.2) 50%,
                rgba(255, 255, 255, 0) 80%,
                transparent);
        transform: skewX(-25deg);
        animation: shine-sweep 6s infinite ease-in-out;
        z-index: 1;
        pointer-events: none;
    }

    @keyframes shine-sweep {
        0% {
            left: -150%;
        }

        30% {
            left: 150%;
        }

        100% {
            left: 150%;
        }
    }

    /* Decoración de esquinas - Restaurada sin conflicto */
    .invite-container-corners::before,
    .invite-container-corners .corner-br::after {
        content: '';
        position: absolute;
        width: 45px;
        height: 45px;
        border: 3px solid var(--gold);
        z-index: 5;
        filter: drop-shadow(0 0 8px var(--gold-glow));
        transition: all 0.5s ease;
        pointer-events: none;
    }

    .invite-container-corners::before {
        top: 25px;
        left: 25px;
        border-right: 0;
        border-bottom: 0;
    }

    .invite-container-corners .corner-br::after {
        bottom: 25px;
        right: 25px;
        border-left: 0;
        border-top: 0;
    }

    .invite-container:hover .invite-container-corners::before {
        width: 60px;
        height: 60px;
        border-color: var(--white);
    }

    .invite-authority {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-bottom: 1.5rem;
    }

    .authority-name {
        font-family: 'Cinzel', 'Montserrat', serif;
        font-size: clamp(1.1rem, 3.2vw, 1.6rem);
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 1px;
        margin: 0;
        text-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
        text-transform: uppercase;
        white-space: nowrap;
    }

    .authority-role {
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-size: clamp(0.75rem, 2vw, 0.88rem);
        font-weight: 700;
        color: #c9a84c; /* Dorado Militar ISSFA */
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin: 0;
        background: linear-gradient(135deg, rgba(12, 37, 71, 0.85) 0%, rgba(40, 160, 96, 0.2) 100%);
        padding: 5px 18px;
        border-radius: 20px;
        border: 1px solid rgba(201, 168, 76, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(201, 168, 76, 0.12);
        display: inline-block;
    }

    .invite-text {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        color: var(--silver);
        line-height: 1.7;
        margin-bottom: 25px;
        text-align: justify;
        text-justify: inter-word;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        padding: 0 10px;
    }

    /* Texto de Invitación Formal */
    .invite-text:first-of-type::first-letter {
        font-family: inherit;
        font-size: inherit;
        float: none;
        margin: 0;
        padding: 0;
        color: inherit;
        text-shadow: none;
        font-weight: inherit;
    }

    .invite-text strong {
        color: var(--gold);
        font-weight: 700;
    }

    .invite-text.italic {
        font-family: 'Great Vibes', cursive;
        font-size: 1.8rem;
        color: var(--white);
        opacity: 1;
        margin-top: 20px;
    }

    /* ─── GRID DE DETALLES ─── */
    .details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        max-width: 1200px;
        margin: 40px auto 60px;
        /* Ajuste por el texto formal */
        padding: 0 20px;
        z-index: 10;
        position: relative;
    }

    .detail-card {
        background: rgba(3, 10, 28, 0.6);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 35px 25px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .detail-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.5s;
    }

    .detail-card:hover {
        transform: translateY(-15px) scale(1.02);
        border-color: var(--gold);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
    }

    .detail-card:hover::before {
        opacity: 1;
    }

    .detail-card i,
    .detail-card svg {
        font-size: 2.8rem;
        color: var(--gold);
        margin-bottom: 20px;
        filter: drop-shadow(0 0 12px var(--gold-glow));
        transition: all 0.5s ease;
        animation: iconPulse 4s infinite alternate ease-in-out;
    }

    @keyframes iconPulse {
        from {
            transform: scale(1);
            filter: drop-shadow(0 0 10px var(--gold-glow));
        }

        to {
            transform: scale(1.1);
            filter: drop-shadow(0 0 20px var(--gold));
        }
    }

    .detail-card:hover i,
    .detail-card:hover svg {
        transform: scale(1.2) rotate(5deg);
    }

    .detail-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: var(--white);
    }

    .detail-card p {
        font-size: 0.95rem;
        opacity: 0.8;
    }

    /* ─── PROGRAMA ─── */
    .program-section {
        padding: 80px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        text-align: center;
        font-size: 2.8rem;
        margin-bottom: 0px;
        color: var(--gold);
        text-shadow: 0 0 15px var(--gold-glow);
        position: relative;
        letter-spacing: 4px;
    }

    /* Accordion Events Styles */
    .accordion-container {
        padding-top: 20px;
    }

    .program-accordion {
        background: rgba(3, 10, 28, 0.6);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0 !important;
    }

    .program-accordion[open] {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.05);
    }

    .accordion-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0.45rem 0.75rem;
        cursor: pointer;
        user-select: none;
        list-style: none;
        transition: background 0.3s ease;
    }

    .accordion-header::-webkit-details-marker {
        display: none;
    }

    .accordion-header:hover {
        background: rgba(212, 175, 55, 0.05);
    }

    .accordion-title {
        color: #ffffff;
        font-family: 'Montserrat', 'Oswald', sans-serif;
        font-size: 0.9rem;
        text-transform: none;
        font-weight: 600;
        letter-spacing: 0.3px;
        line-height: 1.35;
        width: 100%;
    }

    .accordion-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 2px;
    }

    .accordion-badge {
        background: rgba(212, 175, 55, 0.12);
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: var(--gold, #d4af37);
        padding: 2px 8px;
        border-radius: 6px;
        font-size: 0.73rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .program-accordion[open] .accordion-title {
        color: var(--gold, #d4af37) !important;
    }

    .accordion-icon {
        color: var(--gold);
        font-size: 0.95rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        margin-left: auto;
    }

    /* Rotate icon when open */
    .program-accordion[open] .accordion-icon {
        transform: rotate(180deg);
    }

    /* Accordion Content */
    .accordion-content {
        padding: 0 1.2rem 1.2rem 1.2rem;
        animation: accordion-slide-down 0.4s ease-out forwards;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 0.2rem;
        padding-top: 1rem;
    }

    @keyframes accordion-slide-down {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .event-info-list {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.88rem;
        color: #cbd5e0;
        line-height: 1.4;
        text-align: left;
    }

    .event-info-list p {
        margin: 0;
        padding: 2px 0;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    }

    .event-info-list p:last-child {
        border-bottom: none;
    }

    .event-info-list strong {
        color: #ffffff;
        font-weight: 600;
    }

    .text-white {
        color: #ffffff;
        font-weight: 600;
    }

    .icon-gold {
        color: var(--gold);
        margin-right: 8px;
        width: 16px;
        text-align: center;
    }

    .accordion-list {
        margin: 0.5rem 0 0;
        padding-left: 1.2rem;
        color: #cccccc;
        font-size: 0.9rem;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 150px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gold), var(--white), var(--gold), transparent);
        background-size: 200% 100%;
        margin: 20px auto;
        box-shadow: 0 0 15px var(--gold-glow);
        animation: titleLineAnim 5s infinite ease-in-out;
    }

    @keyframes titleLineAnim {

        0%,
        100% {
            width: 100px;
            opacity: 0.5;
            background-position: 100% 0;
            transform: scaleX(0.9);
        }

        50% {
            width: 180px;
            opacity: 1;
            background-position: 0% 0;
            transform: scaleX(1);
            filter: brightness(1.2) drop-shadow(0 0 8px var(--gold));
        }
    }

    .date-badge {
        position: absolute;
        top: -1px;
        left: -1px;
        background: linear-gradient(135deg, var(--navy-primary), #030a1c);
        color: var(--gold);
        padding: 12px 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-bottom-right-radius: 20px;
        border-top-left-radius: 18px;
        z-index: 10;
        box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 70px;
        transition: all 0.4s ease;
    }

    .program-item:hover .date-badge {
        transform: scale(1.1);
        box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.6);
    }

    .date-badge .day {
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 0.9;
        font-family: 'Cinzel', serif;
        margin-bottom: 2px;
    }

    .date-badge .month {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 2px;
        opacity: 0.9;
        text-transform: uppercase;
        font-family: 'Cinzel', serif;
    }

    .program-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        /* Más sutil */
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 25px;
        padding: 35px;
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    .program-item::before {
        content: '';
        position: absolute;
        left: 0;
        /* Regresar a la izquierda */
        top: 50%;
        transform: translateY(-50%) scaleY(0.1);
        height: 100%;
        width: 6px;
        background: linear-gradient(to bottom, transparent, var(--gold), var(--white), var(--gold), transparent);
        background-size: 100% 200%;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 0 rgba(214, 175, 55, 0);
        z-index: 5;
    }

    .program-item:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(15px);
        /* Se mueve a la derecha como antes */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .program-item:hover::before {
        transform: translateY(-50%) scaleY(1);
        background-position: 0 100%;
        box-shadow: 4px 0 15px var(--gold-glow);
        /* Brillo hacia la derecha */
        animation: sideLineFlow 2s linear infinite;
    }

    @keyframes sideLineFlow {
        0% {
            background-position: 0 0%;
        }

        100% {
            background-position: 0 200%;
        }
    }

    .card-sep {
        width: 90%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 20px auto;
    }

    .program-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 40px;
        padding: 10px 0;
    }

    .meta-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
        padding: 10px;
        transition: transform 0.3s ease;
    }

    .meta-item:hover {
        transform: translateX(5px);
    }

    .meta-item i {
        color: var(--gold);
        font-size: 1.4rem;
        margin-top: 3px;
        text-shadow: 0 0 10px var(--gold-glow);
        animation: none !important;
    }

    .meta-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .meta-label {
        font-family: 'Oswald', sans-serif;
        font-size: 0.75rem;
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 600;
    }

    .meta-value {
        font-size: 0.95rem;
        color: var(--white);
        line-height: 1.4;
    }

    .dress-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .dress-line {
        font-size: 0.85rem;
        color: var(--silver);
        line-height: 1.4;
    }

    .dress-line strong {
        color: var(--white);
        font-weight: 600;
    }

    @media (max-width: 600px) {
        .program-meta {
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .meta-item:not(:last-child)::after {
            display: none;
        }

        .dress-code-block {
            justify-content: center;
            text-align: center;
            /* Alinear al inicio si se prefiere lateral */
            width: 100%;
            max-width: fit-content;
        }
    }

    .activity {
        width: 100%;
    }

    .activity h4 {
        color: var(--gold);
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }

    .activity p {
        font-size: 0.95rem;
        color: var(--silver);
        opacity: 0.9;
        max-width: 650px;
        margin: 0 auto;
        text-align: justify;
        text-align-last: left;
        /* Justificado con última línea a la izquierda */
        text-justify: inter-word;
        line-height: 1.6;
    }

    /* GALA SCHEDULE TABLE */
    .gala-schedule-container {
        margin-top: 40px;
        overflow-x: auto;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(214, 175, 55, 0.2);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .gala-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 800px;
        text-align: left;
    }

    .gala-table th {
        background: rgba(214, 175, 55, 0.1);
        color: var(--gold);
        padding: 20px;
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.9rem;
        border-bottom: 2px solid var(--gold);
    }

    .gala-table td {
        padding: 20px;
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.95rem;
    }

    .gala-table tr:last-child td {
        border-bottom: none;
    }

    .gala-table tr:hover td {
        background: rgba(214, 175, 55, 0.05);
    }

    .table-tag {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .tag-uniform {
        background: rgba(255, 255, 255, 0.1);
        color: var(--silver);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .tag-time {
        color: var(--gold);
        font-family: 'Oswald', sans-serif;
        font-size: 1rem;
    }

    @media (max-width: 800px) {
        .gala-schedule-container {
            border-radius: 15px;
        }

        .gala-table th,
        .gala-table td {
            padding: 15px 12px;
        }
    }

    /* ─── MAPA ─── */
    .map-container {
        max-width: 1200px;
        margin: 60px auto;
        padding: 0 20px;
    }

    .map-wrapper {
        height: 450px;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid var(--gold);
        /* Borde dorado sólido */
        position: relative;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
        background: var(--navy-primary);
    }

    /* Estilos del mapa original restaurados */
    .map-wrapper iframe {
        border: 0;
    }

    .map-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
        border-radius: 24px;
    }

    /* ─── CONTACTO (BIENVENIDA) ─── */
    .contact-section {
        padding: 0 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-card {
        max-width: 100%;
        margin: 0 auto 60px;
        background: rgba(3, 10, 28, 0.6);
        backdrop-filter: blur(20px);
        padding: 60px 40px 40px;
        border-radius: 20px;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
        position: relative;
    }

    .contact-card h2 {
        color: var(--gold);
        font-size: 1.8rem;
        /* Tamaño más solemne */
        margin-bottom: 15px;
        letter-spacing: 4px;
        text-shadow: 0 0 10px var(--gold-glow);
    }

    .protocol-text {
        font-size: 0.95rem;
        color: var(--silver);
        line-height: 1.6;
        margin-bottom: 25px;
        opacity: 0.9;
        text-align: justify;
        text-justify: inter-word;
    }

    .btn-whatsapp {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, #25d366, #128c7e);
        color: var(--white);
        padding: 16px 35px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        font-family: 'Oswald', sans-serif;
        font-size: 1rem;
        letter-spacing: 1px;
        margin-top: 10px;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-whatsapp i {
        font-size: 1.4rem;
    }

    .confirm-buttons-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 25px;
    }

    .btn-whatsapp:hover {
        transform: scale(1.05) translateY(-3px);
        box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
        filter: brightness(1.1);
    }

    /* ─── VIDEO SECCIÓN ─── */
    .video-section {
        max-width: 1200px;
        margin: 0 auto 60px;
        padding: 0 20px;
    }

    .video-player-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: 20px;
        border: 1px solid rgba(214, 175, 55, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(214, 175, 55, 0.15);
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .video-player-container:hover {
        border-color: rgba(214, 175, 55, 0.6);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(214, 175, 55, 0.25);
    }

    .video-element {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        display: block;
    }

    .video-glow {
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(214, 175, 55, 0.1) 0%, transparent 70%);
        animation: rotateGlow 15s linear infinite;
        pointer-events: none;
        z-index: 0;
    }

    @keyframes rotateGlow {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* ─── ANIMACIONES ─── */
    @keyframes floating {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    .reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Stagger delays disabled */
    .delay-1,
    .delay-2,
    .delay-3 {
        transition-delay: 0s !important;
    }

    .delay-4 {
        transition-delay: 0.8s;
    }

    /* ─── FOOTER PREMIUM ─── */
    footer {
        text-align: center;
        padding: 60px 20px;
        background: linear-gradient(to top, var(--navy-deep), transparent);
        position: relative;
    }

    footer::before {
        content: '';
        display: block;
        width: 100px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        margin: 0 auto 30px;
    }

    footer p {
        font-family: 'Oswald', sans-serif;
        letter-spacing: 5px;
        font-size: 0.9rem;
        color: var(--white);
        opacity: 0.6;
        text-transform: uppercase;
    }

    @media (max-width: 600px) {
        /* ESTÁNDAR WEB MÓVIL: TIPOGRAFÍA HARMONIOSA */
        .section-title {
            font-size: 1.4rem !important; /* ~22.4px */
            letter-spacing: 1.5px !important;
            margin-bottom: 1.2rem !important;
        }

        .hero-title {
            font-size: 1.6rem !important; /* ~25.6px */
            letter-spacing: 2px !important;
            line-height: 1.25 !important;
        }

        .hero-subtitle {
            font-size: 0.9rem !important;
            line-height: 1.55 !important;
        }

        .invite-title,
        .reseña-title {
            font-size: 1.2rem !important; /* ~19.2px */
            letter-spacing: 1px !important;
            margin-bottom: 0.8rem !important;
        }

        .authority-name {
            font-size: clamp(0.72rem, 3.7vw, 1.1rem) !important;
            letter-spacing: 0.5px !important;
            white-space: nowrap !important;
        }

        .authority-role {
            font-size: 0.72rem !important;
            padding: 4px 12px !important;
            letter-spacing: 1px !important;
        }

        .invite-text,
        .reseña-text,
        .card-body,
        .protocol-text {
            font-size: 0.88rem !important; /* ~14px (Estándar párrafos móvil) */
            line-height: 1.6 !important;
        }

        .accordion-header {
            padding: 0.35rem 0.15rem !important; /* Sin padding lateral izquierdo/derecho */
            gap: 4px !important;
        }

        .accordion-content {
            padding: 0 0.15rem 0.35rem 0.15rem !important; /* Sin padding lateral izquierdo/derecho */
        }

        .accordion-container {
            gap: 0.35rem !important;
        }

        .events-timeline {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .accordion-title {
            font-size: 0.86rem !important;
            line-height: 1.3 !important;
        }

        .accordion-badge {
            font-size: 0.68rem !important;
            padding: 1px 5px !important;
        }

        .event-info-list {
            font-size: 0.82rem !important;
            gap: 0.25rem !important;
        }

        .invite-container,
        .premium-card,
        .detail-card {
            padding: 1.5rem 1.1rem !important;
        }

        .nav-header {
            height: 50px;
            padding: 0 15px;
        }

        .nav-right {
            gap: 8px;
        }

        .hero-content {
            padding-top: 50px;
        }

        .hero-crest-container {
            width: 270px;
            height: 270px;
            margin-top: 10px;
        }

        .invite-text {
            font-size: 0.95rem;
            line-height: 1.6;
            text-align: justify;
            text-justify: inter-word;
        }

        .invite-text:first-of-type::first-letter {
            font-size: inherit;
        }

        .program-item {
            padding: 75px 15px 30px;
            text-align: center;
        }

        .activity h4 {
            font-size: 1.15rem;
            margin-top: 5px;
        }

        .activity p {
            text-align: justify;
            font-size: 0.9rem;
        }

        .date-badge {
            left: 50%;
            top: 0;
            transform: translateX(-50%);
            border-radius: 0 0 15px 15px;
            min-width: 80px;
            padding: 8px 15px;
        }

        .meta-item {
            font-size: 0.75rem;
            gap: 4px;
            padding: 0 2px;
        }

        .meta-item:not(:last-child)::after {
            margin-left: 5px;
        }

        .program-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            text-align: left;
            width: 100%;
            margin: 15px 0 0 0;
        }

        .meta-item {
            width: auto;
            justify-content: flex-start;
            font-size: 0.85rem;
        }

        /* Ocultar todos los separadores laterales en móviles (ya que ahora es una sola columna vertical) */
        .meta-item::after {
            display: none !important;
        }

        .hero-bg-iframe {
            height: 110vh;
            width: 100vw;
            left: 0;
            transform: none;
            top: -35px;
            /* Subir el iframe para pegar las banderas al topbar */
        }

        .seal-main-row {
            gap: 5px;
            /* Tanques más pegados en mobil */
        }

        .seal-tank-icon {
            width: 60px;
            /* Reducir tamaño en mobil */
            height: 35px;
        }

        .seal-main {
            font-size: 2.2rem;
            /* Ya estaba, pero asegurar */
            letter-spacing: 2px;
        }

        /* Ajuste de botones para móvil */
        .btn-whatsapp {
            padding: 12px 24px;
            font-size: 0.9rem;
            gap: 8px;
            width: 100%;
            max-width: 280px;
            justify-content: center;
        }

        .confirm-buttons-wrapper {
            gap: 12px;
            margin-top: 15px;
        }
    }

    @media (max-height: 700px) {
        .hero-crest-container {
            width: 210px;
            height: 210px;
            margin-bottom: 10px;
        }

        .hero-title {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .anniversary-seal {
            padding: 10px 15px;
            margin-bottom: 10px;
            gap: 8px;
        }

        .seal-main {
            font-size: 2.2rem;
        }

        .seal-horse {
            font-size: 1.5rem;
        }

        .countdown-container {
            margin-top: 15px;
        }
    }

    /* RESPONSIVIDAD MAPA DE MESAS */
    #seating-section {
        max-width: 1100px;
        padding: 60px 20px;
    }

    @media (max-width: 768px) {
        #seating-section {
            padding: 40px 0px;
        }
    }

    @media (max-height: 500px) and (orientation: landscape) {
        #seating-section {
            max-width: none;
            padding: 0;
            margin: 0;
        }

        #seating-section .section-title {
            font-size: 1.5rem;
            margin: 10px 0;
        }

        #seating-section .section-title::after {
            margin: 5px auto;
            width: 80px;
        }

        #seating-section iframe {
            height: 95vh;
            border-radius: 0;
        }
    }

    /* ─── ESTILOS PARA EL PROGRAMA DETALLADO ─── */
    .program-list {
        list-style: none;
        padding: 0;
        margin: 30px auto 0;
        text-align: left;
        max-width: 600px;
        border-top: 1px solid rgba(214, 175, 55, 0.3);
        padding-top: 20px;
    }

    .program-list li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(214, 175, 55, 0.05);
        font-size: 0.88rem;
        color: var(--silver);
        display: flex;
        gap: 15px;
        align-items: flex-start;
        transition: all 0.3s ease;
    }

    .program-list li:hover {
        color: var(--white);
        padding-left: 5px;
    }

    .program-list li::before {
        content: '\f054';
        /* Icono de flecha de FontAwesome */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: var(--gold);
        font-size: 0.7rem;
        margin-top: 4px;
    }

    .program-list-title {
        color: var(--gold);
        font-family: 'Cinzel', serif;
        font-size: 1.2rem;
        margin-top: 25px;
        display: block;
        text-align: center;
        letter-spacing: 2px;
    }

    /* ─── CAMBIO DE HORARIO: HORA TACHADA + NUEVA ─── */
    .time-changed {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .old-time {
        text-decoration: line-through;
        color: #8b0000;
        opacity: 0.7;
        font-size: 0.9rem;
    }

    .time-arrow {
        font-size: 0.65rem;
        color: var(--gold);
        animation: none !important;
    }

    .new-time {
        font-weight: 700;
        color: var(--gold);
        font-size: 1.05rem;
    }

    /* ─── ALERTA DE CAMBIO DE HORARIO ─── */
    .schedule-change-alert {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 24px;
        border-radius: 14px;
        border-left: 4px solid #d4af37;
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
        border: 1px solid rgba(212, 175, 55, 0.25);
        border-left: 4px solid #d4af37;
        position: relative;
        overflow: hidden;
        margin-top: 25px;
        text-align: left;
    }

    .schedule-change-alert::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

    .alert-icon-wrapper {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.16);
        border: 2px solid rgba(255, 193, 7, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: alertPulse 2s ease-in-out infinite;
        transition: all 0.3s ease;
    }

    .alert-warning-svg {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transition: transform 0.3s ease;
    }

    .alert-icon-wrapper:hover .alert-warning-svg {
        transform: scale(1.1) rotate(-3deg);
    }

    .alert-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .alert-badge {
        display: inline-block;
        font-family: 'Oswald', sans-serif;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #d4af37;
        background: rgba(212, 175, 55, 0.12);
        padding: 4px 12px;
        border-radius: 4px;
        width: fit-content;
    }

    .alert-message {
        font-size: 0.88rem;
        color: var(--silver);
        line-height: 1.6;
        margin: 0;
    }

    .alert-message strong {
        color: var(--gold);
        font-weight: 700;
    }

    @keyframes alertPulse {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.45);
        }

        50% {
            box-shadow: 0 0 0 12px rgba(255, 193, 7, 0);
        }
    }

    @media (max-width: 480px) {
        .schedule-change-alert {
            padding: 16px 18px;
            gap: 12px;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .alert-badge {
            align-self: center;
        }
    }

    /* ─── ESTILOS PARA LA ORDEN DEL DÍA COLAPSABLE ─── */
    .orden-dia-collapsible {
        margin-top: 25px;
        border: 1px solid rgba(214, 175, 55, 0.3);
        border-radius: 12px;
        background: rgba(184, 134, 11, 0.05);
        overflow: hidden;
        transition: all 0.3s ease;
        text-align: left;
    }

    .orden-dia-trigger {
        padding: 15px 20px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        outline: none;
        user-select: none;
        transition: background 0.3s ease;
    }

    .orden-dia-trigger::-webkit-details-marker {
        display: none;
        /* Ocultar marcador por defecto */
    }

    .orden-dia-trigger {
        list-style: none;
        /* Ocultar marcador estándar */
    }

    .orden-dia-trigger:hover {
        background: rgba(214, 175, 55, 0.1);
    }

    .orden-dia-trigger .program-list-title {
        margin-top: 0;
        font-size: 1.1rem;
        display: inline-block;
    }

    .orden-dia-trigger i {
        color: var(--gold);
        transition: transform 0.3s ease;
        font-size: 0.9rem;
    }

    .orden-dia-collapsible[open] .orden-dia-trigger i {
        transform: rotate(180deg);
    }

    .orden-dia-content {
        padding: 0 20px 20px;
        animation: slideDown 0.3s ease-out;
    }

    .orden-dia-content .program-list {
        margin-top: 10px;
        border-top: none;
        padding-top: 0;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ── MODAL POPUP Y EFECTOS PARA FOTOS DE GENERALES ── */
    .general-avatar {
        cursor: pointer;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    }

    .general-avatar:hover {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8) !important;
    }

    .general-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 11, 24, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .general-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .general-modal-content {
        position: relative;
        max-width: 90vw;
        max-height: 85vh;
        background: #0a1e3d;
        border: 2px solid var(--gold, #d4af37);
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(0.85);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .general-modal-overlay.active .general-modal-content {
        transform: scale(1);
    }

    .general-modal-close {
        position: absolute;
        top: -15px;
        right: -15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--gold, #d4af37);
        color: #050b18;
        border: 2px solid #ffffff;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s, background-color 0.2s;
        z-index: 10;
    }

    .general-modal-close:hover {
        transform: scale(1.15) rotate(90deg);
        background: #ffffff;
        color: #d4af37;
    }

    #general-modal-img {
        max-width: 100%;
        max-height: 65vh;
        border-radius: 12px;
        object-fit: contain;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    .general-modal-caption {
        margin-top: 15px;
        text-align: center;
    }

    .general-modal-caption h4 {
        color: var(--gold, #d4af37);
        font-size: 1.25rem;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .general-modal-caption span {
        color: var(--text-secondary, #cbd5e0);
        font-size: 0.95rem;
    }

    /* ─── CARRUSEL INFINITO DE LOGOS / CINTA DESLIZANTE ─── */
    @keyframes scrollRibbon {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-50%);
        }
    }

    .ribbon-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        z-index: 5;
    }

    .ribbon-track {
        display: flex;
        width: max-content;
        gap: 2.5rem;
        animation: scrollRibbon 40s linear infinite;
        padding: 15px 0;
    }

    .ribbon-track:hover {
        animation-play-state: paused;
    }

    /* Círculos de los logos */
    .sponsor-circle {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        box-shadow: none;
        padding: 0 !important;
    }

    .sponsor-circle img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        border-radius: 0 !important;
        /* Anula el border-radius inline de 50% */
    }

    .sponsor-circle span {
        font-size: 10px;
        color: var(--text-secondary, #cbd5e0);
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: color 0.3s;
    }

    /* Hover en los círculos con paleta militar dorada */
    .sponsor-circle:hover {
        transform: scale(1.1) translateY(-5px);
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .sponsor-circle:hover span {
        color: var(--gold, #d4af37);
    }

    /* Adaptabilidad para móviles */
    @media (max-width: 768px) {
        .sponsor-circle {
            width: 65px;
            height: 65px;
            gap: 1.5rem;
        }

        .ribbon-track {
            gap: 1.5rem;
        }
    }

    /* Pausar/Remover animación de cinta por interacción */
    .ribbon-track.paused-interaction {
        animation: none !important;
        transform: none !important;
    }

    /* Tooltip premium personalizado para la cinta */
    .ribbon-tooltip {
        position: absolute;
        background: #0a1e3d;
        color: var(--gold, #d4af37);
        border: 1px solid var(--gold, #d4af37);
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        pointer-events: none;
        opacity: 0;
        transform: translate(-50%, -100%) translateY(-10px);
        transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 8px var(--gold-glow);
    }

    .ribbon-tooltip::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: var(--gold, #d4af37) transparent transparent;
        display: block;
        width: 0;
    }

    .ribbon-tooltip.visible {
        opacity: 1;
        transform: translate(-50%, -100%) translateY(-18px);
    }

    /* Posicionamiento en el tope (techo) de la tarjeta para la cinta */
    .premium-card.delay-3 .ribbon-container {
        margin-top: -35px;
        margin-left: -35px;
        margin-right: -35px;
        width: calc(100% + 70px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        background: rgba(5, 11, 24, 0.2);
        border-radius: 20px 20px 0 0;
    }

    @media (max-width: 768px) {
        .premium-card.delay-3 .ribbon-container {
            margin-top: -75px;
            margin-left: -15px;
            margin-right: -15px;
            width: calc(100% + 30px);
        }
    }

    /* ─── BOTÓN REGRESAR AL INICIO (BACK TO TOP) ─── */
    .back-to-top {
        position: fixed;
        bottom: 25px;
        /* Restaurado al fondo ya que WhatsApp se movió a la izquierda */
        right: 25px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #0a1e3d;
        color: var(--gold, #d4af37);
        border: 2px solid var(--gold, #d4af37);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 8px var(--gold-glow);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s, color 0.3s;
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--gold, #d4af37);
        color: #050b18;
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
        transform: translateY(-3px);
    }

    @media (max-width: 768px) {
        .back-to-top {
            bottom: 15px;
            /* Restaurado en móviles */
            right: 15px;
            width: 42px;
            height: 42px;
            font-size: 1rem;
        }
    }

    /* ==========================================
   WIDGET FLOTANTE DE WHATSAPP (CON POPUP)
   ========================================== */
    .whatsapp-widget-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        /* Movido a la izquierda */
        z-index: 99999;
        font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    }

    /* Botón flotante principal */
    .whatsapp-btn-float {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
        border: none;
        cursor: pointer;
        background: transparent;
        perspective: 1000px;
        padding: 0;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .whatsapp-btn-float .icon-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 50%;
    }

    .whatsapp-widget-container.state-envelope .whatsapp-btn-float .icon-wrapper {
        transform: rotateY(180deg);
    }

    .whatsapp-btn-float .icon-whatsapp,
    .whatsapp-btn-float .icon-envelope {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .whatsapp-btn-float .icon-whatsapp {
        background-color: #25d366;
        color: #fff;
        transform: rotateY(0deg);
    }

    .whatsapp-btn-float .icon-envelope {
        background-color: #ffffff;
        color: #7248b9;
        /* Color morado oficial de Google Forms */
        transform: rotateY(180deg);
        border: 2px solid #7248b9;
        box-shadow: inset 0 0 10px rgba(114, 72, 185, 0.1);
    }

    .whatsapp-btn-float .icon-envelope i {
        font-size: 26px;
    }

    .whatsapp-btn-float:hover {
        transform: scale(1.1) rotate(5deg);
    }

    /* Modificar el color de fondo del tooltip cuando está en modo Google Forms */
    .whatsapp-widget-container.state-envelope .wa-cta-tooltip {
        background: #ffffff;
        color: #512da8;
        /* Morado oscuro */
        border: 1px solid #7248b9;
        box-shadow: 0 4px 15px rgba(114, 72, 185, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .whatsapp-widget-container.state-envelope .wa-cta-arrow {
        border-right-color: #7248b9;
    }

    /* ─── CTA Tooltip del WhatsApp ─── */
    .wa-cta-tooltip {
        position: absolute;
        bottom: 15px;
        left: 70px;
        background: #ffffff;
        /* Fondo blanco */
        color: #0b5f54;
        /* Verde oscuro */
        border: 1px solid #25d366;
        /* Borde verde */
        padding: 10px 18px;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 0.5px;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
        pointer-events: none;
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
        transition: none;
        z-index: 99998;
    }

    .wa-cta-tooltip.show {
        animation: waCTASlideIn 5s ease forwards;
    }

    .wa-cta-arrow {
        position: absolute;
        left: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid #25d366;
    }

    @keyframes waCTASlideIn {
        0% {
            opacity: 0;
            transform: translateX(-10px) scale(0.9);
        }

        10% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }

        85% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }

        100% {
            opacity: 0;
            transform: translateX(5px) scale(0.95);
        }
    }

    /* Estilo del Popup */
    .whatsapp-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, calc(-50% + 20px)) scale(0.95);
        width: 100%;
        max-width: 450px;
        background-color: #f4efe9;
        /* Tono beige del mockup */
        border-radius: 24px;
        box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        height: 85vh;
        max-height: 800px;
        z-index: 99995 !important;
    }

    .whatsapp-popup.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Contenedor scroleable de contenido */
    .wp-scroll-container {
        overflow-y: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        scrollbar-width: thin;
        scrollbar-color: rgba(11, 95, 84, 0.3) transparent;
    }

    .wp-scroll-container::-webkit-scrollbar {
        width: 5px;
    }

    .wp-scroll-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .wp-scroll-container::-webkit-scrollbar-thumb {
        background-color: rgba(11, 95, 84, 0.3);
        border-radius: 10px;
    }

    /* Header del popup (Verde Botella) */
    .wp-header {
        background-color: #0b5f54;
        /* Verde oscuro del mockup */
        color: #fff;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .wp-avatar-container {
        position: relative;
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }

    .wp-avatar-img-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        /* Esto recorta el exceso de la imagen al hacer zoom */
        border: 2px solid rgba(255, 255, 255, 0.2);
        background-color: #ffffff;
        /* Evita transparencias oscuras debajo */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wp-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        /* Se quitó el zoom para que se vea la imagen completa */
        display: block;
    }

    .wp-status-dot {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 12px;
        height: 12px;
        background-color: #25d366;
        border: 2px solid #0b5f54;
        border-radius: 50%;
    }

    .wp-header-info {
        display: flex;
        flex-direction: column;
    }

    .wp-name {
        font-weight: 700;
        font-size: 16px;
    }

    .wp-status-text {
        font-size: 12px;
        opacity: 0.8;
    }

    .wp-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .wp-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Cuerpo / Burbuja de mensaje */
    .wp-body {
        padding: 20px 20px 10px;
        background-image: radial-gradient(circle, rgba(0, 0, 0, 0.02) 10%, transparent 10%);
        background-size: 12px 12px;
    }

    .wp-chat-bubble {
        background-color: #fff;
        padding: 12px 16px;
        border-radius: 4px 18px 18px 18px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
        position: relative;
        max-width: 90%;
    }

    .wp-chat-bubble p {
        margin: 0;
        font-size: 14px;
        color: #333;
        line-height: 1.4;
    }

    .wp-time {
        display: block;
        text-align: right;
        font-size: 10px;
        color: #999;
        margin-top: 5px;
    }

    /* Categorías rápidas / Tags */
    .wp-quick-tags {
        padding: 0 20px 15px;
    }

    .wp-tags-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
    }

    .wp-tags-scroll::-webkit-scrollbar {
        display: none;
        /* Safari y Chrome */
    }

    .wp-tag-btn {
        background-color: #fff;
        color: #0b5f54;
        border: 1px solid #e1d8cd;
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .wp-tag-btn:hover {
        background-color: #0b5f54;
        color: #fff;
        border-color: #0b5f54;
    }

    /* Formulario */
    .wp-form {
        padding: 0 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .wp-input-group input,
    .wp-input-group textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #e1d8cd;
        border-radius: 14px;
        background-color: #fff;
        font-size: 13.5px;
        color: #333;
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }

    .wp-input-group input:focus,
    .wp-input-group textarea:focus {
        border-color: #0b5f54;
    }

    .wp-input-group textarea {
        resize: none;
    }

    /* Campos de Teléfono Destino fijos */
    .wp-destination-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.8px;
        color: #a49788;
        text-align: center;
        margin-bottom: -4px;
    }

    .wp-phone-row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 8px;
    }

    .wp-country-code {
        background-color: #fff;
        border: 1px solid #e1d8cd;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 500;
        color: #555;
        padding: 0 8px;
    }

    .wp-flag {
        width: 20px;
        height: auto;
        border-radius: 2px;
    }

    .wp-phone-input-fake {
        background-color: #fff;
        border: 1px solid #e1d8cd;
        border-radius: 16px;
        padding: 12px 16px;
        font-size: 14px;
        color: #777;
        letter-spacing: 0.5px;
    }

    /* Fila de Mensaje y Botón enviar */
    .wp-message-row {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    .wp-textarea-group {
        flex-grow: 1;
    }

    .wp-send-btn {
        background-color: #20ba5a;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
        box-shadow: 0 4px 10px rgba(32, 186, 90, 0.3);
    }

    .wp-send-btn:hover {
        background-color: #0b5f54;
        transform: scale(1.05);
    }

    .wp-send-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Pantallas móviles */
    @media screen and (max-width: 768px) {
        .whatsapp-popup {
            width: 100vw;
            max-width: 100vw;
            height: 100dvh;
            max-height: 100dvh;
            border-radius: 0;
            top: 0;
            left: 0;
            bottom: auto;
            transform: translate(0, 20px) scale(0.95);
        }

        .whatsapp-popup.active {
            transform: translate(0, 0) scale(1);
        }

        .wp-scroll-container {
            flex: 1;
            max-height: none;
        }

        .wp-body {
            padding: 12px 14px 6px;
        }

        .wp-chat-bubble {
            padding: 10px 12px;
        }

        .wp-chat-bubble p {
            font-size: 13px;
        }

        .wp-quick-tags {
            padding: 0 14px 8px;
        }

        .wp-form {
            padding: 0 14px 14px;
            gap: 8px;
        }

        .wp-input-group input,
        .wp-input-group textarea {
            padding: 8px 12px;
            font-size: 13px;
            border-radius: 12px;
        }

        .whatsapp-widget-container {
            bottom: 15px;
            left: 15px;
            /* Movido a la izquierda en móviles */
        }

        .whatsapp-btn-float {
            width: 50px;
            height: 50px;
        }

        .whatsapp-btn-float svg {
            width: 25px;
            height: 25px;
        }

        .wa-cta-tooltip {
            left: 58px;
            font-size: 0.75rem;
            padding: 8px 14px;
        }
    }

    /* ─── DISEÑO DE TARJETAS DE PROTOCOLO DE ASISTENCIA ─── */
    .protocol-intro {
        font-size: 1.05rem;
        color: var(--silver, #cbd5e0);
        line-height: 1.6;
        max-width: 850px;
        margin: 0 auto 35px;
        text-align: justify;
        text-justify: inter-word;
    }

    .protocol-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 20px;
        text-align: center;
    }

    .protocol-item-card {
        background: rgba(3, 10, 28, 0.6);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 16px;
        padding: 35px 20px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .protocol-item-card:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--gold, #d4af37);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    }

    .protocol-icon-wrapper {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: rgba(212, 175, 55, 0.08);
        color: var(--gold, #d4af37);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        margin-bottom: 22px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        transition: all 0.3s ease;
    }

    .protocol-item-card:hover .protocol-icon-wrapper {
        background: var(--gold, #d4af37);
        color: #050b18;
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--gold-glow);
    }

    .protocol-item-title {
        font-family: 'Oswald', sans-serif;
        font-size: 1.2rem;
        color: var(--gold, #d4af37);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

    .protocol-item-desc {
        font-size: 0.92rem;
        color: #a0aec0;
        line-height: 1.6;
        margin: 0;
        text-align: justify;
        text-justify: inter-word;
    }

    @media (max-width: 768px) {
        .contact-card {
            padding: 35px 15px 30px;
            /* Alineado con el padding de .program-item en móvil */
        }

        .protocol-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .protocol-intro {
            font-size: 0.95rem;
            margin-bottom: 20px;
            text-align: justify;
        }

        .protocol-item-card {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 22px 16px;
            gap: 0;
        }

        .protocol-icon-wrapper {
            width: 48px;
            height: 48px;
            font-size: 1.35rem;
            margin-bottom: 12px;
            flex-shrink: 0;
        }

        .protocol-text-content {
            width: 100%;
            text-align: center;
        }

        .protocol-item-title {
            font-size: 1.05rem;
            margin-bottom: 6px;
            text-align: center;
        }

        .protocol-item-desc {
            font-size: 0.86rem;
            line-height: 1.45;
            text-align: justify;
        }
    }

    countdown ul.flip.seconds:nth-child(7)::before {
        content: "SEG";
        position: absolute;
        bottom: -25px;
        left: 0;
        width: calc(200% + 2px);
        text-align: center;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Public Sans', sans-serif;
        font-weight: 700;
        letter-spacing: 2px;
    }

    /* ═══════════════════════════════════════
   SECCIÓN DE GENERALES DE BRIGADA Y MODAL
   ═══════════════════════════════════════ */
    .generals-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 2.5rem 1.75rem;
        margin-top: 2rem;
        width: 100%;
    }

    .general-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 160px;
        max-width: 100%;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .general-profile:hover {
        transform: translateY(-6px);
    }

    .general-avatar {
        position: relative;
        width: 130px;
        height: 130px;
        margin-bottom: 0.85rem;
        background: var(--navy-primary, #0a1e3d);
        transition: all 0.3s ease;
    }

    .general-avatar-circle {
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--gold, #d4af37);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 175, 55, 0.25);
    }

    .general-profile:hover .general-avatar-circle {
        border-color: #ffffff;
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    }

    .general-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        transition: transform 0.4s ease;
    }

    .general-profile:hover .general-avatar img {
        transform: scale(1.08);
    }

    .general-name {
        font-family: 'Oswald', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary, #f8f9fa);
        line-height: 1.35;
        margin-bottom: 0.3rem;
        text-transform: uppercase;
    }

    .general-rank {
        font-size: 0.8rem;
        color: var(--gold, #d4af37);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* ─── MODAL POPUP GENERALES Y OVERLAYS ─── */
    .general-modal-overlay,
    .whatsapp-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(5, 11, 24, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 99990;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .general-modal-overlay {
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .general-modal-overlay.active,
    .whatsapp-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .whatsapp-popup {
        z-index: 99995 !important;
    }

    .whatsapp-btn-float {
        z-index: 99999 !important;
    }

    .general-modal-content {
        position: relative;
        background: #ffffff;
        border: 2px solid var(--gold, #d4af37);
        border-radius: 14px;
        padding: 0;
        overflow: hidden;
        max-width: 90%;
        width: 800px;
        text-align: center;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.3);
        transform: scale(0.85);
        transition: transform 0.3s ease;
    }

    /* Day mode override no longer needed for background since it's always white */

    .general-modal-overlay.active .general-modal-content {
        transform: scale(1);
    }

    .general-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.95);
        /* White circle background */
        border: none;
        color: var(--gold, #d4af37);
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        line-height: 1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
        z-index: 10;
    }

    .general-modal-close:hover {
        background: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .general-modal-content img {
        width: 100%;
        height: auto;
        border-radius: 0;
        border: none;
        border-bottom: 3px solid var(--gold, #d4af37);
        margin: 0;
        display: block;
        box-shadow: none;
    }

    .general-modal-caption {
        padding: 24px 20px;
    }

    .general-modal-caption h4,
    #general-modal-name {
        font-family: 'Oswald', sans-serif !important;
        font-size: 1.25rem !important;
        color: #000000 !important;
        margin-bottom: 0.35rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        font-weight: 700 !important;
    }

    .general-modal-caption span,
    #general-modal-rank {
        font-size: 0.95rem !important;
        color: #d4af37 !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        font-weight: 700 !important;
    }

    /* ─── CINTA / CARROUSEL RIBBON DE ESPECIALIDADES ─── */
    .ribbon-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 0 0 12px 0;
        mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    }

    .ribbon-track {
        display: flex;
        gap: 20px;
        width: max-content;
        animation: ribbonScroll 35s linear infinite;
    }

    .ribbon-container:hover .ribbon-track {
        animation-play-state: paused;
    }

    @keyframes ribbonScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    .sponsor-circle {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--gold-glow, rgba(212, 175, 55, 0.3));
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        flex-shrink: 0;
        transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    }

    .sponsor-circle:hover {
        transform: scale(1.15);
        border-color: var(--gold, #d4af37);
        background: rgba(255, 255, 255, 0.18);
    }

    .sponsor-circle img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Cambios de tema limpios sin giros 3D */

    /* POSICIONAMIENTO FÍSICO DIFERENCIADO SEGÚN EL MODO */
    .premium-card,
    .invite-container,
    .contact-card,
    .visitor-counter-container,
    .protocol-item-card,
    .general-profile,
    .countdown-container {
        transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.65s ease, border-color 0.65s ease, background-color 0.65s ease;
    }

    @media (max-width: 768px) {}

    /* ─── TOAST POPUP DE CAMBIO DE IDIOMA CON BANDERAS ─── */
    .lang-toast-popup {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
        z-index: 100000;
        background: rgba(10, 30, 61, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 2px solid var(--gold, #d4af37);
        border-radius: 20px;
        padding: 12px 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(212, 175, 55, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }

    .lang-toast-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .lang-toast-content {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .lang-toast-flag-wrapper {
        width: 44px;
        height: 32px;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(212, 175, 55, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        flex-shrink: 0;
    }

    .lang-toast-flag {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lang-toast-info {
        display: flex;
        flex-direction: column;
    }

    .lang-toast-title {
        color: #ffffff;
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .lang-toast-subtitle {
        color: var(--gold, #d4af37);
        font-size: 12px;
        font-weight: 500;
    }

    /* Animación de persiana vertical dentro del tooltip */
    .wa-cta-inner-scroll {
        height: 20px;
        overflow: hidden;
        position: relative;
    }

    .wa-cta-text-wrapper {
        display: flex;
        flex-direction: column;
        height: 40px;
        transform: translateY(0);
        transition: none;
    }

    .wa-cta-tooltip.show .wa-cta-text-wrapper {
        animation: waBlindAnim 5s ease-in-out forwards;
    }

    .wa-cta-line {
        height: 20px;
        line-height: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    @keyframes waBlindAnim {
        0% {
            transform: translateY(0);
        }

        /* Muestra el nombre de la app por 1.5 segundos (30% de 5s) */
        30% {
            transform: translateY(0);
        }

        /* Baja la persiana (transición al texto de confirmación) */
        40% {
            transform: translateY(-20px);
        }

        100% {
            transform: translateY(-20px);
        }
    }

    /* Botón de acción para el Mapa */
    .map-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #ffffff;
        color: #1a73e8 !important;
        /* Google Blue */
        padding: 12px 28px;
        border-radius: 24px;
        /* Rounded pill shape is common in Maps */
        font-family: 'Oswald', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
        border: 1px solid #dadce0;
        transition: all 0.3s ease;
    }

    .map-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3), 0 6px 12px 4px rgba(60, 64, 67, 0.15);
        background: #f8f9fa;
        color: #174ea6 !important;
        /* Darker blue on hover */
    }

    /* ═══════════════════════════════════════
   Modal de Google Forms
═══════════════════════════════════════ */
    .forms-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(3, 10, 28, 0.82);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 100000;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
    }

    .forms-modal-overlay.active {
        display: flex;
        animation: formsModalFadeIn 0.25s ease forwards;
    }

    @keyframes formsModalFadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .forms-modal-box {
        background: #ffffff;
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 680px;
        height: 90vh;
        max-height: 780px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(114, 72, 185, 0.2);
        animation: formsModalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes formsModalSlideUp {
        from {
            transform: translateY(30px) scale(0.96);
            opacity: 0;
        }

        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .forms-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: #030a1c;
        border-bottom: 2px solid #7248b9;
        flex-shrink: 0;
    }

    .forms-modal-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        font-family: 'Oswald', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .forms-modal-close {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font-size: 1.3rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .forms-modal-close:hover {
        background: rgba(114, 72, 185, 0.5);
        transform: scale(1.1);
    }

    .forms-modal-body {
        flex: 1;
        overflow: hidden;
        position: relative;
    }

    .forms-modal-body iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    /* Móvil: pantalla completa */
    @media (max-width: 600px) {
        .forms-modal-overlay {
            padding: 0;
            align-items: flex-end;
        }

        .forms-modal-box {
            width: 100%;
            max-width: 100%;
            height: 100dvh;
            max-height: 100dvh;
            border-radius: 0;
        }
    }