/* Tablero de difusiones B4D. Neutros sin tinte, un acento de marca solo en el logo,
   datos en una rampa azul ordinal (validada para daltonismo) y rojo reservado para fallidos. */
:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --side: oklch(0.975 0 0);
  --hover: oklch(0.955 0 0);
  --line: oklch(0.915 0 0);
  --line-strong: oklch(0.84 0 0);
  --ink: oklch(0.2 0.004 265);
  --ink-2: oklch(0.4 0.004 265);
  --ink-3: oklch(0.5 0.004 265);
  --focus: #2b4a9a;
  --brand: #001b5e;
  --navy: #001b5e;
  --btn: #001b5e;
  --btn-hover: #14337f;
  --btn-ink: oklch(0.99 0 0);
  --danger-ink: oklch(0.5 0.18 27);
  --danger-wash: oklch(0.96 0.02 27);
  --warn-ink: oklch(0.47 0.11 65);
  --warn-wash: oklch(0.96 0.04 85);
  --grid: #ececec;
  --axis: #c9c9c9;
  /* Estado final del mensaje: rampa ordinal azul + gris neutro + rojo de estado. */
  --st-read: #184f95;
  --st-delivered: #3987e5;
  --st-sent: #86b6ef;
  --st-pending: #c8c8c4;
  --st-failed: #d03b3b;
  --meter: #86b6ef;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 10;
  --z-tooltip: 50;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(0.185 0.004 265);
    --side: oklch(0.155 0.004 265);
    --hover: oklch(0.235 0.004 265);
    --line: oklch(0.28 0.004 265);
    --line-strong: oklch(0.36 0.004 265);
    --ink: oklch(0.95 0 0);
    --ink-2: oklch(0.8 0 0);
    --ink-3: oklch(0.7 0 0);
    --focus: oklch(0.7 0.13 255);
    --btn: oklch(0.93 0 0);
    --btn-hover: oklch(0.85 0 0);
    --btn-ink: oklch(0.18 0.004 265);
    --danger-ink: oklch(0.74 0.14 27);
    --danger-wash: oklch(0.28 0.06 27);
    --warn-ink: oklch(0.82 0.12 80);
    --warn-wash: oklch(0.3 0.05 80);
    --grid: #2a2b2f;
    --axis: #3a3b40;
    --st-read: #5598e7;
    --st-delivered: #2a78d6;
    --st-sent: #1c5cab;
    --st-pending: #55565b;
    --st-failed: #e66767;
    --meter: #2a78d6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.185 0.004 265);
  --side: oklch(0.155 0.004 265);
  --hover: oklch(0.235 0.004 265);
  --line: oklch(0.28 0.004 265);
  --line-strong: oklch(0.36 0.004 265);
  --ink: oklch(0.95 0 0);
  --ink-2: oklch(0.8 0 0);
  --ink-3: oklch(0.7 0 0);
  --focus: oklch(0.7 0.13 255);
  --btn: oklch(0.93 0 0);
  --btn-hover: oklch(0.85 0 0);
  --btn-ink: oklch(0.18 0.004 265);
  --danger-ink: oklch(0.74 0.14 27);
  --danger-wash: oklch(0.28 0.06 27);
  --warn-ink: oklch(0.82 0.12 80);
  --warn-wash: oklch(0.3 0.05 80);
  --grid: #2a2b2f;
  --axis: #3a3b40;
  --st-read: #5598e7;
  --st-delivered: #2a78d6;
  --st-sent: #1c5cab;
  --st-pending: #55565b;
  --st-failed: #e66767;
  --meter: #2a78d6;
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- controles ---------- */
.btn {
  font: 500 14px/1 var(--font); border-radius: var(--r); padding: 10px 14px; cursor: pointer;
  border: 1px solid transparent; transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--hover); color: var(--ink); }
.btn-sm { font-size: 13px; padding: 6px 10px; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
input, select {
  font: 400 14px/1.2 var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 8px 10px; min-height: 36px;
  transition: border-color 150ms var(--ease);
}
input:hover, select:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }

.form-error { color: var(--danger-ink); font-size: 13px; min-height: 1.5em; }
.form-note { color: var(--ink-2); font-size: 13px; min-height: 1.5em; }

/* ---------- marca ---------- */
.brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-logo { display: block; width: 84px; height: auto; mix-blend-mode: multiply; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.brand-auth { align-items: center; margin-bottom: 4px; }
.brand-auth .brand-logo { width: 132px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--side); }
.auth-form {
  width: min(360px, 100%); display: flex; flex-direction: column; gap: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 32px 28px 28px;
  box-shadow: 0 1px 2px rgb(0 27 94 / 0.06), 0 8px 24px rgb(0 27 94 / 0.06);
}
.auth-form h1 { font-size: 18px; text-align: center; }
.auth-form .auth-help { text-align: center; }
.auth-help { color: var(--ink-2); margin-top: -8px; }
.auth-form .btn { margin-top: 4px; padding: 11px 14px; }

