/*
 * Rabbit — sistema de interfaz "Claro" (ADR-0019, docs/guias/GUIA-DISENO-UI.md).
 * Tokens y componentes base. F0.5: pantallas de acceso. F0.11 agrega layouts por rol.
 * El color del rol se fija con la clase del <body>: tema-broker | tema-expansor | tema-admin | tema-cliente.
 * F0.11: fuentes servidas desde la aplicación (sin Google Fonts; OFL 1.1 en assets/fuentes) e íconos en assets/iconos.svg.
 */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fuentes/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fuentes/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fuentes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }
:root {
  --ink: #17151F; --ink-2: #5E5A6E; --paper: #FFFFFF; --wash: #F4F2FA; --line: #E3E0EC;
  --ok: #137A3F; --ok-soft: #E2F3E9; --wait: #A15C00; --wait-soft: #FCF0DC;
  --info: #1F5FBF; --info-soft: #E4EDFB; --stop: #B3261E; --stop-soft: #FBE7E5;
  --rol: #17151F; --rol-soft: #EDECF2;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radio: 14px;
}
/* `hidden` siempre oculta, aunque el componente fije display (chip de precisión del GPS). */
[hidden] { display: none !important; }
.tema-broker   { --rol: #5A2FD0; --rol-soft: #EEE8FE; }
.tema-expansor { --rol: #0E6A7E; --rol-soft: #E1F1F4; }
.tema-admin    { --rol: #8E2453; --rol-soft: #F7E6EE; }
.tema-cliente  { --rol: #3346A0; --rol-soft: #E8EBF8; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 17px/1.45 var(--f-body); }
a { color: var(--rol); font-weight: 700; }
:focus-visible { outline: 3px solid var(--rol); outline-offset: 2px; }
.ref { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }

/* ---------- acceso: tarjeta centrada, a pantalla completa en celular ---------- */
.acceso { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.acceso__caja { width: 100%; max-width: 440px; background: var(--paper); border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px -30px rgba(23, 21, 31, .35); }
.logo { font: 700 30px/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--rol); }
.etiqueta-rol { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rol); background: var(--rol-soft); border-radius: 999px; padding: 4px 12px; }
.h1 { font: 700 26px/1.15 var(--f-display); margin: 0; text-wrap: balance; }
.p { margin: 0; color: var(--ink-2); }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 700; font-size: 16px; }
.campo .ayuda { font-size: 15px; color: var(--ink-2); }
.entrada { min-height: 54px; width: 100%; border: 2px solid var(--line); border-radius: var(--radio); background: var(--wash);
  padding: 0 14px; font: inherit; color: var(--ink); }
.entrada:focus { border-color: var(--rol); background: var(--paper); outline: none; }
.entrada--codigo { font: 700 28px var(--f-mono); letter-spacing: .35em; text-align: center; }
.con-boton { position: relative; }
.con-boton .entrada { padding-right: 96px; }
.con-boton button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: none; color: var(--rol);
  font: 700 15px var(--f-body); cursor: pointer; padding: 0 12px; border-radius: 10px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; width: 100%;
  border-radius: var(--radio); border: 2px solid var(--rol); background: var(--rol); color: #fff;
  font: 700 17px var(--f-body); cursor: pointer; padding: 0 16px; text-decoration: none; text-align: center; }
.btn--sec { background: var(--paper); color: var(--rol); }
.enlace { background: none; border: 0; color: var(--rol); font: 700 16px var(--f-body); cursor: pointer; padding: 10px 0;
  text-align: left; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radio); padding: 12px 14px; font-size: 15px;
  background: var(--wash); }
.aviso--error { background: var(--stop-soft); color: var(--stop); }
.aviso--ok { background: var(--ok-soft); color: var(--ok); }
.aviso--info { background: var(--info-soft); color: var(--ink); }
.aviso ul { margin: 0; padding-left: 18px; }

.casilla { display: flex; gap: 12px; align-items: center; font-size: 16px; cursor: pointer; }
.casilla input { width: 22px; height: 22px; accent-color: var(--rol); }

.qr { align-self: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radio); padding: 10px; line-height: 0; }
.qr svg { width: 220px; height: 220px; max-width: 100%; }
.secreto { font: 500 15px var(--f-mono); letter-spacing: .08em; word-break: break-all; background: var(--wash);
  border-radius: 10px; padding: 10px 12px; text-align: center; }
