/*==================================================
                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,.03), inset 0 0 0 1px rgba(212,175,55,0.1);
    --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.25);
    box-shadow: 0 4px 15px rgba(212,175,55,0.05), inset 0 0 10px rgba(212,175,55,0.02);
    flex-shrink: 0;
}

.icon-box i {
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin: 0 !important;
    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; /* Reducido para mejor ritmo */
    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; /* Reducido un 20% para mejor fluidez */
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Badges refinados */
.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.3);
    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%; }

/* Variante Premium Interactiva (Mapa y CTA final) */
.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 (INTACTO)
==================================================*/
#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); } }
#envelope { position: relative; width: 440px; height: 290px; margin: auto; cursor: pointer; perspective: 2000px; transform-style: preserve-3d; 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.4, 0, 0.2, 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.8s 0.7s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes premiumFlapOpen { 0% { transform: rotateX(0deg); z-index: 4; } 49% { z-index: 4; } 50% { z-index: 0; } 100% { transform: rotateX(175deg); z-index: 0; } }
#envelope.open .letter { animation: premiumLetterExtract 2.0s 1.4s forwards cubic-bezier(0.4, 0, 0.2, 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; }

/* 
   Optimización de espacios muertos:
   Reducido de 70px a 50px para lograr un flujo de lectura orgánico
*/
.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
==================================================*/
.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.65), rgba(255,255,255,0.85)), url("assets/img/hero.jpg"); background-size:cover; background-position:center; }
.hero-overlay { position:absolute; inset:0; backdrop-filter:blur(3px); }
.hero-content { position:relative; z-index:2; width:min(90%,800px); }
.hero-tag { display:inline-block; font-size: .85rem; letter-spacing: 5px; color: var(--gray); text-transform: uppercase; margin-bottom: 30px; font-weight: 500;}
.hero h2 { font-size: 6.5rem; line-height: 0.9; margin-bottom: 10px; color: #1a1917; }
.hero h2 span { display:block; color:var(--gold); font-size: 4rem; margin: -10px 0; font-family: 'Poppins', sans-serif; font-weight: 300;}
.hero-subtitle { max-width:500px; margin:auto; color:var(--gray); font-size: 1.15rem;}
.hero-date { display:inline-block; margin-top: 40px; padding: 15px 40px; border-top: 1px solid rgba(212,175,55,0.3); border-bottom: 1px solid rgba(212,175,55,0.3); font-weight:500; letter-spacing:4px; font-size: .9rem; color: #1a1917;}

/* 
   Indicador de scroll:
   Estructura pura de Flexbox para un centrado inquebrantable
*/
.scroll-indicator { 
    position: absolute; 
    bottom: 40px; 
    left: 0; 
    right: 0; /* Obliga al contenedor a ocupar el ancho total para centrar con flex */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 12px; 
    color: var(--gray); 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    pointer-events: none;
}
.scroll-indicator span {
    text-align: center;
    margin-right: -3px; /* Compensación matemática óptica por el letter-spacing */
}
.scroll-indicator .mouse { 
    width: 24px; 
    height: 36px; 
    border: 1px solid var(--gold); 
    border-radius: 12px; 
    position: relative; 
    display: flex; 
    justify-content: center; /* Centra nativamente la pequeña rueda animada */
}
.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 VIDEO PREMIUM (NUESTRA HISTORIA)
==================================================*/
.premium-video-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9; /* Proporción panorámica nativa */
    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;
}

/* Portada del Video */
.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;
}

/* Degradado inferior protector para dar impacto premium */
.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;
}

/* Botón Play Central Elegante */
.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; /* Centrado óptico sutil para iconos triangulares (Play) */
}

.premium-video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.08);
    background: #ffffff;
}

/* Elemento Video Nativo integrado al 100% de la caja */
.custom-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    outline: none;
    border-radius: inherit;
}

/* Ocultar portada al reproducir (el video se muestra detrás intacto) */
.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);
}


/*==================================================
        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;
}

.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);
    transition: transform 1.5s ease;
}

.premium-image-wrapper:hover img {
    transform: scale(1.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.gallery-grid .premium-image-wrapper {
    aspect-ratio: 4/5;
}
/* Efecto asimétrico editorial */
.gallery-grid .stagger-image {
    transform: translateY(40px);
}

/*==================================================
        SECCIÓN: BIENVENIDA & COUNTDOWN
==================================================*/
.countdown-wrapper { margin-top: 20px; }
.countdown-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:20px; }
.time-box { padding:25px 15px; background: rgba(255,255,255,0.5); border: 1px solid rgba(212,175,55,0.1); border-radius: 12px; }
.time-box span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: #1a1917; line-height: 1; margin-bottom: 5px; }
.time-box small { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 500; }