/* ---------- estructura ---------- */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 12px 16px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 0 8px; }
.side-client { padding: 0 8px; margin: 20px 0 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
  font: 500 14px/1.2 var(--font); color: var(--ink-2); background: none; border: 0; text-align: left;
  padding: 8px; border-radius: var(--r); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.nav button:hover { background: var(--hover); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--bg); color: var(--navy); font-weight: 600; box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--navy); }
.nav-note { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.freshness { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.freshness b { font-weight: 600; color: var(--ink); }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.theme { display: flex; width: 100%; padding: 2px; gap: 2px; border-radius: var(--r); background: var(--hover); }
.theme button {
  flex: 1; font: 500 12px/1 var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 4px;
  padding: 6px 4px; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.auth .theme { position: fixed; top: 16px; right: 16px; width: auto; }

.main { padding: 24px 32px 64px; min-width: 0; max-width: 1280px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.range { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); }
.range:hover { border-color: var(--ink-3); }
.range input { border: 0; min-height: 34px; background: transparent; }
.range-sep { color: var(--ink-3); font-size: 13px; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg button {
  font: 500 13px/1 var(--font); color: var(--ink-2); background: var(--bg); border: 0; padding: 0 12px; min-height: 34px; cursor: pointer;
  border-left: 1px solid var(--line); transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--hover); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.seg button:focus-visible { outline-offset: -2px; }

.panel { display: flex; flex-direction: column; gap: 32px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.block-meta { font-size: 13px; color: var(--ink-3); }
.block-narrow { max-width: 640px; }
.subblock + .subblock { margin-top: 24px; }
h3 { margin: 0; font-size: 14px; font-weight: 600; }
.prose { color: var(--ink-2); max-width: 65ch; margin-bottom: 20px; }
.detail-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- embudo ---------- */
.funnel { border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px 18px; }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage { padding: 0 20px; border-left: 1px solid var(--line); }
.stage:first-child { padding-left: 0; border-left: 0; }
.stage-label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.stage-value { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 4px 0 2px; }
.stage-rate { font-size: 13px; color: var(--ink-3); }
.stage-failed .stage-value { color: var(--danger-ink); }
.dot { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; }
.mix { display: flex; height: 8px; gap: 2px; margin: 20px 0 12px; }
.mix span { min-width: 2px; transition: flex-grow 250ms var(--ease); }
.mix span:first-child { border-radius: 4px 0 0 4px; }
.mix span:last-child { border-radius: 0 4px 4px 0; }
.funnel-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--ink-2); }
.funnel-meta b { font-weight: 600; color: var(--ink); }

/* ---------- gráfico ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .base { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart text { font: 400 11px var(--font); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .col-hit { fill: transparent; cursor: default; }
.chart .col-hit:hover, .chart .col-hit.on { fill: var(--hover); }
.tooltip {
  position: absolute; z-index: var(--z-tooltip); pointer-events: none; min-width: 200px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.08); padding: 10px 12px; font-size: 12px;
  opacity: 0; transform: translateY(2px); transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}
.tooltip.on { opacity: 1; transform: none; }
.tooltip h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; }
.tooltip dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; }
.tooltip dt { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tooltip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tooltip .total { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; font-weight: 600; }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--side); }
th {
  font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--side);
  position: sticky; top: 0; z-index: var(--z-sticky); white-space: nowrap;
}
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td .pct { display: inline-block; min-width: 4.5em; color: var(--ink-3); font-size: 12px; }
td:first-child { min-width: 200px; }
.cell-main { color: var(--ink); font-weight: 500; }
.cell-sub { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.cell-wrap { max-width: 56ch; overflow-wrap: anywhere; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 500; line-height: 1; padding: 4px 7px; border-radius: 4px;
  background: var(--hover); color: var(--ink-2); white-space: nowrap;
}
.tag-warn { background: var(--warn-wash); color: var(--warn-ink); }
.share { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.share-bar { width: 96px; height: 6px; background: var(--hover); border-radius: 3px; overflow: hidden; flex: none; }
.share-bar i { display: block; height: 100%; background: var(--meter); border-radius: 3px; }

/* ---------- estados ---------- */
.empty { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 28px 24px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.todo-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.load-error { border: 1px solid var(--line); background: var(--danger-wash); color: var(--danger-ink); border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.skel { border-radius: 10px; background: var(--hover); animation: pulse 1.4s ease-in-out infinite; }
.skel-funnel { height: 150px; }
.skel-chart { height: 240px; }
.skel-table { height: 180px; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { padding: 0; }
  .side-client { margin: 0; padding: 0; }
  .nav { order: 3; flex-direction: row; width: 100%; overflow-x: auto; }
  .nav button { white-space: nowrap; gap: 6px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; }
  .freshness { display: none; }
  .side-foot .theme { width: auto; }
  .who { flex-direction: row; align-items: center; }
  .main { padding: 20px 16px 48px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .stage:nth-child(3), .stage:nth-child(5) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .who #who { display: none; }
  .funnel { padding: 16px; }
  .stage { padding: 0 12px; }
  .stage-value { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- backoffice de usuarios ---------- */
.user-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 8px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.areas-field { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.areas-field legend { padding: 0; margin-bottom: 6px; }
.areas-check { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.areas-check label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); }
.areas-check input { min-height: 0; width: 16px; height: 16px; padding: 0; }
.invite-result { margin-top: 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--side); }
.invite-title { margin-bottom: 4px; }
.invite-help { color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }
.invite-row { display: flex; gap: 8px; }
.invite-row input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tag-ok { background: var(--hover); color: var(--ink); }
.tag-off { background: var(--danger-wash); color: var(--danger-ink); }
@media (max-width: 640px) { .user-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- carga de datos ---------- */
.upload-form { display: grid; gap: 14px; margin-bottom: 8px; max-width: 520px; }
.upload-form input[type="file"] { max-width: 100%; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { color: var(--ink-3); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ink-2); }
.step-state { font-weight: 400; font-size: 13px; }
.upload-item { padding: 12px 0; border-top: 1px solid var(--line); }
.upload-item:first-child { border-top: 0; padding-top: 0; }
.upload-item h3 { font-size: 14px; margin-bottom: 6px; overflow-wrap: anywhere; }
.upload-item p, .upload-item li { margin-bottom: 4px; }
.upload-item ul { margin: 0 0 4px; padding-left: 20px; }
.upload-item-error h3 { color: var(--danger-ink); }
#upload-result:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- filtros extra, donas y palabras ---------- */
.extra-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 24px; }
.donut-item { display: flex; align-items: center; gap: 14px; }
.donut-item svg { width: 96px; height: 96px; flex: none; }
.donut-item circle { fill: none; stroke-width: 14; }
.donut-item .donut-bg { stroke: var(--line); }
.donut-item text { font: 600 14px var(--font); fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.donut-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.donut-lines { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.donut-lines li { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.donut-lines b { font-weight: 600; color: var(--ink); }
.donut-base { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.words span { color: var(--ink-2); line-height: 1.3; }
.words b { font-weight: 600; color: var(--ink); }

/* ---------- centro de ayuda ---------- */
.help { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.help-head { display: flex; flex-direction: column; gap: 8px; }
.help-head .prose { margin-bottom: 4px; }
.help-search { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--ink); max-width: 560px; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.help-card { text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; }
.help-card span { font-size: 13px; color: var(--ink-3); }
.help-card:hover { background: var(--hover); border-color: var(--line-strong); }
.help-checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.help-check-mark { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.help-check.is-todo { background: var(--warn-wash); }
.help-check.is-todo .help-check-mark { color: var(--warn-ink); background: transparent; box-shadow: 0 0 0 1px var(--warn-ink); }
.help-check-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--ink-2); }
.help-check-body b { color: var(--ink); font-size: 14px; }
.help-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.help-steps li { counter-increment: step; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-left: 40px; position: relative; min-height: 28px; }
.help-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.help-steps li span { flex: 1 1 320px; }
.help-terms { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 8px 16px; margin: 0; }
.help-terms dt { font-weight: 600; }
.help-terms dd { margin: 0; color: var(--ink-2); }
.help-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
.help-note p { margin: 4px 0 0; color: var(--ink-2); }
.help-tip { background: var(--warn-wash); border-color: transparent; }
.help-title { font-size: 20px; }
@media (max-width: 640px) { .help-terms { grid-template-columns: 1fr; } .help-terms dd { margin-bottom: 8px; } }
.help-group { margin-top: 8px; }
.help-group h3 { font-size: 15px; }

/* ---------- tema oscuro: el logo es azul marino sobre blanco, va sobre una ficha clara ---------- */
:root[data-theme="dark"] .brand-logo { mix-blend-mode: normal; background: #fff; padding: 6px; border-radius: 6px; }
:root[data-theme="dark"] .nav button[aria-current="page"] { color: var(--ink); box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { mix-blend-mode: normal; background: #fff; padding: 6px; border-radius: 6px; }
  :root:not([data-theme="light"]) .nav button[aria-current="page"] { color: var(--ink); box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--ink-2); }
}
