/*==================================================
                RESET & GLOBALS
==================================================*/

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background-color: #fbfaf8;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color:#2a2825;
    overflow-x:hidden;
}

/*==================================================
            BLOQUEO DE SCROLL (UX FIX)
==================================================*/

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

/*==================================================
                VARIABLES
==================================================*/

:root{
    --bg:#f8f8f6;
    --paper:#ffffff;
    --text:#2a2825;
    --gray:#66635e;
    --gold:#d4af37;
    --gold-light:#e8d38e;
    --shadow: 0 20px 40px rgba(0,0,0,.04);
    --shadow-premium: 0 25px 60px rgba(0,0,0,.04), inset 0 0 0 1px rgba(212,175,55,0.15);
    --radius: 20px;
    --transition: .45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/*==================================================
            SISTEMA DE ICONOS PREMIUM
==================================================*/

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fdfcf9;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 4px 15px rgba(212,175,55,0.06), inset 0 0 10px rgba(212,175,55,0.03);
    flex-shrink: 0;
}

.icon-box i {
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin: 0 !important;
    display: block;
}

.info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.info-text strong, .info-text span {
    line-height: 1.4;
    display: block;
}

/*==================================================
                COMPOSICIÓN EDITORIAL
==================================================*/
h1, h2, h3, h4, .editorial-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: #1a1917;
}

i { font-style: italic; color: var(--gold); }
.text-center { text-align: center; }

/* Divisores Elegantes */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto; 
    gap: 15px;
    opacity: 0.8;
}
.divider::before, .divider::after {
    content: "";
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.divider i { color: var(--gold); width: 16px; height: 16px; margin: 0; }

.divider.small { margin: 20px auto; }
.divider.small::before, .divider.small::after { width: 30px; }

/* Tarjetas Premium */
.premium-card {
    background: linear-gradient(160deg, #ffffff 0%, #fdfcf9 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-premium);
    padding: 50px 40px; 
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .hover-elevate {
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    }
    .hover-elevate:hover {
        transform: translateY(-8px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(212,175,55,0.25);
    }
}

.section-badge, .demo-badge {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 20px;
    background: transparent;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius:999px;
    font-size:.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom:15px;
}

/*==================================================
            BOTONES Y CTA PREMIUM
==================================================*/
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a1917;
    color: #fff;
    padding: 16px 40px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: .95rem;
    transition: var(--transition);
    border: 1px solid #1a1917;
    cursor: pointer;
}
.primary-button:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.25);
    color: #fff;
}
.primary-button.full-width { width: 100%; }

.btn-premium {
    background: transparent;
    color: #1a1917;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium:hover {
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
}
.btn-premium:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/*==================================================
                LOADER & BARS
==================================================*/
#loader { position:fixed; inset:0; background:#fbfaf8; display:flex; justify-content:center; align-items:center; z-index:99999; transition:.8s; }
.loader-logo { text-align:center; }
.loader-logo span { display:block; font-family:'Cormorant Garamond',serif; font-size:46px; letter-spacing:8px; }
.loader-logo small { letter-spacing:10px; color:var(--gray); }
#progress-bar { position:fixed; top:0; left:0; width:0; height:3px; background:linear-gradient(90deg, #111, var(--gold)); z-index:9999; }

/*==================================================
            MUSIC BUTTON
==================================================*/
#musicButton {
    position:fixed; top:24px; right:24px; width:52px; height:52px; border:none; border-radius:50%;
    background:#1a1917; color:#fff; display:flex; justify-content:center; align-items:center;
    cursor:pointer; box-shadow:var(--shadow); opacity:0; visibility:hidden; transition:.4s; z-index:999;
}
#musicButton.show { opacity:1; visibility:visible; }
#musicButton:hover { transform:scale(1.08); background: var(--gold); }

