/* ==========================================================================
   SUITE VISUAL HAUTE COUTURE PARA INVITACIONES DIGITALES PREMIUM
   ========================================================================== */

/* --- RESET & GLOBAL SETUP --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TEMAS CROMÁTICOS & TIPOGRAFÍA DE LUJO
   ========================================================================== */

/* Tema 1: XV Años (Rosa Marfil, Dorado Rosado, Tipografía Romántica) */
.theme-quinceanos, .theme-default {
    --bg-color: #fdf8f9;
    --card-bg: rgba(255, 255, 255, 0.94);
    --text-color: #3d3142;
    --text-muted: #826e89;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --secondary-color: #f4c2c2;
    --primary-btn-bg: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-hand: 'Great Vibes', cursive;
    --border-color: rgba(212, 175, 55, 0.35);
    --shadow-color: rgba(180, 140, 60, 0.12);
}

/* Tema 2: Boda (Champán, Blanco Marfil, Caligrafía Fina Alex Brush) */
.theme-boda {
    --bg-color: #fcfaf7;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #2b2622;
    --text-muted: #6e655c;
    --accent-color: #c5a059;
    --accent-glow: rgba(197, 160, 89, 0.3);
    --secondary-color: #d8c3a5;
    --primary-btn-bg: linear-gradient(135deg, #c5a059 0%, #987836 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
    --font-hand: 'Alex Brush', cursive;
    --border-color: rgba(197, 160, 89, 0.4);
    --shadow-color: rgba(150, 120, 50, 0.12);
}

/* Tema 3: Cumpleaños / Fiesta (Oscuro Neón, Cian Eléctrico, Violeta) */
.theme-cumpleanos {
    --bg-color: #0a0e17;
    --card-bg: rgba(22, 27, 38, 0.92);
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --accent-color: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.35);
    --secondary-color: #ff416c;
    --primary-btn-bg: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-hand: 'Outfit', sans-serif;
    --border-color: rgba(0, 242, 254, 0.35);
    --shadow-color: rgba(0, 242, 254, 0.15);
}

/* Tema 4: Baby Shower (Azul Pastel & Manteca, Tierno y Delicado) */
.theme-babyshower, .theme-baby_shower {
    --bg-color: #f6fafd;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --accent-color: #3498db;
    --accent-glow: rgba(52, 152, 219, 0.25);
    --secondary-color: #f39c12;
    --primary-btn-bg: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-hand: 'Great Vibes', cursive;
    --border-color: rgba(52, 152, 219, 0.3);
    --shadow-color: rgba(52, 152, 219, 0.1);
}

/* Tema 5: Bautizo (Blanco Marfil, Dorado Santo & Esmeralda) */
.theme-bautizo {
    --bg-color: #faf9f6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #2c2825;
    --text-muted: #736b63;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --secondary-color: #e8e3d9;
    --primary-btn-bg: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-hand: 'Great Vibes', cursive;
    --border-color: rgba(212, 175, 55, 0.35);
    --shadow-color: rgba(180, 140, 60, 0.12);
}

/* Tema 6: Aniversario & Fiestas (Vino tinto / Rose Gold Elegante) */
.theme-aniversario {
    --bg-color: #fdf6f7;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #3b2327;
    --text-muted: #856166;
    --accent-color: #b76e79;
    --accent-glow: rgba(183, 110, 121, 0.3);
    --secondary-color: #e8c5c8;
    --primary-btn-bg: linear-gradient(135deg, #b76e79 0%, #8b4552 100%);
    --primary-btn-text: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-hand: 'Alex Brush', cursive;
    --border-color: rgba(183, 110, 121, 0.35);
    --shadow-color: rgba(183, 110, 121, 0.12);
}

/* ==========================================================================
   PANTALLA DE ERROR / 404
   ========================================================================== */
.full-screen-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.error-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 25px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   PORTADA ANIMADA SOBRE ELEGANTE OPTIMIZADA PARA MÓVIL
   ========================================================================== */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s ease;
}

.cover-overlay.hide-cover {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 9s infinite linear;
    will-change: transform;
}

@keyframes floatParticle {
    0% {
        transform: translate3d(0, 100vh, 0) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate3d(0, -10vh, 0) scale(1.1);
        opacity: 0;
    }
}

.envelope-screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    z-index: 10;
    padding: 10px;
}

.animated-header-banner {
    text-align: center;
    margin-bottom: 20px;
}

