/* =================================================================
   XV ANOS SOFIA -- STYLE.CSS
   Tema: Morado profundo + Dorado + Rosa suave (poquito)
   Mobile-first, experiencia inmersiva, profesional
   ================================================================= */

/* =================================================================
   VARIABLES CSS
   ================================================================= */
   :root {
    --purple-void: #1a0a2e;
    --purple-deep: #2D0A4E;
    --purple-rich: #4A148C;
    --purple-royal: #6A1B9A;
    --purple-soft: #9C27B0;
    --purple-mist: #E1BEE7;
    --pink-blush: #F8BBD0;
    --pink-pale: #FCE4EC;
    --pink-dust: #F48FB1;
    --gold: #D4AF37;
    --gold-bright: #FFD700;
    --gold-pale: #FFF8E1;
    --gold-dark: #B8860B;
    --gold-light: #F5E6A3;
    --text-primary: rgba(255,255,255,0.95);
    --text-secondary: rgba(255,255,255,0.88);
    --text-muted: rgba(255,255,255,0.65);
    --font-display: 'Cinzel Decorative', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
    --font-ui: 'Montserrat', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--purple-void);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Scroll bloqueado durante splash y video */
body.scroll-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* =================================================================
   LAYOUT DESKTOP -- Centrado mobile 9:16 con fondos laterales
   ================================================================= */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    /* Un poquito de rosado en el gradiente de la pagina */
    background: linear-gradient(
        180deg,
        var(--purple-deep) 0%,
        var(--purple-void) 12%,
        var(--purple-deep) 35%,
        #240e3d 50%,
        var(--purple-void) 65%,
        var(--purple-deep) 85%,
        var(--purple-void) 100%
    );
    box-shadow: 0 0 120px rgba(0,0,0,0.9);
    /* Inicialmente oculto -- se revela tras la transicion magica */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow-x: hidden;
}

/* Clase que se agrega via JS para revelar la pagina */
.main-content.revealed {
    opacity: 1;
    visibility: visible;
    overflow-y: hidden;
}

@media (min-width: 481px) {
    body {
        background: radial-gradient(ellipse at center, #2D0A4E 0%, #0a0318 100%);
    }
    .main-content {
        border-left: 1px solid rgba(212, 175, 55, 0.06);
        border-right: 1px solid rgba(212, 175, 55, 0.06);
    }
}

.container {
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* =================================================================
   MARCO DORADO -- Absolute, cubre toda la pagina verticalmente
   ================================================================= */
.golden-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: visible;
}

/* Borde dorado principal */
.golden-frame-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    box-shadow:
        inset 0 0 20px rgba(212, 175, 55, 0.08),
        0 0 15px rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

/* Borde sutil exterior */
.golden-frame-border::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 22px;
    pointer-events: none;
}

/* Borde sutil interior */
.golden-frame-border::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    pointer-events: none;
}

/* Esquinas ornamentales del marco */
.frame-corner {
    position: absolute;
    width: 65px;
    height: auto;
    opacity: 0.75;
    z-index: 51;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.25));
}

/* Esquina superior izquierda -- rotada -90deg para integrarse al borde */
.frame-corner-tl {
    top: 2px;
    left: 2px;
    width: 75px;
    transform: rotate(-90deg);
    transform-origin: top left;
}

/* Esquina inferior derecha */
.frame-corner-br {
    bottom: 2px;
    right: 2px;
    width: 75px;
    transform: rotate(180deg);
    transform-origin: bottom right;
}

/* Flor dorada decorativa */
.deco-flower {
    position: absolute;
    top: 18px;
    right: 28px;
    width: 45px;
    height: auto;
    opacity: 0.55;
    z-index: 6;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.2));
    animation: flowerSway 7s ease-in-out infinite;
}

@keyframes flowerSway {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
}

/* Globo cantoya estilo diferente decorativo hero */
.deco-cantoya-hero {
    position: absolute;
    bottom: 15%;
    right: 18px;
    width: 35px;
    height: auto;
    opacity: 0.35;
    z-index: 6;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.2));
    animation: cantoyaHeroBob 8s ease-in-out infinite;
}

