/* ==========================================================================
   SISTEMA DE ESTILOS Y DISEÑO - INVITACIÓN WEB XV AÑOS FRIDA
   Paleta de Colores: Rojo Real, Blanco Puro, Acentos en Oro y Rosa Crema
   Estilo: Elegancia Moderna, Glassmorphism de Alto Contraste y Animaciones
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE CSS (TOKENS DE DISEÑO DE ALTO CONTRASTE)
   -------------------------------------------------------------------------- */
:root {
    /* Colores Principales: Rojo y Blanco */
    --primary-red: #8B0000;          /* Rojo Carmesí Oscuro / Real */
    --vibrant-red: #C41E3A;          /* Rojo Rubí brillante */
    --light-red: #FFE5E9;            /* Blanco rosado suave para fondos */
    --white: #FFFFFF;                /* Blanco Puro Nítido */
    --cream-bg: #FFF8F9;             /* Fondo Crema Rosado */
    
    /* Acentos Dorados y Secundarios */
    --gold-accent: #D4AF37;          /* Dorado Real */
    --gold-light: #F3E5AB;           /* Dorado claro / Champagne */
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 80%, #fbf5b7 100%);
    --red-gradient: linear-gradient(135deg, #8B0000 0%, #C41E3A 50%, #D31027 100%);
    
    /* Colores de Texto de Máximo Contraste (Casi negro con tinte borgoña) */
    --text-dark: #110002;            /* Negro borgoña ultra oscuro para lectura perfecta */
    --text-muted: #221114;           /* Carbón borgoña oscuro para subtítulos nítidos */
    --shadow-red: rgba(139, 0, 0, 0.25);
    --shadow-gold: rgba(212, 175, 55, 0.35);
    
    /* Tipografía */
    --font-script: 'Great Vibes', cursive;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transiciones y Curvas de Animación */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. REGLAS GENERALES Y RESET DE ESTILOS
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 40px 40px, 80px 80px;
}

/* --------------------------------------------------------------------------
   3. FONDO DE PARTÍCULAS (CANVAS)
   -------------------------------------------------------------------------- */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   4. BOTÓN FLOTANTE DEL REPRODUCTOR DE MÚSICA
   -------------------------------------------------------------------------- */
.floating-music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--red-gradient);
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 25px var(--shadow-red), 0 0 15px rgba(212, 175, 55, 0.4);
    border: 1.5px solid var(--gold-light);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.floating-music-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(196, 30, 58, 0.4), 0 0 20px var(--gold-accent);
}

.music-icon-btn {
    background: transparent;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ondas animadas de música */
.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.music-waves span {
    width: 3px;
    background-color: var(--gold-light);
    border-radius: 2px;
    animation: wave-animation 1s ease-in-out infinite alternate;
}

.music-waves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.music-waves span:nth-child(2) { height: 14px; animation-delay: 0.4s; }
.music-waves span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.music-waves span:nth-child(4) { height: 18px; animation-delay: 0.6s; }

.music-waves.paused span {
    animation-play-state: paused;
    height: 4px !important;
}

@keyframes wave-animation {
    0% { height: 4px; }
    100% { height: 18px; }
}

/* --------------------------------------------------------------------------
   5. SECCIÓN PORTADA (HERO BANNER - ESTILO CAPTURA SOFÍA / COMPLETO Y LIMPIO)
   La fotografía se muestra libre a pantalla completa sin recuadros en medio.
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100dvh; /* Altura dinámica perfecta en dispositivos móviles */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px 40px 20px;
    background-color: #110002;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%; /* Encuadre ideal para el rostro y vestido de la Quinceañera */
    z-index: 1;
    filter: brightness(0.98) contrast(1.05) saturate(1.1); /* Foto viva, iluminada y natural */
    transform: scale(1);
    animation: slow-zoom 20s infinite alternate ease-in-out;
}

@keyframes slow-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* Superposición transparente en el centro (72% de la foto intocable y libre),
   con sombras suaves únicamente en el techo y el piso para que las letras blancas resalten */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.55) 0%, 
        rgba(0, 0, 0, 0.0) 25%, 
        rgba(0, 0, 0, 0.0) 72%, 
        rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
}

.hero-top-name {
    position: relative;
    z-index: 3;
    margin-top: 10px;
}

.hero-name-script {
    font-family: var(--font-script);
    font-size: 7rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.85),
        0 2px 6px rgba(0, 0, 0, 0.95);
    letter-spacing: 2px;
}