.envelope-badge {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.header-title-clean {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cover-quote {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Floating 3D Envelope Interactive Wrapper (GPU Optimized) */
/* Envelope Body & Flap - Base Layout */
.envelope-wrapper {
    position: relative;
    width: 295px;
    height: 195px;
    margin: 25px auto 35px;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.float-soft-anim {
    animation: envelopeFloat 5s ease-in-out infinite alternate;
}

@keyframes envelopeFloat {
    0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
}

.envelope-body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: visible;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 135px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
    will-change: transform;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.envelope-wrapper.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 2;
}

/* Wax Seal Medallion in center of Flap */
.wax-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    box-shadow: 0 4px 12px rgba(170, 119, 28, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1.5px solid #fff3d1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    transform: translateY(18px);
    transition: transform 0.3s ease;
    z-index: 6;
}

.wax-seal-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.envelope-wrapper:hover .wax-seal {
    transform: translateY(18px) scale(1.1);
}

/* Inner Card Preview - Fully hidden inside pocket when closed, slides UP on open */
.envelope-card-inside {
    position: absolute;
    top: 25px;
    left: 16px;
    right: 16px;
    height: 155px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.92);
    will-change: transform, opacity;
}

.card-inside-badge {
    font-size: 0.68rem;
    letter-spacing: 3.5px;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
}

.card-inside-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.15;
    margin: 6px 0;
}

.card-inside-ornament {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
}

.envelope-wrapper.open .envelope-card-inside {
    opacity: 1;
    transform: translate3d(0, -95px, 0) scale(1);
}

/* Front Pocket Overlay - Completely covers bottom of envelope */
.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    clip-path: polygon(0 100%, 100% 100%, 100% 25px, 50% 75px, 0 25px);
    border-radius: 0 0 18px 18px;
    z-index: 4;
}

/* ==========================================================================
   THEME-SPECIFIC UNIQUE LUXURY ENVELOPES (CADA TEMA TIENE SU CARTA ÚNICA)
   ========================================================================== */

/* 1. XV Años (Rosa Princesa, Oro Rosado & Marfil) */
.theme-quinceanos {
    --bg-color: #fdf5f7;
}