@keyframes cantoyaHeroBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

/* Sol ornamental con decoracion morada -- seccion fecha */
.deco-sun-ornamental {
    position: absolute;
    top: 5%;
    right: -30px;
    width: 130px;
    height: auto;
    opacity: 0.15;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.15));
    animation: sunOrnamentalRotate 50s linear infinite;
}

@keyframes sunOrnamentalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================================================================
   SPLASH SCREEN -- Imagen estatica 9:16 COMPLETA
   ================================================================= */
.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--purple-void);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    /* Prevenir scroll en la imagen estatica */
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 480px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Degradado superior con icono touch y texto */
.splash-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(26, 10, 46, 0.92) 0%,
        rgba(26, 10, 46, 0.75) 35%,
        rgba(26, 10, 46, 0.4) 65%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 12vh;
    gap: 10px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Se oculta cuando el splash desaparece */
.splash-screen.hidden .splash-gradient-overlay {
    opacity: 0;
}

.touch-icon {
    font-size: 2.8rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    animation: touchPulse 2s ease-in-out infinite;
}

.touch-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.15);
    animation: touchPulse 2s ease-in-out infinite 0.3s;
}

@keyframes touchPulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* =================================================================
   BOTON SALTAR VIDEO -- FUERA del splash, por encima de todo
   ================================================================= */
.btn-skip {
    position: fixed;
    bottom: 30px;
    right: 20px;
    padding: 8px 20px;
    background: rgba(26, 10, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Por encima del video (9998), del splash (9999), y del todo */
    z-index: 10002;
}

.btn-skip.visible {
    opacity: 1;
    visibility: visible;
}

.btn-skip:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

/* =================================================================
   VIDEO INTRO -- Pantalla completa
   ================================================================= */
.intro-video {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    object-fit: cover;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.intro-video.active {
    opacity: 1;
    visibility: visible;
}

/* =================================================================
   TRANSICION MAGICA -- INMEDIATA al terminar el video
   ================================================================= */
.magic-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9997;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.magic-transition.active {
    opacity: 1;
}

.magic-glow {
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.9) 10%,
        rgba(225,190,231,0.75) 25%,
        rgba(212,175,55,0.5) 45%,
        rgba(106,27,154,0.25) 65%,
        rgba(26,10,46,0.1) 80%,
        transparent 100%
    );
    transform: scale(0);
    border-radius: 50%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.magic-transition.active .magic-glow {
    transform: scale(5);
}

.magic-particles {
    position: absolute;
    width: 100%; height: 100%;
    overflow: hidden;
}

.magic-particles::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(3px 3px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, var(--gold-bright), transparent),
        radial-gradient(2px 2px at 50% 50%, white, transparent),
        radial-gradient(3px 3px at 60% 20%, var(--pink-blush), transparent),
        radial-gradient(2px 2px at 80% 40%, var(--gold), transparent),
        radial-gradient(3px 3px at 90% 80%, white, transparent),
        radial-gradient(2px 2px at 30% 60%, var(--gold-light), transparent);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.1s ease;
    animation: magicSparkle 1.2s ease-out forwards;
}

.magic-transition.active .magic-particles::before {
    opacity: 1;
}

@keyframes magicSparkle {
    0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scale(2.5) rotate(180deg); opacity: 0; }
}

/* =================================================================
   GLOBO CANTOYA FLOTANTE
   ================================================================= */
.floating-cantoya-layer {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.floating-cantoya {
    position: absolute;
    bottom: -80px;
    left: 15%;
    width: 50px;
    height: auto;
    opacity: 0.25;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.2));
    animation: cantoyaRise 25s linear infinite;
}

@keyframes cantoyaRise {
    0% { transform: translateY(0) rotate(-2deg) scale(0.9); opacity: 0; }
    5% { opacity: 0.25; }
    95% { opacity: 0.15; }
    100% { transform: translateY(-120vh) rotate(3deg) scale(1.1); opacity: 0; }
}

