/* ============================================================
   health-hci-mvp — Sistema de diseño "Clínico sereno"
   Prototipo de interfaz. Datos exclusivamente ficticios.
   ============================================================ */

:root {
  /* Superficies: blancos cálidos, croma muy bajo */
  --bg:        #FAF8F4;
  --surface:   #FFFFFF;
  --surface-2: #F5F2EC;
  --surface-3: #EEEAE1;

  /* Tinta */
  --ink:   #1C1A17;
  --ink-2: #57524A;
  --ink-3: #8A8377;
  --ink-4: #ABA498;

  /* Filetes */
  --line:   #E5E0D6;
  --line-2: #D3CCBE;

  /* Acento único: teal */
  --accent:      #0E6E66;
  --accent-deep: #0A524C;
  --accent-soft: #E2EFED;
  --accent-line: #B9D8D4;

  /* Estados (mismo croma/luminosidad aproximados, distinto matiz) */
  --ok:   #2E7D4F;  --ok-soft:   #E6F1E9;  --ok-line:   #BEDCC8;
  --warn: #A66A00;  --warn-soft: #F8EFDD;  --warn-line: #E4CFA3;
  --crit: #A83232;  --crit-soft: #F8E9E7;  --crit-line: #E7C4BF;
  --info: #2C5F8A;  --info-soft: #E7EEF5;  --info-line: #C2D4E5;

  --r:    6px;
  --r-lg: 10px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(28,26,23,.05);
  --shadow-2: 0 1px 2px rgba(28,26,23,.04), 0 10px 28px -14px rgba(28,26,23,.16);
  --shadow-3: 0 2px 6px rgba(28,26,23,.06), 0 24px 60px -20px rgba(28,26,23,.26);

  --font-display: "Sitka Heading", Constantia, Georgia, serif;
  --font-ui:      Corbel, Candara, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Cascadia Mono", Consolas, ui-monospace, monospace;

  --sidebar-w: 244px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  width: 1440px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

::selection { background: var(--accent-soft); }

/* ---------- Utilidades tipográficas ---------- */
.mono   { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.serif  { font-family: var(--font-display); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
}
.muted    { color: var(--ink-2); }
.muted-2  { color: var(--ink-3); }
.num      { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   Estructura de aplicación
   ============================================================ */

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 900px; }

/* ---------- Barra lateral ---------- */
.sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px 18px;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand-name { font-family: var(--font-display); font-size: 16px; line-height: 1.15; }
.brand-sub  { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); padding: 16px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r);
  color: var(--ink-2); font-size: 13.5px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.nav-item:hover { background: #EAE5DA; color: var(--ink); text-decoration: none; }
.nav-item svg { flex: none; color: var(--ink-3); }
.nav-item.is-active {
  background: var(--surface); color: var(--accent-deep);
  border-color: var(--line); box-shadow: var(--shadow-1); font-weight: 600;
}
.nav-item.is-active svg { color: var(--accent); }
.nav-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.env-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3); font-family: var(--font-mono);
}

/* ---------- Barra superior ---------- */
.topbar {
  height: 60px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--ink-4); }

.search {
  margin-left: auto; position: relative; width: 320px;
}
.search input {
  width: 100%; height: 34px; padding: 0 12px 0 34px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); font-family: var(--font-ui); font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus { outline: 2px solid var(--accent-line); outline-offset: -1px; border-color: var(--accent); }
.search svg { position: absolute; left: 10px; top: 8px; color: var(--ink-4); }

.user { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.avatar {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--accent-line);
}
.user-name { font-size: 13px; line-height: 1.2; }
.user-role { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Lienzo de página ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.page { padding: 26px 28px 40px; display: flex; flex-direction: column; gap: 22px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; }
.page-title { font-family: var(--font-display); font-size: 27px; letter-spacing: -.01em; line-height: 1.1; }
.page-sub { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ============================================================
   Componentes
   ============================================================ */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--r);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--surface-2); }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--crit); border-color: var(--crit-line); background: var(--surface); }
