/* Centinela · sistema visual */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e7ee;
  --line-strong: #cfd7e2;
  --text: #142233;
  --text-2: #4a5a6e;
  --text-3: #7b8a9c;
  --brand: #0f3b5f;
  --brand-2: #155e8f;
  --brand-soft: #e6eff7;
  --accent: #0e9f6e;
  --ok: #0e7a50; --ok-bg: #e3f5ec;
  --info: #155e8f; --info-bg: #e5f0f9;
  --caution: #8a6100; --caution-bg: #fdf4d8;
  --warning: #b4500a; --warning-bg: #fdebdc;
  --danger: #b42318; --danger-bg: #fde7e5;
  --neutral: #4a5a6e; --neutral-bg: #edf1f5;
  --side: #0b2236;
  --side-2: #12304b;
  --side-text: #b7c6d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 34, 51, .05), 0 1px 3px rgba(16, 34, 51, .06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
pre.code { background: #0b2236; color: #d6e4f0; padding: 12px 14px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Layout */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; color: #fff; }
.brand b { font-size: 16px; letter-spacing: .02em; display: block; }
.brand span { font-size: 11px; color: var(--side-text); display: block; }
.nav { padding: 6px 10px 16px; flex: 1; }
.nav .group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6f88a2; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--side-text); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.active { background: #1b4468; color: #fff; }
.nav a .count { margin-left: auto; background: #b42318; color: #fff; font-size: 11px; padding: 0 7px; border-radius: 99px; font-weight: 600; }
.nav a .count.soft { background: #2b5378; }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { padding: 12px 18px; font-size: 11.5px; border-top: 1px solid #173651; }
.side-foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #6f88a2; }
.side-foot .dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.main { min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 26px; position: sticky; top: 0; z-index: 20; }
.topbar form { flex: 1; max-width: 520px; position: relative; }
.topbar input[type=search] { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.topbar form svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; }
.topbar .user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; }
.content { padding: 24px 26px 60px; max-width: 1500px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); margin: 0; }
.crumbs { font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 14px 18px 0; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.kpi .k-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
.kpi.danger::before { background: var(--danger); } .kpi.danger .k-value { color: var(--danger); }
.kpi.warning::before { background: var(--warning); } .kpi.warning .k-value { color: var(--warning); }
.kpi.ok::before { background: var(--ok); } .kpi.ok .k-value { color: var(--ok); }
.kpi.info::before { background: var(--brand-2); }
a.kpi:hover { text-decoration: none; border-color: var(--line-strong); }
a.kpi { color: inherit; display: block; }

/* Hero for desacatos */
.hero { background: linear-gradient(120deg, #0b2236 0%, #133b5e 60%, #155e8f 100%); color: #e8f0f7; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.hero h1 { color: #fff; font-size: 1.5rem; }
.hero p { color: #c4d4e3; }
.hero .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero .hs { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; }
.hero .hs b { display: block; font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.hero .hs span { font-size: 12px; color: #c4d4e3; }
.progress { height: 10px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: #34d399; border-radius: 99px; }
.progress.light { background: var(--neutral-bg); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfe; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.table .title { font-weight: 600; color: var(--text); }
.table a.title { white-space: nowrap; }
.table .sub.mono { white-space: nowrap; font-size: 11.5px; }
.table .sub { color: var(--text-3); font-size: 12px; }
.table input[type=checkbox] { width: 16px; height: 16px; }
.empty { text-align: center; padding: 34px 10px; color: var(--text-3); }

/* Badges & semáforo */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.caution { background: var(--caution-bg); color: var(--caution); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.sem { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sem::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.sem.ok::before { background: #16a34a; } .sem.ok { color: var(--ok); }
.sem.caution::before { background: #eab308; } .sem.caution { color: var(--caution); }
.sem.warning::before { background: #f97316; } .sem.warning { color: var(--warning); }
.sem.danger::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); } .sem.danger { color: var(--danger); }
.risk { display: inline-block; min-width: 38px; text-align: center; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.risk.r4 { background: #7f1d1d; color: #fff; } .risk.r3 { background: var(--danger-bg); color: var(--danger); }
.risk.r2 { background: var(--warning-bg); color: var(--warning); } .risk.r1 { background: var(--caution-bg); color: var(--caution); } .risk.r0 { background: var(--ok-bg); color: var(--ok); }
.pill-arrest { background: #7f1d1d; color: #fff; }

/* Forms */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], input[type=file], select, textarea, input:not([type]) {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; color: var(--text); font-weight: 400;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(21, 94, 143, .25); border-color: var(--brand-2); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
label.check input { width: 16px; height: 16px; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.help { font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: 4px; }
.actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters label { min-width: 150px; }
.filters input, .filters select { margin-top: 3px; padding: 7px 9px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #0c304d; }
.btn.success { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.success:hover { background: #0b8a5f; }
.btn.danger { background: #fff; border-color: #f2b8b2; color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn.disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
form.inline { display: inline; }

/* Alerts */
.alert { border-radius: 9px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid; font-size: 13.5px; }
.alert.success, .alert.ok { background: var(--ok-bg); border-color: #b5e2cc; color: #0b5c3c; }
.alert.danger, .alert.error { background: var(--danger-bg); border-color: #f5c2bd; color: #8f1d14; }
.alert.warning { background: var(--warning-bg); border-color: #f6cfae; color: #8a3d07; }
.alert.info { background: var(--info-bg); border-color: #c4dcef; color: #0e4a72; }

/* Detail */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13.5px; margin: 0; }
.dl dt { color: var(--text-3); font-weight: 500; }
.dl dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-2); }
.timeline li.danger::before { border-color: var(--danger); }
.timeline li.ok::before { border-color: var(--ok); }
.timeline .t-title { font-weight: 600; }
.timeline .t-meta { font-size: 12px; color: var(--text-3); }
.quote { background: var(--surface-2); border-left: 3px solid var(--brand-2); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 13px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.svc { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; }
.svc-head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.svc-head .title { font-weight: 600; }
.cands { margin-top: 10px; display: grid; gap: 6px; }
.cand { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; flex-wrap: wrap; }
.cand .score { font-weight: 700; color: var(--brand); min-width: 44px; font-variant-numeric: tabular-nums; }
.cand .why { color: var(--text-3); font-size: 12px; flex: 1; min-width: 160px; }
.alert-list { margin: 0; padding-left: 18px; }

/* Bars */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .bar { height: 10px; background: var(--neutral-bg); border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; }
.bar-row .bar i.danger { background: var(--danger); } .bar-row .bar i.warning { background: #f97316; } .bar-row .bar i.ok { background: var(--accent); }
.bar-row .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Editor */
.editor { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.editor-tools { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.editor-tools button { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 9px; cursor: pointer; font-weight: 600; color: var(--text-2); }
.editor-tools button:hover { background: #fff; border-color: var(--line); }
.editor-area { min-height: 520px; max-height: 75vh; overflow: auto; padding: 28px 34px; font-family: "Times New Roman", Georgia, serif; font-size: 15px; line-height: 1.55; outline: none; }
.editor-area table { border-collapse: collapse; width: 100%; margin: 8px 0; font-family: Inter, system-ui, sans-serif; font-size: 12.5px; }
.editor-area th, .editor-area td { border: 1px solid #b7c0cc; padding: 4px 6px; text-align: left; vertical-align: top; }
.editor-area th { background: #eef2f6; }
.editor-area h2 { font-size: 16px; margin-top: 16px; }
.doc-preview { font-family: "Times New Roman", Georgia, serif; font-size: 14px; }

/* Auth */
.auth-body { background: radial-gradient(1200px 600px at 10% -10%, #1b4468 0%, transparent 60%), #0b2236; min-height: 100vh; }
.auth { max-width: 420px; margin: 0 auto; padding: 9vh 18px; }
.auth .card { padding: 28px; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; }
.auth-brand h1 { margin: 0; font-size: 22px; }
.auth-brand p { margin: 0; color: #a9bfd4; font-size: 13px; }
.install { max-width: 820px; margin: 0 auto; padding: 40px 18px; }
.install-head { display: flex; gap: 12px; align-items: center; color: #fff; margin-bottom: 18px; }
.install-head h1 { margin: 0; } .install-head p { margin: 0; color: #a9bfd4; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.steps li { color: #a9bfd4; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; background: rgba(255, 255, 255, .06); padding: 6px 12px; border-radius: 99px; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 12px; }
.steps li.current { background: #fff; color: var(--brand); } .steps li.current span { background: var(--brand); color: #fff; }

/* Dropzone */
.dropzone { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 28px; text-align: center; background: var(--surface-2); color: var(--text-2); }
.dropzone.drag { border-color: var(--brand-2); background: var(--brand-soft); }
.dropzone input[type=file] { margin: 12px auto 0; max-width: 420px; }

/* Bulk bar */
.bulkbar { position: sticky; bottom: 12px; background: var(--brand); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(11, 34, 54, .3); margin-top: 12px; flex-wrap: wrap; }
.bulkbar .btn { border-color: rgba(255, 255, 255, .3); }

.pagination { display: flex; gap: 6px; justify-content: flex-end; padding: 12px 16px; align-items: center; font-size: 13px; color: var(--text-3); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .cols-main, .cols-3, .cols-4, .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .menu-btn { display: block; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .cols-2, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .hero .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .actions { width: 100%; }
  .span2 { grid-column: auto; }
  .dl { grid-template-columns: 1fr; gap: 0 0; } .dl dd { margin-bottom: 8px; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
  .topbar .user .uname { display: none; }
}
@media print {
  .sidebar, .topbar, .actions, .btn { display: none !important; }
  .app { display: block; } .content { padding: 0; }
}

/* Guía de uso y ayuda contextual (v1.6) */
.progress { height: 8px; background: var(--neutral-bg); border-radius: 99px; overflow: hidden; margin: 10px 0 14px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.guia-checklist { list-style: none; margin: 0; padding: 0; }
.guia-checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guia-checklist li:last-child { border-bottom: 0; }
.guia-checklist .chk { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--neutral-bg); color: var(--neutral); }
.guia-checklist li.hecho .chk { background: var(--ok-bg); color: var(--ok); }
.guia-checklist li.hecho .txt b { color: var(--text-2); }
.guia-checklist .txt { flex: 1; min-width: 0; }
.guia-ol, .guia-pasos { margin: 0; padding-left: 20px; line-height: 1.6; }
.guia-ol li, .guia-pasos li { margin: 4px 0; }
.guia-pasos span { color: var(--text-2); }
.guia-tips { margin-top: 10px; background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.guia-indice { display: flex; flex-wrap: wrap; gap: 6px; }
.guia-indice a { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
.guia-pantalla { scroll-margin-top: 80px; }
.help-btn { font-weight: 800; width: 34px; justify-content: center; }
.help-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); box-shadow: -8px 0 24px rgba(16, 34, 51, .18); z-index: 60; transform: translateX(105%); transition: transform .2s ease; display: flex; flex-direction: column; }
.help-drawer.open { transform: none; }
.help-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.help-drawer .body { padding: 16px 18px; overflow-y: auto; }
.help-drawer h3 { margin: 0; font-size: 17px; }
.help-backdrop { position: fixed; inset: 0; background: rgba(11, 34, 54, .25); z-index: 59; display: none; }
.help-backdrop.open { display: block; }
.onboarding { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.onboarding .progress { flex: 1; min-width: 160px; margin: 0; }
@media print {
  .sidebar, .topbar, .no-print, .help-drawer, .help-backdrop, .page-head .actions { display: none !important; }
  .main { margin: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* Marca de la entidad (v1.8) */
.brand.marca { flex-direction: column; align-items: stretch; gap: 8px; }
.marca-plate { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.marca-plate img { max-width: 100%; max-height: 44px; width: auto; height: auto; display: block; }
.marca-plate.lg { padding: 16px 20px; }
.marca-plate.lg img { max-height: 64px; }
.brand.marca span { text-align: center; font-size: 11px; letter-spacing: .04em; }
.auth-brand.marca { flex-direction: column; align-items: stretch; text-align: center; }
.auth-brand.marca p { margin-top: 4px; }
.marca-muestra { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .1); }