/*==================================================
            ENVELOPE SCREEN (FIX ANIMACIÓN)
==================================================*/
#envelope-screen { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 100px 20px; background: radial-gradient(circle at 50% 30%, #f9f6f0 0%, #ede6d6 50%, #d4c5ab 100%); z-index: 9000; transition: opacity 1.2s ease, visibility 1.2s ease; }
#envelope-screen::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(212,175,55,0.15) 0%, transparent 5px), radial-gradient(circle at 80% 25%, rgba(212,175,55,0.12) 0%, transparent 6px), radial-gradient(circle at 25% 80%, rgba(212,175,55,0.1) 0%, transparent 4px), radial-gradient(circle at 75% 70%, rgba(212,175,55,0.18) 0%, transparent 7px); filter: blur(3px); z-index: 1; opacity: 0.9; }
.hero-glow { position: absolute; width: 650px; height: 650px; border-radius: 50%; background: radial-gradient(circle, rgba(222, 185, 85, 0.15) 0%, rgba(212, 175, 55, 0) 70%); filter: blur(60px); z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: premiumGlowPulse 5s ease-in-out infinite alternate; }
@keyframes premiumGlowPulse { 0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }

.envelope-wrapper { position: relative; z-index: 2; text-align: center; max-width: 800px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.envelope-wrapper h1 { font-size: 4.2rem; line-height: 1.1; margin-bottom: 20px; color: #2c2925; text-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.demo-description { max-width: 580px; margin: auto; color: #5a5449; font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px; }
.tap-container { margin-bottom: 35px; display: flex; flex-direction: column; align-items: center; }
.tap-text { color: #7d7260; font-size: .95rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
.tap-arrow { margin-top: 8px; font-size: 1.2rem; color: #a89468; animation: premiumBounce 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes premiumBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Sistema Físico de Capas Base - Esencial Lógica / Premium Diseño */
#envelope { 
    position: relative; width: 440px; height: 290px; margin: auto; cursor: pointer; perspective: 1800px;
    animation: premiumFloat 7s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
    box-shadow: 0 45px 65px -15px rgba(0,0,0,0.15), 0 15px 30px -10px rgba(0,0,0,0.12); border-radius: 6px; 
}
@keyframes premiumFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }

.envelope-back { position: absolute; inset: 0; background: linear-gradient(135deg, #e6e1d6, #f2efe9); border-radius: 6px; z-index: 1; box-shadow: inset 0 0 30px rgba(0,0,0,0.06); }
.envelope-back::before, .envelope-front::after, .envelope-top::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"); pointer-events: none; border-radius: inherit; }

.letter { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 88%; height: 85%; background: linear-gradient(135deg, #fffdf9, #fcf9f2); border-radius: 4px; z-index: 2; box-shadow: 0 10px 25px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(212,175,55,0.18); background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%), url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"); }

.envelope-front { position: absolute; inset: 0; z-index: 3; background: linear-gradient(to top, #e8e3d6 0%, #f4f1ea 100%); border-radius: 6px; clip-path: polygon(0 0, 5.5% 0, 5.5% 12%, 50% 48%, 94.5% 12%, 94.5% 0, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 0 20px rgba(0,0,0,0.02); }
.envelope-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 49%, rgba(0,0,0,0.04) 50%, transparent 51%), linear-gradient(-118deg, transparent 49%, rgba(0,0,0,0.04) 50%, transparent 51%); pointer-events: none; z-index: 0; }

.envelope-title { position: absolute; top: 76%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 15px; width: 80%; justify-content: center; z-index: 1; }
.envelope-title .title { color: #9c8e75; font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; letter-spacing: 6px; font-weight: 600; text-shadow: 1px 1px 1px rgba(255,255,255,0.8), -1px -1px 1px rgba(0,0,0,0.08); }
.envelope-title .line { flex: 1; height: 1px; background: rgba(156, 142, 117, 0.3); box-shadow: 0 1px 0 rgba(255,255,255,0.6); }

.envelope-top { position: absolute; left: 0; top: 0; width: 100%; height: 58%; background: linear-gradient(to bottom, #f2efe7 0%, #e3dcd0 100%); clip-path: polygon(0 0, 100% 0, 100% 22%, 50% 100%, 0 22%); transform-origin: top; z-index: 4; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15)); }

.gold-seal { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 52% 48% 51% 49% / 50% 49% 51% 50%; background: radial-gradient(circle at 35% 30%, #f7d570 0%, #c19218 45%, #7a5908 100%); box-shadow: inset 0 0 10px rgba(255,255,255,0.5), inset 0 0 18px rgba(0,0,0,0.3), 0 8px 15px rgba(0,0,0,0.25), 0 15px 30px rgba(212,175,55,0.25); display: flex; justify-content: center; align-items: center; color: #fdf5d3; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700; letter-spacing: 2px; z-index: 5; border: 2px solid rgba(230,195,85,0.8); text-shadow: -1px -1px 2px rgba(0,0,0,0.5), 1px 1px 2px rgba(255,255,255,0.4); }

#envelope.open .gold-seal { animation: premiumSealBreak 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes premiumSealBreak { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 15% { transform: translate(-50%, -49%) scale(0.92); opacity: 1; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } 25% { transform: translate(-50%, -44%) scale(0.95); opacity: 1; } 60% { transform: translate(-50%, 40px) scale(0.9); opacity: 0; } 100% { transform: translate(-50%, 40px) scale(0.9); opacity: 0; visibility: hidden; } }

#envelope.open .envelope-top { animation: premiumFlapOpen 0.9s 0.6s forwards cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes premiumFlapOpen { 0% { transform: rotateX(0deg); z-index: 4; } 49% { z-index: 4; } 50% { z-index: 0; } 100% { transform: rotateX(179.9deg); z-index: 0; } }

#envelope.open .letter { animation: premiumLetterExtract 2.2s 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes premiumLetterExtract { 0% { transform: translateX(-50%) translateY(0); } 30% { transform: translateX(-50%) translateY(-25%); } 50% { transform: translateX(-50%) translateY(-25%); } 100% { transform: translateX(-50%) translateY(-150%); opacity: 0; } }
#envelope-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/*==================================================
                ESTRUCTURA PRINCIPAL
==================================================*/
main { width:100%; opacity:0; transition:1s; }
main.hidden { height: 0; overflow: hidden; visibility: hidden; }
main.show { opacity:1; }

.container { width:min(90%,1000px); margin:auto; }
.section { padding: 50px 0; }
.section h3 { font-size: 3.2rem; margin-bottom: 15px; line-height: 1.1; letter-spacing: -0.5px; }
.section p { color: var(--gray); line-height: 1.8; font-size: 1.05rem; }

/*==================================================
                HERO EDITORIAL PREMIUM
==================================================*/
.hero { position:relative; min-height:100vh; display:flex; justify-content:center; align-items:center; text-align:center; overflow:hidden; background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.7)), url("assets/img/hero.jpg"); background-size:cover; background-position:center; }
.hero-overlay { position:absolute; inset:0; backdrop-filter:blur(4px); }

.hero-editorial-frame {
    position: relative; z-index: 2; width: min(90%, 750px);
    border: 1px solid rgba(212,175,55,0.4); border-radius: 12px; padding: 70px 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(15px); box-shadow: 0 35px 70px rgba(0,0,0,0.08);
}

.hero-tag { display:inline-block; font-size: .85rem; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-bottom: 25px; font-weight: 600;}
.hero h2 { font-size: 6rem; line-height: 0.9; margin-bottom: 5px; color: #1a1917; }
.hero h2 span { display:block; color:var(--gold); font-size: 3.5rem; margin: -10px 0; font-family: 'Poppins', sans-serif; font-weight: 300;}
.hero-subtitle { max-width:450px; margin:auto; color:var(--gray); font-size: 1.1rem; line-height: 1.6;}

.hero-details { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 30px; font-size: 0.85rem; letter-spacing: 3px; font-weight: 500; color: #1a1917; }
.hero-details .detail-dot { color: var(--gold); font-size: 0.7rem; }

.scroll-indicator { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; pointer-events: none; font-weight: 500; }
.scroll-indicator span { text-align: center; margin-right: -3px; }
.scroll-indicator .mouse { width: 24px; height: 36px; border: 1px solid var(--gold); border-radius: 12px; position: relative; display: flex; justify-content: center; }
.scroll-indicator .mouse::before { content: ''; width: 2px; height: 6px; background: var(--gold); border-radius: 2px; margin-top: 6px; animation: scrollWheel 2s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }

/*==================================================
        SECCIÓN: FOTO PRINCIPAL
==================================================*/
.photo-fullscreen .container { display: flex; justify-content: center; }
.photo-fullscreen .premium-image-wrapper { aspect-ratio: 16/9; width: 100%; max-width: 900px; margin: 0 auto; }

/*==================================================
        SECCIÓN VIDEO PREMIUM
==================================================*/
.premium-video-card { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(212,175,55,0.15); background: #000; cursor: pointer; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease; }
@media (min-width: 769px) { .premium-video-card:hover { transform: translateY(-8px); box-shadow: 0 35px 70px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(212,175,55,0.2); } }
.premium-video-card.playing { transform: none !important; box-shadow: 0 15px 35px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(212,175,55,0.1) !important; cursor: default; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: opacity 0.8s ease, transform 1.5s ease; filter: sepia(10%) contrast(1.05) brightness(0.9); }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%); z-index: 3; pointer-events: none; transition: opacity 0.8s ease; }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border: none; color: #1a1917; display: flex; align-items: center; justify-content: center; z-index: 4; cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,0.15); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.play-button i { width: 32px; height: 32px; margin-left: 4px; }
.premium-video-card:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: #ffffff; }
.premium-video-card:hover .video-cover { transform: scale(1.03); }
.custom-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; outline: none; border-radius: inherit; }
.premium-video-card.playing .video-cover, .premium-video-card.playing .video-overlay, .premium-video-card.playing .play-button { opacity: 0; pointer-events: none; }
.premium-video-card.playing .play-button { transform: translate(-50%, -50%) scale(0.8); }

/*==================================================
        CUENTA REGRESIVA DINÁMICA (NUEVO PREMIUM)
==================================================*/
.countdown-master-card { max-width: 850px; text-align: center; }
.countdown-premium-grid { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 30px; }
.time-block { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.time-block .number { font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; color: #1a1917; line-height: 1; text-shadow: 2px 2px 5px rgba(0,0,0,0.06); display: block; }
.time-block .label { font-size: .8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); font-weight: 600; margin-top: 8px; }
.separator { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--gold); margin-top: -20px; animation: pulseOpacity 2s infinite; opacity: 0.8; }
@keyframes pulseOpacity { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.3; } }
.pop { animation: popScale 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes popScale { 0% { transform: scale(1); } 40% { transform: scale(1.15); color: var(--gold); } 100% { transform: scale(1); color: #1a1917; } }

/*==================================================
        SISTEMA DE GALERÍAS Y FOTOGRAFÍAS
==================================================*/
.premium-image-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; will-change: transform; margin: 0 auto; width: 100%; }
.premium-image-wrapper::after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,0.6); border-radius: 8px; pointer-events: none; z-index: 2; }
.premium-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(10%) contrast(1.05) brightness(0.95); transform: scale(1.15) translateY(0); transition: filter 0.8s ease; }
.premium-image-wrapper:hover img { filter: sepia(0%) contrast(1.1) brightness(1); }
.premium-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center; }
.premium-gallery .premium-image-wrapper { aspect-ratio: 4/5; }

/*==================================================
        SECCIÓN: DRESS CODE (EDITORIAL)
==================================================*/
.dresscode-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 25px; }
.dress-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dress-image { width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.06); position: relative; }
.dress-image::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; pointer-events: none; z-index: 2; }
.dress-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; filter: sepia(15%) contrast(1.05) brightness(0.95); }
.dress-item:hover .dress-image img { transform: scale(1.05); }
.dress-glass-caption { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 15px; border-radius: 8px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.6); z-index: 3; transition: transform 0.4s ease; }
.dress-item:hover .dress-glass-caption { transform: translateY(-5px); }
.dress-glass-caption h4 { margin: 0; font-size: 1.3rem; letter-spacing: 3px; }
.dress-glass-caption span { font-size: 0.95rem; color: var(--gray); font-style: italic; }

/*==================================================
        UBICACIÓN REDISEÑADA (FULL-BLEED MAP)
==================================================*/
.location-card { padding: 0; display: flex; flex-direction: row; align-items: stretch; min-height: 450px; }
.location-info { flex: 1; padding: 60px 45px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.info-list { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; text-align: left; }
.info-item { display: flex; align-items: center; gap: 18px; }
.location-map { flex: 1; position: relative; }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(15%) contrast(1.05); }

/*==================================================
        MESA DE REGALOS (PREMIUM)
==================================================*/
.registry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.registry-card { padding: 45px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.registry-card h4 { font-size: 1.6rem; letter-spacing: 2px; }
.registry-card p { font-size: .95rem; margin-bottom: 10px; }


/*==================================================
        SELECCIÓN DE PASES Y CONFIRMACIÓN PREMIUM
==================================================*/
.form-card { max-width: 750px; text-align: center; }
.rsvp-header { margin-bottom: 30px; }

/* Input Elegante Nombre */
.premium-input-group {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px auto;
}
.premium-input-group input {
    width: 100%;
    background: #fdfcf9;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 20px 20px 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #1a1917;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}
.premium-input-group input:focus,
.premium-input-group input:not(:placeholder-shown) {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 5px 15px rgba(212,175,55,0.08), inset 0 0 10px rgba(0,0,0,0.01);
}
.premium-input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.premium-input-group input:focus ~ label,
.premium-input-group input:not(:placeholder-shown) ~ label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Selector de Pases */
.passes-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .passes-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pass-option { cursor: pointer; display: block; }
.pass-option input { display: none; }

.pass-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    background: #fdfcf9;
    color: var(--gray);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pass-option:hover .pass-box {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.1);
    color: #1a1917;
}

.pass-option input:checked + .pass-box {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(212,175,55,0.25);
    transform: translateY(-3px);
}

/*==================================================
                FUNCIONES INCLUIDAS
==================================================*/
.features .premium-card { max-width: 900px; padding: 60px; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 20px; margin-top: 40px; list-style: none; }
.features-list li { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.04); color: #2a2825; font-size: 1.05rem; }
.features-list li:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }

/*==================================================
                CTA FINAL
==================================================*/
.final-cta { padding-bottom: 100px; }
.cta-wrapper { text-align: center; max-width: 700px; margin: auto; }
.support-avatar { width: 60px; height: 60px; background: var(--gold); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 30px; box-shadow: 0 10px 20px rgba(212,175,55,0.3); }
.support-avatar i { color: #fff; margin: 0; display: block; }
.cta-wrapper h2 { font-size: 3rem; margin-bottom: 25px; line-height: 1.2; }
.final-message { margin-bottom: 40px; font-size: 1.1rem; color: var(--gray); }
.pulse-btn { animation: pulseSlight 2s infinite; }
@keyframes pulseSlight { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); } 70% { box-shadow: 0 0 0 15px rgba(212,175,55,0); } 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } }

