/* =========================================
   0. BASE / SCROLL / VARIABLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

:root {
    --azul-acento: #3b9bd3;
    --dorado: #c8a13a;
    --dorado-claro: #e6cd85;
    /* Intensidad del video de nieve de fondo (1 = opaco, 0 = invisible). Ajusta solo este valor. */
    --opacidad-nieve-fondo: 0.38;
    /* Cristal de las tarjetas: velo azul marino con un leve tinte morado */
    --glass-fondo: linear-gradient(165deg, rgba(58, 46, 156, 0.24) 0%, rgba(26, 20, 94, 0.34) 100%);
    --glass-blur: blur(20px) saturate(1.2);
    /* Degradado dorado de los títulos, y su versión más clara para letra delgada */
    --dorado-texto: linear-gradient(180deg, #ffffff 0%, #fff6df 42%, #e6cd85 72%, #fff6df 100%);
    --dorado-texto-claro: linear-gradient(180deg, #ffffff 0%, #fffaf0 40%, #f3e2ad 72%, #fffaf0 100%);
    --brillo-titulo: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(162, 185, 247, 0.5));
}

/* =========================================
   1. RESET Y FONDO ANIMADO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

body {
    background: linear-gradient(45deg, #7ad2f4 0%, #a2b9f7 50%, #7ad2f4 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: #f3f6ff;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fondo de foto fijo y único para toda la página: al ser position:fixed, no se
   recorta ni reinicia por sección. Se usa "cover" (mobile-first, la imagen es
   720x1280) para que cubra edge-to-edge sin dejar el marco/borde que deja
   "contain" al no llenar el viewport por completo. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('imagenes/fondopag.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 35% center;
    pointer-events: none;
}

@media (min-width: 601px) {
    body::before {
        background-position: center 42%;
    }
}

/* =========================================
   VIDEO DE NIEVE DE FONDO (capa global sobre todo el sitio)
   ========================================= */
.video-nieve-fondo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: var(--opacidad-nieve-fondo);
}

/* =========================================
   COPOS DE NIEVE Y PARTICULAS FLOTANTES
   ========================================= */
.destellos-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.destello {
    position: absolute;
    top: -50px;
    font-size: 1.3rem;
    opacity: 0.7;
    animation: flotar 8s infinite ease-in-out;
}

/* Copos como imagen (imagenes/copos.png) en vez de emoji de texto.
   brightness(.85) baja un poco lo brillante que se ve el PNG en tamaños chicos. */
.destello-copo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(150, 220, 255, 0.5)) brightness(0.85);
}

.destello:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s;  --deriva: 18px; }
.destello:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 9s;  --deriva: -22px; }
.destello:nth-child(3) { left: 45%; animation-delay: 4s; animation-duration: 6s;  --deriva: 14px; }
.destello:nth-child(4) { left: 65%; animation-delay: 1s; animation-duration: 8s;  --deriva: -16px; }
.destello:nth-child(5) { left: 80%; animation-delay: 3s; animation-duration: 10s; --deriva: 24px; }
.destello:nth-child(6) { left: 92%; animation-delay: 5s; animation-duration: 7s;  --deriva: -12px; }

/* Caen de arriba hacia abajo (misma dirección que la nieve del video de fondo),
   con una ligera deriva lateral y rotación para que no se vea mecánico. */
@keyframes flotar {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(105vh) translateX(var(--deriva, 0px)) rotate(360deg);
        opacity: 0;
    }
}

/* =========================================
   2. EFECTO LIQUID GLASS Y DECORACIONES
   ========================================= */
.glass-card {
    /* Velo azul marino translúcido con tinte morado: mantiene el cristal y el contraste del texto claro */
    background: var(--glass-fondo);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Con el velo más transparente, una sombra un poco más marcada mantiene el contraste */
    text-shadow: 0 1px 4px rgba(10, 8, 50, 0.55);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.18),
                inset 0 0 15px rgba(255, 255, 255, 0.22);
    padding: 45px 30px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: 12px auto;
    position: relative;
    z-index: 2;
}

.adorno-superior {
    margin-bottom: 18px;
}

/* Estilo de la imagen de la Corona */
.img-corona {
    width: 76px;
    height: auto;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.img-corona:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* =========================================
   3. PANTALLA DE BIENVENIDA Y CARTA ANIMADA
   ========================================= */
.pantalla-bienvenida {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contenedor-play {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 20px;
}

.contenedor-play .eyebrow-xv {
    font-size: 4rem;
    margin-bottom: 0;
}

/* La línea dorada bajo "Mis XV años" solo se quita aquí (la de la portada se queda) */
#bienvenida .eyebrow-xv::after {
    content: none;
}

/* Envoltorio del botón: da espacio para los cristalitos que lo flanquean */
.play-wrap {
    position: relative;
    width: 110px;
    height: 110px;
}

.btn-play {
    position: relative;
    cursor: pointer;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    /* Dorado de los títulos, algo translúcido: claro arriba, más cálido abajo */
    background: linear-gradient(180deg, rgba(255, 246, 223, 0.92) 0%, rgba(241, 215, 145, 0.88) 45%, rgba(214, 170, 80, 0.9) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 26px rgba(240, 210, 130, 0.5),
                0 10px 28px rgba(40, 20, 90, 0.35),
                inset 0 2px 6px rgba(255, 255, 255, 0.6),
                inset 0 -8px 14px rgba(150, 100, 30, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: pulsarPlay 3.2s infinite ease-in-out;
}

/* Anillo exterior fino, dorado y fijo */
.btn-play::before {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid rgba(230, 205, 133, 0.6);
    box-shadow: 0 0 8px rgba(230, 205, 133, 0.25);
    pointer-events: none;
}

/* Borde dorado fino con la luz que recorre el contorno (misma técnica que .btn-accion) */
.btn-play::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, #fff6df 0%, #d9ad4f 35%, #fff1c4 55%, #c8a13a 80%, #f0d58c 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.con-property .btn-play::after {
    background:
        conic-gradient(from var(--angulo), transparent 0deg 250deg, rgba(240, 200, 100, 0.9) 300deg, #ffffff 330deg, rgba(240, 200, 100, 0.9) 345deg, transparent 360deg),
        linear-gradient(135deg, #fff6df 0%, #d9ad4f 35%, #fff1c4 55%, #c8a13a 80%, #f0d58c 100%);
    animation: girarBorde 4.5s linear infinite;
}

/* Reflejo diagonal que cruza el botón de vez en cuando */
.play-reflejo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.play-reflejo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-160%) rotate(25deg);
    animation: reflejoMarco 5s ease-in-out infinite;
    animation-delay: 1s;
}

.btn-play:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 0 36px rgba(245, 215, 140, 0.7),
                0 14px 34px rgba(40, 20, 90, 0.4),
                inset 0 2px 6px rgba(255, 255, 255, 0.7),
                inset 0 -8px 14px rgba(150, 100, 30, 0.3);
}

.icono-play {
    position: relative;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    fill: #3a1f3d;
    stroke: #3a1f3d;
    stroke-width: 0.6;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(255, 246, 223, 0.6));
}

