/* Contenedor principal de las burbujas */
#bubblesContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; /* Para no interferir con clicks del usuario */
    z-index: 9999; /* Por encima de los modales */
    overflow: hidden;
    display: none; /* Oculto por defecto, se activa desde JS */
}

/* Estilo individual de la burbuja */
.greeting-bubble {
    position: absolute;
    bottom: -100px;
    padding: 8px 14px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    animation: floatUp linear forwards;
    white-space: normal;
    word-wrap: break-word;
    max-width: 60vw;
    text-align: center;
}

/* Variaciones de colores */
.greeting-bubble.purple {
    background: linear-gradient(135deg, rgba(142,68,173,0.85), rgba(155,89,182,0.85));
}

.greeting-bubble.blue {
    background: linear-gradient(135deg, rgba(41,128,185,0.85), rgba(52,152,219,0.85));
}

.greeting-bubble.white {
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(240,240,240,0.85));
    color: #333333; /* Texto oscuro para burbujas blancas */
}

/* Animación eficiente usando transform */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.75;
        transform: translateY(-10vh) scale(1);
    }
    90% {
        opacity: 0.75;
        transform: translateY(-90vh) scale(1);
    }
    100% {
        transform: translateY(-110vh) scale(0.8);
        opacity: 0;
    }
}
