/* ==========================================================================
   SISTEMA DE DISEÑO DE LUJO - GONZALO & FERNANDA
   Inspiración: Dior, Apple, Tiffany & Co.
   ========================================================================== */

:root {
    --color-terracota: #C05A46;
    --color-terracota-dark: #A24836;
    --color-terracota-light: #D77A66;
    --color-beige: #F7F2EC;
    --color-beige-dark: #EFE9DF;
    --color-beige-shadow: #DFD7CD;
    --color-ivory: #FFFDFB;
    --color-gold: #D4AF37;
    --color-gold-dark: #B89020;
    --color-gold-light: #F3E5AB;
    --color-dark: #2F2926;
    --color-dark-muted: #5C524E;
    --color-light-muted: #A69C96;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 50px rgba(92, 82, 78, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(192, 90, 70, 0.05);
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.4);
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   RESET & ESTILOS GLOBALES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-beige);
    color: var(--color-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar premium */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-beige);
}
::-webkit-scrollbar-thumb {
    background: var(--color-terracota-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracota);
}

/* Estructura general de secciones */
.scroll-section {
    padding: 100px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.container-premium {
    width: 100%;
    max-width: 800px;
}

/* Canvas de fondo y confetti */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    display: none;
}

/* ==========================================================================
   COMPONENTES PREMIUM & GLASSMORPHISM
   ========================================================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-medium);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

/* Botones Premium */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--color-terracota);
    color: var(--color-ivory);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: 0 8px 20px rgba(192, 90, 70, 0.25);
    z-index: 1;
}

.btn-premium:hover {
    background: var(--color-terracota-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(192, 90, 70, 0.35);
}

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

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.btn-premium:hover .btn-glow {
    transform: translateX(100%);
}

.btn-full {
    width: 100%;
}

/* Divisor Dorado */
.gold-leaf-divider {
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    font-size: 1.2rem;
}

.gold-leaf-divider::before,
.gold-leaf-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Tipografía de Secciones */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    text-align: center;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    color: var(--color-terracota);
    margin-bottom: 45px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ESCENA 1: PANTALLA DE CARGA
   ========================================================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-beige);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(92, 82, 78, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 20px;
    max-width: 600px;
    animation: fadeIn 1.5s ease-out forwards;
}

.loading-pretitle {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--color-terracota);
    margin-bottom: 10px;
}

.loading-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 30px auto;
    transition: width 1.5s ease;
}

#open-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#open-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ESCENA 2: APERTURA DEL SOBRE
   ========================================================================== */

#envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 500;
    overflow: hidden;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s ease;
}

