/* Página de registro de Habemus. Marca: blanco, marino #0C335F, azul agua #288DD4, Figtree.
   Sin modo oscuro (el boceto es solo claro). */
:root {
  --bg: #FFFFFF;
  --text: #1A2B3E;
  --ink: #0C335F;
  --muted: #5A6B7F;
  --agua: #288DD4;
  --agua-fuerte: #1B6EA8;
  --border: #D3DDE8;
  --tint: #E8F3FB;
  --tint-line: #B9D8EE;
  --error: #A32A2A;
  --g1: #F4F5F7;
  --g2: #E6E9ED;
  --g3: #D2D7DE;
  --g4: #B4BBC5;
  --g5: #8B94A0;
  --g6: #5C6570;
  --g7: #3C444E;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
b, strong { font-weight: 800; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.logo { font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: .01em; }
.paso-n { font-size: 13px; color: var(--muted); }
.prog { display: flex; gap: 4px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--g3); }
.prog i.on { background: var(--agua); }

.pantalla { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apilado { display: flex; flex-direction: column; gap: 12px; }
form.apilado { flex: 1; }
.h { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.h.xl { font-size: 26px; }
.h.c, .c { text-align: center; }
.p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.lab { font-size: 12px; font-weight: 800; color: var(--g6); letter-spacing: .05em; text-transform: uppercase; }

.card { background: #fff; border: 1.5px solid var(--g3); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; position: relative; }
.card.sel { border-color: var(--agua); background: var(--tint); }
.fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fila.inicio { justify-content: flex-start; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--agua-fuerte); border: 1px solid var(--tint-line); white-space: nowrap; }

/* Botones */
.btn { display: block; width: 100%; min-height: 48px; text-align: center; border-radius: 10px; padding: 12px; font: inherit; font-weight: 800; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; }
.btn.pri { background: var(--agua); color: #fff; }
.btn.sec { background: #fff; border-color: var(--g4); color: var(--g7); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--g2); color: var(--g5); border-color: var(--g3); cursor: not-allowed; }
.abajo { margin-top: auto; display: grid; gap: 8px; padding-top: 8px; }
.atras { background: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: underline; min-height: 44px; cursor: pointer; }

:focus-visible { outline: 3px solid var(--agua); outline-offset: 2px; }

/* Atajos de plan */
.atajos { display: flex; gap: 8px; }
.seg { flex: 1; min-height: 56px; text-align: center; border: 1.5px solid var(--g4); background: #fff; border-radius: 10px; padding: 8px 4px; font: inherit; font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--text); cursor: pointer; }
.seg small { display: block; font-weight: 400; color: var(--g6); font-size: 12px; }
.seg[aria-pressed="true"] { border-color: var(--agua); background: var(--tint); }

/* Deslizador */
.bignum { font-size: 36px; font-weight: 800; color: var(--g7); text-align: center; line-height: 1.1; }
.bignum small { font-size: 15px; font-weight: 600; color: var(--g6); }
input[type="range"] { width: 100%; height: 44px; margin: 4px 0 0; background: transparent; accent-color: var(--agua); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--g5); margin: 0 2px; }

/* Campos */
.fld { display: grid; gap: 4px; }
.fld label { font-size: 12px; font-weight: 800; color: var(--g6); letter-spacing: .05em; text-transform: uppercase; }
.fld input, .fld select { width: 100%; min-height: 48px; border: 1.5px solid var(--g4); background: #fff; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); }
.fld input[aria-invalid="true"] { border-color: var(--error); }
.fld .ayuda { font-size: 13px; color: var(--muted); }
.fld .err { font-size: 13px; color: var(--error); font-weight: 600; }

/* Paquetes */
.opcion { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--g3); background: #fff; border-radius: 10px; padding: 12px 14px; min-height: 56px; cursor: pointer; }
.opcion.sel { border-color: var(--agua); background: var(--tint); }
.opcion input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--agua); }
.opcion:focus-within { outline: 3px solid var(--agua); outline-offset: 2px; }
.opcion .cuerpo { flex: 1; display: grid; gap: 2px; min-width: 0; }
.opcion .fila b { font-size: 16px; }
.opcion .det { font-size: 13px; color: var(--muted); }

/* Resumen */
.sum { display: grid; gap: 6px; }
.sum .fila { font-size: 15px; }
.sum .tot { border-top: 1.5px solid var(--g3); padding-top: 8px; margin-top: 2px; font-weight: 800; font-size: 18px; color: var(--ink); }
.total-corriente { display: grid; gap: 2px; }
.total-corriente .fila { font-size: 16px; }
.total-corriente .fila b { font-size: 22px; color: var(--ink); }

.acepto { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--g7); cursor: pointer; }
.acepto input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--agua); }
.acepto a { color: var(--agua-fuerte); }

.aviso { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--g1); border: 1.5px solid var(--g3); color: var(--g7); }
.aviso.mal { border-color: var(--error); background: #FBEFEF; color: var(--error); font-weight: 600; }

/* Pantallas de estado */
.circulo { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--g4); display: grid; place-items: center; margin: 12px auto 0; font-size: 26px; font-weight: 800; color: var(--g5); }
.circulo.agua { border-color: var(--agua); color: var(--agua); }
.pasos { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pasos li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pasos i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--g4); flex: none; display: grid; place-items: center; font-size: 12px; font-style: normal; color: #fff; }
.pasos i.hecho { background: var(--agua); border-color: var(--agua); }
.pasos i.ahora { border-color: var(--agua); background: var(--tint); }
.tile { background: #fff; border: 1.5px solid var(--agua); background: var(--tint); border-radius: 10px; padding: 10px 14px; display: grid; gap: 1px; }
.tile b { font-size: 22px; color: var(--ink); line-height: 1.2; }
.tile.bolsa b { font-size: 28px; letter-spacing: .04em; }
.turnstile { min-height: 65px; margin-top: 12px; }
