/* Estilos generales del cuerpo */
body {
    margin: 0;
    overflow: hidden;
    background-color: #000; /* Fondo negro como en la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Contenedor principal de la flor */
.sunflower-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-150px);
}

/* Contenedor para la cabeza de la flor que brillará */
.flower-head {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: glow 4s infinite alternate ease-in-out;
    z-index: 1; 
}

@media (min-width: 600px) {
    .sunflower-container {
        width: 400px;
        height: 400px;
    }
}

/* Efecto de brillo */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 15px #FFD700) drop-shadow(0 0 25px #FFA500);
    }
    to {
        filter: drop-shadow(0 0 30px #FFD700) drop-shadow(0 0 45px #FFA500);
    }
}

/* Estilo base de los pétalos */
.petal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: bottom center; 
}

/* Pétalos de la capa trasera */
.petal-back {
    width: 70px;
    height: 180px;
    background: linear-gradient(to top, #FFC300, #FFD700);
    border-radius: 50% 50% 0 0;
}

/* Pétalos de la capa frontal */
.petal-front {
    width: 60px;
    height: 150px;
    background: linear-gradient(to top, #FFD700, #FFEEB3);
    border-radius: 50% 50% 0 0;
    z-index: 2; 
}

/* Centro de la flor */
.center {
    position: relative;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #5a3e1e 30%, #6b4f2c 60%, #4a2e0e 90%);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
    z-index: 3; 
}

/* Tallo de la flor */
.stem {
    position: absolute;
    bottom: -330px; 
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 350px;
    background: linear-gradient(to right, #006400, #3CB371);
    border-radius: 0 0 10px 10px;
    z-index: 0; /* al fondo */
}

/* Hojas de la flor */
.leaf {
    position: absolute;
    width: 70px;
    height: 90px;
    background: linear-gradient(to bottom right, #228B22, #32CD32);
    border-radius: 10px 100%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

/* --- NUEVOS ESTILOS PARA EL MENSAJE --- */

/* Contenedores */
.message-container-left,
.message-container-right {
    position: absolute;
    top: 65%; 
    transform: translateY(-50%);
    z-index: 4;
}

.message-container-left {
    right: 50%;
    margin-right: 120px; 
    text-align: right;
}

.message-container-right {
    left: 50%;
    margin-left: 120px; 
    text-align: left;
}

/* Estilo del mensaje */
.message {
    font-family: 'Playfair Display', serif; 
    font-style: italic;
    color: #fff;
    font-size: 28px; 
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500;
    animation: fadeIn 5s ease-in-out forwards;
    opacity: 0;
    white-space: nowrap; 
}

/* Animación para el mensaje */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}