.hero-bottom-info {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 480px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-line-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 8px;
}

.hero-line-title .line {
    flex: 1;
    max-width: 90px;
    height: 1.5px;
    background-color: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-line-title .text {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    margin-bottom: 25px;
    text-transform: lowercase; /* Estilo exacto de la captura: '26 julio 2026' */
}

/* Botón discreto y elegante para desplazarse a la invitación */
.hero-scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition-bounce);
}

.hero-scroll-btn:hover {
    background: var(--red-gradient);
    border-color: var(--gold-accent);
    color: var(--gold-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-red);
}

/* --------------------------------------------------------------------------
   6. BLOQUES CON FONDOS FOTOGRÁFICOS Y OVERLAY DE ALTO CONTRASTE
   -------------------------------------------------------------------------- */
.main-content-wrapper {
    position: relative;
    z-index: 5;
}

.section-with-bg {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 85px 0;
    margin-top: -20px;
    border-bottom: 3px solid var(--gold-accent);
}

/* Asignación de fotos de la carpeta img para cada bloque */
.bg-photo-1 { background-image: url('../img/IMG_8383.JPG.jpeg'); }
.bg-photo-2 { background-image: url('../img/IMG_8398.JPG.jpeg'); }
.bg-photo-3 { background-image: url('../img/IMG_8418.JPG.jpeg'); }
.bg-photo-4 { background-image: url('../img/IMG_8408.JPG.jpeg'); }

/* Superposición oscura romántica (Burdeos real oscuro) que asegura que
   las tarjetas blancas resalten con un contraste del 1000% */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 0, 8, 0.82) 0%, rgba(139, 0, 0, 0.75) 50%, rgba(45, 0, 10, 0.85) 100%);
    z-index: 1;
}

.invitation-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.card-section {
    width: 100%;
}

/* Estilo Glassmorphism / Tarjeta Blanca Sólida de Alto Contraste
   Fondo 100% blanco nítido (#FFFFFF) para evitar cualquier pérdida de contraste */
.glass-card {
    background: var(--white);
    border-radius: 28px;
    border: 2px solid var(--gold-accent);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 10px 25px rgba(139, 0, 0, 0.25),
        inset 0 0 30px rgba(255, 248, 249, 1);
    padding: 45px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 15px 35px var(--shadow-gold);
    border-color: #E5C158;
}

/* Tarjeta especial para encabezados de sección y filtros */
.section-header-card {
    background: linear-gradient(180deg, var(--white) 0%, #FFF8F9 100%);
    margin-bottom: 25px;
    border-width: 2.5px;
}

/* Adornos de esquina para tarjetas */
.card-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold-accent);
    border-style: solid;
    pointer-events: none;
    opacity: 0.7;
}
.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Títulos de tarjeta estilo cursiva romántica */
.card-script-title {
    font-family: var(--font-script);
    font-size: 3.6rem;
    color: var(--primary-red);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
}

.card-sub-title {
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Divisor floral en rojo y oro */
.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}
.floral-divider .line {
    width: 50px;
    height: 2px;
    background: var(--gold-gradient);
}
.floral-divider .flower-icon {
    font-size: 1.3rem;
    animation: pulse-soft 2s infinite alternate;
}
.floral-divider.small {
    font-size: 1.1rem;
    letter-spacing: 12px;
    margin: 15px 0;
}

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. SECCIÓN REPRODUCTOR DE MÚSICA EN TARJETA
   -------------------------------------------------------------------------- */
.music-description {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.player-btn {
    background: var(--white);
    border: 2px solid var(--gold-accent);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.prev-btn, .next-btn {
    width: 45px;
    height: 45px;
}

.play-pause-btn {
    width: 65px;
    height: 65px;
    background: var(--red-gradient);
    color: var(--white);
    border-color: var(--gold-light);
    box-shadow: 0 8px 20px var(--shadow-red);
}

.player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-red);
}

.music-status {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
    background: var(--light-red);
    padding: 10px 24px;
    border-radius: 20px;
    display: inline-block;
    border: 1.5px solid var(--vibrant-red);
}

/* --------------------------------------------------------------------------
   8. TARJETA DE FRASE O CITACIÓN
   -------------------------------------------------------------------------- */
.quote-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--vibrant-red) 100%);
    color: var(--white);
    border-color: var(--gold-accent);
}