/* Halo dorado que respira y se expande suavemente */
@keyframes pulsarPlay {
    0%, 100% {
        box-shadow: 0 0 26px rgba(240, 210, 130, 0.5),
                    0 10px 28px rgba(40, 20, 90, 0.35),
                    inset 0 2px 6px rgba(255, 255, 255, 0.6),
                    inset 0 -8px 14px rgba(150, 100, 30, 0.3),
                    0 0 0 0 rgba(240, 210, 130, 0.5);
    }
    50% {
        box-shadow: 0 0 26px rgba(240, 210, 130, 0.5),
                    0 10px 28px rgba(40, 20, 90, 0.35),
                    inset 0 2px 6px rgba(255, 255, 255, 0.6),
                    inset 0 -8px 14px rgba(150, 100, 30, 0.3),
                    0 0 0 16px rgba(240, 210, 130, 0);
    }
}

/* =========================================
   TRANSICIÓN: VIDEO DE INTRODUCCIÓN + NIEVE
   ========================================= */
.transicion-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: #000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.transicion-video.visible {
    opacity: 1;
}

/* Salida de la transición: desenfoque + fundido, sin pantalla blanca de por medio.
   Esta regla va después de ".visible" y pisa su opacity/transition al añadirse.
   Dura 2.3s (medio segundo más que antes) con curva ease-in-out. */
.transicion-video.desenfocando {
    opacity: 0;
    transition: opacity 2.3s ease-in-out;
}

/* El contenido arranca ~0.35s después de que el video ya empezó a irse (ver script.js),
   así no se traslapan de golpe; su propia transición dura el resto del tiempo.
   El fundido y desenfoque van en cada tarjeta y no en #contenido-invitacion: un filter
   u opacity en un contenedor padre anula el backdrop-filter de las tarjetas. */
#contenido-invitacion .glass-card {
    opacity: 0;
    filter: blur(18px);
    transition: opacity 1.95s ease-in-out, filter 1.95s ease-in-out;
}

#contenido-invitacion.visible .glass-card {
    opacity: 1;
    filter: none;
}

#video-intro {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0px);
    transition: filter 2.3s ease-in-out;
}

.transicion-video.desenfocando #video-intro {
    filter: blur(24px);
}

/* =========================================
   4. ESTILOS DE TÍTULOS Y TEXTOS FORMALES
   ========================================= */
.oculto {
    display: none !important;
}

.seccion-principal {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 6px 20px;
    scroll-margin-top: 20px;
}

#portada.seccion-principal {
    padding-top: 40px;
}

/* Acabado dorado de los títulos: degradado sutil (blanco -> crema -> dorado -> crema)
   recortado al texto. Se mantiene mayormente blanco/crema arriba para no perder
   legibilidad; el text-shadow sigue aplicando aunque el relleno sea transparente. */
.eyebrow-xv {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 3.1rem;
    line-height: 1.15;
    background: linear-gradient(180deg, #ffffff 0%, #fff6df 42%, #e6cd85 72%, #fff6df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), 0 0 22px rgba(162, 185, 247, 0.55);
    margin-bottom: 16px;
}

/* Títulos de sección: caligrafía Great Vibes (más grande porque su x-height es baja) */
.fecha-texto {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 2.7rem;
    line-height: 1.15;
    background: linear-gradient(180deg, #ffffff 0%, #fff6df 42%, #e6cd85 72%, #fff6df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(162, 185, 247, 0.5);
}

/* --- Fecha / hora / lugar: van directo sobre la tarjeta principal (sin caja anidada) --- */
/* Invitación en una sola línea, cursiva y en blanco hielo */
.acompananos-texto {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.3;
    color: #eaf6ff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 18px rgba(162, 185, 247, 0.5);
    margin: 40px 0 6px 0;
}

/* Contenedor del título de portada (ancla de las estrellitas) */
.titulo-portada {
    position: relative;
}

/* Estrellitas junto a las letras (reusan el estilo y parpadeo de .hero-destello) */
.titulo-destello--1 { top: 2px;  left: calc(50% - 150px); font-size: 15px; animation-delay: 0.4s; }
.titulo-destello--2 { top: -8px; left: calc(50% + 88px);  font-size: 11px; animation-delay: 1.5s; animation-duration: 2.7s; }
.titulo-destello--3 { top: 38px; left: calc(50% + 136px); font-size: 13px; animation-delay: 2.4s; animation-duration: 3.3s; }

/* Línea + destello dorado bajo los títulos con acabado dorado */
.eyebrow-xv::after,
.fecha-texto::after,
.titulo-canciones::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, var(--dorado-claro), transparent);
    box-shadow: 0 0 8px rgba(230, 205, 133, 0.75);
}

