/* ════════════════════════════════════════════════════════════
   CENTRO DE AYUDA — botón flotante "?" y panel de manuales
   (portado de Panify panify-help.css, con la paleta de Wilmar)
   ════════════════════════════════════════════════════════════ */

.wl-help-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: var(--cs-primary);
    color: var(--cs-text-on-primary);
    box-shadow: var(--cs-shadow-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
}
.wl-help-fab:hover { background: var(--cs-primary-dark); transform: translateY(-2px); }
.wl-help-fab .material-icons { font-size: 1.6rem; }

.wl-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(30, 42, 59, .25);
}

.wl-help-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    width: min(440px, 100vw);
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow-lg);
    display: flex;
    flex-direction: column;
    font-family: var(--cs-font);
}

.wl-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    background: var(--cs-primary);
    color: var(--cs-text-on-primary);
    border-bottom: 3px solid var(--cs-accent);
}
.wl-help-header h2 { font-size: 1.05rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: .4rem; }
.wl-help-close { background: none; border: none; color: inherit; display: inline-flex; }

.wl-help-search { padding: .75rem 1rem; border-bottom: 1px solid var(--cs-border); }
.wl-help-search input {
    width: 100%;
    border: 1px solid var(--cs-border-dark);
    border-radius: var(--cs-radius);
    padding: .45rem .7rem;
    font-size: .9rem;
}
.wl-help-search input:focus { outline: 2px solid var(--cs-primary-light); outline-offset: 0; }

.wl-help-body { flex: 1; overflow-y: auto; padding: .5rem 1rem 1rem; }
.wl-help-section {
    margin: .9rem 0 .35rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--cs-text-secondary);
}
.wl-help-empty { color: var(--cs-text-muted); font-size: .9rem; margin-top: 1rem; }

.wl-help-article {
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    margin-bottom: .5rem;
    background: var(--cs-surface);
}
.wl-help-article.is-open { border-color: var(--cs-primary-light); box-shadow: var(--cs-shadow-sm); }
.wl-help-article-head {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: .6rem .75rem;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    color: var(--cs-text-primary);
}
.wl-help-article-head .material-icons { font-size: 1.1rem; color: var(--cs-primary); margin-top: .1rem; }
.wl-help-article-title { font-weight: 600; font-size: .92rem; }
.wl-help-article-tags { font-size: .75rem; color: var(--cs-text-muted); }

/* Contenido del manual: HTML del editor (ya saneado en la Api). */
.wl-help-article-body {
    padding: .25rem .9rem .9rem;
    font-size: .9rem;
    line-height: var(--cs-line-height);
    color: var(--cs-text-primary);
    overflow-wrap: anywhere;
}
.wl-help-article-body img { max-width: 100%; height: auto; border: 1px solid var(--cs-border); border-radius: var(--cs-radius-sm); margin: .35rem 0; }
.wl-help-article-body h1, .wl-help-article-body h2, .wl-help-article-body h3 { font-size: 1rem; font-weight: 600; margin: .75rem 0 .35rem; color: var(--cs-primary); }
.wl-help-article-body ul, .wl-help-article-body ol { padding-left: 1.2rem; }
.wl-help-article-body a { color: var(--cs-primary); }

@media (max-width: 575.98px) {
    .wl-help-fab { right: .9rem; bottom: .9rem; width: 2.75rem; height: 2.75rem; }
}
