:root {
    --rosa-claro: #ffccd5;
    --rosa-medio: #ffafbd;
    --rosa-fuerte: #ff4d6d;
    --texto: #b91d47;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #ffffff 0%, #ffc2d1 100%);
    font-family: 'Quicksand', sans-serif;
    overflow: hidden;
}

.escena {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 100%;
}

.titulo {
    font-family: 'Dancing Script', cursive;
    color: var(--texto);
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    margin-bottom: 50px;
    text-align: center;
}

/* --- Globos Reales --- */
.balloon {
    position: absolute;
    width: 100px;
    height: 130px;
    background: radial-gradient(circle at 30% 30%, #ff85a1, #ff4d6d);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    bottom: -250px;
    animation: flotar 12s infinite ease-in;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.1);
}

.balloon:nth-child(even) { background: radial-gradient(circle at 30% 30%, #ffd166, #ff9f1c); }

.balloon:nth-child(1) { left: 10%; animation-duration: 10s; }
.balloon:nth-child(2) { left: 30%; animation-duration: 15s; animation-delay: 2s; }
.balloon:nth-child(3) { left: 50%; animation-duration: 12s; animation-delay: 4s; }
.balloon:nth-child(4) { left: 70%; animation-duration: 18s; }
.balloon:nth-child(5) { left: 90%; animation-duration: 11s; animation-delay: 1s; }

@keyframes flotar {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-130vh) rotate(20deg); }
}

/* --- El Sobre --- */
.sobre-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    cursor: pointer;
}

.sobre {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--rosa-claro);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.frente {
    position: absolute;
    width: 100%; height: 100%;
    background: var(--rosa-claro);
    clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
    border-radius: 0 0 10px 10px;
}

.solapa {
    position: absolute;
    top: 0; width: 100%; height: 100%;
    background: var(--rosa-medio);
    clip-path: polygon(0 0, 50% 50%, 100% 0);
    z-index: 4;
    transform-origin: top;
    transition: transform 0.5s ease;
}

.sobre-wrapper.open .solapa {
    transform: rotateX(180deg);
    z-index: 1;
}

.carta {
    position: absolute;
    bottom: 5px;
    left: 10px;
    width: 280px;
    height: 180px;
    background: white;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease;
    z-index: 2;
    border-radius: 5px;
}

.sobre-wrapper.open .carta {
    transform: translateY(-130px);
    height: 240px;
    z-index: 5;
}

/* --- Corazón Corregido (No se deforma) --- */
.corazon-sello {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #ef233c;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 6;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.corazon-sello::before, .corazon-sello::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ef233c;
    border-radius: 50%;
}

.corazon-sello::before { left: -20px; }
.corazon-sello::after { top: -20px; }

.sobre-wrapper.open .corazon-sello {
    opacity: 0;
    transform: translate(-50%, -150px) rotate(45deg) scale(0);
}

.instruccion {
    margin-top: 35px;
    color: var(--texto);
    font-weight: 600;
}
