/* =============================================================================
   V4.23 INTEGRAL — Estilos globales de FABs y modales
   ============================================================================= */

/* ----- FAB Buscador Global (.busc-flotante) -----
   Antes la clase no tenía estilos base — solo había overrides en mobile.css
   Para el dock funcione correctamente necesita posición fija + tamaño coherente
   con los otros FABs (Manolin, Antipánico, ChatDock). */
.busc-flotante {
    position: fixed;
    bottom: 178px;
    right: 18px;
    z-index: 9495;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.50),
        0 0 0 1px rgba(245, 166, 35, 0.20) inset;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.busc-flotante:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, #2a3340 0%, #1a212c 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.60),
        0 0 0 1px rgba(245, 166, 35, 0.40) inset;
}
.busc-flotante:active { transform: translateY(0) scale(0.97); }

/* ----- Backdrops opacos para modales que se filtraban -----
   Reforzamos vía CSS global por si alguna otra capa intenta atravesar. */
.cp-overlay {
    background: rgba(10, 12, 16, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10500 !important;
}
.cp-modal {
    z-index: 10501 !important;
}
.bg-overlay {
    background: rgba(0, 0, 0, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10500 !important;
}
.bg-modal {
    z-index: 10501 !important;
}

/* ----- Cuando hay un modal abierto, los FABs deben quedar OPACADOS -----
   Esto es un seguro extra: aunque z-index esté bien, si por algún glitch
   un FAB queda visible, lo ocultamos vía body-scroll-lock o body class. */
body.modal-open .baf-flot-wrap,
body.modal-open .manolin-egg,
body.modal-open .manolin-shell,
body.modal-open .chd-burbuja,
body.modal-open .busc-flotante {
    pointer-events: none !important;
}

/* ----- Mobile: reposicionar el .busc-flotante para que el dock siga ordenado ----- */
@media (max-width: 760px) {
    .busc-flotante {
        bottom: 240px;
        right: 14px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