/*==================================================
        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-caption {
    margin-top: 5px;
}

.dress-caption h4 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    letter-spacing: 4px;
    color: #1a1917;
    text-transform: uppercase;
}

.dress-caption span {
    color: var(--gray);
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

/*==================================================
        UBICACIÓN REDISEÑADA (FLEXBOX)
==================================================*/
.location-card {
    padding: 0; /* Anula el padding por defecto para expandir el mapa */
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Iguala la altura de ambas columnas */
}
.location-info {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinea a la izquierda */
}
.info-list { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; text-align: left; }
.info-item { display: flex; align-items: center; gap: 18px; }
.info-item strong { display: block; color: #1a1917; font-weight: 500; font-size: 1.05rem; }
.info-item span { color: var(--gray); font-size: .95rem; }

.location-map {
    flex: 1;
    position: relative;
    min-height: 450px;
}
.location-map iframe { 
    position: absolute;
    inset: 0; /* Llenado perfecto */
    width: 100%; 
    height: 100%; 
    border: 0; 
    filter: grayscale(15%) contrast(1.05); 
}

/*==================================================
                    RSVP
==================================================*/
.form-card { max-width: 650px; text-align: center; }
.rsvp-header { margin-bottom: 40px; }
#rsvpForm { display: flex; flex-direction: column; gap: 35px; }
.input-group input { width: 100%; border: none; border-bottom: 1px solid rgba(212,175,55,0.4); background: transparent; padding: 15px 0; font-size: 1.1rem; text-align: center; font-family: 'Poppins', sans-serif; color: #1a1917; transition: .3s; }
.input-group input:focus { outline: none; border-bottom-color: var(--gold); }
.input-group input::placeholder { color: #aaa; font-weight: 300; }
.options { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.custom-radio { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--gray); font-weight: 400; }
.custom-radio input { display: none; }
.radio-mark { width: 20px; height: 20px; border: 1px solid rgba(212,175,55,0.5); border-radius: 50%; position: relative; transition: .3s; }
.custom-radio input:checked ~ .radio-mark { border-color: var(--gold); }
.custom-radio input:checked ~ .radio-mark::after { content: ''; position: absolute; inset: 4px; background: var(--gold); border-radius: 50%; }

/*==================================================
                FUNCIONES 
==================================================*/
.features .premium-card { max-width: 700px; }
.features-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.features-list li { display: flex; align-items: center; gap: 18px; color: #2a2825; font-size: 1.05rem; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.04); }
.features-list li:last-child { 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 (BLUR)
==================================================*/
.reveal {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(6px);
    transition: opacity 1s var(--transition), transform 1s 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; }
}

@media (max-width:768px){
    .section { padding: 40px 0; } /* Optimizacion móvil: reduce espacios muertos */
    .premium-card { padding: 35px 25px; border-radius: 16px; }
    .hero { min-height: 100svh; padding-bottom: 80px; }
    .hero h2 { font-size: 4rem; }
    .hero h2 span { font-size: 2.5rem; }
    .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.0s 1.4s forwards cubic-bezier(0.4, 0, 0.2, 1); }
    @keyframes premiumLetterExtractMobile { 0% { transform: translateX(-50%) translateY(0); } 30%, 50% { transform: translateX(-50%) translateY(-25%); } 100% { transform: translateX(-50%) translateY(-130%); opacity: 0; } }

    /* Ajuste de Video para Móvil */
    .play-button { width: 60px; height: 60px; }
    .play-button i { width: 24px; height: 24px; margin-left: 3px; }

    .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
    .gallery-grid .stagger-image { transform: none; }

    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .time-box span { font-size: 2.4rem; }

    /* Responsive de Galería Dresscode */
    .dresscode-gallery { grid-template-columns: 1fr; gap: 50px; }
    .dress-image { aspect-ratio: 4/5; max-width: 320px; margin: 0 auto 20px; }
    
    /* Responsive de Ubicación */
    .location-card { flex-direction: column; }
    .location-info { padding: 40px 25px; align-items: center; text-align: center; }
    .location-info .info-list { align-items: flex-start; text-align: left; }
    .location-map { min-height: 350px; }
    
    .options { flex-direction: column; align-items: flex-start; gap: 20px; padding-left: 10%; }
    .features-list li { font-size: .95rem; align-items: flex-start; }
    .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: 3.2rem; }
    .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.0s 1.4s forwards cubic-bezier(0.4, 0, 0.2, 1); }
    @keyframes premiumLetterExtractSmall { 0% { transform: translateX(-50%) translateY(0); } 30%, 50% { transform: translateX(-50%) translateY(-25%); } 100% { transform: translateX(-50%) translateY(-110%); opacity: 0; } }
}