/* P28A-84: ayuda y recorridos guiados (mismo esquema que Olei Ads) con los colores del tema de Nómina. */
.help-open{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--accent-line,#2196F3);border-radius:999px;background:var(--accent-soft,#E3F2FD);color:var(--accent-dark,#1976D2);font-weight:650;font-size:12px;cursor:pointer}
.help-open:hover{background:var(--primary-action,#1976D2);color:#fff}

.help-panel{position:fixed;top:72px;right:16px;z-index:1200;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 96px);display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--surface,#fff);border:1px solid var(--border-soft,#D9E2EC);border-radius:12px;box-shadow:0 18px 48px #0f172a33;overflow:hidden}
.help-panel[hidden]{display:none}
.help-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:15px}
.help-panel-close,.help-tour-close{border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:var(--text-secondary,#6B7280)}
.help-panel-intro{margin:0;font-size:13px;color:var(--text-secondary,#6B7280)}
.help-ask{display:grid;gap:4px}
.help-ask-row{display:flex;gap:6px}
.help-ask-input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--accent-line,#2196F3);border-radius:8px;font:inherit;font-size:13px}
.help-ask-send{padding:8px 12px;border:0;border-radius:8px;background:var(--primary-action,#1976D2);color:#fff;font-weight:650;font-size:12px;cursor:pointer}
.help-ask-send:disabled{opacity:.6;cursor:progress}
.help-ask-note,.help-answer-source{font-size:11px;color:var(--text-muted,#9CA3AF)}
.help-answer{display:grid;gap:8px;padding:10px 12px;border-radius:10px;background:var(--accent-soft,#E3F2FD)}
.help-answer[hidden]{display:none}
.help-answer-text{margin:0;font-size:13px;line-height:1.45;color:var(--text-main,#1F2937)}
.help-answer .help-panel-item{background:var(--surface,#fff)}
.help-answer .help-tour-skip{justify-self:start;margin:0;padding:0}
.help-panel-search{width:100%;padding:8px 10px;border:1px solid var(--border-medium,#C7D2E0);border-radius:8px;font:inherit;font-size:13px}
.help-panel-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-right:2px}
.help-panel-item{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--border-soft,#D9E2EC);border-radius:10px;background:var(--primary-softest,#F5FAFF)}
.help-panel-item h4{margin:0;font-size:14px}
.help-panel-item p{margin:0;font-size:12px;color:var(--text-secondary,#6B7280)}
.help-panel-item small{font-size:11px;color:var(--text-muted,#9CA3AF)}
.help-panel-start,.help-tour-next{justify-self:start;padding:6px 12px;border:0;border-radius:8px;background:var(--primary-action,#1976D2);color:#fff;font-weight:650;font-size:12px;cursor:pointer}
.help-panel-start:hover,.help-tour-next:hover{background:var(--primary-action-hover,#1565C0)}
.help-panel-buttons{display:flex;gap:8px;flex-wrap:wrap}
.help-panel-video{padding:6px 12px;border:1px solid var(--accent-line,#2196F3);border-radius:8px;background:var(--surface,#fff);color:var(--accent-dark,#1976D2);font-weight:650;font-size:12px;cursor:pointer}
.help-panel-video:hover{background:var(--accent-soft,#E3F2FD)}
/* P28A-88: ventana del video */
.help-video{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:16px;background:#0f172a99}
.help-video[hidden]{display:none}
.help-video-frame{display:grid;gap:10px;width:min(960px,100%);max-height:calc(100vh - 32px);padding:14px 16px;background:var(--surface,#fff);border-radius:12px;box-shadow:0 18px 48px #0f172a55}
.help-video-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:15px}
.help-video-media{width:100%;aspect-ratio:16/9;max-height:calc(100vh - 160px);border-radius:8px;background:#0f172a}
.help-panel-empty,.help-panel-foot{margin:0;font-size:12px;color:var(--text-muted,#9CA3AF)}

.help-tour-layer{position:fixed;inset:0;z-index:1300;pointer-events:none}
.help-tour-layer[hidden]{display:none}
/* Sombras: sólo bloquean clics (transparentes). El oscurecido lo dibuja el anillo con una sombra amplia: hueco limpio, esquinas
   redondeadas y un filo blanco discreto, sin contorno de color (como Olei Ads). */
.help-tour-shade{position:fixed;background:transparent;pointer-events:auto}
.help-tour-layer.no-target .help-tour-shade{background:#0f172a6b}
.help-tour-ring{position:fixed;border-radius:8px;box-shadow:0 0 0 1px #ffffffd9,0 0 0 9999px #0f172a6b;pointer-events:none;transition:left .18s ease,top .18s ease,width .18s ease,height .18s ease}
.help-tour-arrow{position:fixed;width:14px;height:14px;background:var(--surface,#fff);transform:rotate(45deg);pointer-events:none;box-shadow:0 0 0 1px #0f172a0f}
.help-tour-arrow[hidden]{display:none}
.help-tour-card{position:fixed;display:grid;gap:8px;padding:16px 18px;background:var(--surface,#fff);border-radius:10px;box-shadow:0 12px 32px #0f172a33,0 2px 6px #0f172a1f;pointer-events:auto;font-size:13px;outline:none}
.help-tour-card h3{margin:2px 0 0;font-size:15px;font-weight:650}
.help-tour-card p{margin:0;color:var(--text-main,#1F2937);line-height:1.45}
.help-tour-head{display:flex;justify-content:space-between;align-items:center}
.help-tour-count{font-size:11px;font-weight:650;color:var(--text-secondary,#6B7280)}
.help-tour-hint{font-size:12px;color:var(--text-secondary,#6B7280)!important}
.help-tour-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;padding-top:12px;border-top:1px solid var(--border-soft,#E5E7EB)}
.help-tour-skip{margin-right:auto;border:0;background:transparent;color:var(--accent-dark,#1976D2);text-decoration:underline;cursor:pointer;font-size:12px}
.help-tour-layer.is-waiting .help-tour-card{opacity:.85}
@media(prefers-reduced-motion:reduce){.help-tour-ring{transition:none}}
/* P28A-91: modo video (acercamiento suave, sin cursor, tarjeta un poco más grande para que se lea en el video) */
body.help-narrating .app{transition:transform .7s ease}
body.help-narrating,body.help-narrating *{cursor:none!important}
body.help-narrating .help-tour-card{font-size:14px}
body.help-narrating .help-tour-card h3{font-size:17px}
.help-tour-card .quiet-button{border:0;background:transparent;color:var(--text-secondary,#6B7280);font-weight:600;cursor:pointer;padding:6px 8px}
.help-tour-card .quiet-button:disabled{opacity:.45;cursor:default}