/* =================================================================
   CONECTORES ENTRE SECCIONES -- Transiciones suaves tipo fade
   ================================================================= */
.section-connector {
    height: 50px;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Transicion suave fade -- sin iluminacion por debajo */
.connector-fade {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(26, 10, 46, 0.4) 30%,
        rgba(26, 10, 46, 0.7) 50%,
        rgba(26, 10, 46, 0.4) 70%,
        transparent 100%
    );
}

/* =================================================================
   BOTON DORADO METALICO
   ================================================================= */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 25%, #F5E6A3 45%, #D4AF37 55%, #B8860B 100%);
    background-size: 200% 200%;
    color: #1a0a2e;
    border: none;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(212, 175, 55, 0.35),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 248, 225, 0.2);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.15) 55%,
        transparent 70%
    );
    transform: translateX(-100%) rotate(0deg);
    transition: transform 0.8s ease;
}

.btn-gold:hover::before {
    transform: translateX(100%) rotate(0deg);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
    background-position: 100% 100%;
}

.btn-gold:active { transform: translateY(-1px); }

.btn-gold svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Boton confirmar asistencia */
.btn-confirm {
    padding: 16px 40px;
    font-size: 0.9rem;
}

/* =================================================================
   SECCION 1: HERO
   ================================================================= */
.section-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 24px 50px;
    overflow: hidden;
}

.hero-static-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    transition: opacity 1s ease;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(106, 27, 154, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(45,10,78,0.2) 0%, rgba(26,10,46,0.85) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Marca de agua sol -- ESTATICA, CENTRADA, OPACA */
.watermark-sun-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: auto;
    opacity: 0.07;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    filter: blur(1px) brightness(1.2) saturate(0.6);
}

/* Corona PNG -- mas abajo */
.crown-epic {
    width: 170px;
    height: auto;
    margin-bottom: 14px;
    margin-top: 20px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.25)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.1));
    animation: crownFloat 5s ease-in-out infinite;
}

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

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.title-mis-xv {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.3), 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 2px;
}

.title-name {
    font-family: var(--font-script);
    font-size: 4.8rem;
    color: var(--gold-bright);
    text-shadow:
        0 0 25px rgba(255, 215, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.2),
        0 2px 8px rgba(0,0,0,0.5);
    line-height: 1;
    margin-bottom: 28px;
}

/* Reproductor de musica completo */
.music-player {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.music-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gold);
}

.music-btn:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.4) 0%, rgba(212,175,55,0.2) 100%);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.music-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--gold-bright);
}

.music-play {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255,255,255,0.2);
}

.music-play:hover {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(255,255,255,0.3);
}

.music-play svg {
    fill: white;
    width: 24px;
    height: 24px;
}

/* Barra de progreso musical */
.music-progress-bar {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-progress-bar.active {
    opacity: 1;
}

.music-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold-light));
    border-radius: 3px;
    transition: width 0.3s linear;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.music-text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 4px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

.scroll-hint span {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =================================================================
   SECCION 2: MENSAJE
   ================================================================= */
.section-message {
    padding: 50px 0 40px;
    position: relative;
    background: var(--purple-deep);
    overflow: hidden;
}

.section-bg-solid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(106, 27, 154, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Globos de cantoya PNG decorativos */
.deco-lanterns {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.25));
}

.lantern-msg-1 {
    top: 4%;
    right: 4%;
    width: 55px;
    animation: lanternBob 6s ease-in-out infinite;
}

.lantern-msg-2 {
    bottom: 12%;
    left: 3%;
    width: 40px;
    animation: lanternBob 7s ease-in-out infinite reverse;
    opacity: 0.6;
}

@keyframes lanternBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Marca de agua sol grande -- CENTRADA, ESTATICA, OPACA */
.watermark-sol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: auto;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    /* Filtros para que se vea como marca de agua opaca */
    filter: blur(2px) brightness(1.1) saturate(0.5) contrast(0.8);
}

