@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', cursive;
    font-style: normal;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    /* Fondo estático */
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
}

/* ===== FONDO GOMITAS ===== */
.fondo-gomitas {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gomita {
    position: absolute;
    pointer-events: none;
    animation: flotar infinite ease-in-out;
    opacity: 0.85;
}

/* Movimiento suave */
@keyframes flotar {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-35px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ===== CONTENIDO ===== */
.container {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

/* ===== TÍTULO ===== */
.titulo {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: white;
    margin-bottom: 35px;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeDown 1s ease forwards;
}

/* ===== CARD PREMIUM SIN BLUR ===== */
.card {
    position: relative;
    padding: 55px 35px;
    border-radius: 40px;
    max-width: 500px;
    width: 90%;
    margin: auto;

    /* Vidrio ligero sin blur */
    background: rgba(255, 255, 255, 0.95);

    border: 2px solid rgba(255, 255, 255, 0.6);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        inset 0 2px 8px rgba(255, 255, 255, 0.6);

    animation: fadeUp 1.2s ease forwards;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:active {
    transform: scale(0.97);
}

/* ===== FRASE ===== */
#frase {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    animation: aparecerFrase 0.8s ease forwards;
}

/* ===== MENSAJE GRACIAS ===== */
.gracias {
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 700;

    background: linear-gradient(135deg, #d4fc79, #96e6a1);
    padding: 14px 28px;
    border-radius: 30px;
    color: #2e7d32;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);

    animation: pulseSuave 3s ease-in-out infinite;
}

/* Animación ligera */
@keyframes pulseSuave {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== ANIMACIONES ENTRADA ===== */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecerFrase {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== CONFETTI ===== */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}