.envelope-wrapper {
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.envelope {
    position: relative;
    width: 320px;
    height: 220px;
    background-color: var(--color-beige-dark);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 45px rgba(92, 82, 78, 0.15);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.envelope:hover {
    transform: translateY(-5px) rotateY(-2deg) rotateX(5deg);
}

.flap {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 3;
}

.top-flap {
    top: 0;
    left: 0;
    border-width: 110px 160px 0 160px;
    border-color: var(--color-beige-shadow) transparent transparent transparent;
    transform-origin: top;
    transition: transform 0.6s ease-in-out, z-index 0.3s 0.3s;
    z-index: 4;
}

.left-flap {
    top: 0;
    left: 0;
    border-width: 110px 0 110px 160px;
    border-color: transparent transparent transparent rgba(239, 233, 223, 0.95);
    border-radius: 0 0 0 10px;
}

.right-flap {
    top: 0;
    right: 0;
    border-width: 110px 160px 110px 0;
    border-color: transparent rgba(239, 233, 223, 0.95) transparent transparent;
    border-radius: 0 0 10px 0;
}

.bottom-flap {
    bottom: 0;
    left: 0;
    border-width: 110px 160px 110px 160px;
    border-color: transparent rgba(233, 225, 213, 0.9) rgba(233, 225, 213, 0.9) rgba(233, 225, 213, 0.9);
    border-radius: 0 0 10px 10px;
}

.letter {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 290px;
    height: 200px;
    background-color: var(--color-ivory);
    border-radius: 8px;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.letter-border {
    padding: 10px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin: 0;
}

.letter-inner {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.gold-monogram {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.letter-salutation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-terracota);
    margin-bottom: 5px;
}

.letter-body {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-dark-muted);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 8px;
}

.letter-instruction {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--color-gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.envelope-hint {
    margin-top: 30px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-dark-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulseHint 2s infinite;
}

/* Clases animadas de apertura del sobre */
.envelope.open .top-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .letter {
    transform: translateY(-130px);
    z-index: 5;
    box-shadow: 0 15px 30px rgba(92, 82, 78, 0.2);
}

/* ==========================================================================
   PORTAL PRINCIPAL (MAIN INVITATION PORTAL)
   ========================================================================== */

#main-portal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    width: 100%;
}

.hidden-portal {
    pointer-events: none;
    height: 100vh;
    overflow: hidden;
}

.visible-portal {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* ==========================================================================
   ESCENA 3: PRESENTACIÓN DE LOS NOVIOS (HERO)
   ========================================================================== */

#hero-scene {
    height: 100vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

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

.hero-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(247, 242, 236, 0.4) 0%, 
        rgba(247, 242, 236, 0.2) 50%, 
        rgba(247, 242, 236, 0.95) 95%,
        var(--color-beige) 100%);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-terracota);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-names {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-dark);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-dark-muted);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark-muted);
    opacity: 0.8;
}

/* ==========================================================================
   ESCENA 4: CONTADOR REGRESIVO
   ========================================================================== */

.countdown-card {
    text-align: center;
    margin: 50px 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 20px 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-val {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-terracota);
    line-height: 1;
    margin-bottom: 5px;
}

.time-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark-muted);
}

/* ==========================================================================
   ESCENA 5: HISTORIA DE LOS NOVIOS (TIMELINE)
   ========================================================================== */

#story-scene {
    overflow: hidden;
}

.timeline-interactive {
    position: relative;
    width: 100%;
    margin-top: 50px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-beige-dark);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-beige-dark), var(--color-terracota));
    transition: height 0.1s ease;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 80px;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.left-item {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.right-item {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-img-holder {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    border: 4px solid var(--color-ivory);
}

.timeline-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-img-holder img {
    transform: scale(1.05);
}

.timeline-content-card {
    padding: 25px;
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-terracota);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-content-card h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.timeline-content-card p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-dark-muted);
}

/* Hito final destacado */
.timeline-badge-gold {
    position: absolute;
    left: 0;
    top: 5px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ivory);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: 4px solid var(--color-ivory);
    z-index: 5;
}

.right-item .timeline-badge-gold {
    left: 0;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 242, 236, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   ESCENA 6: GALERÍA (CAROUSEL)
   ========================================================================== */

#gallery-scene {
    background-color: var(--color-beige-dark);
    max-width: 100%;
    padding: 100px 0;
}

.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.gallery-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.carousel-slide.active img {
    transform: scale(1.08);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 25px 30px;
    background: linear-gradient(to top, rgba(47, 41, 38, 0.7) 0%, transparent 100%);
    color: var(--color-ivory);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 1px;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ivory);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-dark);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--color-ivory);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   ESCENA 7: ITINERARIO DEL EVENTO
   ========================================================================== */

.itinerary-container {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding-left: 20px;
}

.itinerary-item {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.itinerary-item:last-child {
    margin-bottom: 0;
}

.itinerary-time {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-terracota);
    width: 60px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 10px;
}

.itinerary-line {
    position: absolute;
    left: 90px;
    top: 40px;
    bottom: -60px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-gold), rgba(212, 175, 55, 0.1));
}

.itinerary-item:last-child .itinerary-line {
    display: none;
}