.quote-icon {
    font-family: var(--font-title);
    font-size: 5rem;
    line-height: 0.5;
    color: var(--gold-light);
    opacity: 0.6;
    margin-bottom: 15px;
}

.quote-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--white);
}

.quote-author {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: var(--gold-light);
    font-weight: 700;
}

.heart-divider {
    font-size: 1.4rem;
    margin-top: 15px;
    animation: heart-beat 1.2s infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   9. SECCIÓN MAMÁ & PADRINOS (DE ALTO CONTRASTE)
   -------------------------------------------------------------------------- */
.family-card {
    background: linear-gradient(180deg, var(--white) 0%, #FFF5F7 100%);
}

.family-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 90%;
    margin: 0 auto 15px auto;
}

.family-block {
    margin: 22px 0;
}

.family-role {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-red);
    background: #FFF0F2;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--gold-accent);
    margin-bottom: 12px;
}

.family-name {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 6px 0;
}

.family-connector {
    display: block;
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--vibrant-red);
    margin: 4px 0;
}

.family-divider {
    color: var(--gold-accent);
    letter-spacing: 8px;
    margin: 22px 0;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   10. CUENTA REGRESIVA (TEMPORIZADOR)
   -------------------------------------------------------------------------- */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gold-accent);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 75px;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.15);
}

.time-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-top: 4px;
}

.time-separator {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-accent);
    margin-top: -15px;
}

.countdown-subtitle {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--vibrant-red);
    font-weight: 700;
    margin: 10px 0 25px 0;
}

/* Marco de foto especial */
.featured-photo-frame {
    width: 100%;
    max-width: 320px;
    height: 420px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 8px;
    background: var(--gold-gradient);
    box-shadow: 0 15px 35px var(--shadow-red);
    overflow: hidden;
    position: relative;
}

.featured-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: var(--transition-smooth);
    filter: contrast(1.05) saturate(1.1);
}

.featured-photo-frame:hover .featured-photo {
    transform: scale(1.08);
    filter: contrast(1.1) saturate(1.2) brightness(1.05);
}

/* --------------------------------------------------------------------------
   11. SECCIÓN ¿CUÁNDO & DÓNDE? (UBICACIONES)
   -------------------------------------------------------------------------- */
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.location-card {
    margin-bottom: 25px;
    position: relative;
    padding-top: 45px;
}

.location-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
}

.pending-badge {
    background-color: #FFF0F0;
    color: #C41E3A;
    border: 1.5px solid #FFCCD2;
}

.confirmed-badge {
    background-color: #E8F5E9;
    color: #1B5E20;
    border: 1.5px solid #81C784;
}

.location-icon {
    margin-bottom: 15px;
}

.location-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.event-date-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.location-name {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 800;
    margin: 15px 0 6px 0;
}

.location-address {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botón Principal y Secundario */
.btn-primary {
    display: inline-block;
    background: var(--red-gradient);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    padding: 15px 34px;
    border-radius: 50px;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 10px 25px var(--shadow-red);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.4);
    color: var(--gold-light);
}

.btn-secondary {
    display: inline-block;
    background: #EEEEEE;
    color: #888888;
    border: 1px solid #CCCCCC;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   12. CÓDIGO DE VESTIMENTA & REGALOS
   -------------------------------------------------------------------------- */
.dresscode-icon {
    font-size: 3.8rem;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dresscode-type {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.dresscode-note {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dresscode-alert {
    background: #FFF0F2;
    border: 2px dashed var(--vibrant-red);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-red);
}

.alert-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.gift-icon-box {
    font-size: 4.2rem;
    margin: 15px 0;
    animation: float-crown 3s ease-in-out infinite alternate;
}

.gift-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. CONFIRMACIÓN DE ASISTENCIA (RSVP) & HASHTAG
   -------------------------------------------------------------------------- */
.rsvp-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.rsvp-whatsapp-icon {
    margin: 15px 0;
    animation: pulse-soft 2s infinite;
}

.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 340px;
    margin: 0 auto;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp.outline {
    background: var(--white);
    color: #128C3E;
    border: 2.5px solid #25D366;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.btn-whatsapp.outline:hover {
    background: #E8FBF0;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.hashtag-instruction {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hashtag-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--red-gradient);
    color: var(--white);
    padding: 15px 34px;
    border-radius: 50px;
    border: 2px solid var(--gold-accent);
    cursor: pointer;
    box-shadow: 0 10px 25px var(--shadow-red);
    transition: var(--transition-fast);
}

.hashtag-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.4);
}

.hashtag-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.copy-icon {
    font-size: 1.2rem;
}

.copy-hint {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   14. GALERÍA DE FOTOS INTERACTIVA (11 FOTOS)
   -------------------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 10px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gold-accent);
    color: var(--primary-red);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--red-gradient);
    color: var(--white);
    border-color: var(--gold-light);
    box-shadow: 0 8px 18px var(--shadow-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 2.5px solid var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 35px var(--shadow-red);
    border-color: var(--gold-accent);
    z-index: 2;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    filter: contrast(1.04) saturate(1.08);
}

