/* Variables y Reseteo para Diseño Claro de Boda */
:root {
    --bg-color: #faf9f6; /* Crema muy claro */
    --text-main: #333333; /* Gris oscuro para texto legible */
    --text-light: #555555;
    --gold: #b89052; /* Dorado elegante y suave */
    --envelope-bg: #f5eedc;
    --font-titles: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-text);
    overflow-x: hidden;
}

/* --- ANIMACIÓN DEL SOBRE Y PANTALLA DE INICIO CLARA --- */
.splash-screen {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(250, 249, 246, 0.95); /* Fondo semitransparente claro */
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.envelope-wrapper { position: relative; cursor: pointer; }

.envelope {
    position: relative;
    width: 320px; height: 200px;
    background: #e8dfc8; /* Interior del sobre */
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Sombra más suave */
}

.flap {
    position: absolute; top: 0; left: 0;
    width: 0; height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 110px solid var(--envelope-bg);
    transform-origin: top;
    transition: transform 0.6s ease-in-out;
    z-index: 3;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.05));
}

.envelope-front {
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 0;
    border-left: 160px solid #f0e6d2;
    border-right: 160px solid #f0e6d2;
    border-bottom: 110px solid var(--envelope-bg);
    z-index: 2;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
}

.letter {
    position: absolute; bottom: 10px;
    left: 50%; transform: translateX(-50%);
    width: 280px; height: 170px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 15px;
    transition: transform 0.6s ease-in-out;
    z-index: 1;
}

.letter .names-splash {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.letter-text { color: var(--text-light); font-size: 0.9rem; }

.envelope-wrapper.open .flap { transform: rotateX(180deg); z-index: 0; }
.envelope-wrapper.open .letter { transform: translate(-50%, -80px); z-index: 4; }

/* --- CONTENEDORES Y TIPOGRAFÍA --- */
.container { width: 90%; max-width: 1000px; margin: 0 auto; padding: 60px 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } 
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }

.section-title {
    font-family: var(--font-titles);
    font-size: 2.8rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* --- BOTONES --- */
.btn-solid {
    display: inline-block;
    background-color: var(--gold);
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-text);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 144, 82, 0.3);
}

.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(184, 144, 82, 0.5);
    background-color: #a88248;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #ffffff;
}

.floating-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- PORTADA (HERO) --- */
.hero {
    height: 100vh;
    /* Imagen de fondo en tonos claros (flores blancas/crema) */
    background: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.6); /* Capa translúcida blanca para resaltar texto */
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}

.top-text { font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-light); }
.names { font-family: var(--font-titles); font-size: 4.5rem; color: var(--gold); margin: 20px 0; font-style: italic; }
.date { font-size: 1.2rem; color: var(--text-main); font-weight: 500; }

.scroll-indicator {
    position: absolute; bottom: 30px;
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.8rem; color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- TARJETAS CRISTAL (Diseño Claro) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); /* Sombra sutil para dar profundidad */
}

/* --- CONTADOR --- */
.timer-grid { display: flex; justify-content: space-around; text-align: center; max-width: 600px; margin: 0 auto; }
.timer-box span { display: block; font-size: 2.5rem; font-family: var(--font-titles); color: var(--gold); }
.timer-box p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }

/* --- ITINERARIO --- */
.timeline { position: relative; max-width: 600px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--gold); top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.timeline-item { padding: 20px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 16px; height: 16px; right: -8px;
    background-color: var(--bg-color); border: 3px solid var(--gold);
    top: 30px; border-radius: 50%; z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -8px; }
.time { font-weight: 500; font-size: 1.2rem; color: var(--gold); margin-bottom: 10px; }
.icon-gold { color: var(--gold); margin-right: 8px; }

/* --- DETALLES --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.highlight-text { font-family: var(--font-titles); font-size: 1.8rem; margin: 10px 0; color: var(--text-main); }
.small-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.5; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 0; font-size: 0.9rem; color: var(--text-light); background-color: #f0e6d2; }

/* --- ANIMACIONES DE APARICIÓN --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .names { font-size: 3rem; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 12px; }
}