.fecha-principal {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    line-height: 1.15;
}

.fecha-dia {
    display: block;
    padding: 14px 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    --brillo-sombra: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 12px rgba(230, 205, 133, 0.4));
}

.fecha-anio {
    display: block;
    margin-top: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(255, 248, 230, 0.82);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}


/* Grid centrado con columna común: los íconos y los textos quedan alineados entre sí */
.detalles-evento {
    display: grid;
    justify-content: center;
    justify-items: start;
    gap: 14px;
}

.hora-texto,
.lugar-texto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.icono-detalle {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: var(--dorado-claro);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.falta-texto {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #f0f4fa;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3.5px;
}

/* "Nos vemos en" y "Programa": mismo dorado y brillo que su título, en un tono más claro por ser letra delgada */
#ubicacion .falta-texto,
#programa .falta-texto {
    --brillo-base: var(--dorado-texto-claro);
}

/* =========================================
   5. HERO (PORTADA): TEXTO + FOTO PRINCIPAL
   ========================================= */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.hero-cabecera,
.hero-contador {
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* Foto principal (la selfie): marco cuadrado -como el de la tarjeta de la cita-
   pero más elegante, con doble borde dorado (uno fino exterior, uno interior)
   y un brillo suave tipo escarcha (azul hielo + dorado) en el box-shadow. */
.hero-foto {
    flex: none;
    /* El alto lo da la foto (3:4); el ancho es un % de la tarjeta con tope */
    width: 70%;
    max-width: 280px;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    padding: 6px;
    background: linear-gradient(160deg, #3f5fc0, #24619f);
    box-shadow: 0 10px 26px rgba(31, 38, 135, 0.28),
                0 0 0 1px rgba(230, 205, 133, 0.35),
                0 0 22px rgba(191, 230, 251, 0.45),
                0 0 12px rgba(230, 205, 133, 0.35);
}

/* Borde dorado exterior, fino */
.hero-foto::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--dorado-claro) 0%, #fff6df 25%, var(--dorado-claro) 50%, #fff6df 75%, var(--dorado-claro) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Borde dorado interior, junto a la foto */
.hero-foto::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, #fff6df 0%, var(--dorado-claro) 35%, #fff6df 65%, var(--dorado) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(230, 205, 133, 0.5));
}

.hero-foto-interior {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
}

/* La foto es 9:16: en el marco 3:4 se recorta abajo, para que entren la flor, el rostro y el abanico */
.hero-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 92%;
    display: block;
}

/* Cristalitos de hielo en dos esquinas opuestas del marco */
.hero-foto-cristal {
    width: 14px;
    height: 28px;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(230, 205, 133, 0.6));
}

.hero-foto-cristal--tl { position: absolute; top: -13px;  left: -8px;  transform: rotate(-30deg); }
.hero-foto-cristal--br { position: absolute; bottom: -13px; right: -8px; transform: rotate(150deg); }

/* Par extra, un poco más chico, en las otras dos esquinas */
.hero-foto-cristal--tr,
.hero-foto-cristal--bl { width: 11px; height: 22px; }
.hero-foto-cristal--tr { position: absolute; top: -11px;    right: -6px; transform: rotate(30deg); }
.hero-foto-cristal--bl { position: absolute; bottom: -11px; left: -6px;  transform: rotate(-150deg); }

/* Halo azul hielo alrededor del marco: respira suavemente (solo opacidad) */
.hero-foto-halo {
    position: absolute;
    inset: -4px;
    border-radius: 23px;
    box-shadow: 0 0 26px 5px rgba(170, 225, 255, 0.5);
    pointer-events: none;
    animation: respirarHalo 5s ease-in-out infinite;
}

/* Reflejo diagonal de luz blanca: la máscara lo limita al anillo del marco
   (de -3px hasta el borde de la foto), así nunca pasa por encima del rostro */
.hero-foto-brillo {
    position: absolute;
    inset: -3px;
    padding: 9px;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

.hero-foto-brillo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 32%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: translateX(-160%) rotate(25deg);
    animation: reflejoMarco 5s ease-in-out infinite;
}

/* Destellos dorados de cuatro puntas, fuera de la foto, con parpadeo escalonado */
.hero-destello {
    position: absolute;
    line-height: 1;
    color: #f6e2a4;
    text-shadow: 0 0 6px rgba(240, 210, 130, 0.95), 0 0 12px rgba(255, 246, 223, 0.6);
    pointer-events: none;
    opacity: 0.85;
    animation: titilar 3s ease-in-out infinite;
}

.hero-destello--1 { top: -27px;   left: 16px;  font-size: 19px; animation-delay: 0s; }
.hero-destello--2 { top: -21px;   left: 64%;   font-size: 13px; animation-delay: 1.1s; animation-duration: 2.6s; }
.hero-destello--3 { top: 16px;    right: -25px; font-size: 16px; animation-delay: 0.5s; animation-duration: 3.4s; }
.hero-destello--4 { top: 60%;     right: -21px; font-size: 12px; animation-delay: 1.8s; }
.hero-destello--5 { bottom: -27px; right: 18px; font-size: 19px; animation-delay: 0.8s; animation-duration: 3.6s; }
.hero-destello--6 { bottom: 26px; left: -24px;  font-size: 15px; animation-delay: 2.3s; animation-duration: 2.8s; }

