/* Reset & Cimientos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-dark: #1A1A1D;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    --gold-gradient: linear-gradient(45deg, #F3E5AB, #D4AF37, #F3E5AB);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Cinzel', serif;
    color: white;
    overflow: hidden;
    /* Controlado por snap-container */
    min-height: 100vh;
}

/* Capa 0: Motor Gráfico Fondo */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-dark);
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-active #bg-video {
    opacity: 0.25;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle,
            rgba(26, 26, 29, 0.3) 0%,
            rgba(26, 26, 29, 0.95) 100%);
}

/* Estructura Snap */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.snap-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.snap-page {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    text-align: center;
}

/* Tipografía y Estilos Hero */
.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.title-script {
    font-family: 'Great Vibes', cursive;
    color: var(--gold-light);
    font-size: 6.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 2px 2px 4px rgba(0,0,0,0.5);
    margin: 15px 0;
    line-height: 1.1;
    z-index: 10;
    position: relative;
}

.subtitle {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    font-weight: 400;
    opacity: 0.8;
}

/* Countdown Estética Minimalista */
.countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    min-width: 70px;
    backdrop-filter: none;
}

.count-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
}

.time-block .label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.8;
}

/* Soporte de Visibilidad v7.3 */
#global-garden {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* Arquitectura Modular de Arco Floral v7.4 */
.floral-arch {
    position: fixed;
    width: 100vw;
    height: 20vh;
    z-index: 10;
    pointer-events: none;
}

.arch-top { top: 0; }
.arch-bottom { bottom: 0; transform: rotate(180deg); }

/* Piezas Individuales: Control de tamaño y fusión profunda */
.f-piece {
    position: absolute;
    width: 45vw;
    max-width: 160px;
    mix-blend-mode: normal;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.95)) brightness(0.7) contrast(1.2);
    opacity: 0.6;
    will-change: transform;
}

/* Coreografía Matemática (Empujando bordes fuera) */
.f-left {
    top: -25%;
    left: -15%;
    transform: rotate(145deg); /* 180° base - 35° rotación individual */
}

.f-center {
    top: -40%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 55vw;
    max-width: 200px;
}

.f-right {
    top: -25%;
    right: -15%;
    transform: rotate(215deg); /* 180° base + 35° rotación individual */
}

/* Polvo de Oro Vivo (Drift Optimizado) */
.gold-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.gold-dust {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    opacity: 0.5;
    will-change: transform, opacity;
    animation: goldDrift 55s ease-in-out infinite alternate;
}

@keyframes goldDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(30px, -20px) rotate(90deg) scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: translate(-15px, 10px) rotate(180deg) scale(1);
        opacity: 0.4;
    }
}

/* Soporte de Capas Estabilizado */
#bg-video {
    z-index: -3;
}

.gold-field {
    z-index: -2;
}

.snap-container {
    z-index: 10;
    position: relative;
}

.floral-arch {
    z-index: 100;
}

/* Animaciones */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}

