html,
    body {
        margin: 0;
        padding: 0;
        background: url(fondo.jpg);
        font-family: 'Quicksand', sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        overflow: hidden;
        position: relative;
        overflow-y: auto;
        min-width: 100vh;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        background-position: fixed;
    }

    .heart {
        position: absolute;
        width: 20px;
        height: 20px;
        background: lightblue;
        transform: rotate(45deg);
        animation: float 6s infinite ease-in-out;
        opacity: 0.4;
    }

    .heart::before,
    .heart::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        background: lightblue;
        border-radius: 50%;
    }

    .heart::before {
        top: -10px;
        left: 0;
    }

    .heart::after {
        left: -10px;
        top: 0;
    }

    @keyframes float {
        0% {
            transform: translateY(0) rotate(45deg);
            opacity: 0.4;
        }

        50% {
            transform: translateY(-30px) rotate(45deg);
            opacity: 0.8;
        }

        100% {
            transform: translateY(0) rotate(45deg);
            opacity: 0.4;
        }
    }

    .card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        padding: 40px;
        max-width: 700px;
        text-align: center;
        animation: fadeIn 2s ease;
        z-index: 10;
    }

    h1 {
        font-family: 'Great Vibes', cursive;
        font-size: 2.7em;
        color: lightblue;
        margin-bottom: 10px;
    }

    p.subtitle {
        font-size: 1.15em;
        color: black;
        margin-bottom: 10px;
    }

    .divider {
        width: 60px;
        height: 3px;
        background: lightblue;
        margin: 0 auto 20px;
        border-radius: 10px;
    }

    button {
        margin-top: 20px;
        padding: 12px 24px;
        border: none;
        border-radius: 10px;
        background-color: lightblue;
        color: white;
        font-size: 1em;
        cursor: pointer;
        transition: background 0.3s;
    }

    button:hover {
        background-color: lightblue;
    }

    .carta {
        margin-top: 20px;
        text-align: left;
        background: lightblue;
        padding: 20px;
        border-radius: 10px;
        color: black;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 1s ease;

        line-height: 1.5rem;
        
    }

    .carta.mostrar {
        opacity: 1;
        max-height: 2000px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Colocamos algunos corazones en distintas posiciones */
.heart1  { top: 4%;   left: 8%;   animation-delay: 0s;   }
.heart2  { top: 10%;  left: 80%;  animation-delay: 0.5s; }
.heart3  { top: 16%;  left: 20%;  animation-delay: 1s;   }
.heart4  { top: 22%;  left: 70%;  animation-delay: 1.5s; }
.heart5  { top: 28%;  left: 30%;  animation-delay: 2s;   }
.heart6  { top: 34%;  left: 60%;  animation-delay: 2.5s; }
.heart7  { top: 40%;  left: 40%;  animation-delay: 3s;   }
.heart8  { top: 46%;  left: 50%;  animation-delay: 3.5s; }
.heart9  { top: 52%;  left: 25%;  animation-delay: 4s;   }
.heart10 { top: 58%;  left: 85%;  animation-delay: 4.5s; }
.heart11 { top: 64%;  left: 10%;  animation-delay: 5s;   }
.heart12 { top: 70%;  left: 90%;  animation-delay: 5.5s; }
.heart13 { top: 76%;  left: 15%;  animation-delay: 6s;   }
.heart14 { top: 82%;  left: 75%;  animation-delay: 6.5s; }
.heart15 { top: 88%;  left: 35%;  animation-delay: 7s;   }
.heart16 { top: 94%;  left: 65%;  animation-delay: 7.5s; }
.heart17 { top: 5%;   left: 50%;  animation-delay: 1.2s; }
.heart18 { top: 25%;  left: 10%;  animation-delay: 2.2s; }
.heart19 { top: 45%;  left: 90%;  animation-delay: 3.2s; }
.heart20 { top: 65%;  left: 5%;   animation-delay: 4.2s; }
.heart21 { top: 85%;  left: 95%;  animation-delay: 5.2s; }
.heart22 { top: 15%;  left: 45%;  animation-delay: 0.8s; }
.heart23 { top: 35%;  left: 55%;  animation-delay: 1.8s; }
.heart24 { top: 55%;  left: 70%;  animation-delay: 2.8s; }
.heart25 { top: 75%;  left: 20%;  animation-delay: 3.8s; }
.heart26 { top: 20%;  left: 35%;  animation-delay: 4.8s; }
.heart27 { top: 50%;  left: 15%;  animation-delay: 5.8s; }
.heart28 { top: 80%;  left: 60%;  animation-delay: 6.8s; }
