/* ==================== Variables ==================== */
:root {
    --color-primary: #1f1f1f;
    --color-secondary: #4a4a4a;
    --color-accent: #000000;
    --color-white: #ffffff;
    --color-cream: #faf9f6;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #d4d4d4;

    --font-primary: 'Cormorant Infant', serif;
    --font-secondary: 'Poppins', sans-serif;

    --transition: all 0.3s ease;
}

/* ==================== Animación de Invitación ==================== */
.invitation-wrapper {
    position: fixed;
    inset: 0;        /* ancla arriba y abajo: cubre todo el viewport sin depender de vh/dvh */
    width: 100%;
    height: auto;    /* la altura la definen top:0 + bottom:0 (inset) */
    min-height: 100dvh; /* refuerzo en iPhone con la barra de Safari */
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.8s ease, visibility 1.8s ease;
}

.invitation-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* La última carta se acerca suavemente mientras se disuelve sobre la invitación */
.invitation-wrapper.hidden .carta-img.active {
    transform: scale(1.06);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

/* Al ocultar el sobre, ninguna carta debe interceptar clics (aunque sea invisible),
   o bloquearía el botón de música, WhatsApp, el menú, etc. */
.invitation-wrapper.hidden .carta-img,
.invitation-wrapper.hidden .carta-img.active {
    pointer-events: none;
}

.invitation-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Imágenes de la carta (1.png, 2.png, 3.png) a pantalla completa con crossfade */
.carta-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 2.6s ease-in-out, transform 2.6s ease-in-out;
}

.carta-img.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Imagen 1: detalle del sello con zoom lento y, al salir, "empuje" hacia adentro */
.carta-1 {
    transform: scale(1.22);
}
.carta-1.active {
    animation: acercarCarta 13s ease-out forwards;
}
@keyframes acercarCarta {
    from { transform: scale(1); }
    to   { transform: scale(1.18); }
}

/* Imagen 2: el sobre completo entra "alejándose" (cámara que retrocede del detalle) */
.carta-2 {
    transform: scale(1.1);
}
.carta-2.active {
    transform: scale(1);
}

/* Imágenes 4 y 5: desvanecido limpio y más rápido, cada una sustituye a la anterior */
.carta-4.active,
.carta-5.active {
    transition: opacity 0.7s ease-in-out;
}

/* Imagen 3: foto de los novios -> desvanecido suave con leve acercamiento */
.carta-3 {
    transform: scale(1.05);
}
.carta-3.active {
    transform: scale(1);
    transition: opacity 2.8s ease-in-out, transform 4s ease;
}

.carta-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Degradado para dar legibilidad al texto sobre la foto */
.carta-3-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Texto "Nos Casamos" sobre la foto */
.carta-3-caption {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.1s ease 0.5s, transform 1.1s ease 0.5s;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}
.carta-3.active .carta-3-caption {
    opacity: 1;
    transform: translateY(0);
}

.carta-3-sub {
    display: block;
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 5vw, 2.6rem);
    letter-spacing: 2px;
    margin-bottom: 0.1em;
}
.carta-3-title {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(3rem, 13vw, 6rem);
    line-height: 1.02;
    letter-spacing: 6px;
    text-transform: uppercase;
}

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

/* Estilos responsive para la invitación */
/* Las imágenes de la carta ocupan toda la pantalla con object-fit: cover,
   por lo que no requieren ajustes responsive adicionales. */

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navegación ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Al hacer scroll hacia el contenido, el header se vuelve sólido y legible */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    /* Oculto mientras se ve el video; aparece al hacer scroll (header sólido) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    visibility: visible;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.25s ease, width 0.4s ease, background 0.4s ease;
}

/* La línea central un poco más corta y centrada: detalle elegante */
.menu-toggle span:nth-child(2) {
    width: 18px;
}

.navbar.scrolled .menu-toggle span {
    background: var(--color-primary);
}

/* Al abrir: se forma una X limpia */
.menu-toggle.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-toggle.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 26px; }

/* Con el menú abierto, las líneas se ven oscuras sobre el panel claro */
.menu-toggle.abierto span { background: var(--color-primary); }

/* El logo destaca sobre el video y se normaliza al hacer scroll */
.logo-image {
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}
.navbar.scrolled .logo-image {
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
    position: relative;
}

/* Con el header sólido, los enlaces pasan a negro */
.navbar.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.navbar.scrolled .nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/anillo&jl.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

