:root {
    --rosa-intenso: #e44f9c;
    --fucsia: #ff69b4;
    --rosa-pastel: #ff97d9;
    --morado-vibrante: #bd13ec;
    --morado-claro: #dd63ff;
    --texto: #4a4a4a;
    --blanco-papel: #fffcfd;
    --oro: #d4af37;
}

* { box-sizing: border-box; }

body, html { 
    margin: 0; padding: 0; 
    font-family: 'Montserrat', sans-serif;
    background-color: #fff5f8; 
    color: var(--texto);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- MODAL DE APERTURA (SOBRE DE LUJO) --- */
#welcomeModal {
    position: fixed; inset: 0; 
    background: #fdfdfd;
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; 
    transition: opacity 1.5s ease-out, visibility 1.5s;
}

.envelope-content {
    position: relative;
    width: 350px; height: 250px;
    background: #fff0f5;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid #ffdeeb;
    /* Efecto de solapa triangular visual */
    clip-path: polygon(0 0, 50% 15%, 100% 0, 100% 100%, 0 100%);
    padding-top: 30px;
}

.envelope-names {
    font-family: 'Playfair Display'; 
    color: var(--rosa-intenso); 
    font-size: 3rem; margin: 0;
    letter-spacing: 5px;
}

.envelope-subtitle {
    font-size: 0.7rem; letter-spacing: 2px;
    color: #888; margin-top: 10px; margin-bottom: 25px;
}

/* Botón Sello de Lacre */
.wax-seal-btn {
    background: linear-gradient(135deg, var(--rosa-intenso), #c2185b);
    width: 80px; height: 80px;
    border-radius: 50%; border: none;
    color: white; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
    position: relative;
}

.wax-seal-btn:hover { transform: scale(1.1); }
.seal-inner { font-size: 0.7rem; font-weight: bold; letter-spacing: 1px; }

/* --- SLIDER HERO --- */
.hero-slider {
    height: 100vh; width: 100%;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 2.5s ease-in-out;
}
.slide.active {
    opacity: 1;
    animation: kenburns 15s infinite alternate ease-in-out;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* AJUSTE PARA QUE LAS FOTOS SE VEAN MEJOR */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%; /* Ajusta el enfoque más arriba para no cortar cabezas */
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

/* OVERLAY MÁS ELEGANTE Y MENOS INVASIVO */
.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    /* Quitamos el fondo sólido y usamos un degradado suave inferior */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto */
    align-items: center;
}

.hero h1 {
    font-family: 'Playfair Display';
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    margin: 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6); /* Sombra para que se lea sobre cualquier foto */
}

.hero h2 {
    letter-spacing: 8px;
    font-weight: 200;
    font-size: 1rem;
    margin-top: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
/* --- CONTENIDO PRINCIPAL --- */
#invitationContent {
    opacity: 0; transition: opacity 2s ease-in;
}

section {
    max-width: 800px; margin: 40px auto; padding: 80px 40px;
    background: var(--blanco-papel); text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.section-title { font-family: 'Playfair Display'; font-size: 2.8rem; color: var(--rosa-intenso); font-style: italic; }
.section-line { width: 60px; height: 1px; background: var(--rosa-intenso); margin: 25px auto 40px; }

.elegant-paragraph {
    font-family: 'Playfair Display'; font-size: 1.5rem;
    color: #666; line-height: 1.8;
}

/* --- ITINERARIO --- */
.itinerary-container { position: relative; max-width: 500px; margin: 0 auto; }
.itinerary-item { display: flex; align-items: center; margin-bottom: 50px; }
.itinerary-time { flex: 1; text-align: right; padding-right: 35px; font-weight: 600; color: var(--morado-vibrante); font-size: 1.1rem; }
.itinerary-dot { width: 12px; height: 12px; background: var(--rosa-intenso); border-radius: 50%; z-index: 2; box-shadow: 0 0 0 6px #fff; }
.itinerary-desc { flex: 2; text-align: left; padding-left: 35px; font-family: 'Playfair Display'; font-size: 1.4rem; color: var(--texto); }
.itinerary-container::before { content: ''; position: absolute; left: calc(33.33% + 14px); top: 0; bottom: 0; width: 1px; background: var(--rosa-pastel); }

/* --- CONTADOR --- */
.countdown { display: flex; justify-content: center; gap: 30px; }
.count-item span { display: block; font-size: 3rem; font-family: 'Playfair Display'; color: var(--morado-vibrante); }

/* --- MAPA --- */
.map-frame {
    width: 100%; height: 400px;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 5px solid white;
}

/* --- BOTONES Y EXTRAS --- */
.btn-wa {
    background: var(--morado-vibrante); color: white; padding: 20px 50px;
    text-decoration: none; border-radius: 50px; display: inline-block;
    font-weight: 600; transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(189, 19, 236, 0.2);
}
.btn-wa:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(189, 19, 236, 0.3); }

.music-control {
    position: fixed; bottom: 25px; left: 25px; z-index: 2000;
    background: white; border: 1px solid #eee;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- ANIMACIÓN PÉTALOS --- */
.petal {
    position: fixed; top: -10%; z-index: 1100;
    pointer-events: none;
    border-radius: 50% 0 50% 50%;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.05));
}

@keyframes fallingLeaf {
    0% { transform: translate(0, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translate(100px, 110vh) rotate(540deg) rotateY(360deg); opacity: 0; }
}

/* --- AGREGAR AL FINAL DE STYLE.CSS --- */
.itinerary-sub {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

/* --- ESTILOS PARA EL CAMPO DE NOMBRE --- */
.confirm-box {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.input-name {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border: 1px solid var(--rosa-pastel);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-name:focus {
    border-color: var(--morado-vibrante);
    box-shadow: 0 0 8px rgba(189, 19, 236, 0.1);
}

/* --- ALERTA PERSONALIZADA --- */
.custom-alert-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none; /* Se activa con JS */
    justify-content: center; align-items: center;
    z-index: 5000;
    transition: opacity 0.3s ease;
}

.custom-alert-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-top: 4px solid var(--rosa-intenso);
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-icon {
    font-size: 2rem;
    color: var(--rosa-intenso);
    margin-bottom: 10px;
}

.custom-alert-box p {
    font-family: 'Montserrat', sans-serif;
    color: var(--texto);
    font-weight: 400;
    margin-bottom: 20px;
}

.btn-alert-close {
    background: var(--rosa-intenso);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
}