/* ---------------------------------- */
/* 1. ESTILOS GENERALES Y ESCRITORIO  */
/* ---------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #444;
    background-color: #e0b0ff; /* Fondo púrpura suave */
    text-align: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-image: url('sakura-background.1.jpg'); /* Reemplaza con tu imagen */
    background-size: cover;
    background-position: center;
}

/* Contenedor de pétalos - se superpone a todo */
.petal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ----------------------------------- */
/* C R E A C I Ó N   D E   P É T A L O S */
/* ----------------------------------- */

/* Grupo 1: Pétalos principales (ya existía) */
.petal-container::before,
.petal-container::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 192, 203, 0.9); /* Rosa cereza más claro y definido */
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 192, 203, 0.7);
    opacity: 0;
    animation: fall 15s linear infinite;
    transform: rotate(0deg);
    z-index: 2;
}

.petal-container::before {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
    transform: scale(0.8) rotate(20deg);
}

.petal-container::after {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 18s;
    transform: scale(1.1) rotate(-30deg);
}

/* Grupo 2: Pétalos secundarios (ya existía) */
body::before, body::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 192, 203, 0.8); /* Rosa cereza más claro y definido, ligeramente más transparente */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 192, 203, 0.6);
    opacity: 0;
    animation: fall 17s linear infinite;
    transform: rotate(0deg);
    z-index: 0;
}

body::before {
    left: 30%;
    animation-delay: 6s;
    animation-duration: 14s;
    transform: scale(0.7) rotate(45deg);
}

body::after {
    left: 80%;
    animation-delay: 9s;
    animation-duration: 16s;
    transform: scale(1.0) rotate(-10deg);
}

/* --- NUEVOS GRUPOS DE PÉTALOS PARA MAYOR DENSIDAD --- */

/* Grupo 3: Usando html::before y html::after */
html::before, html::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: rgba(255, 192, 203, 0.85); /* Un poco más de opacidad */
    border-radius: 50%;
    box-shadow: 0 0 5.5px rgba(255, 192, 203, 0.65);
    opacity: 0;
    animation: fall 14s linear infinite; /* Duración ligeramente diferente */
    transform: rotate(0deg);
    z-index: 1; /* Nivel intermedio */
}

html::before {
    left: 20%;
    animation-delay: 1s; /* Nuevo retraso */
    animation-duration: 11s; /* Nueva duración */
    transform: scale(0.9) rotate(10deg);
}

html::after {
    left: 70%;
    animation-delay: 4s; /* Nuevo retraso */
    animation-duration: 19s; /* Nueva duración */
    transform: scale(1.2) rotate(-20deg);
}

/* Grupo 4: Más pétalos en el petal-container (un truco para simular más elementos) */
/* Se logra añadiendo más reglas a .petal-container::before y .petal-container::after
 *  con selectores nth-of-type si tuvieras más de un .petal-container, pero aquí
 *  podemos simplemente añadir más reglas generales para crear más "instancias"
 *  de caída en diferentes lugares.
 *  Para CSS puro, esta es la forma de "engañar" al navegador para que muestre más.
 *  Tendremos que añadir clases o elementos extra si queremos *muchos* pétalos.
 *  Por ahora, optimicemos los existentes al máximo con diferentes "starts".
 */

/* Simulemos más pétalos con diferentes delays para los existentes */
.petal-container::before:nth-of-type(1) { /* Esto no es sintaxis estándar para pseudo-elementos únicos */
    /* Por lo tanto, necesitamos crear nuevas "entidades" visuales si queremos más.
     *      La forma más sencilla de hacerlo sin más HTML es usar los pseudo-elementos
     *      de otros selectores como ya estamos haciendo.
     *      Para obtener *realmente* muchos más pétalos sin JS, tendríamos que anidar divs
     *      o usar un preprocesador. Para mantenerlo simple, esta es la máxima densidad
     *      que podemos lograr con los actuales.
     */
}

/* Una alternativa es añadir más reglas de animación a los mismos elementos,
 *  pero eso puede complicar el control individual.
 *  La mejor manera es usar múltiples elementos con sus ::before/::after.
 *  Para conseguir más pétalos, podemos "reutilizar" las propiedades de los
 *  pseudo-elementos existentes con diferentes delays. */

/* Ajuste y adición de más animaciones a los mismos pseudo-elementos para simular más "caídas" */
/* Este enfoque crea más "flujos" de pétalos. */

.petal-flow-1 { /* Esto no funciona así, debemos usar los selectores base */ }


/* Definición de la animación de caída */
@keyframes fall {
    0% {
        transform: translateY(-10%) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(105vh) translateX(50px) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

/* ----------------------------------- */
/* ESTILOS DEL CONTENIDO PRINCIPAL    */
/* ----------------------------------- */

.splash-container {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    width: 90%;
    position: relative;
    z-index: 10;
}

.names {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    color: #c2185b;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.tagline {
    font-style: italic;
    color: #888;
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 300;
    font-size: 1.1em;
}

.details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #d81b60;
    border-bottom: 2px solid #f48fb1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.date {
    font-size: 1.5em;
    font-weight: bold;
    color: #6a1b9a;
    margin-bottom: 8px;
}

.location {
    font-size: 1.2em;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    background-color: #e91e63;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4);
}

.cta-button:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

.note {
    margin-top: 40px;
    font-size: 0.9em;
    color: #aaa;
}

/* ---------------------------------- */
/* 2. MEDIA QUERY PARA MÓVIL (< 600px)*/
/* ---------------------------------- */

@media (max-width: 600px) {

    .splash-container {
        padding: 40px 20px;
        width: 95%;
    }

    .names {
        font-size: 3em;
    }

    .tagline {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .details h2 {
        font-size: 1.5em;
    }

    .date {
        font-size: 1.3em;
    }

    .location {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .note {
        margin-top: 20px;
    }
}
