* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --line-color: linear-gradient(to left top, #82ff86 20%, #144425, #104e1c);
    --flower-center: radial-gradient(circle, #3d2003, #8b4513);
    --leaf-color: radial-gradient(circle, #82ff86, #104e1c);
    --petal-color: radial-gradient(circle, #ff5e00, #ffbb00);
    --dorado-claro: #F9E076;
}

body {
    background-color: #000;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

/* Fondo con imagen desenfocada */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.dl.dropboxusercontent.com/scl/fi/fl2r4nxntvp5g6d1259li/GIRASOLFONDO.png?rlkey=gxwqa1g0gd34r3k0j6v506gd1&st=p40j52o7');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.2;
    z-index: -1;
}

/* Brillo dorado en esquinas */
body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 187, 0, 0.3) 0%, transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 187, 0, 0.3) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Pantalla de Bienvenida */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.start-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-title {
    color: #ffbb00;
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 187, 0, 0.5);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.start-button {
    background: linear-gradient(135deg, #ff5e00, #ffbb00);
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.4);
    transition: all 0.3s ease;
}

.start-button::before {
    content: '🌻';
    margin-right: 10px;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 94, 0, 0.6);
}

/* Contenedor Principal */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 4rem;
    position: relative;
    z-index: 10;
}

.main-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: #ffbb00;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(255, 187, 0, 0.3);
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
}

.sunflower-container {
    width: 100%;
    height: 80vh;
    display: flex;
    /* Usamos flexbox para los tres girasoles */
    justify-content: center;
    align-items: flex-end;
    /* Alinear los girasoles en la parte inferior */
    position: relative;
    gap: 5vmin;
    /* Espacio entre los girasoles */
}

.sunflower {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Cada girasol es un elemento posicionado */
    margin-top: 5rem;
}


/* Estilos para los girasoles hijos */
.child-sunflower {
    transform: scale(0.6);
    /* Reduce el tamaño */
    transform-origin: bottom center;
}

.child-sunflower.left {
    margin-left: -5vmin;
    animation:
        moving-flower-sway-left 4s linear infinite,
        sunflower-glow 2s ease-in-out infinite;
}

.child-sunflower.right {
    margin-right: -5vmin;
    animation:
        moving-flower-sway-right 4s linear infinite,
        sunflower-glow 2s ease-in-out infinite;
}

.flower_wrapper {
    position: relative;
    animation:
        moving-flower-sway 4s linear infinite,
        sunflower-glow 2s ease-in-out infinite;
}

/* Orden de Animación del Girasol */
.flower_center {
    position: absolute;
    top: 0vmin;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    width: 20vmin;
    height: 20vmin;
    border-radius: 50%;
    background: var(--flower-center);
    animation: open-flower-center 2s 0.5s backwards;
}

.flower_stem {
    width: 2vmin;
    height: 65vmin;
    background-image: var(--line-color);
    border-radius: 4vmin;
    transform-origin: center bottom;
    animation: grow-stem 2s 1.0s backwards;
}

.flower_petal {
    position: absolute;
    left: 50%;
    z-index: 3;
    bottom: 55vmin;
    width: 7vmin;
    height: 20vmin;
    background: var(--petal-color);
    clip-path: ellipse(50% 50% at 50% 50%);
    transform-origin: center bottom;
    opacity: 0;
    animation: draw-petal-effect 0.8s forwards;
}

.flower_petal-1 {
    --rotation: 0deg;
    animation-delay: 3.0s;
}

.flower_petal-2 {
    --rotation: -30deg;
    animation-delay: 3.2s;
}

.flower_petal-3 {
    --rotation: -60deg;
    animation-delay: 3.4s;
}

.flower_petal-4 {
    --rotation: -90deg;
    animation-delay: 3.6s;
}

.flower_petal-5 {
    --rotation: -120deg;
    animation-delay: 3.8s;
}

.flower_petal-6 {
    --rotation: -150deg;
    animation-delay: 4.0s;
}

