/* Ayuda contextual y recorrido inicial de Gestión SL */
:root{--sl-help-blue:#0b7198;--sl-help-blue-dark:#075b7d;--sl-help-ink:#0f172a;--sl-help-muted:#526173;--sl-help-line:#dbe4ee;--sl-help-paper:#fff}

.sl-help-trigger{
  position:fixed;left:18px;bottom:max(18px,env(safe-area-inset-bottom));z-index:99992;
  display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:10px 16px 10px 12px;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;background:var(--sl-help-blue);color:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.28);font:850 13px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer
}
.sl-help-trigger:hover{background:var(--sl-help-blue-dark);transform:translateY(-1px)}
.sl-help-trigger[hidden]{display:none}
.sl-help-trigger-mark{display:grid;place-items:center;width:28px;height:28px;border:2px solid currentColor;border-radius:50%;font-size:15px;font-weight:900}

.sl-help-layer{position:fixed;inset:0;z-index:999994;display:none;background:rgba(2,6,23,.62);backdrop-filter:blur(4px);color:var(--sl-help-ink)}
.sl-help-layer.open{display:block}
.sl-help-dialog,.sl-help-drawer{border:1px solid var(--sl-help-line);background:var(--sl-help-paper);box-shadow:0 30px 90px rgba(0,0,0,.35)}
.sl-help-dialog{position:absolute;left:50%;top:50%;width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;transform:translate(-50%,-50%);border-radius:22px}
.sl-help-drawer{position:absolute;top:0;left:0;width:min(470px,100vw);height:100%;overflow:auto;animation:slHelpEnter .18s ease-out}
@keyframes slHelpEnter{from{transform:translateX(-18px);opacity:.55}to{transform:none;opacity:1}}

.sl-help-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 14px;border-bottom:1px solid var(--sl-help-line);background:rgba(255,255,255,.97)}
.sl-help-kicker{color:var(--sl-help-blue);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.sl-help-title{margin:5px 0 0;color:var(--sl-help-ink);font-size:21px;line-height:1.2}
.sl-help-close{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--sl-help-line);border-radius:50%;background:#fff;color:var(--sl-help-ink);font-size:24px;line-height:1;cursor:pointer}
.sl-help-close:hover{border-color:#7dd3fc;background:#f0f9ff}
.sl-help-body{padding:20px}
.sl-help-lead{margin:0;color:#334155;font-size:16px;line-height:1.55}
.sl-help-note{margin:16px 0 0;padding:12px 14px;border-left:4px solid var(--sl-help-blue);border-radius:10px;background:#f0f9ff;color:#334155;font-size:14px;line-height:1.48}
.sl-help-section{margin-top:22px}.sl-help-section h3{margin:0 0 11px;color:var(--sl-help-ink);font-size:15px}
.sl-help-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:slHelpStep}
.sl-help-steps li{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;color:#334155;font-size:14px;line-height:1.45}
.sl-help-steps li:before{counter-increment:slHelpStep;content:counter(slHelpStep);display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e0f2fe;color:#075985;font-size:12px;font-weight:900}
.sl-help-topics{display:grid;gap:8px}
.sl-help-topic{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--sl-help-line);border-radius:12px;background:#fff;color:var(--sl-help-ink);text-align:left;font:800 13px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.sl-help-topic:hover{border-color:#7dd3fc;background:#f8fafc}.sl-help-topic-mark{font-size:18px;font-weight:500}
.sl-help-answer{display:none;margin:8px 2px 2px;padding:12px 14px;border-radius:12px;background:#f1f5f9;color:#334155;font-size:13px;line-height:1.5}.sl-help-answer.open{display:block}
.sl-help-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:22px}
.sl-help-btn{min-height:42px;padding:10px 14px;border:1px solid var(--sl-help-line);border-radius:11px;background:#fff;color:var(--sl-help-ink);font-weight:850;cursor:pointer}
.sl-help-btn.primary{border-color:var(--sl-help-blue);background:var(--sl-help-blue);color:#fff}
.sl-help-btn:hover{filter:brightness(.97)}
.sl-help-trigger:focus-visible,.sl-help-close:focus-visible,.sl-help-btn:focus-visible,.sl-help-topic:focus-visible{outline:3px solid rgba(14,165,233,.38);outline-offset:2px}
.sl-help-progress{display:flex;justify-content:center;gap:7px;margin:2px 0 19px}.sl-help-progress i{width:8px;height:8px;border-radius:50%;background:#dbe4ee}.sl-help-progress i.active{width:25px;border-radius:999px;background:var(--sl-help-blue)}
.sl-help-slide{min-height:220px}.sl-help-slide h3{margin:0 0 12px;color:var(--sl-help-ink);font-size:24px;line-height:1.25}.sl-help-slide p{margin:0;color:#334155;font-size:16px;line-height:1.6}
body.sl-help-open{overflow:hidden}

@media(max-width:600px){
  .sl-help-trigger{left:12px;bottom:max(12px,env(safe-area-inset-bottom));width:52px;padding:0;justify-content:center}.sl-help-trigger-label{display:none}.sl-help-trigger-mark{width:28px;height:28px}
  .sl-help-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:18px}
  .sl-help-drawer{top:auto;bottom:0;width:100%;height:auto;max-height:88dvh;border-radius:20px 20px 0 0;animation:slHelpMobileEnter .18s ease-out}
  @keyframes slHelpMobileEnter{from{transform:translateY(18px);opacity:.55}to{transform:none;opacity:1}}
  .sl-help-head{padding:14px 15px 12px}.sl-help-body{padding:17px 15px calc(18px + env(safe-area-inset-bottom))}.sl-help-slide{min-height:245px}.sl-help-actions .sl-help-btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){.sl-help-drawer{animation:none}.sl-help-trigger:hover{transform:none}}

/* 8.7.1 · Ayuda visible y consistente con Sugerencias. */
.sl-help-trigger{
  min-height:44px!important;height:44px!important;padding:0 14px!important;border:1px solid #d4d4d8!important;border-radius:10px!important;
  background:#fff!important;color:#18181b!important;box-shadow:0 8px 24px rgba(15,23,42,.12)!important;font-size:13px!important
}
.sl-help-trigger:hover{background:#fafafa!important;color:#18181b!important;transform:none!important}
.sl-help-trigger-mark{width:24px!important;height:24px!important;border-width:1.5px!important;font-size:13px!important}
.sl-help-dialog,.sl-help-drawer{border-color:#e4e4e7!important;border-radius:14px!important;box-shadow:0 24px 70px rgba(0,0,0,.24)!important}
.sl-help-head{background:#fff!important;border-color:#e4e4e7!important}
.sl-help-kicker{color:var(--municipality-color,#0ea5e9)!important}
@media(max-width:600px){.sl-help-trigger{width:44px!important;min-width:44px!important;padding:0!important}.sl-help-trigger-label{display:none!important}}