.btn-danger:hover { background: var(--crit-soft); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-icon { width: 34px; padding: 0; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Insignias y chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok   { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge-crit { background: var(--crit-soft); color: var(--crit); border-color: var(--crit-line); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.badge-accent { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-line); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip.is-on { background: var(--accent); border-color: var(--accent-deep); color: #fff; font-weight: 600; }
.chip .n { font-family: var(--font-mono); font-size: 11px; opacity: .75; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 14px; font-weight: 600; }
.card-title .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.card-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 18px; }
.card-foot {
  padding: 11px 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-3); background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ---------- Indicadores ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-1);
}
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-top svg { color: var(--accent); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-family: var(--font-mono); font-size: 27px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat-foot { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.trend-up { color: var(--ok); font-weight: 600; }

/* barra chispa */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.spark i { display: block; width: 5px; background: var(--accent-line); border-radius: 1px; }
.spark i.hi { background: var(--accent); }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
.table th:first-child { border-radius: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tbody tr.is-selected td { background: var(--accent-soft); }
.table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table .right { text-align: right; }
.table .w-act { width: 1%; white-space: nowrap; }
.table-flush { margin: -1px 0; }

.cell-strong { font-weight: 600; }
.cell-2 { display: flex; flex-direction: column; gap: 1px; }
.cell-2 small { font-size: 11.5px; color: var(--ink-3); }

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 9px 14px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }
.tab .n {
  font-family: var(--font-mono); font-size: 10.5px; padding: 1px 5px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink-3);
}
.tab.is-on .n { background: var(--accent-soft); color: var(--accent-deep); }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-2 { grid-column: span 2; }
.label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.label .req { color: var(--crit); }
.input, .select, .textarea {
  height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); font-family: var(--font-ui); font-size: 13.5px; color: var(--ink);
  width: 100%;
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; font-size: 13px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--accent-line); outline-offset: -1px; border-color: var(--accent);
}
.select { appearance: none; background-image: none; padding-right: 30px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 10px; top: 11px; color: var(--ink-3); pointer-events: none; }
.hint { font-size: 11.5px; color: var(--ink-3); }
.hint.err { color: var(--crit); }
.input.is-err { border-color: var(--crit); background: var(--crit-soft); }

.switch {
  width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--line-2);
  position: relative; cursor: pointer; flex: none; border: none; padding: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: left .14s ease;
}
.switch.is-on { background: var(--accent); }
.switch.is-on::after { left: 18px; }

/* ---------- Lista clave-valor ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.kv dd { margin: 0; color: var(--ink); }

/* ---------- Estados ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 44px 24px; text-align: center;
}
.empty-icon {
  width: 46px; height: 46px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-4);
}
.empty h4 { font-size: 14.5px; font-family: var(--font-display); font-weight: 600; }
.empty p { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 340px; }

.skeleton { background: var(--surface-3); border-radius: var(--r); height: 12px; }
.skeleton.lg { height: 20px; }

.alert {
  display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--crit-line); background: var(--crit-soft); color: var(--crit);
  font-size: 13px; align-items: flex-start;
}
.alert svg { flex: none; margin-top: 1px; }
.alert b { display: block; margin-bottom: 2px; }
.alert-info { border-color: var(--info-line); background: var(--info-soft); color: var(--info); }
.alert-warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }

/* ---------- Modal ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(28,26,23,.34);
  display: none; align-items: center; justify-content: center; z-index: 40;
}
.scrim.is-open { display: flex; }
.modal {
  width: 470px; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); border: 1px solid var(--line); overflow: hidden;
}
.modal-head { padding: 18px 20px 0; display: flex; gap: 13px; align-items: flex-start; }
.modal-icon {
  width: 34px; height: 34px; border-radius: var(--r); flex: none; display: grid; place-items: center;
  background: var(--crit-soft); color: var(--crit); border: 1px solid var(--crit-line);
}
.modal h3 { font-family: var(--font-display); font-size: 17px; }
.modal-body { padding: 8px 20px 18px 67px; font-size: 13.5px; color: var(--ink-2); }
.modal-foot {
  padding: 13px 20px; background: var(--surface-2); border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast {
  display: flex; gap: 11px; align-items: flex-start; width: 344px;
  padding: 13px 14px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.toast-icon { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: var(--ok); }
.toast-icon.warn { background: var(--warn); }
.toast-icon.crit { background: var(--crit); }
.toast b { display: block; font-size: 13px; margin-bottom: 1px; }
.toast p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.toast .x { margin-left: auto; color: var(--ink-4); cursor: pointer; background: none; border: none; padding: 0; }

/* ---------- Medidor ---------- */
.meter { height: 7px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }
.meter > i.warn { background: var(--warn); }
.meter > i.crit { background: var(--crit); }