.flower_petal-7 {
    --rotation: 30deg;
    animation-delay: 3.2s;
}

.flower_petal-8 {
    --rotation: 60deg;
    animation-delay: 3.4s;
}

.flower_petal-9 {
    --rotation: 90deg;
    animation-delay: 3.6s;
}

.flower_petal-10 {
    --rotation: 120deg;
    animation-delay: 3.8s;
}

.flower_petal-11 {
    --rotation: 150deg;
    animation-delay: 4.0s;
}

.flower_petal-12 {
    --rotation: 180deg;
    animation-delay: 3.0s;
}

.flower_leaf {
    position: absolute;
    left: 50%;
    width: 7vmin;
    height: 17vmin;
    background: var(--leaf-color);
    border-radius: 10vmin 2vmin 10vmin 2vmin;
    transform-origin: center bottom;
    opacity: 0;
}

.flower_leaf-1 {
    bottom: 18vmin;
    --transform-final: translateX(-50%) rotate(90deg);
    animation: grow-leaf 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 5s forwards;
}

.flower_leaf-2 {
    bottom: 23vmin;
    --transform-final: translateX(-50%) rotate(-90deg);
    animation: grow-leaf 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 5.6s forwards;
}

.center_dot {
    position: absolute;
    width: 1.5vmin;
    height: 1.5vmin;
    background-color: #4a2a07;
    border-radius: 50%;
    opacity: 0;
    animation: pop-in 0.8s ease-out forwards;
}

.center_dot-1 {
    top: 25%;
    left: 50%;
    animation-delay: 4.5s;
}

.center_dot-2 {
    top: 45%;
    left: 55%;
    animation-delay: 4.6s;
}

.center_dot-3 {
    top: 35%;
    left: 35%;
    animation-delay: 4.7s;
}

.center_dot-4 {
    top: 60%;
    left: 40%;
    animation-delay: 4.8s;
}

.center_dot-5 {
    top: 55%;
    left: 70%;
    animation-delay: 4.9s;
}

.center_dot-6 {
    top: 75%;
    left: 50%;
    animation-delay: 5.0s;
}

.center_dot-7 {
    top: 30%;
    left: 70%;
    animation-delay: 5.1s;
}

.center_dot-8 {
    top: 80%;
    left: 30%;
    animation-delay: 5.2s;
}

/* Sección del Mensaje de Amor */
.love-message-section {
    width: 100%;
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    text-align: center;
}

.love-message-content {
    max-width: 700px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 187, 0, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(8px);
    position: relative;
    animation: section-glow 2s ease-in-out infinite;
}

.love-message-content h2 {
    font-family: 'Pacifico', cursive;
    color: #ffbb00;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.love-message-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Imagen de flor con resplandor */
.footer-image {
    display: block;
    width: 130%;
    max-width: 200px;
    height: auto;
    margin: 2rem auto 0;
    border-radius: 25px;
    position: relative;
    animation: image-glow 2s ease-in-out infinite;
}

/* Botón de Música */
#musicButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 187, 0, 0.2);
    border: 1px solid rgba(255, 187, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#musicButton:hover {
    background: rgba(255, 187, 0, 0.4);
    transform: scale(1.1);
}

#musicButton svg {
    width: 24px;
    height: 24px;
    fill: #ffbb00;
}

#playIcon,
#pauseIcon {
    transition: opacity 0.3s ease;
}

#pauseIcon {
    display: none;
}

/* Capas de partículas */
.light {
    position: fixed;
    width: 0.8vmin;
    height: 0.8vmin;
    background-color: rgb(255, 251, 0);
    border-radius: 50%;
    filter: blur(0.15vmin);
    animation: twinkle 6s linear infinite;
    z-index: 1;
}

.flotantes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.petalo {
    position: absolute;
    opacity: 0;
    color: var(--dorado-claro);
    font-size: 1.5rem;
    animation: caer 12s linear infinite;
}

