body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #ff9ecb, #ffb3d9, #ffd6e8);
    background-size: 300% 300%;
    animation: fondo 15s ease infinite;
}

@keyframes fondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contenedor {
    position: relative;
    z-index: 2;
    margin-top: 12vh;
}

.marco {
    display: inline-block;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 120, 0.4);
}

h1 {
    font-size: 24px;
    color: #b30059;
    text-shadow: 0 0 8px #ffffff;
    margin: 0;
}

/* Botón */
#botonSi {
    margin-top: 30px;
    padding: 14px 30px;
    font-size: 20px;
    background: #ff4d88;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    animation: latido 1.5s infinite;
    box-shadow: 0 0 15px rgba(255, 0, 120, 0.6);
}

#botonSi:hover {
    background: #ff2b70;
}

@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Mensaje final */
#respuesta {
    margin-top: 20px;
    font-size: 22px;
    color: #b30059;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Mensaje TE AMO */
#teAmo {
    margin-top: 20px;
    font-size: 40px;
    color: #ff0066;
    opacity: 0;
    transition: opacity 1.5s ease;
    text-shadow: 0 0 12px white;
}

.latido {
    animation: latido 1.5s infinite;
}

/* Corazones y pétalos cayendo */
.corazonCae, .petalo {
    position: absolute;
    top: -10vh;
    animation: caer 7s linear infinite;
    opacity: 0.85;
}

@keyframes caer {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

/* Fotos flotando */
.fotoFlotante {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 0 18px rgba(255, 0, 120, 0.7);
    animation: flotar 12s ease-in-out infinite alternate;
}

@keyframes flotar {
    0% { transform: translateY(0px) rotate(-4deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* Muñeco */
#muneco {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 5;
}

/* Animación completa: salto + brazos + corazón + flor */
.animacionCompleta {
    animation: salto 1s ease forwards,
               brazos 1.2s ease forwards 0.3s,
               entregar 1.2s ease forwards 0.4s;
}

/* SALTO */
@keyframes salto {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -60%) scale(1.1); }
    70% { transform: translate(-50%, -48%) scale(0.95); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Cabeza */
.cabeza {
    width: 80px;
    height: 80px;
    background: #ffe0e6;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 0, 120, 0.4);
}

/* OJOS */
.ojo {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 28px;
}

.ojo-izq {
    left: 22px;
}

.ojo-der {
    right: 22px;
}

/* BOCA */
.boca {
    width: 30px;
    height: 18px;
    border-bottom: 4px solid #d14a6f;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cuerpo */
.cuerpo {
    width: 60px;
    height: 90px;
    background: #ffb3c6;
    margin: 0 auto;
    border-radius: 30px;
}

/* Brazos */
.brazo {
    width: 60px;
    height: 20px;
    background: #ffb3c6;
    position: absolute;
    top: 110px;
    border-radius: 20px;
    transition: transform 1s ease;
}

.izquierdo {
    left: -40px;
    transform: rotate(20deg);
}

.derecho {
    right: -40px;
    transform: rotate(-20deg);
}

/* ABRIR BRAZOS */
.animacionCompleta .izquierdo {
    transform: rotate(0deg) translateX(-10px);
}

.animacionCompleta .derecho {
    transform: rotate(0deg) translateX(10px);
}

/* Corazón del muñeco */
.corazon {
    font-size: 60px;
    margin-top: -10px;
    animation: latido 1.5s infinite;
    transition: transform 1s ease;
}

/* ENTREGAR CORAZÓN */
.animacionCompleta .corazon {
    transform: translateY(-10px) scale(1.3);
}

/* FLOR EN LA MANO */
.flor {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    width: 12px;
    height: 60px;
    background: #4CAF50;
    border-radius: 5px;
}

/* pétalos */
.flor::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #ff66aa;
    border-radius: 50%;
    box-shadow:
        -18px 0 #ff99c8,
        18px 0 #ff99c8,
        0 -18px #ff99c8,
        0 18px #ff99c8;
}

/* centro de la flor */
.flor::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #ffdd55;
    border-radius: 50%;
}

/* animación cuando entrega */
.animacionCompleta .flor {
    transform: translateX(-50%) translateY(-10px) scale(1.1);
    transition: transform 1s ease;
}