/* Divisores ornamentales */
.divider-ornate {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.divider-ornate.top { margin-bottom: 24px; }
.divider-ornate.bottom { margin-top: 24px; }

.divider-img {
    width: 100%;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}

.divider-flip {
    transform: rotate(180deg);
}

/* Mensaje */
.message-body {
    text-align: center;
    position: relative;
    z-index: 5;
}

.message-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 320px;
    margin: 0 auto 14px;
    text-align: justify;
    text-align-last: center;
}

.message-second {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
}

.drop-cap {
    font-family: var(--font-script);
    font-size: 3.4rem;
    color: var(--gold);
    float: left;
    line-height: 0.7;
    margin-right: 8px;
    margin-top: 4px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* =================================================================
   SECCION 3: FECHA + COUNTDOWN + CALENDARIO
   ================================================================= */
.section-date {
    padding: 45px 0 60px;
    position: relative;
    background: var(--purple-void);
    text-align: center;
    overflow: hidden;
}

.section-bg-animated {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(106, 27, 154, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.date-month-year {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    margin-bottom: 24px;
}

/* Calendario */
.calendar-wrapper {
    background: rgba(74, 20, 140, 0.25);
    border-radius: 24px;
    padding: 18px 12px;
    margin-bottom: 35px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(10px);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

.calendar-header span {
    font-family: var(--font-ui);
    font-size: 0.55rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: default;
}

.calendar-day.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--purple-void);
    font-weight: 700;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.55), 0 0 35px rgba(212, 175, 55, 0.2);
    animation: dayGlow 2.5s ease-in-out infinite;
    font-size: 0.9rem;
}

@keyframes dayGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(212, 175, 55, 0.55); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.85), 0 0 45px rgba(212, 175, 55, 0.3); }
}

.calendar-day.empty { visibility: hidden; }

/* Countdown */
.countdown-wrapper { margin-bottom: 30px; }

.countdown-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 18px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.count-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
    line-height: 1;
}

.count-label {
    font-family: var(--font-ui);
    font-size: 0.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.count-sep {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 3px;
    animation: sepBlink 1s ease-in-out infinite;
}

@keyframes sepBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =================================================================
   SECCION 4: UBICACION
   ================================================================= */
.section-venue {
    padding: 45px 0 60px;
    position: relative;
    background: var(--purple-deep);
    text-align: center;
    overflow: hidden;
}

.section-heading {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--gold-bright);
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
    margin-bottom: 24px;
}

.venue-card {
    background: rgba(74, 20, 140, 0.2);
    border-radius: 28px;
    padding: 32px 22px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Pascal decorativo PNG mirando derecha */
.pascal-decoration {
    position: absolute;
    top: -28px;
    right: 12px;
    width: 65px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(124, 179, 66, 0.35));
    animation: pascalWiggle 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes pascalWiggle {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-4px); }
}

.venue-info { margin-bottom: 20px; }

/* Nombre del lugar */
.venue-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    margin-bottom: 6px;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.venue-city {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.venue-time {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Overlay del mapa */
.map-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.map-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-overlay-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 10, 46, 0.92);
    backdrop-filter: blur(12px);
}

.map-overlay-content {
    position: relative;
    z-index: 1001;
    width: 92%;
    max-width: 450px;
    background: var(--purple-rich);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.map-overlay.active .map-overlay-content {
    transform: scale(1);
}

.map-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1002;
    transition: transform 0.2s ease;
}

.map-close:hover { transform: scale(1.1); }

.map-close svg { width: 18px; height: 18px; color: var(--purple-void); }

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.btn-open-maps-app {
    width: 100%;
    margin-top: 0;
}

/* =================================================================
   SECCION 5: DRESS CODE
   ================================================================= */
.section-dresscode {
    padding: 45px 0 60px;
    position: relative;
    background: var(--purple-void);
    text-align: center;
    overflow: hidden;
}

.dresscode-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.dresscode-icons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 20px;
}

.dresscode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dresscode-icon {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.15));
    transition: transform 0.4s ease;
}

.dresscode-icon:hover { transform: scale(1.05); }

.dresscode-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.dresscode-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.dresscode-note {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 14px;
}

