/* ===================================================
   MODELO INVITACIÓN: JARDÍN FLORAL
   =================================================== */

/* 1. VARIABLES Y RESET */
:root {
    /* PALETA FLORAL */
    --color-primary: #d63384;       /* Rosa Fuerte */
    --color-secondary: #f8c2d5;     /* Rosa Pastel */
    --color-accent: #d4af37;        /* Dorado Clásico */
    --color-green: #8fbc8f;         /* Verde Salvia (DarkSeaGreen) */
    --color-bg-light: #fff0f5;      /* LavenderBlush */
    --color-white: #ffffff;
    --color-text: #4a4a4a;          /* Gris Oscuro Suave */
    
    /* FUENTES */
    --font-body: 'Poppins', sans-serif;
    --font-title: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    /* Degradado sutil primaveral */
    background-image: linear-gradient(180deg, #fff0f5 0%, #ffffff 50%, #fff0f5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 120px; /* Espacio extra para las flores del pie */
}

/* 2. TIPOGRAFÍA */
.font-cursive { font-family: var(--font-title); font-weight: 400; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* 3. ESTRUCTURA */
.container {
    max-width: 650px; 
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(214, 51, 132, 0.1); /* Sombra rosada suave */
    border-left: 1px solid white;
    border-right: 1px solid white;
    position: relative;
    z-index: 10;
    margin-bottom: -60px; /* Fusión con footer */
    border-radius: 20px 20px 0 0; /* Bordes superiores redondeados */
}

.section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    font-size: 2.8em;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-family: var(--font-title);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3); /* Sombra dorada */
}

/* Decorador de título (línea con flor) */
.section-title::after {
    content: '❀';
    display: block;
    font-size: 0.5em;
    color: var(--color-green);
    margin-top: 5px;
    opacity: 0.7;
}

/* 4. DECORACIONES FLOTANTES Y FIJAS */

/* Esquina Superior Izquierda (Fija) */
.floral-corner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px; 
    z-index: 20;
    pointer-events: none;
}
.floral-corner-decoration img { width: 100%; display: block; }

/* Pie de Página (Fijo) */
.footer-floral-decoration {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    margin-top: -80px; /* Superposición generosa */
    pointer-events: none;
    text-align: center;
}
.footer-floral-decoration img { width: 100%; max-width: 800px; display: block; margin: 0 auto; }

/* Contenedor de Flores Cayendo (GIFs) */
.falling-flowers-container {
    position: fixed;
    top: -10%; /* Empiezan arriba fuera de pantalla */
    left: 0;
    width: 100%;
    height: 120%; /* Un poco más alto para cubrir todo */
    pointer-events: none;
    z-index: 50; 
    overflow: hidden;
}

.falling-flower {
    position: absolute;
    width: 25px; 
    opacity: 0.8;
    animation-name: fallAndSway;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fallAndSway {
    0% { top: -10%; transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(30px) rotate(90deg); }
    50% { transform: translateX(-30px) rotate(180deg); }
    75% { transform: translateX(30px) rotate(270deg); }
    100% { top: 110%; transform: translateX(0) rotate(360deg); }
}

/* Decoración Estratégica (Página/Separador) */
.page-decoration {
    display: block;
    margin: 30px auto;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05));
}

/* 5. HERO / ENCABEZADO */
.hero {
    position: relative;
    /* Altura ajustada para lucir la imagen de encabezado */
    height: auto; 
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center; 
    text-align: center;
    color: var(--color-white);
    margin: 0 -20px;
    overflow: hidden;
    background-color: var(--color-secondary); 
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Si es una imagen completa con texto, no necesitamos overlay fuerte, pero por si acaso: */
}

/* Capa de texto sobre el Hero (Opcional si la imagen ya tiene texto) */
.hero-text-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text-overlay h1 {
    font-size: 4.5em;
    line-height: 0.9;
    color: white;
    font-family: var(--font-title);
}

.hero-text-overlay h2 {
    font-size: 1.2em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 300;
}

/* 6. CUENTA REGRESIVA ELEGANTE */
.countdown-box {
    margin-top: -40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.15);
    position: relative;
    z-index: 15;
    border: 1px solid var(--color-secondary);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#timer {
    display: flex;
    justify-content: space-around;
    font-size: 1.3em;
    color: var(--color-primary);
    font-weight: 700;
}

#timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer span.label {
    font-size: 0.4em;
    text-transform: uppercase;
    color: #999;
    font-weight: 400;
    margin-top: -3px;
}

/* 7. CONTENIDO GENERAL */
.mensaje-bienvenida {
    font-style: italic;
    color: #666;
    margin: 25px 0;
    font-size: 1.1em;
    padding: 20px;
    background-color: #fffafc; /* Fondo muy suave */
    border-radius: 10px;
    border: 1px dashed var(--color-secondary);
}

.invitado-badge {
    background: var(--color-primary);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
    font-size: 0.9em;
    letter-spacing: 1px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 10px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.1);
    border-color: var(--color-secondary);
}

.info-card i {
    font-size: 2.2em;
    color: var(--color-green); /* Iconos verdes para contraste natural */
    margin-bottom: 15px;
    display: block;
}

/* 8. BOTONES ESTILO JARDÍN */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #c2185b);
    color: white;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
}
.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
}

/* 9. GALERÍA */
.collage-container {
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #eee;
}
.collage-img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

/* 10. MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(255, 240, 245, 0.9); /* Fondo rosa pálido semitransparente */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.4s ease;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 10px 40px rgba(214, 51, 132, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}
.close-modal:hover { color: var(--color-primary); }

/* 11. REPRODUCTOR */
.music-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--color-green), #6b8e23); /* Verde natural */
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.4);
    cursor: pointer;
    z-index: 200;
    border: 3px solid white;
    transition: transform 0.3s;
}
.music-control:hover { transform: rotate(360deg); }