body {
    margin: 0;
    padding: 0;
    font-family: 'Dancing Script', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    animation: backgroundChange 10s infinite alternate;
}

/* Fondo azul */
@keyframes backgroundChange {
    0% { background-color: #e3f2fd; } 
    25% { background-color: #bbdefb; } 
    50% { background-color: #90caf9; } 
    75% { background-color: #64b5f6; } 
    100% { background-color: #42a5f5; }
}

/* Contenedor de emojis */
.hearts-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 🎉 emojis flotando */
.heart {
    position: absolute;
    animation: float 5s linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh); opacity: 1; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* Cuadros */
.container {
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    margin-top: 40px;
    z-index: 2;
    position: relative;
}

/* Texto */
h1 {
    color: #0d47a1;
}

h2 {
    color: #1565c0;
}

p {
    color: #1a237e;
    font-size: 18px;
}

/* Botón */
button {
    background: #1976d2;
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background: #0d47a1;
}

/* Oculto */
.oculto {
    display: none;
}

/* 🎉 confeti */
.confeti {
    position: fixed;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    z-index: 999;
    animation: caer 3s linear forwards;
}

@keyframes caer {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