/* =================================================================
   SECCION 6: CONFIRMAR ASISTENCIA -- Input + Boton dorado
   ================================================================= */
.section-confirm {
    padding: 60px 0 80px;
    position: relative;
    text-align: center;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.confirm-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.confirm-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
}

.confirm-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 46, 0.88) 0%,
        rgba(26, 10, 46, 0.65) 30%,
        rgba(26, 10, 46, 0.55) 50%,
        rgba(26, 10, 46, 0.7) 70%,
        rgba(26, 10, 46, 0.92) 100%
    );
    z-index: 2;
}

.confirm-content {
    position: relative;
    z-index: 10;
}

.confirm-title {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 10px;
    line-height: 1.1;
}

.confirm-flowers {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.flower-deco {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.25));
}

.confirm-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Input para nombre -- elegante */
.confirm-input-wrapper {
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.confirm-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.confirm-input {
    width: 100%;
    padding: 14px 24px;
    background: rgba(74, 20, 140, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.confirm-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.confirm-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.2),
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    background: rgba(74, 20, 140, 0.35);
}

/* Icono decorativo dentro del input */
.confirm-input-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

.confirm-note {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--pink-blush);
    margin-top: 20px;
    text-shadow: 0 0 12px rgba(248, 187, 208, 0.2);
}

/* =================================================================
   SECCION FINAL -- "Nos vemos pronto" (MAS CLARA)
   ================================================================= */
.section-final {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 24px;
}

.final-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.final-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.4;
}

/* Overlay mas claro para la seccion final */
.final-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 46, 0.7) 0%,
        rgba(26, 10, 46, 0.4) 40%,
        rgba(26, 10, 46, 0.5) 70%,
        rgba(26, 10, 46, 0.75) 100%
    );
    z-index: 2;
}

.final-content {
    position: relative;
    z-index: 10;
}

.final-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.final-stars.bottom {
    margin-top: 16px;
    margin-bottom: 0;
}

.star {
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.3s; }
.star:nth-child(3) { animation-delay: 0.6s; }
.star:nth-child(4) { animation-delay: 0.9s; }
.star:nth-child(5) { animation-delay: 1.2s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.final-title {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--gold-bright);
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.3), 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    line-height: 1.1;
}

.final-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* =================================================================
   RESPONSIVE -- TABLET & DESKTOP
   ================================================================= */
@media (min-width: 768px) {
    .title-mis-xv {
        font-size: 3rem;
        letter-spacing: 12px;
    }

    .title-name { font-size: 6rem; }

    .crown-epic { width: 220px; }

    .section-heading, .date-month-year { font-size: 3rem; }

    .count-number { font-size: 3rem; }

    .countdown-unit { min-width: 70px; }

    .confirm-title { font-size: 3.5rem; }
    .final-title { font-size: 3.2rem; }

    .dresscode-icon { width: 150px; }

    .message-text {
        max-width: 380px;
        font-size: 1.2rem;
    }

    .divider-ornate { max-width: 320px; }

    .map-container { height: 380px; }

    .watermark-sol { width: 350px; }

    .watermark-sun-hero { width: 320px; }

    .frame-corner { width: 80px; }
    .frame-corner-tl { width: 90px; }
    .frame-corner-br { width: 90px; }

    .deco-flower { width: 55px; }
    .deco-cantoya-hero { width: 42px; }
    .deco-sun-ornamental { width: 160px; }

    .confirm-input { font-size: 1.05rem; }
}

@media (min-width: 1024px) {
    .title-name { font-size: 7rem; }

    .crown-epic { width: 260px; }

    .calendar-wrapper { max-width: 360px; }

    .map-container { height: 400px; }

    .frame-corner { width: 90px; }
    .frame-corner-tl { width: 100px; }
    .frame-corner-br { width: 100px; }
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .deco-sun, .watermark-sol, .floating-cantoya, .watermark-sun-hero,
    .deco-sun-ornamental, .deco-cantoya-hero, .deco-flower {
        animation: none !important;
    }
}
