/* ============================================================
   Boton de ayuda flotante - FAB (Floating Action Button)
   ============================================================ */

.help-fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Boton principal ? */
.help-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.help-fab:hover {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    transform: scale(1.1);
}

.help-fab:active {
    transform: scale(0.95);
}

/* Boton config (engranaje) */
.help-fab-settings {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bs-secondary, #6c757d);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    cursor: pointer;
}

.help-fab-settings:hover {
    background: var(--bs-secondary, #6c757d);
    color: #fff;
    transform: scale(1.1);
}

/* Dropdown del modo de ayuda */
.help-fab-container .dropdown-menu {
    min-width: 10rem;
    margin-bottom: 0.5rem;
}

.help-fab-container .dropdown-item.active,
.help-fab-container .dropdown-item:active {
    background-color: var(--bs-primary, #0d6efd);
}

.help-fab-container .dropdown-item i {
    width: 1.2rem;
    display: inline-block;
}

/* ============================================================
   Iframe de ayuda dentro de modal / offcanvas
   ============================================================ */

#helpModalBody,
#helpOffcanvasBody {
    padding: 0;
    overflow: hidden;
}

.help-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}

#helpOffcanvasBody .help-iframe {
    height: calc(100vh - 60px);
}

/* Mensaje de ayuda no disponible */
.help-no-disponible {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary, #6c757d);
}

.help-no-disponible i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Modal de ayuda al 90% del ancho */
#helpModal .modal-dialog {
    max-width: 90%;
}

/* Offcanvas ancho personalizado */
#helpOffcanvas {
    width: 40%;
    min-width: 320px;
    max-width: 600px;
}
