/* Chrome compartido de TODOS los demos: botones flotantes Home + WhatsApp.
   Se sirve desde _assets/ (una sola copia). Ver demo-ui.php. */

.fabs {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;           /* por encima de cualquier UI del demo */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab {
    /* Imprescindible: sin esto, todo lo `absolute` de un FAB (su tooltip ::after
       y los adornos que agregan los demos, como el anillo de pulso de 06) se
       posiciona respecto a .fabs y se estira sobre TODA la columna, tapando el
       otro botón. Bug real: el Home era inclicable en 06_veterinaria. */
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .30);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.fab:hover  { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .38); filter: brightness(1.06); }
.fab:active { transform: translateY(-1px); }
.fab:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 3px; }

.fab svg { width: 27px; height: 27px; display: block; }

.fab--wsp  { background: #25D366; }               /* verde WhatsApp */
.fab--home { background: #2f6fed; }               /* azul, como la imagen */
.fab--home svg { width: 24px; height: 24px; }

/* Tooltip simple a la izquierda del botón */
.fab::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    background: rgba(20, 20, 26, .92);
    color: #fff;
    font: 600 13px/1 system-ui, sans-serif;
    padding: 8px 11px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 640px) {
    .fabs { right: 14px; bottom: 14px; gap: 10px; }
    .fab  { width: 52px; height: 52px; }
    .fab::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fab, .fab::after { transition: none; }
}