/* ---------- Rejillas auxiliares ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.split-70 { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; }
.split-60 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-b { display: flex; align-items: baseline; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex-grow: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Encabezado de paciente ---------- */
.patient-hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; display: flex; gap: 20px; align-items: flex-start; box-shadow: var(--shadow-1);
}
.patient-avatar {
  width: 54px; height: 54px; border-radius: var(--r-lg); flex: none;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-deep); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 20px;
}
.patient-name { font-family: var(--font-display); font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.patient-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.patient-meta span { display: inline-flex; align-items: center; gap: 5px; }
.patient-meta .sep { width: 1px; height: 12px; background: var(--line-2); }

/* ---------- Sección con filete (estilo expediente) ---------- */
.section-rule {
  display: flex; align-items: center; gap: 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
}
.section-rule h3 { font-family: var(--font-display); font-size: 16px; }
.section-rule .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.section-rule .right { margin-left: auto; display: flex; gap: 7px; align-items: center; }

/* ---------- Línea de tiempo de auditoría ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 84px 18px 1fr; gap: 11px; padding: 9px 0; align-items: flex-start; }
.tl-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); text-align: right; padding-top: 2px; }
.tl-rail { position: relative; display: grid; place-items: start center; padding-top: 5px; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: -18px; width: 1px; background: var(--line); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--surface); }
.tl-dot.gray { background: var(--ink-4); }
.tl-body { font-size: 13px; padding-top: 1px; }
.tl-body b { font-weight: 600; }
.tl-item:last-child .tl-rail::before { bottom: 50%; }

/* ---------- Nodos de infraestructura ---------- */
.node {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1);
}
.node.is-primary { border-color: var(--accent-line); background: var(--accent-soft); }
.node-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; }
.node-role { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.node.is-primary .node-role { color: var(--accent-deep); }

/* ---------- Visor de archivo ---------- */
.file-thumb {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink-4); overflow: hidden;
}
.file-card { display: flex; flex-direction: column; gap: 10px; }
.file-name { font-size: 13px; font-weight: 600; word-break: break-all; line-height: 1.35; }
.file-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ---------- Paginación ---------- */
.pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager .pg {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
}
.pager .pg:hover { background: var(--surface-2); }
.pager .pg.is-on { background: var(--accent); border-color: var(--accent-deep); color: #fff; }

/* ============================================================
   Pantalla de acceso
   ============================================================ */
.auth {
  width: 1440px; height: 900px; display: grid; grid-template-columns: 1fr 620px;
}
.auth-art {
  background: var(--accent-deep);
  position: relative; overflow: hidden; color: #EAF3F1;
  padding: 56px 60px; display: flex; flex-direction: column;
}
.auth-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 420px at 12% 88%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(520px 380px at 88% 8%, rgba(255,255,255,.07), transparent 70%);
}
.auth-grid-lines {
  position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 60%, #000 30%, transparent 78%);
}
.auth-art > * { position: relative; z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand .brand-mark { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); }
.auth-brand .brand-name { color: #fff; font-size: 17px; }
.auth-brand .brand-sub { color: rgba(234,243,241,.62); }
.auth-claim {
  margin-top: auto; font-family: var(--font-display); font-size: 36px; line-height: 1.22;
  letter-spacing: -.015em; color: #fff; max-width: 15ch;
}
.auth-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: rgba(234,243,241,.72); max-width: 46ch; }
.auth-stack {
  margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap;
}
.auth-pill {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.26); color: rgba(234,243,241,.86);
}
.auth-form {
  background: var(--surface); padding: 56px 68px; display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--line);
}
.auth-form h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.01em; }
.auth-form .sub { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 30px; }
.auth-demo {
  margin-top: 26px; padding: 14px 15px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px;
}
.auth-demo .eyebrow { margin-bottom: 8px; }
.auth-demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-family: var(--font-mono); font-size: 11.5px; }
.auth-demo-row span:first-child { color: var(--ink-2); }
.auth-foot { margin-top: 28px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   Pie de aviso (prototipo)
   ============================================================ */
.disclaimer {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--surface-2); color: var(--ink-3); font-size: 11.5px;
}
.disclaimer svg { flex: none; }
