body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    text-align: center;
    padding: 20px;
}

.volver {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: pink;
    border-radius: 9px;
    padding: 10px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.volver a {
    color: black;
    text-decoration: none;
    display: block;
}

.volver:hover {
    background-color: rgb(255, 182, 193);
}

.contenedor {
    max-width: 600px;
    margin: auto;
}

.titulo h2 {
    cursor: pointer;
    background-color: #ffccdc;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s;
}

.titulo h2:hover {
    background-color: #ff99b5;
}

.cajon {
    max-height: 0;
    overflow: hidden;
    transform-origin: top;
    transform: rotateX(90deg);
    opacity: 0;
    transition: transform 0.6s ease-out, max-height 0.6s ease-out, opacity 0.3s ease-out;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: justify;
    line-height: 1.5;
    background-color: black;
    color: #ffccdc;
}

@keyframes volarYCaer {
    0% {
        transform: translateY(-100vh) rotate(-10deg) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

.contenedor {
    animation: volarYCaer 1.8s ease-out forwards;
    opacity: 0;
}

@keyframes brilloSuave {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 182, 193, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 182, 193, 0.7);
    }
}

.cajon {
    animation: brilloSuave 2.5s infinite;
}

#estrellas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

@keyframes maquina {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.maquina {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid pink;
    animation: maquina 5s steps(80, end) forwards;
}

@keyframes latido {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.corazon {
    animation: latido 1s infinite;
    font-size: 24px;
    color: red;
}

#petalos-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ffb6c1 20%, transparent 80%);
    border-radius: 50%;
    opacity: 0.8;
    animation: caer 6s linear infinite;
}

@keyframes caer {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 1;
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: black; /* Fondo negro */
    text-align: center;
    padding: 20px;
    color: white; /* Texto blanco para resaltar */
    position: relative;
    overflow: hidden;
}

.volver {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: pink;
    border-radius: 9px;
    padding: 10px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.volver a {
    color: black;
    text-decoration: none;
    display: block;
}

.volver:hover {
    background-color: rgb(255, 182, 193);
}

.titulo h2 {
    cursor: pointer;
    background-color: #ffccdc;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s, box-shadow 0.5s ease-in-out;
    position: relative;
    color: #ff4081; /* Color brillante para el título */
    font-size: 2em;
}

.titulo h2:hover {
    background-color: #ff99b5;
    box-shadow: 0 0 25px #ffccdc, 0 0 50px #ff4081, 0 0 75px #ff4081; /* Efecto de resplandor */
}

/* Efecto de luz dinámica alrededor del título */
@keyframes luzDinamica {
    0% {
        box-shadow: 0 0 25px rgba(255, 182, 193, 0.7), 0 0 50px rgba(255, 182, 193, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 182, 193, 1), 0 0 75px rgba(255, 182, 193, 0.7);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 182, 193, 0.7), 0 0 50px rgba(255, 182, 193, 0.5);
    }
}

.titulo h2 {
    animation: luzDinamica 2s infinite alternate; /* Efecto de luz dinámica */
}

/* Fondo estrellado */
#estrellas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

@keyframes caer {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 1;
    }
}