/*==================================================
                    FOOTER
==================================================*/
footer { text-align: center; padding: 0 20px 60px; }
.footer-divider { width: 40px; height: 1px; background: var(--gold-light); margin: 0 auto 30px; }
footer p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: #1a1917; margin-bottom: 5px; }
footer small { color: #999; font-size: .85rem; }

/*==================================================
            ANIMACIONES REVEAL PREMIUM
==================================================*/
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(8px); transition: opacity 1.2s var(--transition), transform 1.2s var(--transition), filter 1.2s ease-out; }
.reveal.active { opacity: 1; transform: none; filter: blur(0); }

/*==================================================
                RESPONSIVE 
==================================================*/
@media (max-width:1024px){
    .hero h2 { font-size:5.5rem; }
    .hero h2 span { font-size: 3.5rem; }
    .premium-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-list { column-gap: 20px; }
}

@media (max-width:768px){
    .section { padding: 40px 0; } 
    .premium-card { padding: 35px 25px; border-radius: 16px; }
    
    .hero { min-height: 100svh; padding-bottom: 80px; }
    .hero-editorial-frame { width: 92%; padding: 50px 20px; }
    .hero h2 { font-size: 3.8rem; }
    .hero h2 span { font-size: 2.2rem; margin: -5px 0; }
    .hero-details { flex-direction: column; gap: 8px; font-size: 0.8rem; margin-top: 20px; }
    .hero-details .detail-dot { display: none; }

    .section h3 { font-size: 2.4rem; }
    
    #envelope { width: 330px; height: 220px; }
    .envelope-wrapper h1 { font-size: 2.8rem; }
    .gold-seal { width: 65px; height: 65px; font-size: 1.4rem; }
    #envelope.open .letter { animation: premiumLetterExtractMobile 2.2s 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1); }
    @keyframes premiumLetterExtractMobile { 0% { transform: translateX(-50%) translateY(0); } 30%, 50% { transform: translateX(-50%) translateY(-25%); } 100% { transform: translateX(-50%) translateY(-130%); opacity: 0; } }

    .play-button { width: 60px; height: 60px; }
    .play-button i { width: 24px; height: 24px; margin-left: 3px; }

    .premium-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; gap: 15px; scrollbar-width: none; }
    .premium-gallery::-webkit-scrollbar { display: none; }
    .premium-gallery .premium-image-wrapper { min-width: 75%; scroll-snap-align: center; }

    .countdown-premium-grid { gap: 10px; margin-top: 20px; }
    .time-block { min-width: 60px; }
    .time-block .number { font-size: 3rem; }
    .separator { font-size: 2rem; margin-top: -15px; }

    .dresscode-gallery { grid-template-columns: 1fr; gap: 50px; }
    .dress-image { aspect-ratio: 4/5; max-width: 320px; margin: 0 auto 20px; }
    
    .location-card { flex-direction: column; min-height: auto; align-items: stretch; border: none; background: transparent; box-shadow: none;}
    .location-info { padding: 40px 25px; align-items: center; text-align: center; }
    .location-info .info-list { align-items: flex-start; text-align: left; width: 100%; max-width: 250px; margin: 30px auto; }
    .location-map { min-height: 350px; width: 100%; position: relative; border-radius: 16px; overflow: hidden; }
    
    .registry-grid { grid-template-columns: 1fr; gap: 20px; }

    .features .premium-card { padding: 35px 20px; }
    .features-list { grid-template-columns: 1fr; margin-top: 30px; }
    .features-list li { font-size: .95rem; align-items: center; }
    .features-list li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(0,0,0,0.04); padding-bottom: 20px; }
    .features-list li:last-child { border-bottom: none !important; padding-bottom: 0 !important; }

    .cta-wrapper h2 { font-size: 2.3rem; }
}

@media (hover:none){
    .primary-button:active, #envelope:active { transform:scale(.97); }
    #musicButton:active { transform:scale(.94); }
}

@media (max-width:390px){
    .hero h2 { font-size: 3rem; }
    .section h3 { font-size: 2.1rem; }
    #envelope { width: 290px; height: 195px; }
    .gold-seal { width: 58px; height: 58px; font-size: 1.2rem; }
    #envelope.open .letter { animation: premiumLetterExtractSmall 2.2s 1.2s forwards cubic-bezier(0.22, 1, 0.36, 1); }
    @keyframes premiumLetterExtractSmall { 0% { transform: translateX(-50%) translateY(0); } 30%, 50% { transform: translateX(-50%) translateY(-25%); } 100% { transform: translateX(-50%) translateY(-110%); opacity: 0; } }
    
    .time-block { min-width: 50px; }
    .time-block .number { font-size: 2.4rem; }
    .separator { font-size: 1.5rem; margin-top: -10px; }
}