.gallery-item:hover img {
    transform: scale(1.12);
    filter: contrast(1.12) saturate(1.25) brightness(1.04);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--gold-light);
}

/* --------------------------------------------------------------------------
   15. TARJETA DE DESPEDIDA & FIRMA
   -------------------------------------------------------------------------- */
.farewell-card {
    background: linear-gradient(to bottom, var(--white) 0%, #FFF0F3 100%);
}

.farewell-text {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 15px 0 25px 0;
}

.signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
}

.signature-name {
    font-family: var(--font-script);
    font-size: 4.8rem;
    color: var(--primary-red);
    font-weight: 700;
    line-height: 1;
    margin-top: 5px;
    text-shadow: 0 2px 5px var(--shadow-gold);
}

/* --------------------------------------------------------------------------
   16. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.footer-section {
    background: #1A0004;
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    position: relative;
    z-index: 5;
    border-top: 3px solid var(--gold-accent);
}

.footer-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.footer-date {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
}

.footer-divider {
    color: var(--vibrant-red);
    margin: 15px 0;
    letter-spacing: 10px;
}

.footer-credits {
    font-size: 0.9rem;
    color: #CCCCCC;
}

/* --------------------------------------------------------------------------
   17. MODAL LIGHTBOX INTERACTIVO PARA FOTOS
   -------------------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 5, 0.92);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 1001;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--gold-accent);
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    transition: filter 0.5s ease;
}

.filter-normal { filter: none; }
.filter-warm-red { filter: contrast(1.15) saturate(1.3) sepia(0.2) hue-rotate(-10deg); }
.filter-vintage-gold { filter: sepia(0.4) contrast(1.1) brightness(1.05) saturate(1.2); }
.filter-b-w-contrast { filter: grayscale(1) contrast(1.3) brightness(1.05); }

.filter-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(139, 0, 0, 0.85);
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--gold-accent);
    backdrop-filter: blur(5px);
}

.lightbox-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    z-index: 1001;
}

.lightbox-counter {
    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.lightbox-filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mini-filter-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mini-filter-btn:hover, .mini-filter-btn.active {
    background: var(--red-gradient);
    border-color: var(--gold-accent);
    color: var(--white);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(139, 0, 0, 0.7);
    color: var(--white);
    border: 2px solid var(--gold-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition-bounce);
}

.lightbox-close {
    top: 25px;
    right: 25px;
    font-size: 2.2rem;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--vibrant-red);
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--gold-accent);
}

/* --------------------------------------------------------------------------
   18. CLASES DE ANIMACIÓN AL HACER SCROLL (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. MEDIA QUERIES PARA RESPONSIVIDAD EN MÓVILES Y TABLETS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-name-script { font-size: 5.5rem; }
    .hero-line-title .text { font-size: 1.15rem; letter-spacing: 4px; }
    .hero-line-title .line { max-width: 60px; }
    .hero-date { font-size: 1.25rem; }
    
    .card-script-title { font-size: 2.8rem; }
    .card-sub-title { font-size: 1.5rem; }
    .family-name { font-size: 1.6rem; }
    
    .section-with-bg {
        padding: 50px 0;
        background-attachment: scroll; /* Scroll normal en móviles para optimizar GPU y batería */
    }
    
    .invitation-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .glass-card {
        padding: 35px 20px;
        border-radius: 22px;
    }
    
    .time-box {
        min-width: 60px;
        padding: 10px 12px;
    }
    .time-number { font-size: 1.8rem; }
    .time-separator { font-size: 1.5rem; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-name-script { font-size: 4.5rem; }
    .hero-line-title .text { font-size: 1rem; letter-spacing: 3px; }
    .hero-line-title .line { max-width: 45px; }
    .hero-date { font-size: 1.15rem; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-photo-frame {
        height: 340px;
    }
    .player-controls {
        gap: 15px;
    }
}
