/* ═══════════════════════════════════════
   ESTILOS PREMIUM - INVITACIÓN CABALLERÍA
   Paleta: Azul Marino, Blanco, Plata
   ═══════════════════════════════════════ */

:root {
    --navy-deep: #050b18;
    --navy-primary: #0a1e3d;
    --navy-light: #16325c;
    --white: #ffffff;
    --silver: #f8f9fa;
    --silver-dark: #cbd5e0;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    /* Aumentado de 0.04 para más presencia */
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Aumentado de 0.1 */
    --shadow-glow: rgba(255, 255, 255, 0.15);
    --red-military: #8b0000;
}

/* 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;
}

#fireworks-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

#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: #050b18;
    color: var(--silver);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Animación de Respiración: Azul -> Gris -> Blanco (suave) */
    animation: breathingBG 18s ease-in-out infinite;
    background-attachment: fixed;
}

@keyframes breathingBG {
    0% {
        background-color: #050b18;
    }

    /* Azul Marino */
    33% {
        background-color: #1c1c1c;
    }

    /* Gris Carbón */
    66% {
        background-color: #2c3e50;
    }

    /* Azul Grisáceo (Blanco en contexto nocturno) */
    100% {
        background-color: #050b18;
    }

    /* Regresa al Azul */
}

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);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffcc00 0%, #ffcc00 50%, #0033a0 50%, #0033a0 75%, #e31b23 75%, #e31b23 100%);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    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(--gold);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.lang-toggle {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 45px;
}

.nav-btn:hover {
    color: var(--white);
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.3);
}

.nav-btn:hover {
    color: var(--white);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.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: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.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;
}

@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;
        /* El contador a la izquierda del lema en mobil */
    }

    .live-text {
        display: none;
    }

    .nav-right {
        order: 3;
    }

    /* SUBIR LOGO Y TÍTULO EN MOVIL */
    .hero-content {
        justify-content: flex-start;
        padding-top: 50px;
        /* Más arriba */
    }

    .hero-crest-container {
        width: 120px;
        /* Un poco más pequeño */
        height: 120px;
        margin-bottom: 2px;
    }

    .hero-title {
        font-size: 1.6rem;
        /* Un poco más pequeño */
        margin-bottom: 2px;
        letter-spacing: -1px;
    }

    .anniversary-seal {
        padding: 5px 12px;
        margin-bottom: 2px;
        transform: scale(0.8);
        /* Más pequeño */
    }

    .countdown-container {
        margin-top: 5px;
        transform: scale(0.8);
        /* Más compacto */
    }

    .scroll-indicator {
        position: relative !important;
        /* Salir del absolute */
        bottom: auto !important;
        transform: none !important;
        left: auto !important;
        margin: 20px auto 10px !important;
        /* Siempre debajo del contador */
    }
}

.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;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 11, 24, 0.4) 60%, rgba(5, 11, 24, 0.8) 100%);
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(214, 175, 55, 0.05), transparent 30%, transparent 70%, rgba(214, 175, 55, 0.05));
    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(220px, 35vw, 300px);
    height: clamp(220px, 35vw, 300px);
    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;
}

.crest-back,
.crest-extra {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    opacity: 0;
    animation: cycleLogos4 16s infinite ease-in-out;
}

.hero-crest-flipper div:nth-child(1) { animation-delay: 0s; }
.hero-crest-flipper div:nth-child(2) { animation-delay: 4s; }
.hero-crest-flipper div:nth-child(3) { animation-delay: 8s; }
.hero-crest-flipper div:nth-child(4) { animation-delay: 12s; }

@keyframes cycleLogos4 {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.8);
    }
    5%, 20% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
    25% {
        opacity: 0;
        transform: rotateY(90deg) scale(1.1);
    }
    100% {
        opacity: 0;
    }
}

@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-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    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;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -1px;
    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: 15px 35px 25px;
    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 ─── */
.countdown-container {
    margin-top: 40px;
    text-align: center;
    z-index: 20;
}

.countdown-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    position: relative;
}

.countdown-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.countdown-block {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(214, 175, 55, 0.2);
    /* Borde dorado tenue */
    min-width: 85px;
    padding: 15px 10px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 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.05) 0%, transparent 100%);
    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);
}

.tricolor-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            #FFD700 0%, #FFD700 33.33%,
            #0033A0 33.33%, #0033A0 66.66%,
            #DA291C 66.66%, #DA291C 100%);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

/* FOOTER & VISITOR COUNTER */
.invite-footer {
    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(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .counter-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Mantener en una fila */
        gap: 5px;
    }

    .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 */
.premium-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

.premium-card>* {
    position: relative;
    z-index: 2;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(10, 30, 61, 0.9);
    /* navy-primary background */
    border-radius: inherit;
    z-index: 1;
}

@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(-5px);
    border-color: var(--gold);
}

.count-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    /* Números en oro */
    line-height: 1;
    text-shadow: 0 0 20px var(--gold-glow);
}

.count-unit {
    font-size: 0.6rem;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 5px;
}

@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;
    /* Bajado un poco más */
    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: 26px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px var(--gold-glow);
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouse-scroll 1.6s infinite ease-in-out;
}

.scroll-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.8;
}

@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: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    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-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;
}

/* Letra Capital de Gala */
.invite-text:first-of-type::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    float: left;
    margin-right: 15px;
    margin-top: 10px;
    /* Bajar un poco para no chocar con el marco */
    padding-left: 20px;
    /* Más espacio del borde */
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold-glow);
    font-weight: 700;
}

.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(255, 255, 255, 0.08);
    /* Más opacidad */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    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;
}

.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(--gold), #c5a059);
    color: var(--navy);
    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.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    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: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-top: 5px;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--silver);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 0 5px;
}

.meta-item:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-left: 10px;
}

.meta-item i {
    color: var(--gold);
    font-size: 0.9rem;
    animation: none;
    /* Quitar pulso en estos iconos pequeños */
    margin-bottom: 0;
}

/* DRESS CODE STRUCTURED STYLES */
.dress-code-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dress-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dress-title {
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.dress-line {
    display: flex;
    gap: 5px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.dress-line .label {
    font-weight: 600;
    opacity: 0.9;
}

.dress-line .value {
    color: var(--white);
    font-weight: 400;
}

@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%;
    /* Ocupa el ancho de contact-section como Ceremonia Militar */
    /* Compacto */
    margin: 0 auto 60px;
    background: rgba(255, 255, 255, 0.04);
    /* Menos opacidad para elegancia */
    backdrop-filter: blur(20px);
    padding: 60px 40px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(214, 175, 55, 0.15);
    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);
}

/* ─── 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) {
    .nav-header {
        height: 50px;
        /* Un poco más pequeño */
        padding: 0 15px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-crest-container {
        width: 180px;
        height: 180px;
        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: 2.8rem;
    }

    .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;
    }
}

@media (max-height: 700px) {
    .hero-crest-container {
        width: 140px;
        height: 140px;
        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;
    }
}