body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fcd5ce, #f8edeb);
    color: #4b2c2c;
    text-align: center;
    overflow-x: hidden;
    overflow-y: hidden;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    z-index: 1;
}

.screen {
    max-width: 600px;
    padding: 20px;
    max-height: 500px; /* o la altura que desees */
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.hidden {
    display: none;
}

h1,
h2 {
    font-family: 'Great Vibes', cursive;
    color: #b30059;
}

button {
    padding: 12px 25px;
    font-size: 18px;
    background: #ff80ab;
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ff4d94;
}

p {
    line-height: 1.8;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.music {
    margin-top: 20px;
}

/* Corazones flotantes */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    color: #ff4d94;
    font-size: 20px;
    animation: floatUp 6s linear infinite;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

.collage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    border-radius: 10px;
}

.collage-photo {
    width: 120px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.collage-photo.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Móvil vertical */
@media screen and (max-width: 600px) {
    .collage {
        max-width: 90vw;
        max-height: 60vh;
    }
}


@keyframes floatPhoto {
    0% {
        transform: translateY(100%);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-110%);
        opacity: 0;
    }
}


.photo-float {
    position: fixed;
    bottom: -150px;
    /* empezar un poco abajo */
    width: 120px;
    /* tamaño fijo o usa max-width */
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: floatPhoto 10s linear forwards;
}