.respaldo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.respaldo li { font: 700 17px var(--f-mono); text-align: center; background: var(--wash); border-radius: 10px; padding: 10px; }
.pasos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }

.icono-grande { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; align-self: center;
  background: var(--rol-soft); color: var(--rol); }
.centro { text-align: center; align-items: center; }

@media (max-width: 480px) {
  .acceso { padding: 0; align-items: stretch; }
  .acceso__caja { border-radius: 0; box-shadow: none; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- escritorio (Admin, Expansor gabinete) — mockups A/E v2 ---------- */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100%; background: var(--paper); }
.lateral { background: #2B1320; color: #F0DDE6; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; }
.tema-expansor .lateral { background: #0F2F38; color: #D8EAEE; }
.lateral .logo { color: #fff; font-size: 22px; padding: 4px 10px 14px; }
.lateral .logo b { color: #F49AC1; }
.tema-expansor .lateral .logo b { color: #7FD3E2; }
.lateral a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 400;
  padding: 9px 12px; border-radius: 10px; min-height: 42px; font-size: 15px; }
.lateral a:hover { background: rgba(255, 255, 255, .07); }
.lateral a.on { background: #fff; color: var(--rol); font-weight: 700; }
.lateral .sep { height: 1px; background: rgba(255, 255, 255, .12); margin: 8px; }
.columna { display: flex; flex-direction: column; min-width: 0; }
.superior { display: flex; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--line); min-height: 60px; }
.superior .yo { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--rol-soft); color: var(--rol); display: grid; place-items: center; font-weight: 700; }
.pagina { padding: 24px 28px 36px; display: flex; flex-direction: column; gap: 18px; max-width: 1280px; }
.cabeza { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cabeza .tt { flex: 1; min-width: 260px; }
.cabeza h1 { font: 700 26px/1.15 var(--f-display); margin: 2px 0 0; text-wrap: balance; }
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pestanas a { border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--ink-2); font-weight: 400; text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.pestanas a.on { border-bottom-color: var(--rol); color: var(--rol); font-weight: 700; }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { min-height: 38px; border: 2px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 400; text-decoration: none; display: inline-flex; align-items: center; }
.ficha.on { border-color: var(--rol); background: var(--rol-soft); color: var(--rol); font-weight: 700; }
.tabla-marco { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tabla th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--wash); font-weight: 700; }
table.tabla td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tabla tr:last-child td { border-bottom: 0; }
table.tabla .vacia { color: var(--ink-2); text-align: center; padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.k-ok { background: var(--ok-soft); color: var(--ok); }
.k-wait { background: var(--wait-soft); color: var(--wait); }
.k-n { background: var(--wash); color: var(--ink-2); }
.k-info { background: var(--info-soft); color: var(--info); }
.dim { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .lateral { flex-direction: row; flex-wrap: wrap; }
  .lateral .logo { width: 100%; }
  .pagina { padding: 18px 16px; }
}

/* A25 — panel de parámetros (mockup Admin v2: .cols2, .panel, .field, .in) */
.cols2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.panel h2 { font: 700 17px var(--f-display); margin: 0; }
.valor { min-height: 46px; border: 2px solid var(--line); border-radius: 12px; background: var(--wash); display: flex; align-items: center; padding: 0 14px; gap: 8px; font-size: 15px; }
.valor .unidad { margin-left: auto; color: var(--ink-2); }

/* ============ F0.11 — armazones por rol (mockups A/E/B/C v2 autorizados) ============ */
.ico { width: 20px; height: 20px; flex: none; }
.ico--24 { width: 24px; height: 24px; }
.lateral a .n, .ib .n { min-width: 20px; height: 20px; border-radius: 10px; font: 700 12px/20px var(--f-body); text-align: center; padding: 0 6px; }
.lateral a .n { margin-left: auto; background: #F49AC1; color: #2B1320; }
.tema-expansor .lateral a .n { background: #7FD3E2; color: #0F2F38; }
/* Módulo del menú que todavía no existe: visible para orientar, sin enlace. */
.lateral .pendiente { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 42px; font-size: 15px; opacity: .45; cursor: default; }
.lateral .salir { margin-top: auto; }

/* campana / botón de ícono (A/E/B/C) */
.ib { width: 46px; height: 46px; border-radius: 14px; border: 0; background: none; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); position: relative; text-decoration: none; }
.ib:hover { background: var(--wash); }
.ib .n { position: absolute; top: 5px; right: 4px; background: var(--rol); color: #fff; }

/* tarjetas de inicio (A02, E02, C02) */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--paper); display: flex; flex-direction: column;
  gap: 2px; min-height: 92px; color: var(--ink); text-decoration: none; font-weight: 400; }
a.kpi:hover { border-color: var(--rol); }
.kpi b { font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-2); font-size: 15px; }
.kpi.att { background: var(--wait-soft); border-color: transparent; }
.kpi.att b { color: var(--wait); }
.kpi.sin-dato b { color: var(--ink-2); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.panel h3 { font: 700 17px var(--f-display); margin: 0; }
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list .li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 50px;
  background: var(--paper); width: 100%; text-align: left; font: inherit; font-size: 15px; color: var(--ink); text-decoration: none; font-weight: 400; }
.list .li:last-child { border-bottom: 0; }
.list .li .l { color: var(--ink-2); flex: 1; }
.list .li .r { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.list .li .cuerpo { flex: 1; }
.list button.li { cursor: pointer; border-left: 0; border-right: 0; border-top: 0; }
.list button.li:hover { background: var(--wash); }
.list .li .punto { width: 10px; height: 10px; border-radius: 50%; background: var(--rol); flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list .vacia { padding: 18px 14px; color: var(--ink-2); }
.k-r { background: var(--rol-soft); color: var(--rol); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--wash); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.btn--auto { width: auto; min-height: 48px; font-size: 15px; border-radius: 12px; }
.btn--sm { width: auto; min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.meta { color: var(--ink-2); font-size: 15px; }
.superior .yo .ib { width: 42px; height: 42px; }
form.en-linea { margin: 0; }

/* ---------- celular: Broker (B07–B27) y Expansor en campo (E14–E21) ---------- */
.movil { min-height: 100%; max-width: 520px; margin: 0 auto; background: var(--paper); display: flex; flex-direction: column; }
.movil .appbar { display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px; min-height: 60px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.movil .appbar .logo { font-size: 22px; padding-left: 8px; flex: 1; }
.movil .appbar .t { font: 700 19px/1.2 var(--f-display); flex: 1; text-wrap: balance; padding-left: 8px; }
.movil .ib { width: 48px; height: 48px; }
.movil .ib .n { top: 6px; right: 5px; }
.movil .cuerpo-app { flex: 1; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.movil .h { font: 700 26px/1.15 var(--f-display); margin: 0; text-wrap: balance; }
.movil .pie { padding: 12px 20px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.movil .list .li { min-height: 56px; font-size: 16px; padding: 12px 14px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--paper);
  padding-bottom: max(10px, env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
.tabs a, .tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 4px; font-size: 12px; color: var(--ink-2);
  min-height: 56px; text-decoration: none; font-weight: 400; }
.tabs a.on { color: var(--rol); font-weight: 700; }
.tabs .pendiente { opacity: .45; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 2px;
  min-height: 92px; color: var(--ink); text-decoration: none; font-weight: 400; }
.tile b { font: 700 32px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tile span { font-size: 15px; color: var(--ink-2); }
.tile.sin-dato b { color: var(--ink-2); }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; min-height: 64px; background: var(--wait-soft); border-color: transparent; }
.tile.wide b { color: var(--wait); font-size: 28px; }
.tile.wide span { color: var(--ink); font-weight: 700; }
@media (min-width: 560px) { .movil { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* ---------- Cliente (C02–C15): barra superior en escritorio, pestañas abajo en celular ---------- */
.cliente { min-height: 100%; display: flex; flex-direction: column; background: var(--paper); }
.ctop { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); min-height: 62px; }
.ctop .logo { font-size: 22px; }
.ctop .co { color: var(--ink-2); font-size: 14px; border-left: 1px solid var(--line); padding-left: 14px; }
.ctop .nv { display: flex; gap: 4px; margin-left: 12px; }
.ctop .nv a, .ctop .nv span { border-radius: 10px; padding: 8px 14px; min-height: 44px; font-size: 15px; color: var(--ink-2); text-decoration: none;
  font-weight: 400; display: inline-flex; align-items: center; }
.ctop .nv a.on { background: var(--rol-soft); color: var(--rol); font-weight: 700; }
.ctop .nv .pendiente { opacity: .45; }
.ctop .rt { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cbody { flex: 1; padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 18px; max-width: 1180px; width: 100%; }
.cbody h1 { font: 700 26px/1.15 var(--f-display); margin: 2px 0 0; }
.ctabs { display: none; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--paper); position: sticky; bottom: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.ctabs a, .ctabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 4px; font-size: 12px; color: var(--ink-2);
  min-height: 56px; text-decoration: none; font-weight: 400; }
.ctabs a.on { color: var(--rol); font-weight: 700; }
.ctabs .pendiente { opacity: .45; }
.cliente .kpis { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) {
  .ctop { padding: 10px 14px; gap: 10px; }
  .ctop .nv, .ctop .co { display: none; }
  .ctabs { display: grid; }
  .cbody { padding: 16px 18px 22px; gap: 16px; }
  .cliente .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- A23b / A24b — formularios de gestión (mockups autorizados 2026-10-07) ---------- */
.pila { display: flex; flex-direction: column; gap: 16px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel .campo label, .panel .q { font-size: 15px; font-weight: 700; }
.panel .entrada { min-height: 46px; border-radius: 12px; font-size: 15px; }
textarea.entrada { min-height: 76px; padding: 10px 14px; resize: vertical; }
.entrada--bloq { display: flex; align-items: center; background: #EFEDEF; color: var(--ink-2); }
.entrada--bloq .u { margin-left: auto; }
.opts { display: grid; gap: 8px; }
.opts.c2 { grid-template-columns: 1fr 1fr; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); display: flex;
  flex-direction: column; justify-content: center; padding: 6px 12px; cursor: pointer; font-size: 15px; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--rol); background: var(--rol-soft); font-weight: 700; }
.opt:has(input:focus-visible) { outline: 3px solid var(--rol); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt .sm { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
table.matriz { width: 100%; border-collapse: collapse; font-size: 15px; }
table.matriz th, table.matriz td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: middle; }
table.matriz th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.acc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 0; }
.acc .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.acc .t .ayuda { font-size: 14px; color: var(--ink-2); }
.fila-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--peligro { border-color: var(--stop); color: var(--stop); background: var(--paper); }
.btn--peligro.lleno { background: var(--stop); color: #fff; }
.note--wait { background: var(--wait-soft); }
.note--info { background: var(--info-soft); }
.hist .li { align-items: flex-start; font-size: 14px; }
.hist .f { color: var(--ink-2); flex: none; width: 112px; }
@media (max-width: 700px) { .dos, .opts.c3 { grid-template-columns: 1fr; } }

/* ---------- B03–B05 registro de broker y B26/B27 perfil (mockup Broker v2) ---------- */
.avance { display: flex; flex-direction: column; gap: 6px; }
.avance small { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.avance .barra { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; }
.avance .barra i { display: block; height: 100%; background: var(--rol); }
.fichas-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.fichas-sel label { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 2px solid var(--line);
  border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 15px; cursor: pointer; }
.fichas-sel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fichas-sel label:has(input:checked) { border-color: var(--rol); background: var(--rol-soft); color: var(--rol); }
.fichas-sel label:has(input:focus-visible) { outline: 3px solid var(--rol); outline-offset: 2px; }
.aviso-texto { white-space: pre-wrap; font-size: 15px; line-height: 1.55; max-height: 60vh; overflow: auto; background: var(--wash); border-radius: 12px; padding: 14px; }
.ref-grande { font: 700 34px var(--f-mono); color: var(--rol); }

/* F1.11 — Mapa (ADR-0032: Leaflet + OpenStreetMap; componente App\Libraries\Mapa) */
.mapa { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; background: var(--wash); z-index: 0; }
.mapa__sin { display: block; padding: 16px; color: var(--ink-2); font-size: 14px; }
.mapa__pin { background: var(--rol); border: 2px solid var(--paper); border-radius: 50%; box-shadow: 0 1px 3px rgba(23, 21, 31, .35); }
.mapa__pin--gris { background: #A79CA2; }
.mapa__pin--c { background: var(--stop); }
.mapa__pin--g { background: var(--ok); }
.mapa__pin--d { background: #9C9197; border-width: 1px; }
.mapa .leaflet-control-attribution { font: 11px var(--f-body); }
/* Búsqueda por dirección y selector de capa (ADR-0033): controles dentro del área del mapa. */
.mapa__buscar { background: var(--paper); border-radius: 10px; box-shadow: 0 1px 4px rgba(23, 21, 31, .3); padding: 6px; width: min(320px, calc(100vw - 170px)); font: 14px var(--f-body); }
.mapa__buscar-fila { display: flex; gap: 6px; }
.mapa__buscar input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.mapa__buscar button { border: 0; border-radius: 8px; padding: 8px 10px; background: var(--rol); color: #fff; font: 700 14px var(--f-body); cursor: pointer; }
.mapa__buscar-res:empty { display: none; }
.mapa__buscar-res { margin-top: 6px; max-height: 150px; overflow: auto; color: var(--ink-2); }
.mapa__buscar button.mapa__buscar-op { display: block; width: 100%; text-align: left; margin-top: 4px; background: var(--wash); color: var(--ink); font-weight: 400; }
.mapa .leaflet-control-layers { font: 13px var(--f-body); border-radius: 10px; }
.coinc { border: 2px solid var(--wait); background: var(--wait-soft); border-radius: var(--radio); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.capa { font: 700 11px var(--f-mono); border-radius: 6px; padding: 1px 6px; background: var(--wash); color: var(--ink-2); }
.capa--v { background: var(--ok-soft); color: var(--ok); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entrada--filtro { width: auto; min-height: 38px; padding: 4px 10px; font-size: 14px; border-radius: 999px; }
.tog { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.tog.pendiente { opacity: .55; cursor: not-allowed; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.galeria figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); }
.galeria figcaption { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details > summary.enlace, details > summary.t { cursor: pointer; }
details.acc { display: block; }
details.acc > summary { display: flex; flex-direction: column; gap: 2px; list-style: none; }
details.acc[open] > form { padding-top: 10px; }
.list a.li { text-decoration: none; color: inherit; font-weight: 400; }
.list a.li.on { background: var(--rol-soft); }
.cols2--par { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .cols2--par { grid-template-columns: 1fr; } }
.campo-movil { max-width: 560px; width: 100%; }
.pestanas .pendiente { opacity: .5; cursor: not-allowed; padding: 8px 12px; }
.h2 { font: 700 19px var(--f-display); margin: 0; }

/* F4.7 — Expansor en campo (mockup Expansor v2 E17–E21): tarjetas de agenda, bloques de la bitácora y contador de aforo. */
.tarjeta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: left; }
.tarjeta .fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tarjeta .ir { color: var(--rol); font-weight: 700; }
.bloques { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-inline: -20px; }
.bloques a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bloques a .n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.bloques a .n.listo { background: var(--ok-soft); color: var(--ok); }
.bloques a .n.falta { background: var(--wait-soft); color: var(--wait); }
.bloques a .n.vacio { background: var(--wash); color: var(--ink-2); }
.bloques a .t { flex: 1; }
.contador { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.contador .cuenta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.contador .cuenta input { font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; border: 0; background: transparent; width: 6ch; padding: 0; color: var(--ink); }
.contador .tap { width: 88px; height: 72px; border-radius: 16px; border: 0; background: var(--rol); color: #fff; font: 700 26px var(--f-display); cursor: pointer; touch-action: manipulation; }
.contador .tap:active { transform: scale(.97); }
.requisito { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.requisito:last-child { border-bottom: 0; }
.requisito .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.requisito .n.listo { background: var(--ok-soft); color: var(--ok); }
.requisito .n.falta { background: var(--wait-soft); color: var(--wait); }

/* F4.9 — Cola sin señal (mockup F4 complementos SS1) */
.note--bad { background: var(--stop-soft); }
.note--bad .btn { margin-top: 8px; }
.sync { display: flex; align-items: center; gap: 8px; background: var(--wait-soft); color: var(--wait); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.sync.ok { background: var(--ok-soft); color: var(--ok); }
.cola-lista { padding: 8px 14px; gap: 0; }
.q-item { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.q-item:last-child { border-bottom: 0; }
.q-item .tx { flex: 1; min-width: 0; }