.itinerary-icon {
    width: 40px;
    height: 40px;
    background: var(--color-ivory);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-dark);
    font-size: 0.9rem;
    z-index: 2;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.itinerary-card {
    flex-grow: 1;
    padding: 25px;
}

.itinerary-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.itinerary-card p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-dark-muted);
}

/* ==========================================================================
   ESCENA 8: UBICACIÓN (LOCATION & MAP)
   ========================================================================== */

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.location-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
}

.loc-icon-gold {
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.location-info-card h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.loc-address {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-terracota-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.loc-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-dark-muted);
    margin-bottom: 30px;
}

.map-container-outer {
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-premium);
    border: var(--border-glass);
}

#leaflet-map {
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Filtro elegante para desaturar el mapa y darle tonos crema/oro */
.leaflet-tile-container {
    filter: sepia(30%) hue-rotate(5deg) contrast(90%) brightness(95%);
}

/* ==========================================================================
   ESCENA 9: CONFIRMACIÓN DE ASISTENCIA (RSVP FORM)
   ========================================================================== */

.rsvp-card {
    max-width: 600px;
    margin: 40px auto 0 auto;
}

.rsvp-allowance-badge {
    background: rgba(192, 90, 70, 0.08);
    border: 1px solid rgba(192, 90, 70, 0.15);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--color-terracota-dark);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rsvp-allowance-badge i {
    font-size: 1rem;
}

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

.form-group:last-of-type {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark-muted);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-beige-shadow);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-terracota);
    background: var(--color-ivory);
    box-shadow: 0 0 0 3px rgba(192, 90, 70, 0.1);
}

.rsvp-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rsvp-option-btn {
    cursor: pointer;
    position: relative;
}

.rsvp-option-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rsvp-option-content {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-beige-shadow);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: var(--transition-fast);
}

.rsvp-option-content i {
    font-size: 1.4rem;
    color: var(--color-light-muted);
    transition: var(--transition-fast);
}

.rsvp-option-content span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-dark-muted);
}

/* Radio button check styling */
.rsvp-option-btn input[type="radio"]:checked + .rsvp-option-content {
    border-color: var(--color-terracota);
    background: rgba(192, 90, 70, 0.05);
    box-shadow: 0 4px 12px rgba(192, 90, 70, 0.08);
}

.rsvp-option-btn input[type="radio"]:checked + .rsvp-option-content i {
    color: var(--color-terracota);
}

.rsvp-option-btn input[type="radio"]:checked + .rsvp-option-content span {
    color: var(--color-dark);
    font-weight: 600;
}

/* Ocultar / Mostrar */
.hidden {
    display: none !important;
}

/* ==========================================================================
   ESCENA 10: GENERACIÓN DE PASE DIGITAL (BOARDING PASS)
   ========================================================================== */

.pass-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    margin-top: 30px;
    width: 100%;
}

.boarding-pass {
    width: 100%;
    max-width: 380px;
    background: var(--color-ivory);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(212, 175, 55, 0.25);
    overflow: hidden;
    position: relative;
}

.pass-header {
    background: linear-gradient(135deg, var(--color-dark), #3b3430);
    padding: 25px;
    color: var(--color-ivory);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-monogram {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.pass-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--color-gold-light);
}

.pass-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pass-row {
    display: flex;
    justify-content: space-between;
}

.pass-col {
    display: flex;
    flex-direction: column;
}

.text-right {
    text-align: right;
}

.pass-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-light-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pass-val {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-top: 2px;
}

.pass-bar-divider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pass-bar-divider::before {
    content: '';
    width: 100%;
    height: 1px;
    border-bottom: 2px dotted var(--color-beige-shadow);
}

.left-notch, .right-notch {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-beige);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.left-notch {
    left: -10px;
}

.right-notch {
    right: -10px;
}

.pass-footer {
    padding: 20px 25px 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to bottom, var(--color-ivory) 80%, rgba(247, 242, 236, 0.3) 100%);
}