/* Más partículas de fondo */
.light-1 {
    top: 10%;
    left: 15%;
    animation-duration: 5s;
}

.light-2 {
    top: 50%;
    left: 80%;
    animation-duration: 4s;
}

.light-3 {
    top: 80%;
    left: 30%;
    animation-duration: 6s;
}

.light-4 {
    top: 30%;
    left: 5%;
    animation-duration: 3.5s;
}

.light-5 {
    top: 90%;
    left: 95%;
    animation-duration: 5.5s;
}

.light-6 {
    top: 5%;
    left: 50%;
    animation-duration: 4.2s;
}

.light-7 {
    top: 65%;
    left: 60%;
    animation-duration: 7s;
}

.light-8 {
    top: 20%;
    left: 90%;
    animation-duration: 3.8s;
}

.light-9 {
    top: 40%;
    left: 25%;
    animation-duration: 5.2s;
}

.light-10 {
    top: 75%;
    left: 10%;
    animation-duration: 6.5s;
}

.light-11 {
    top: 15%;
    left: 70%;
    animation-duration: 4.8s;
}

.light-12 {
    top: 95%;
    left: 45%;
    animation-duration: 3.2s;
}

.light-13 {
    top: 55%;
    left: 5%;
    animation-duration: 5.8s;
}

.light-14 {
    top: 25%;
    left: 40%;
    animation-duration: 4.5s;
}

.light-15 {
    top: 85%;
    left: 75%;
    animation-duration: 6.2s;
}

.light-16 {
    top: 5%;
    left: 20%;
    animation-duration: 3.9s;
}

.light-17 {
    top: 50%;
    left: 95%;
    animation-duration: 5.3s;
}

.light-18 {
    top: 70%;
    left: 50%;
    animation-duration: 4.1s;
}

.light-19 {
    top: 35%;
    left: 85%;
    animation-duration: 6.8s;
}

.light-20 {
    top: 90%;
    left: 15%;
    animation-duration: 3.6s;
}

.light-21 {
    top: 8%;
    left: 80%;
    animation-duration: 5.1s;
}

.light-22 {
    top: 60%;
    left: 35%;
    animation-duration: 4.6s;
}

.light-23 {
    top: 22%;
    left: 65%;
    animation-duration: 6.3s;
}

.light-24 {
    top: 78%;
    left: 90%;
    animation-duration: 3.7s;
}

.light-25 {
    top: 12%;
    left: 5%;
    animation-duration: 5.6s;
}

.light-26 {
    top: 45%;
    left: 55%;
    animation-duration: 4.3s;
}

.light-27 {
    top: 92%;
    left: 25%;
    animation-duration: 6.6s;
}

.light-28 {
    top: 3%;
    left: 30%;
    animation-duration: 3.4s;
}

.light-29 {
    top: 68%;
    left: 88%;
    animation-duration: 5.9s;
}

.light-30 {
    top: 18%;
    left: 48%;
    animation-duration: 4.9s;
}

.light-31 {
    top: 82%;
    left: 8%;
    animation-duration: 6.1s;
}

.light-32 {
    top: 28%;
    left: 98%;
    animation-duration: 3.3s;
}

.light-33 {
    top: 58%;
    left: 28%;
    animation-duration: 5.4s;
}

.light-34 {
    top: 2%;
    left: 75%;
    animation-duration: 4.7s;
}

.light-35 {
    top: 88%;
    left: 58%;
    animation-duration: 6.9s;
}

.light-36 {
    top: 48%;
    left: 2%;
    animation-duration: 3.1s;
}

.light-37 {
    top: 72%;
    left: 42%;
    animation-duration: 5.7s;
}

.light-38 {
    top: 23%;
    left: 18%;
    animation-duration: 4.4s;
}

.light-39 {
    top: 98%;
    left: 82%;
    animation-duration: 6.4s;
}

.light-40 {
    top: 52%;
    left: 72%;
    animation-duration: 3.5s;
}

