/* === PARTE 3 v2.2: BURBUJAS FLOTANTES ADAPTATIVAS (MODO CLARO Y MODO OSCURO) === */

.idv-bubbles-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
body.bubbles-paused .idv-bubbles-stage {
    display: none !important;
}
.app-shell, .login-wrapper {
    position: relative;
    z-index: 2;
}

.idv-float-bubble {
    position: absolute;
    bottom: -90px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(60, 226, 236, 0.34), rgba(27, 111, 184, 0.14) 68%, rgba(27, 111, 184, 0.03) 100%);
    border: 1px solid rgba(34, 199, 214, 0.24);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.45);
    will-change: transform, opacity;
    animation-name: idvRiseBubble;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

body.dark-mode .idv-float-bubble {
    background: radial-gradient(circle at 30% 30%, rgba(60, 226, 236, 0.28), rgba(29, 143, 225, 0.12) 68%, transparent 100%);
    border-color: rgba(60, 226, 236, 0.26);
    box-shadow: 0 0 14px rgba(34, 199, 214, 0.14);
}

@keyframes idvRiseBubble {
    0% {
        transform: translate3d(0, 0, 0) scale(0.85);
        opacity: 0;
    }
    12% {
        opacity: 0.78;
    }
    50% {
        transform: translate3d(var(--sway, 22px), -52vh, 0) scale(1);
        opacity: 0.65;
    }
    88% {
        opacity: 0.48;
    }
    100% {
        transform: translate3d(calc(var(--sway, 22px) * -0.7), -112vh, 0) scale(1.12);
        opacity: 0;
    }
}