.qrcode-container {
    width: 125px;
    height: 125px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--color-beige-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Hacer que la imagen QR se ajuste */
.qrcode-container img {
    width: 100% !important;
    height: 100% !important;
}

.pass-hint {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light-muted);
}

/* Botones de acción del pase */
.pass-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.btn-action {
    padding: 12px 10px;
    font-size: 0.7rem;
    border-radius: 25px;
    letter-spacing: 1px;
    gap: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-ivory);
    color: var(--color-dark);
    border: 1px solid var(--color-gold);
    box-shadow: var(--shadow-soft);
}

.btn-action:hover {
    background: var(--color-terracota);
    color: var(--color-ivory);
    border-color: var(--color-terracota);
    box-shadow: 0 6px 15px rgba(192, 90, 70, 0.15);
}

/* ==========================================================================
   ESCENA 11: CIERRE EMOCIONAL & FOOTER
   ========================================================================== */

#footer-scene {
    height: 80vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
    background-color: var(--color-dark);
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    max-width: 600px;
    color: var(--color-ivory);
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 5px;
    display: block;
    margin-bottom: 20px;
}

.footer-thanks {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--color-ivory);
}

.footer-invite-final {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-gold-light);
    margin-bottom: 30px;
}

.footer-credits {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light-muted);
}

/* ==========================================================================
   CONTROLES FLOTANTES (MÚSICA)
   ========================================================================== */

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-dark);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    z-index: 1000;
    transition: var(--transition-medium);
}

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

.music-btn.muted i {
    color: var(--color-light-muted);
}

.music-btn.muted::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--color-light-muted);
    transform: rotate(-45deg);
}

/* Animación de barras sonoras */
.music-bar {
    position: absolute;
    width: 3px;
    height: 15px;
    background-color: var(--color-gold);
    bottom: 12px;
    animation: bounceBar 0.8s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-btn:not(.muted) .music-bar {
    opacity: 0.6;
}

.music-btn i {
    z-index: 2;
    transition: opacity 0.3s;
}

.music-btn:not(.muted) i {
    opacity: 0.3; /* Aténua el icono de nota para ver las barritas */
}

.music-bar:nth-child(1) {
    left: 17px;
    animation-delay: 0.1s;
}
.music-bar:nth-child(2) {
    left: 23px;
    animation-delay: 0.3s;
    height: 22px;
    bottom: 12px;
}
.music-bar:nth-child(3) {
    left: 29px;
    animation-delay: 0.5s;
    height: 17px;
}

.music-btn.muted .music-bar {
    animation-play-state: paused;
    opacity: 0 !important;
}

/* ==========================================================================
   ANIMACIONES CLAVE (KEYFRAMES)
   ========================================================================== */

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

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

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

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes bounceBar {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.1); }
}

/* ==========================================================================
   DISEÑO ADAPTABLE (RESPONSIVE)
   ========================================================================== */

/* Tabletas y pantallas medianas */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .scroll-section {
        padding: 80px 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Timeline en mobile se convierte en una sola columna a la derecha de la línea */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 45px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 50px;
    }
    
    .timeline-badge-gold {
        left: 20px !important;
    }
    
    /* Ubicación / Mapa */
    .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container-outer {
        height: 300px;
    }
    
    .location-info-card {
        padding: 25px;
    }
    
    /* Galería */
    .gallery-carousel-wrapper {
        height: 380px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-names {
        font-size: 2.8rem;
    }
    
    .countdown-grid {
        gap: 8px;
    }
    
    .countdown-item {
        padding: 15px 5px;
        border-radius: 12px;
    }
    
    .time-val {
        font-size: 1.8rem;
    }
    
    .gallery-carousel-wrapper {
        height: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .rsvp-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .rsvp-option-content {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
        gap: 15px;
    }
    
    .rsvp-option-content i {
        font-size: 1.2rem;
    }
    
    .pass-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .music-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .boarding-pass {
        border-radius: 18px;
    }
}