.theme-quinceanos .envelope-body {
    background: linear-gradient(145deg, #fff0f3 0%, #ffe4e9 100%);
    box-shadow: 0 20px 45px rgba(229, 169, 180, 0.35), 0 0 0 1.5px rgba(229, 169, 180, 0.6);
}

.theme-quinceanos .envelope-flap {
    background: linear-gradient(180deg, #fce4e8 0%, #f4acb7 100%);
}

.theme-quinceanos .envelope-pocket {
    background: linear-gradient(0deg, #f4acb7 0%, #ffcad4 100%);
}

.theme-quinceanos .card-inside-header {
    color: #b56576;
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
}

/* 2. Boda (Blanco Imperial & Oro de Gala) */
.theme-boda {
    --bg-color: #faf8f5;
}

.theme-boda .envelope-body {
    background: linear-gradient(145deg, #ffffff 0%, #fdfbf7 100%);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.2), 0 0 0 1.5px rgba(212, 175, 55, 0.45);
}

.theme-boda .envelope-flap {
    background: linear-gradient(180deg, #fffaf0 0%, #f7ebd9 100%);
}

.theme-boda .envelope-pocket {
    background: linear-gradient(0deg, #f7ebd9 0%, #fffaf0 100%);
}

.theme-boda .card-inside-header {
    color: #aa771c;
    font-family: 'Alex Brush', cursive;
    font-size: 2.3rem;
}

/* 3. Cumpleaños #18 (Azul Noche VIP, Neón Cian & Magenta) */
.theme-cumpleanos {
    --bg-color: #080c14;
}

.theme-cumpleanos .envelope-body {
    background: linear-gradient(145deg, #161b26 0%, #0a0e17 100%);
    box-shadow: 0 20px 45px rgba(0, 242, 254, 0.25), 0 0 0 1.5px rgba(0, 242, 254, 0.45);
}

.theme-cumpleanos .envelope-flap {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.theme-cumpleanos .envelope-pocket {
    background: linear-gradient(0deg, #0d131f 0%, #162032 100%);
}

.theme-cumpleanos .card-inside-header {
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

/* 4. Baby Shower (Azul Cielo Pastel & Nube) */
.theme-babyshower, .theme-baby_shower {
    --bg-color: #f0f7fc;
}

.theme-babyshower .envelope-body, .theme-baby_shower .envelope-body {
    background: linear-gradient(145deg, #ffffff 0%, #e8f4fc 100%);
    box-shadow: 0 20px 45px rgba(142, 202, 230, 0.28), 0 0 0 1.5px rgba(142, 202, 230, 0.5);
}

.theme-babyshower .envelope-flap, .theme-baby_shower .envelope-flap {
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
}

.theme-babyshower .envelope-pocket, .theme-baby_shower .envelope-pocket {
    background: linear-gradient(0deg, #bae6fd 0%, #e0f2fe 100%);
}

.theme-babyshower .card-inside-header, .theme-baby_shower .card-inside-header {
    color: #0284c7;
    font-family: 'Great Vibes', cursive;
    font-size: 2.1rem;
}

/* 5. Bautizo (Blanco Celestial & Oro Santo) */
.theme-bautizo {
    --bg-color: #fcfbf9;
}

.theme-bautizo .envelope-body {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.22), 0 0 0 1.5px rgba(212, 175, 55, 0.45);
}

.theme-bautizo .envelope-flap {
    background: linear-gradient(180deg, #fffdfa 0%, #f3ebd7 100%);
}

.theme-bautizo .envelope-pocket {
    background: linear-gradient(0deg, #f3ebd7 0%, #fffdfa 100%);
}

.theme-bautizo .card-inside-header {
    color: #b8860b;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

/* 6. Aniversario (Bodas de Plata, Azul Real & Plata) */
.theme-aniversario {
    --bg-color: #0f172a;
}

.theme-aniversario .envelope-body {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 20px 45px rgba(203, 213, 225, 0.25), 0 0 0 1.5px rgba(203, 213, 225, 0.45);
}

.theme-aniversario .envelope-flap {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.theme-aniversario .envelope-pocket {
    background: linear-gradient(0deg, #0f172a 0%, #1e293b 100%);
}

.theme-aniversario .card-inside-header {
    color: #0f172a;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* ==========================================================================
   BOTONES & MICRO-INTERACCIONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
}

.btn-outline-waze {
    background: rgba(51, 204, 255, 0.1);
    color: #33ccff;
    border: 1.5px solid rgba(51, 204, 255, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--accent-glow);
}

.btn-pulse {
    animation: pulseGlow 2.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    animation: shimmerEffect 4s infinite;
}

@keyframes shimmerEffect {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}



/* ==========================================================================
   ESTRUCTURA PRINCIPAL DEL MOBILE APP SHELL
   ========================================================================== */
#invitation-app {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 60px;
    background: var(--bg-color);
    box-shadow: 0 0 60px var(--shadow-color);
    min-height: 100vh;
}

.section {
    padding: 35px 22px;
    text-align: center;
}

.section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.25;
}

.glass-card, .section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 32px 22px;
    box-shadow: 0 12px 35px var(--shadow-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.gold-border {
    border-color: var(--accent-color);
}

/* ==========================================================================
   HERO SECTION (PORTADA PRINCIPAL CON MARCO ARQUEADO)
   ========================================================================== */
.hero-section {
    padding-top: 30px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-frame {
    width: 270px;
    height: 350px;
    border-radius: 140px 140px 30px 30px;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    outline: 2px solid var(--accent-color);
    box-shadow: 0 18px 40px var(--accent-glow);
    margin-bottom: 25px;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kenburns {
    animation: kenburnsZoom 22s infinite alternate linear;
}

@keyframes kenburnsZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 2.6rem);
    color: var(--text-color);
    line-height: 1.15;
    margin-bottom: 6px;
}

.hero-name {
    font-family: var(--font-hand);
    font-size: clamp(3.2rem, 9vw, 4.4rem);
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 0 4px 15px var(--accent-glow);
}

.hero-date-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 20px var(--shadow-color);
}

.date-line {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.time-line {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 2px;
}

/* ==========================================================================
   CUENTA REGRESIVA
   ========================================================================== */
.card-ornament-top {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.glass-timer {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 4px;
}

.timer-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ==========================================================================
   MENSAJE PRINCIPAL DEDICATORIA
   ========================================================================== */
.quote-icon {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    line-height: 0.5;
    opacity: 0.4;
    text-align: left;
    margin-bottom: 10px;
}

.quote-icon.right {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 0;
}

.message-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.75;
    padding: 0 8px;
}

/* ==========================================================================
   GALERÍA DE FOTOS & LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid var(--card-bg);
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--accent-glow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* ==========================================================================
   UBICACIÓN & DETALLES
   ========================================================================== */
.location-icon-badge {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.location-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.location-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-card {
    text-align: center;
    padding: 24px 14px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.detail-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.detail-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TIMELINE (PROGRAMA DEL EVENTO) & PADRINOS
   ========================================================================== */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    padding: 24px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 42px;
    top: 36px;
    bottom: -16px;
    width: 2px;
    background: var(--border-color);
}

.timeline-badge {
    background: var(--accent-color);
    color: var(--primary-btn-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.padrino-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.padrino-role {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.padrino-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ==========================================================================
   CONFIRMACIÓN RSVP & FOOTER ELEGANTE
   ========================================================================== */
.rsvp-card {
    text-align: center;
}

.rsvp-badge {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 8px;
}

.rsvp-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.rsvp-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-section {
    text-align: center;
    padding: 40px 20px 20px;
}

.final-message {
    font-family: var(--font-hand);
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 15px;
}

.luxury-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-color);
    opacity: 0.6;
    margin-top: 10px;
}

.flourish-line {
    width: 50px;
    height: 1px;
    background: var(--accent-color);
}

/* ==========================================================================
   SCROLL REVEAL ESTRUCTURAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