/* Keyframes & Animaciones */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 20px rgba(255, 187, 0, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 187, 0, 0.8), 0 0 40px rgba(255, 94, 0, 0.4);
    }
}

/* Animación del resplandor del girasol más intensa y suave */
@keyframes sunflower-glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 223, 0, 0.9));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 223, 0, 1));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 223, 0, 0.9));
    }
}

/* Resplandor para la sección de texto */
@keyframes section-glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 223, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 223, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 223, 0, 0.5);
    }
}

/* Resplandor para la imagen */
@keyframes image-glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 223, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 223, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 223, 0, 0.5);
    }
}

/* Balanceo más rápido e intenso para el girasol principal */
@keyframes moving-flower-sway {

    0%,
    100% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

/* Balanceo para el girasol hijo izquierdo */
@keyframes moving-flower-sway-left {

    0%,
    100% {
        transform: scale(0.6) translateX(-35vmin) rotate(3deg);
    }

    50% {
        transform: scale(0.6) translateX(-35vmin) rotate(-3deg);
    }
}

/* Balanceo para el girasol hijo derecho */
@keyframes moving-flower-sway-right {

    0%,
    100% {
        transform: scale(0.6) translateX(15vmin) rotate(-3deg);
    }

    50% {
        transform: scale(0.6) translateX(15vmin) rotate(3deg);
    }
}

@keyframes draw-petal-effect {
    from {
        opacity: 0;
        transform: translateX(-50%) rotate(var(--rotation)) scale(0);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) rotate(var(--rotation)) scale(1);
    }
}

@keyframes grow-stem {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes open-flower-center {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes grow-leaf {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    to {
        opacity: 1;
        transform: var(--transform-final);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.7) translateY(0px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
        transform: scale(1.1) translateY(-20px);
    }
}

@keyframes caer {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.animation-paused * {
    animation-play-state: paused !important;
}

@media (max-width: 768px) {

    /* Oculta las barras de desplazamiento */
    body::-webkit-scrollbar {
        display: none;
    }

    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Mantenemos el contenedor en fila, igual que en escritorio */
    .sunflower-container {
        flex-direction: row;
        align-items: flex-end;
        /* Alinea los girasoles en la parte inferior de sus tallos */
        justify-content: center;
        gap: 2vmin;
        /* Reduce el espacio entre ellos para que quepan */
        height: 70vh;
        /* Ajusta la altura del contenedor para una mejor visualización */
    }

    /* Reducimos el tamaño de todos los girasoles */
    .sunflower {
        transform: scale(0.95);
        /* Reducimos el tamaño de todos los girasoles */
        transform-origin: bottom center;
    }

    /* Ajustes para el girasol principal */
    #main-sunflower {
        transform: scale(0.98);
        /* El principal puede ser un poco más grande que los hijos */
        bottom: 35vh;
    }

    /* Reseteamos la posición de los girasoles hijos para que estén en línea */
    .child-sunflower {
        position: relative;
        left: auto;
        right: auto;
        bottom: 30vh;
        transform: scale(0.95);
        /* Escala de los hijos */
    }

    /* Ajustes para el contenido de texto */
    .love-message-content {
        width: 90%;
        padding: 2rem 1rem;
        bottom: 28vh;
    }

    .main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }


    /* Ajusta las animaciones de sway para que funcionen con la nueva escala */
    @keyframes moving-flower-sway {

        0%,
        100% {
            transform: scale(0.85) rotate(5deg);
        }

        50% {
            transform: scale(0.85) rotate(-5deg);
        }
    }

    @keyframes moving-flower-sway-left {

        0%,
        100% {
            transform: scale(0.85) translateX(-25vmin) rotate(3deg);
        }

        50% {
            transform: scale(0.85) translateX(-25vmin) rotate(-3deg);
        }
    }

    @keyframes moving-flower-sway-right {

        0%,
        100% {
            transform: scale(0.85) translateX(20vmin) rotate(-3deg);
        }

        50% {
            transform: scale(0.85) translateX(20vmin) rotate(3deg);
        }
    }
}