@keyframes driftX {
    0% {
        translate: 0;
    }

    100% {
        translate: 20px;
    }
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    animation: fadePulse 2s infinite;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsive Focus (9:16) */
@media (max-width: 450px) {
    .title-script {
        font-size: 4rem;
    }

    .countdown {
        gap: 8px;
    }

    .time-block {
        min-width: 60px;
        padding: 8px 10px;
    }
}

/* Glassmorphism & Secciones 2-3 */
.glass-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    width: 85%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

.names-gold {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 10px 0;
}

.title-script-small {
    font-family: 'Great Vibes', cursive;
    color: var(--gold-light);
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin: 5px 0;
    line-height: 1;
}

.text-body {
    font-family: 'Cinzel', serif;
    color: #EEE;
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.5;
}

.italic {
    font-style: italic;
    font-size: 0.85rem;
    color: #CCC;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
}

/* Sección 2: Protocolo v7.14 */
.protocol-card {
    padding: 2.5rem 1.5rem !important;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proto-intro, 
.proto-parents, 
.proto-daughter-intro {
    color: var(--gold-light); /* Crema suave / Dorado claro */
    font-family: 'Cinzel', serif;
}

.proto-parents {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 2px;
}

.proto-daughter {
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.9);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.proto-narr {
    color: var(--gold-light);
    font-style: italic; /* Frase final elegante */
    line-height: 1.6;
    letter-spacing: 1px;
}

/* Secuencia de Revelado Escalonado */
.protocol-card > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#protocol.is-visible .protocol-card > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
#protocol.is-visible .protocol-card > *:nth-child(2) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
#protocol.is-visible .protocol-card > *:nth-child(3) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
#protocol.is-visible .protocol-card > *:nth-child(4) { transition-delay: 1.3s; opacity: 1; transform: translateY(0); }
#protocol.is-visible .protocol-card > *:nth-child(5) { transition-delay: 1.7s; opacity: 1; transform: translateY(0); }
#protocol.is-visible .protocol-card > *:nth-child(6) { transition-delay: 2.1s; opacity: 1; transform: translateY(0); }

#typing-protocol::after {
    content: '|';
    animation: blink-proto 1s infinite;
}

@keyframes blink-proto {
    50% { opacity: 0; }
}

/* Estilos de Eventos y Botones */
.event-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin: 0;
}

.event-location {
    font-family: 'Cinzel', serif;
    color: white;
    margin: 2px 0;
    font-size: 0.85rem;
}

.event-address {
    font-family: sans-serif;
    color: #AAA;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.time-massive {
    font-size: 1.7rem !important;
    color: var(--gold-light) !important;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    margin: 2px 0 !important;
}

@keyframes holyPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--gold)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px var(--gold-light)); }
}

.icon-pulse {
    display: inline-block;
    animation: holyPulse 3s infinite ease-in-out;
}

.btn-glass-gold {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background: rgba(212, 175, 55, 0.05); /* Cristal casi transparente */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.5); /* Borde oro fino */
    color: var(--gold-light);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 5px;
}

.btn-glass-gold:active {
    transform: scale(0.95);
}

.btn-glass-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    20%, 100% { left: 200%; }
}

/* Encabezado Logística v7.8 */
.logistics-header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease;
    z-index: 2;
}

#logistics.is-visible .logistics-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.date-highlight {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    letter-spacing: 3px;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin: 0;
}

.divider-small {
    width: 30px;
    height: 1px;
    background: var(--gold);
    margin: 5px auto 0;
}

/* Sección 3 Geometría v7.8 */
#logistics {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: 18vh;
    padding-bottom: 18vh;
}

.event-card {
    padding: 12px 15px;
    margin-bottom: 10px;
    width: 90%;
    max-width: 380px;
}

.icon {
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}


/* Sección 4: RSVP Premium v7.9 */
.rsvp-photo-bg {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: url('foto.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.25; /* Sutil y elegante */
    filter: grayscale(30%) contrast(1.2);
    /* Fundido hacia negro arriba y abajo */
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.rsvp-card {
    z-index: 2;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem 1.5rem;
}

.btn-glass-massive {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.btn-glass-massive:hover,
.btn-glass-massive:active {
    transform: scale(0.98);
    border-color: #FFF;
    color: #FFF;
}

/* Shimmer v7.9 */
.btn-glass-massive::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shimmer 4s infinite;
}

/* Branded Icon v7.11 Corrección */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.gc-icon-branded {
    width: 1.8rem;
    height: 1.8rem;
    display: block;
    color: var(--gold-light); /* Aplica al stroke del SVG */
    /* Filtro refinado para SVG nativo */
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    opacity: 0.95;
    transition: all 0.3s ease;
}

.btn-glass-massive:hover .gc-icon-branded {
    color: #FFF;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
    opacity: 1;
}

.link-minimal-wa {
    display: inline-block;
    color: #EEE;
    font-family: sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
    transition: color 0.3s;
}

.link-minimal-wa:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Utils & Intersection Observer */
.snap-page {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.snap-page.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 450px) {
    .glass-card {
        padding: 1.5rem 1rem;
    }

    .title-script-small {
        font-size: 2.8rem;
    }
}