/* Video de fondo del hero (sustituye a la imagen anillo&jl al reproducirse) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* En el inicio, el texto va abajo: degradado que oscurece solo la parte
   inferior y deja el video nítido y protagonista en el resto. */
.hero .hero-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 30%,
        rgba(0, 0, 0, 0.1) 55%,
        rgba(0, 0, 0, 0) 80%
    );
}

/* Sombra sutil para que el texto resalte sin necesidad de oscurecer el video */
.hero .hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    /* Oculto al inicio: aparece unos segundos después de arrancar el video */
    opacity: 0;
    animation: none;
    transition: opacity 1.6s ease;
}

.hero.mostrar-texto .hero-content {
    opacity: 1;
}

/* Nombres en la parte superior del video (debajo del menú) */
.hero-topname {
    position: absolute;
    top: 9vh;
    left: 0;
    width: 100%;
    text-align: center;
}

.hero-topname .names {
    margin-bottom: 0;
}

/* Monograma (Boda Religiosa + iniciales) centrado en la pantalla */
.hero-monogram {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
}

.hero-occasion {
    margin-bottom: 12px;
}

/* Nombres debajo de las iniciales, dentro del monograma */
.hero-monogram .names {
    margin: 8px 0 0;
}

/* Nombres, contador y fecha agrupados en la parte inferior */
.hero-details {
    position: absolute;
    left: 0;
    bottom: 16vh;
    width: 100%;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.initials-container {
    font-size: 80px;
    font-family: var(--font-primary);
    font-weight: 300;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.initial {
    font-weight: 600;
}

.ampersand {
    font-size: 60px;
    font-weight: 300;
}

.names {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.countdown-container {
    margin: 24px 0 0;
}

.countdown {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.countdown-value {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.wedding-date {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: opacity 0.6s ease;
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}

.scroll-text {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 34px;
    line-height: 1;
    animation: bounce 2s infinite;
}

/* ==================== Secciones Generales ==================== */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* ==================== Nuestros Padrinos / Padres (pantalla completa) ==================== */
.padrinos-section {
    padding: 0;
    background: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

.padrinos-container {
    width: 100%;
    height: 100vh;
    padding: 0;
}

.padrinos-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* En escritorio (pantallas anchas) mostramos la imagen completa para no
   recortar los nombres; se centra sobre el fondo crema a lo alto de la pantalla. */
@media (min-width: 768px) {
    .padrinos-image {
        object-fit: contain;
    }
}

/* ==================== Contador "Solo faltan" ==================== */
.countdown-final-section {
    background: var(--color-cream);
    text-align: center;
}

.countdown-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 20px;
}

.countdown-final-value {
    font-family: var(--font-primary);
    font-size: 90px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary);
}

.countdown-final-label {
    font-family: var(--font-secondary);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: 6px;
}

.countdown-final-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-style: italic;
    color: var(--color-text);
    max-width: 480px;
    margin: 0 auto;
}

/* ==================== Hospedaje Sugerido ==================== */
.hoteles-section {
    background: var(--color-cream);
    text-align: center;
}

.hoteles-subtitle {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hoteles-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hotel-card {
    display: block;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.hotel-card:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hotel-logo {
    width: 170px;
    max-width: 42vw;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ==================== Clima ==================== */
.clima-section {
    background: var(--color-white);
    text-align: center;
}

.clima-lugar {
    font-family: var(--font-secondary);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0 auto 36px;
}

.clima-dias {
    display: flex;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* espacio para que el hover no se recorte contra el borde del carrusel */
    padding: 8px 4px 14px;
    scroll-padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.clima-dias::-webkit-scrollbar {
    display: none;
}

.clima-estado {
    flex: 1 1 100%;
    font-family: var(--font-secondary);
    font-size: 15px;
    color: var(--color-text-light);
    padding: 24px 0;
}

.clima-dia {
    flex: 0 0 auto;
    width: 132px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    transition: var(--transition);
}

.clima-dia:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.clima-dia.clima-hoy {
    border-color: var(--color-primary);
    background: var(--color-cream);
}

.clima-dia-nombre {
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.clima-dia-fecha {
    font-family: var(--font-secondary);
    font-size: 11px;
    color: var(--color-text-light);
}

.clima-icono {
    width: 42px;
    height: 42px;
    margin: 6px 0 2px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clima-desc {
    font-family: var(--font-secondary);
    font-size: 11px;
    line-height: 1.35;
    color: var(--color-text-light);
    min-height: 2.7em;
}

.clima-temps {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.clima-temps .clima-min {
    font-size: 16px;
    color: var(--color-text-light);
}

.clima-lluvia {
    font-family: var(--font-secondary);
    font-size: 10.5px;
    letter-spacing: 0.4px;
    color: var(--color-text-light);
}

.clima-fuente {
    font-family: var(--font-secondary);
    font-size: 11px;
    letter-spacing: 0.6px;
    color: var(--color-text-light);
    margin-top: 24px;
}

@media (max-width: 768px) {
    .clima-dias {
        gap: 10px;
    }

    .clima-dia {
        width: 118px;
        padding: 16px 6px 14px;
    }

    .clima-icono {
        width: 36px;
        height: 36px;
    }

    .clima-temps {
        font-size: 20px;
    }
}

/* ==================== Mesa de Regalos ==================== */
.regalos-section {
    background: var(--color-cream);
    text-align: center;
}

.regalos-subtitle {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.regalos-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.regalos-link:hover {
    transform: scale(1.05);
}

.regalos-image {
    width: 220px;
    max-width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.regalos-evento {
    font-family: var(--font-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-top: 20px;
}

/* ==================== Llamado a Confirmar ==================== */
.confirm-cta {
    padding: 60px 20px 10px;
    text-align: center;
    background: var(--color-cream);
}

.confirm-cta-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.confirm-cta-arrow {
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    text-decoration: none;
    color: var(--color-primary);
    animation: bounce 2s infinite;
    transition: color 0.3s ease, transform 0.3s ease;
}

.confirm-cta-arrow:hover {
    color: var(--color-accent);
}

/* ==================== Imagen Decorativa ==================== */
.image-section {
    padding: 0;
    background: var(--color-cream);
}

/* Sección de imagen que lleva título: el título arriba con espacio y la imagen debajo */
.image-section:has(.section-title) {
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

.image-section .section-title {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    padding: 0 20px;
}

.image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.couple-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.couple-image.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.couple-image.visible:hover {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.marrier-image {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.marrier-image.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Ken Burns: acercamiento lento y continuo, como continuación del video */
    animation: kenBurns 14s ease-out 1.2s forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* ==================== Foto con reveal (post -> fechas) ==================== */
.foto-reveal {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1080 / 1920;
    margin: 8px auto 50px;
    cursor: pointer;
    overflow: hidden;
}

.foto-reveal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 1.1s ease, transform 1.1s ease;
}

.foto-post {
    opacity: 1;
}
.foto-fechas {
    opacity: 0;
    transform: scale(1.04);
}
.foto-reveal.revealed .foto-post {
    opacity: 0;
}
.foto-reveal.revealed .foto-fechas {
    opacity: 1;
    transform: scale(1);
}

/* Imágenes de historia (fechas que se van poniendo en blanco) */
.historia-img {
    opacity: 0;
    z-index: 1;
}
.historia-img.active {
    opacity: 1;
}

/* Zonas clickeables sobre cada foto del collage (activas tras revelar fechas) */
.historia-hotspot {
    position: absolute;
    z-index: 3;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: none;
}
.foto-reveal.revealed .historia-hotspot {
    pointer-events: auto;
}
.historia-hotspot[data-h="1"] { left: 7%;  top: 21%; width: 41%; height: 30%; }
.historia-hotspot[data-h="2"] { left: 52%; top: 21%; width: 41%; height: 30%; }
.historia-hotspot[data-h="3"] { left: 7%;  top: 53%; width: 41%; height: 30%; }
.historia-hotspot[data-h="4"] { left: 52%; top: 53%; width: 41%; height: 30%; }

/* Frase de cada momento, superpuesta dentro del cuadro (polaroid) en blanco */
.historia-frase {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5%;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.historia-frase span {
    font-family: var(--font-primary);
    font-style: italic;
    line-height: 1.3;
    color: var(--color-text);
    font-size: clamp(11px, 3.5vw, 16px);
}
.historia-frase.visible {
    opacity: 1;
}
/* Posición dentro del área en blanco de cada polaroid (sin tapar la fecha) */
.historia-frase[data-h="1"] { left: 8%;  top: 23%; width: 39%; height: 21%; }
.historia-frase[data-h="2"] { left: 53%; top: 23%; width: 39%; height: 21%; }
.historia-frase[data-h="3"] { left: 8%;  top: 55%; width: 39%; height: 21%; }
.historia-frase[data-h="4"] { left: 53%; top: 55%; width: 39%; height: 21%; }

/* Pista de que la foto es interactiva */
.foto-reveal-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.6s ease;
    animation: hintPulse 2.5s ease-in-out infinite;
}
.foto-reveal.historia-activa .foto-reveal-hint {
    opacity: 0;
    animation: none;
}

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

/* Sección Hero con imagen de fondo (b&w.jpeg) */
.image-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/b&w.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
}

/* ==================== Texto Especial ==================== */
.special-text-section {
    background: var(--color-white);
    padding: 80px 0;
}

.special-text-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.special-text {
    font-family: var(--font-primary);
    font-size: 24px;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    position: relative;
    padding: 40px;
}

.special-text::before {
    content: '"';
    font-size: 80px;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 0;
    font-family: Georgia, serif;
}

.special-text::after {
    content: '"';
    font-size: 80px;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    bottom: -40px;
    right: 0;
    font-family: Georgia, serif;
}

/* ==================== Padres Section ==================== */
.invitados-section {
    background: var(--color-cream);
    padding: 70px 0 0;
}

/* Ilustración de anillos: pequeña, centrada, con flotación elegante */
.anillos-img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 22px auto 0;
    animation: anillosFloat 4.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.15));
}

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

/* Contenedor del reveal a pantalla completa (como las demás secciones) */
.invitados-reveal {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 30px 0 0;
}

/* Las dos bandejas ocupan el mismo espacio y se cruzan por opacidad */
.invitados-reveal .tray {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease;
}

/* En escritorio, la bandeja completa sin recortes (como papás/padrinos) */
@media (min-width: 768px) {
    .invitados-reveal .tray {
        background-size: contain;
    }
}

.tray-confirmar {
    background-image: url('../img/confirmar.jpg');
    opacity: 1;
    overflow: hidden;
}

/* Brillo elegante que barre la bandeja de plata (reflejo de luz en el metal) */
.tray-confirmar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: brilloBandeja 6s ease-in-out infinite;
}

@keyframes brilloBandeja {
    0% { background-position: 130% 0; }
    55%, 100% { background-position: -30% 0; }
}

.tray-pases {
    background-image: url('../img/invitacion.jpg');
    opacity: 0;
    pointer-events: none;
}

/* Tras pulsar Confirmar: se desvanece la confirmación y aparecen los pases */
.invitados-reveal.revealed .tray-confirmar {
    opacity: 0;
    pointer-events: none;
}
.invitados-reveal.revealed .tray-pases {
    opacity: 1;
    pointer-events: auto;
}

/* Botón elegante "Confirmar" sobre la tarjeta en blanco de la bandeja */
.btn-confirmar {
    position: absolute;
    top: 57%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 26px;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    animation: latidoBoton 2.8s ease-in-out infinite;
}
.btn-confirmar:hover {
    background: var(--color-primary);
    color: var(--color-white);
    animation: none;
}

@keyframes latidoBoton {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.06); }
}

.invitados-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0;
    max-width: 290px;
}

.invitados-card {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 14px 26px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.invitados-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.llave-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 78px;
    height: auto;
    opacity: 0.3;
    transition: var(--transition);
}

.invitados-card:hover .llave-icon {
    opacity: 0.6;
    transform: rotate(15deg);
}

.ornament-top, .ornament-bottom {
    height: 2px;
    width: 44px;
    background: var(--color-primary);
    margin: 7px auto;
}

.invitados-card h3 {
    font-family: var(--font-primary);
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.invitado-nombre {
    font-size: 16px;
    margin: 6px 0;
    color: var(--color-text-light);
}

/* ==================== Itinerario Section ==================== */
.itinerario-section {
    background: var(--color-white);
}

.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    flex: 1;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 20px;
}

.timeline-content {
    flex: 1;
    background: var(--color-cream);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.timeline-content p {
    margin: 5px 0;
    color: var(--color-text-light);
}

.location {
    font-size: 14px;
    font-style: italic;
}

.btn-map {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-map:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.timeline-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
}

.timeline-image-small {
    max-width: 150px;
}

/* ==================== Vestimenta Section ==================== */
.vestimenta-section {
    background: var(--color-cream);
}

.vestimenta-content {
    max-width: 800px;
    margin: 60px auto 0;
}

.vestimenta-card {
    background: var(--color-white);
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.vestimenta-card h3 {
    font-family: var(--font-primary);
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.vestimenta-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.vestimenta-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.vestimenta-item h4 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.vestimenta-note {
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 30px;
}

/* ==================== Regalos Section ==================== */
.regalos-section {
    background: var(--color-white);
}

.regalos-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

.regalos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.regalo-card {
    background: var(--color-cream);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.regalo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.regalo-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.regalo-card h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.regalo-codigo {
    margin: 15px 0;
    color: var(--color-text-light);
}

.btn-regalo {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-regalo:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

/* ==================== Adults Only Section ==================== */
.adults-only-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef9f3 0%, #fff5eb 100%);
    /* Recorta el asomo de la foto de atrás para que no desborde la pantalla */
    overflow-x: hidden;
}

.adults-only-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 620px;
    margin: 0 auto;
}

.adults-only-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    background: transparent;
    transition: transform 0.3s ease;
    animation: floatAndBounce 3s ease-in-out infinite;
}

.adults-only-image:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

/* "No niños": dos fotos empalmadas tipo baraja. La segunda asoma detrás,
   ligeramente girada; al tocar o deslizar se intercambian con suavidad. */
.bb-stack-wrap {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.bb-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 959 / 1600;
    cursor: grab;
    touch-action: pan-y; /* deja el scroll vertical; el gesto horizontal lo tomamos nosotros */
    user-select: none;
}
.bb-stack:active { cursor: grabbing; }

.bb-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    -webkit-user-drag: none;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease;
    will-change: transform, opacity;
}

/* Estado base: la 1ª al frente, la 2ª empalmada detrás (asomando a la derecha).
   Ambas del MISMO tamaño (sin reducir): solo rotación/desplazamiento. */
.bb-card:nth-child(1) { transform: rotate(0deg) translate(0, 0); opacity: 1; z-index: 2; }
.bb-card:nth-child(2) { transform: rotate(7deg) translate(10%, 0); opacity: 0.72; z-index: 1; }

/* Al avanzar (clase b-front): se intercambian deslizándose */
.bb-stack.b-front .bb-card:nth-child(1) { transform: rotate(-7deg) translate(-10%, 0); opacity: 0.72; z-index: 1; }
.bb-stack.b-front .bb-card:nth-child(2) { transform: rotate(0deg) translate(0, 0); opacity: 1; z-index: 2; }

.bb-caption {
    margin-top: 20px;
    text-align: center;
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(26px, 8vw, 40px);
    color: #7c7873;
}

/* Puntos */
.bb-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
}
.bb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #d8d2c9;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.bb-dot.activo {
    background: #7c7873;
    transform: scale(1.25);
}

@media (min-width: 768px) {
    .bb-stack-wrap { max-width: 340px; }
}

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

.adults-only-text {
    width: 100%;
    text-align: center;
    padding: 0 24px;
}

.adults-only-text .section-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.adults-only-description {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.adults-only-note {
    font-size: 16px;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .adults-only-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        align-items: center;
        justify-content: center;
    }

    .adults-only-image {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .adults-only-text {
        width: 100%;
        text-align: center;
    }

    .adults-only-text .section-title {
        font-size: 26px;
    }

    .adults-only-description {
        font-size: 16px;
    }
}

/* ==================== RSVP Section ==================== */
.rsvp-section {
    background: var(--color-cream);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

/* Checklist de asistentes: nombre · Sí · No */
.asistentes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.asistentes-encabezado,
.asistente-fila {
    display: grid;
    grid-template-columns: 1fr 48px 48px;
    align-items: center;
    gap: 8px;
}
.asistentes-encabezado span {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding-bottom: 2px;
}
.asistente-fila {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.asistente-nombre {
    font-family: var(--font-primary);
    font-size: 18px;
    text-align: left;
    color: var(--color-text);
}
.asistentes-list .asistente-op {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}
.asistentes-list .asistente-op input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* "Sí" resalta en negro sólido; "No" queda en gris discreto */
.asistentes-list .asistente-op input.check-si {
    accent-color: #000;
    transform: scale(1.1);
}
.asistentes-list .asistente-op input.check-no {
    accent-color: #a3a3a3;
}

/* La fila con "Sí" marcado se destaca */
.asistente-fila:has(.check-si:checked) {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.05);
}
.asistente-fila:has(.check-si:checked) .asistente-nombre {
    color: var(--color-primary);
    font-weight: 600;
}
.asistentes-list .asistente-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    margin-bottom: 0;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    color: var(--color-text);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.asistentes-list .asistente-item:hover {
    border-color: var(--color-primary);
}
.asistentes-list .asistente-item input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.asistente-item span {
    font-family: var(--font-primary);
    font-size: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Botón para descargar el pase (aparece al confirmar).
   Fondo oscuro con texto blanco: así el boleto monocromo se ve blanco. */
.btn-pase {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 1.5px solid var(--color-primary);
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/* Ícono de boleto: hereda el color del texto (blanco sobre el botón oscuro) */
.pase-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-pase:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

/* Deshabilitado: visible pero sin poder tocarse hasta enviar la confirmación */
.btn-pase.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pase-leyenda {
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--color-text-light);
}

/* Deshabilitado hasta marcar al menos un asistente */
.btn-submit.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Botón secundario para declinar */
.btn-decline {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-decline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-decline.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}

.footer-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-names {
    font-family: var(--font-primary);
    font-size: 36px;
    margin: 20px 0;
}

.footer-date {
    font-size: 16px;
    letter-spacing: 3px;
}

.footer-credit {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-secondary);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--color-white);
}

/* ==================== WhatsApp Float Button ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ==================== Music Control ==================== */
.music-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.music-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, background 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.3);
}

/* Barras estilo ecualizador */
.music-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.music-bars span {
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    transition: height 0.3s ease;
}

/* Al reproducir, las barras se animan como un ecualizador */
.music-btn.playing .music-bars span {
    animation: equalize 1s ease-in-out infinite;
}
.music-btn.playing .music-bars span:nth-child(1) { animation-delay: 0s; }
.music-btn.playing .music-bars span:nth-child(2) { animation-delay: 0.3s; }
.music-btn.playing .music-bars span:nth-child(3) { animation-delay: 0.15s; }
.music-btn.playing .music-bars span:nth-child(4) { animation-delay: 0.45s; }

@keyframes equalize {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

/* ==================== Animaciones ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: -1;
        z-index: 1001;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .nav-logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .logo-image {
        height: 40px;
    }

    /* Panel a pantalla completa, elegante y con desenfoque de fondo */
    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 26px;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 80px 30px 50px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        box-shadow: none;
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s ease,
                    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                    visibility 0.45s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Enlaces del panel: oscuros, espaciados y refinados */
    .nav-menu .nav-link {
        color: var(--color-primary);
        text-shadow: none;
        font-size: 19px;
        letter-spacing: 3px;
    }

    .nav-menu .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Entrada escalonada de cada opción */
    .nav-menu.active li {
        animation: navItemIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    .nav-menu.active li:nth-child(1) { animation-delay: 0.08s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.13s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.18s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.23s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.28s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.33s; }
    .nav-menu.active li:nth-child(7) { animation-delay: 0.38s; }
    .nav-menu.active li:nth-child(8) { animation-delay: 0.43s; }
    .nav-menu.active li:nth-child(9) { animation-delay: 0.48s; }

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

    /* Bloquea el scroll del fondo con el menú abierto */
    body.menu-abierto {
        overflow: hidden;
    }

    .initials-container {
        font-size: 60px;
    }

    .names {
        font-size: 36px;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-value {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
    }

    section {
        padding: 60px 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        position: relative;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        left: 16px;
        top: 10px;
        width: 8px;
        height: 8px;
        background: var(--color-primary);
        border-radius: 50%;
        border: 2px solid var(--color-white);
        box-shadow: 0 0 0 3px var(--color-primary);
    }

    .timeline-time {
        position: static;
        padding: 0 0 10px 0;
        width: 100%;
        text-align: left;
        font-size: 20px;
    }

    .timeline-content {
        margin-left: 0;
        width: 100%;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .special-text {
        font-size: 18px;
        padding: 20px;
    }

    .special-text::before,
    .special-text::after {
        font-size: 60px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .music-control {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .initials-container {
        font-size: 50px;
        gap: 10px;
    }

    .ampersand {
        font-size: 40px;
    }

    .names {
        font-size: 28px;
    }

    .countdown-value {
        font-size: 28px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .section-title {
        font-size: 28px;
    }

    .invitados-card,
    .vestimenta-card {
        padding: 30px 20px;
    }
}