/* Motas de luz dorada y blanca que suben junto al borde y se desvanecen */
.hero-mota {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f6e2a4;
    box-shadow: 0 0 6px 1px rgba(240, 210, 130, 0.85);
    pointer-events: none;
    opacity: 0.7;
    animation: flotarMota 5s ease-in-out infinite;
}

.hero-mota--2,
.hero-mota--5 {
    background: #ffffff;
    box-shadow: 0 0 6px 1px rgba(220, 240, 255, 0.9);
}

.hero-mota--1 { top: 32%;    left: -13px;  animation-delay: 0s; }
.hero-mota--2 { top: 20%;    right: -12px; animation-delay: 1.6s; animation-duration: 6s; }
.hero-mota--3 { bottom: -14px; left: 38%;  animation-delay: 3s;   width: 3px; height: 3px; }
.hero-mota--4 { bottom: 30%; right: -14px; animation-delay: 2.2s; animation-duration: 4.4s; width: 3px; height: 3px; }
.hero-mota--5 { bottom: 12%; left: -15px;  animation-delay: 4s;   animation-duration: 5.6s; }

@keyframes respirarHalo {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

@keyframes reflejoMarco {
    0%        { transform: translateX(-160%) rotate(25deg); }
    32%, 100% { transform: translateX(420%) rotate(25deg); }
}

@keyframes titilar {
    0%, 100% { opacity: 0.3; transform: scale(0.7); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

@keyframes flotarMota {
    0%   { opacity: 0;   transform: translateY(6px) scale(0.6); }
    30%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translateY(-20px) scale(1); }
}

.foto-placeholder-texto {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    padding: 10px;
    line-height: 1.5;
}

.foto-placeholder-texto small {
    font-weight: 400;
    opacity: 1;
    font-size: 0.65rem;
}

.hero-foto.sin-foto .foto-placeholder-texto,
.marco-foto.sin-foto .foto-placeholder-texto {
    display: flex;
}

/* =========================================
   6. BOTONES Y CONTADOR
   ========================================= */
.btn-accion {
    /* Sin transform/filter/backdrop-filter aquí: crearían un contexto de apilamiento
       y el fondo de cristal (::before, z-index -1) taparía el texto dorado */
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 8px;
    /* Texto con el degradado dorado de los títulos */
    background: var(--dorado-texto-claro);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Fondo de cristal con tinte morado, como las tarjetas */
/* Ángulo animable de la luz del borde (sin @property, el borde queda dorado fijo) */
@property --angulo {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Borde dorado fino; encima, una luz dorada y blanca (conic-gradient) que recorre el contorno.
   La máscara deja visible solo el anillo del borde, sin tocar el cristal del interior. */
.btn-accion::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, #f6e3a6 0%, #d9ad4f 30%, #fff1c4 50%, #c8a13a 72%, #f0d58c 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.85;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Solo con @property (clase puesta por script.js): la luz gira por el borde */
.con-property .btn-accion::before {
    background:
        conic-gradient(from var(--angulo), transparent 0deg 250deg, rgba(240, 200, 100, 0.9) 300deg, #ffffff 330deg, rgba(240, 200, 100, 0.9) 345deg, transparent 360deg),
        linear-gradient(135deg, #f6e3a6 0%, #d9ad4f 30%, #fff1c4 50%, #c8a13a 72%, #f0d58c 100%);
    animation: girarBorde 4.5s linear infinite;
}

#btn-como-llegar::before     { animation-delay: 0s; }
#btn-enviar-rsvp::before     { animation-delay: -1.2s; }
#btn-enviar-cancion::before  { animation-delay: -2.3s; }
#btn-ver-album::before       { animation-delay: -3.4s; }

@keyframes girarBorde {
    to { --angulo: 360deg; }
}

/* Fondo de cristal con tinte morado, como las tarjetas (debajo del borde) */
.btn-accion::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background: linear-gradient(165deg, rgba(90, 70, 190, 0.38) 0%, rgba(40, 26, 120, 0.5) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 0 12px rgba(230, 205, 133, 0.3),
                0 6px 16px rgba(20, 15, 70, 0.3),
                inset 0 0 0 rgba(240, 215, 145, 0);
    transition: box-shadow 0.35s ease;
}

/* Hover/active: destello dorado suave dentro del cristal y borde más brillante
   (la aceleración de la luz la hace script.js con playbackRate, sin saltos) */
.btn-accion:hover::after,
.btn-accion:active::after {
    box-shadow: 0 0 22px rgba(240, 215, 145, 0.55),
                0 6px 16px rgba(20, 15, 70, 0.3),
                inset 0 0 22px rgba(240, 215, 145, 0.35);
}

.btn-accion:hover::before,
.btn-accion:active::before {
    opacity: 1;
}

.btn-accion:disabled {
    cursor: default;
    opacity: 0.7;
}

.botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.botones-apiladas {
    flex-direction: column;
    flex-wrap: nowrap;
}

.btn-accion--ancho {
    width: 100%;
    border-radius: 14px;
}

.contador-linea {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 14px 0;
}

.falta-texto-inline {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.falta-texto-arriba {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #f0f4fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 14px;
}

.tiempo {
    position: relative;
    background: linear-gradient(165deg,
                rgba(70, 84, 190, 0.55) 0%,
                rgba(30, 40, 140, 0.60) 50%,
                rgba(16, 22, 92, 0.70) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-top: 2px solid var(--dorado-claro);
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    text-shadow: none;
    /* Profundidad: sombra exterior + brillo superior + sombra interior inferior */
    box-shadow: 0 10px 22px rgba(10, 15, 70, 0.45),
                0 2px 4px rgba(10, 15, 70, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.55),
                inset 0 -10px 16px rgba(20, 25, 110, 0.3);
}

.tiempo::before {
    content: '\2726';
    font-size: 0.55rem;
    color: var(--dorado-claro);
    text-shadow: 0 0 6px rgba(230, 205, 133, 0.9);
    line-height: 1;
}

.tiempo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: none;
}

.tiempo p {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #f3f6ff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 40, 0.45);
}

.dos-puntos {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff3c9;
    text-shadow: 0 0 8px rgba(230, 205, 133, 0.6), 0 1px 3px rgba(0, 0, 40, 0.5);
    line-height: 1;
    padding-top: 15px;
}

/* Álbum y confirmación ya no llevan etiqueta arriba del título: menos aire superior */
#album .glass-card,
#confirmacion .glass-card {
    padding-top: 36px;
}

.mapa-contenedor {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin: 15px 0 20px 0;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* =========================================
   REPRODUCTOR DE MÚSICA
   ========================================= */
.reproductor-card {
    padding: 35px 28px;
}

.texto-reproductor {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    color: #f3f6ff;
    margin-bottom: 16px;
}

.texto-pausa {
    margin-top: 16px;
    margin-bottom: 0;
}

.barra-progreso {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 6px auto 28px auto;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.14);
}

.progreso-relleno {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7ad2f4 0%, #a2b9f7 55%, var(--dorado-claro) 100%);
    box-shadow: 0 0 10px rgba(122, 210, 244, 0.75);
    transition: width 0.2s linear;
}

/* Indicador (thumb): va pegado al final del relleno, se mueve solo con el width */
.progreso-relleno::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -9px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e4f6ff 55%, #a9dcf5 100%);
    border: 2px solid var(--dorado-claro);
    box-shadow: 0 0 0 4px rgba(122, 210, 244, 0.25),
                0 0 14px rgba(122, 210, 244, 0.85),
                0 2px 6px rgba(0, 0, 0, 0.35);
}

.controles-musica {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.btn-corazon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(160deg, #2f86c4 0%, #1f5d9c 100%);
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(59, 155, 211, 0.4);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-corazon:hover {
    transform: scale(1.08);
}

.btn-corazon.sonando {
    animation: latido 1s infinite ease-in-out;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =========================================
   FOTO SECUNDARIA + CITA (efecto polaroid)
   ========================================= */
.cita-card {
    padding: 45px 28px 35px 28px;
}

.marco-foto {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 10px auto 30px auto;
}

.marco-foto-interior {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.25);
    background: linear-gradient(160deg, #3f5fc0, #24619f);
    z-index: 2;
}

.marco-foto-interior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* imagen1.png es casi cuadrada (605x598): con el marco cuadrado casi no recorta nada */
    object-position: center center;
    display: block;
}

.marco-linea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--dorado);
    border-radius: 6px;
    z-index: 1;
    /* Brillo dorado suave por fuera y por dentro de la línea */
    box-shadow: 0 0 6px rgba(230, 205, 133, 0.55),
                inset 0 0 4px rgba(230, 205, 133, 0.3);
}

.marco-linea-1 {
    transform: rotate(-8deg) translate(-8px, 8px);
}

.marco-linea-2 {
    transform: rotate(6deg) translate(8px, -8px);
}

/* Luz que recorre despacio cada línea inclinada: la máscara deja visible solo el
   trazo de la línea y una franja clara la cruza (solo transform) */
.marco-linea-luz {
    position: absolute;
    inset: -1.5px;
    padding: 1.5px;
    border-radius: 6px;
    overflow: hidden;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.marco-linea-luz::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, transparent, #fffaf0, transparent);
    transform: translateX(-160%) rotate(25deg);
    animation: luzLineaCita 7s ease-in-out infinite;
}

.marco-linea-2 .marco-linea-luz::before {
    animation-delay: 3.5s;
}

@keyframes luzLineaCita {
    0%        { transform: translateX(-160%) rotate(25deg); }
    60%, 100% { transform: translateX(420%) rotate(25deg); }
}

/* Halo azul hielo alrededor de la foto (detrás de ella), respirando */
.marco-foto-halo {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 0 22px 4px rgba(170, 225, 255, 0.5);
    z-index: 1;
    pointer-events: none;
    animation: respirarHalo 5s ease-in-out infinite;
    animation-delay: -2s;
}

/* Reflejo diagonal de luz blanca que cruza la foto de vez en cuando (rápido y tenue) */
.marco-foto-reflejo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.marco-foto-reflejo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 35%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-160%) rotate(25deg);
    animation: reflejoFotoCita 9s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes reflejoFotoCita {
    0%        { transform: translateX(-160%) rotate(25deg); }
    16%, 100% { transform: translateX(420%) rotate(25deg); }
}

/* Cristales de hielo en dos esquinas opuestas (las que no tienen racimo en la tarjeta) */
.cita-cristal {
    position: absolute;
    width: 10px;
    height: 20px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(230, 205, 133, 0.6));
}

.cita-cristal--tr { top: -16px;   right: -14px; transform: rotate(35deg); }
.cita-cristal--bl { bottom: -16px; left: -14px; transform: rotate(-145deg); }

/* Destellos ✦ en las esquinas de las líneas inclinadas y a lo largo de ellas
   (coordenadas calculadas sobre el marco de 160px; margen negativo = centrar) */
.cita-destello {
    position: absolute;
    z-index: 3;
    line-height: 1;
    margin: -0.5em 0 0 -0.5em;
    color: #f6e2a4;
    text-shadow: 0 0 6px rgba(240, 210, 130, 0.95), 0 0 12px rgba(255, 246, 223, 0.6);
    pointer-events: none;
    opacity: 0.85;
    animation: titilar 3.2s ease-in-out infinite;
}

.cita-destello--1 { left: -17px; top: 21px;  font-size: 15px; animation-delay: 0.3s; }
.cita-destello--2 { left: 97px;  top: -9px;  font-size: 10px; animation-delay: 1.4s; animation-duration: 2.6s; }
.cita-destello--3 { left: -9px;  top: 100px; font-size: 10px; animation-delay: 2.2s; animation-duration: 3.6s; }
.cita-destello--4 { left: 171px; top: 82px;  font-size: 11px; animation-delay: 0.9s; }
.cita-destello--5 { left: 10px;  top: 186px; font-size: 13px; animation-delay: 1.8s; animation-duration: 2.9s; }
.cita-destello--6 { left: 170px; top: 166px; font-size: 12px; animation-delay: 2.7s; animation-duration: 3.4s; }

/* Motas de luz dorada y blanca junto a los bordes */
.cita-mota {
    position: absolute;
    z-index: 3;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f6e2a4;
    box-shadow: 0 0 6px 1px rgba(240, 210, 130, 0.85);
    pointer-events: none;
    opacity: 0.7;
    animation: flotarMota 5.5s ease-in-out infinite;
}

.cita-mota--2,
.cita-mota--4 {
    background: #ffffff;
    box-shadow: 0 0 6px 1px rgba(220, 240, 255, 0.9);
}

.cita-mota--1 { left: -16px; top: 58px;   animation-delay: 0.5s; }
.cita-mota--2 { left: 44px;  top: -18px;  animation-delay: 2s;   animation-duration: 6s; }
.cita-mota--3 { right: -18px; top: 122px; animation-delay: 3.4s; animation-duration: 4.8s; }
.cita-mota--4 { left: 120px; bottom: -20px; animation-delay: 1.2s; }

.foto-placeholder-texto.pequena {
    font-size: 0.7rem;
}

.texto-cita {
    --cita-lh: 1.7;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.55rem;
    line-height: var(--cita-lh);
    letter-spacing: 0.4px;
    /* Degradado dorado claro del título, repetido en cada renglón (alto = line-height) */
    background: var(--dorado-texto-claro) 0 0 / 100% calc(var(--cita-lh) * 1em) repeat-y;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    /* Solo una sombra suave para el contraste, sin halo */
    filter: drop-shadow(0 1px 2px rgba(10, 10, 50, 0.65));
    max-width: 440px;
    margin: 0 auto;
}

/* =========================================
   PROGRAMA / ITINERARIO (línea de tiempo)
   ========================================= */
.programa-card {
    --tl-punto: 13px;   /* tamaño de la gema */
    --tl-eje: 9px;      /* móvil: posición de la línea dentro de la lista */
    --tl-sangria: 32px; /* móvil: de dónde arranca el texto de cada evento */
    --tl-separacion: 26px; /* aire entre un evento y el siguiente */
    --tl-punto-y: 0.56rem; /* centro del renglón de la hora: ahí va la gema */
    padding: 45px 28px 42px 28px;
}

.programa-card .fecha-texto {
    margin-bottom: 0;
}

.programa-card .fecha-texto::after {
    content: none;
}

/* Divisor dorado liso (programa y portada): se desvanece en las puntas */
.adorno-nieve,
.adorno-fecha {
    width: min(220px, 70%);
    height: 2px;
    margin: 20px auto 34px auto;
    background: linear-gradient(90deg, transparent 0%, var(--dorado-claro) 25%, #fff6df 50%, var(--dorado-claro) 75%, transparent 100%);
    filter: drop-shadow(0 0 5px rgba(230, 205, 133, 0.75));
}

.adorno-fecha {
    margin: 20px auto 18px auto;
}

/* Móvil (base): línea a la izquierda y cada evento suelto junto a ella */
.timeline {
    position: relative;
    list-style: none;
    max-width: 520px;
    margin: 0 auto;
    padding-left: var(--tl-sangria);
}

/* Línea central plateada, como un carámbano: blanco hielo -> plata azulada,
   desvanecida en los extremos y con brillo frío (drop-shadow sigue la forma desvanecida) */
.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--tl-eje);
    width: 2px;
    transform: translateX(-50%);
    pointer-events: none;
}

.timeline::before {
    background: linear-gradient(180deg,
                transparent 0%,
                rgba(240, 248, 255, 0.9) 9%,
                #b9c8de 35%,
                #dfeaf7 60%,
                #aebfd8 82%,
                rgba(240, 248, 255, 0.85) 91%,
                transparent 100%);
    filter: drop-shadow(0 0 4px rgba(170, 225, 255, 0.8)) drop-shadow(0 0 10px rgba(150, 210, 255, 0.4));
}

/* Reflejo claro que recorre la línea muy despacio de arriba a abajo */
.timeline::after {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent) no-repeat;
    background-size: 100% 18%;
    background-position: 0 -25%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    animation: reflejoLinea 9s ease-in-out infinite;
}

@keyframes reflejoLinea {
    0%        { background-position: 0 -25%; }
    70%, 100% { background-position: 0 125%; }
}

.timeline-item {
    position: relative;
}

.timeline-item + .timeline-item {
    margin-top: var(--tl-separacion);
}

.timeline-contenido {
    text-align: left;
}

.timeline-textos {
    min-width: 0;
}

.timeline-hora {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.4;
    color: #f0d58c;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(30, 10, 70, 0.85), 0 0 10px rgba(40, 15, 95, 0.6);
}

.timeline-evento {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #eef7ff;
    letter-spacing: 0.3px;
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(30, 10, 70, 0.85), 0 0 12px rgba(40, 15, 95, 0.6);
}

/* Punto de la línea: gema dorada (rombo) con borde brillante, halo y pulso sutil */
.timeline-punto {
    position: absolute;
    top: var(--tl-punto-y);
    left: calc(var(--tl-eje) - var(--tl-sangria));
    width: var(--tl-punto);
    height: var(--tl-punto);
    border-radius: 3px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: linear-gradient(135deg, #fffbe8 0%, #f6dc93 35%, #d4a843 70%, #9c7424 100%);
    border: 1.5px solid #fff3cf;
    box-shadow: 0 0 0 3px rgba(230, 205, 133, 0.18),
                0 0 10px rgba(240, 210, 130, 0.75);
    z-index: 1;
}

.timeline-punto::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 4px;
    box-shadow: 0 0 12px 3px rgba(255, 228, 150, 0.7);
    opacity: 0;
    animation: pulsoGema 3.4s ease-in-out infinite;
}

@keyframes pulsoGema {
    0%, 100% { opacity: 0; }
    50%      { opacity: 0.7; }
}

/* Cristalito de hielo sobre la línea, entre un evento y el anterior */
.timeline-cristal {
    position: absolute;
    top: -22px;
    left: calc(var(--tl-eje) - var(--tl-sangria));
    width: 8px;
    height: 16px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Aparición al hacer scroll (la clase la agrega script.js solo si hay
   IntersectionObserver y no se pidió movimiento reducido) */
.timeline--animada .timeline-contenido {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--retraso, 0s);
}

.timeline--animada .timeline-punto {
    opacity: 0.3;
    filter: grayscale(0.6) brightness(0.7);
    transform: translate(-50%, -50%) rotate(45deg) scale(0.6);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    transition-delay: calc(var(--retraso, 0s) + 0.35s);
}

.timeline--animada .timeline-item.visible .timeline-contenido {
    opacity: 1;
    transform: none;
}

.timeline--animada .timeline-item.visible .timeline-punto {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Escritorio: zigzag con la línea al centro y eventos alternando lados */
@media (min-width: 640px) {
    .programa-card {
        --tl-lado: 28px;  /* aire entre la línea y el texto de cada evento */
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before,
    .timeline::after {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
    }

    /* Lados alternos: sin recuadros, cada evento necesita su propio aire vertical */
    .timeline-item + .timeline-item {
        margin-top: 12px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: var(--tl-lado);
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: var(--tl-lado);
    }

    .timeline-item:nth-child(odd) .timeline-contenido {
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-punto,
    .timeline-item:nth-child(odd) .timeline-cristal {
        left: 100%;
    }

    .timeline-item:nth-child(even) .timeline-punto,
    .timeline-item:nth-child(even) .timeline-cristal {
        left: 0;
    }

    .timeline-cristal {
        top: -19px;
    }

    .timeline--animada .timeline-item:nth-child(odd) .timeline-contenido {
        transform: translate(-14px, 10px);
    }

    .timeline--animada .timeline-item:nth-child(even) .timeline-contenido {
        transform: translate(14px, 10px);
    }

    .timeline--animada .timeline-item.visible .timeline-contenido {
        transform: none;
    }
}

/* =========================================
   FORMULARIO DE SUGERENCIA DE CANCIONES
   ========================================= */
.form-canciones {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-top: 10px;
}

.campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.campo-formulario label {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.campo-formulario input {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(12, 18, 78, 0.55);
    color: #ffffff;
    outline: none;
    transition: border 0.2s ease, background 0.2s ease;
}

.campo-formulario input::placeholder {
    color: rgba(243, 246, 255, 0.78);
}

.campo-formulario input:focus {
    border-color: #7ad2f4;
    background: rgba(12, 18, 78, 0.7);
}

#btn-enviar-cancion,
#btn-enviar-rsvp {
    align-self: center;
    margin-top: 6px;
}

/* Opciones Sí/No de asistencia (RSVP) */
.opciones-asistencia {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.opcion-radio {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(12, 18, 78, 0.55);
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease;
}

.opcion-radio:has(input:checked) {
    border-color: #7ad2f4;
    background: rgba(12, 18, 78, 0.75);
}

.opcion-radio input {
    accent-color: #7ad2f4;
    width: 16px;
    height: 16px;
    flex: none;
}

.confirmacion-envio {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(12, 18, 78, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 20px rgba(10, 15, 70, 0.3);
    animation: aparecer 0.4s ease;
}

.confirmacion-envio p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #ffffff;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mensaje-evento {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 2.2rem;
    color: #ffffff;
    margin: 10px 0 25px 0;
    line-height: 1.4;
}

.sugerencias-canciones {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.titulo-canciones {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    background: linear-gradient(180deg, #ffffff 0%, #fff6df 42%, #e6cd85 72%, #fff6df 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(162, 185, 247, 0.5);
}

.subtexto-canciones {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #f3f6ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-style: italic;
}

/* =========================================
   REFLEJO DORADO COMPARTIDO (.brillo-dorado)
   Franja diagonal blanca con bordes dorados que cruza las letras: es una segunda
   capa de fondo (encima del degradado dorado) recortada al texto y desplazada con
   background-position. Va aquí, después de los títulos, para ganar por orden.
   - text-shadow se anula: con relleno transparente se pinta ENCIMA del fondo y tapaba
     la franja; el brillo pasa a filter: drop-shadow, que queda detrás de las letras.
   - width: fit-content hace que la franja mida en proporción al texto (más ancha en
     títulos largos, más angosta en los cortos) y no al ancho de la tarjeta.
   - Solo anima con .visible (la pone script.js al entrar en pantalla).
   ========================================= */
.brillo-dorado {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-image:
        linear-gradient(105deg, transparent 39%, #e8b545 43%, #ffffff 46.5%, #ffffff 53.5%, #e8b545 57%, transparent 61%),
        var(--brillo-base, var(--dorado-texto));
    background-size: 300% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: var(--brillo-sombra, drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(162, 185, 247, 0.5)));
}

/* 5s por ciclo: cruza en ~1.6s y pausa ~3.4s (mismo ritmo que el reflejo del marco) */
.brillo-dorado.visible {
    animation: reflejoDorado 5s ease-in-out infinite;
    animation-delay: var(--brillo-retraso, 0s);
}

@keyframes reflejoDorado {
    0%        { background-position: 100% 0, 0 0; }
    32%, 100% { background-position: 0% 0, 0 0; }
}

/* Desfase propio de cada título */
#portada .eyebrow-xv             { --brillo-retraso: 0s; }
.fecha-dia                       { --brillo-retraso: 1.3s; }
#ubicacion .falta-texto          { --brillo-retraso: 0.2s; }
#ubicacion .fecha-texto          { --brillo-retraso: 0.7s; }
#programa .falta-texto           { --brillo-retraso: 0.4s; }
#programa .fecha-texto           { --brillo-retraso: 0.9s; }
#confirmacion .titulo-canciones  { --brillo-retraso: 0.5s; }
#canciones .titulo-canciones     { --brillo-retraso: 1.1s; }
#album .fecha-texto              { --brillo-retraso: 0.3s; }

/* =========================================
   DECORACIÓN INVERNAL: CARÁMBANOS Y CRISTALES
   (SVG + CSS, sin imágenes; las formas viven en <svg class="hielo-defs"> del HTML)
   ========================================= */
.hielo-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Racimos de cristales en las esquinas (bases en el vértice, puntas hacia adentro).
   Solo se usan tl/br (tarjetas de "cita" y "programa", vía .cristal-esquina--sm). */
.cristal-esquina {
    position: absolute;
    width: 90px;
    height: 90px;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 5px rgba(150, 220, 255, 0.6));
    animation: brilloHielo 6.5s ease-in-out infinite;
}

.cristal-esquina--tl { top: -6px;    left: -6px; }
.cristal-esquina--br { bottom: -6px; right: -6px;  transform: scale(-1, -1); animation-delay: -4.8s; }

/* Versión chica para tarjetas secundarias (solo 2 esquinas opuestas, discreta) */
.cristal-esquina--sm { width: 56px; height: 56px; }
.cristal-esquina--sm.cristal-esquina--tl { top: -4px; left: -4px; }
.cristal-esquina--sm.cristal-esquina--br { bottom: -4px; right: -4px; transform: scale(-1, -1); animation-delay: -3.5s; }

/* Cristal pequeño que flanquea los adornos de divisor */
.cristal-mini {
    width: 9px;
    height: 18px;
    flex: none;
    filter: drop-shadow(0 0 4px rgba(150, 220, 255, 0.75));
}

@keyframes brilloHielo {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cristal-esquina,
    .btn-play,
    .hero-foto-halo,
    .hero-foto-brillo::before,
    .timeline::after,
    .brillo-dorado.visible,
    .btn-accion::before,
    .con-property .btn-play::after,
    .play-reflejo::before,
    .marco-linea-luz::before,
    .marco-foto-halo,
    .marco-foto-reflejo::before,
    .cita-destello,
    .cita-mota,
    .con-property .btn-accion::before,
    .hero-destello,
    .hero-mota,
    .timeline-punto::after {
        animation: none;
    }
}

/* Responsivo Celulares */
@media (max-width: 480px) {
    .glass-card { padding: 30px 15px; }
    .eyebrow-xv { font-size: 2.7rem; }
    .titulo-destello--1 { left: calc(50% - 132px); }
    .titulo-destello--2 { left: calc(50% + 76px); }
    .titulo-destello--3 { top: 32px; left: calc(50% + 118px); }
    .contenedor-play .eyebrow-xv { font-size: 3.2rem; }
    .fecha-texto { font-size: 2.2rem; }
    .acompananos-texto { font-size: 1.3rem; margin-top: 34px; }
    .fecha-dia { font-size: 2.15rem; }
    .fecha-anio { letter-spacing: 2.5px; }
    .hora-texto, .lugar-texto { font-size: 1.25rem; }
    .texto-cita { font-size: 1.35rem; }
    #album .glass-card, #confirmacion .glass-card { padding-top: 24px; }
    .titulo-canciones { font-size: 2rem; }
    .tiempo { min-width: 54px; padding: 10px 4px 8px; }
    .tiempo span { font-size: 23px; }
    .dos-puntos { font-size: 1.1rem; padding-top: 13px; }
    .play-wrap { width: 90px; height: 90px; }
    .btn-play { width: 90px; height: 90px; }
    .icono-play { width: 26px; height: 26px; }
    .img-corona { width: 58px; }
    .hero-foto { width: 72%; }
    .programa-card { padding: 34px 15px 34px 15px; }
    .programa-card { --tl-sangria: 30px; --tl-separacion: 24px; --tl-punto-y: 0.53rem; }
    .timeline-hora { font-size: 0.76rem; letter-spacing: 1px; }
    .timeline-evento { font-size: 1.15rem; }
}
