/* STATUS · estilos de la app (sistema de diseño STATUS) */
:root {
  --brand:#0F2C4C; --brand-soft:#E7EEF6; --accent:#0E7C86; --on-brand:#FFFFFF;
  --surface:#FFFFFF; --surface-grouped:#F2F4F7; --ink:#101828; --ink-muted:#5B6575; --line:#E3E7ED;
  --ok:#18783F; --ok-soft:#E6F4EC; --warn:#A15C07; --warn-soft:#FDF1DC; --critical:#B42318; --critical-soft:#FCE8E6;
  --font-display:"Manrope", system-ui, -apple-system, sans-serif;
  --font-sans:"Inter", system-ui, -apple-system, sans-serif;
  --radius-sm:8px; --radius-md:14px; --radius-lg:20px; --radius-pill:999px;
  --shadow-card:0 1px 2px rgba(16,24,40,.06);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; height:100%; background:var(--surface-grouped); color:var(--ink); font-family:var(--font-sans); font-size:16px; line-height:24px; }
button { font:inherit; color:inherit; }
#app { min-height:100%; }
.scr { min-height:100dvh; display:flex; flex-direction:column; max-width:480px; margin:0 auto;
  padding:calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 24px); }
.grow { flex:1; }
.center { display:flex; flex-direction:column; justify-content:center; }
.logo { display:flex; justify-content:center; }
.logo img { height:30px; }
.logo.izq { justify-content:flex-start; }
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.disp { font-family:var(--font-display); }
h1.display { font-family:var(--font-display); font-weight:800; font-size:34px; line-height:40px; margin:24px 0 16px; }
h1.title, .title { font-family:var(--font-display); font-weight:700; font-size:22px; line-height:28px; margin:0; }
.muted, .callout { color:var(--ink-muted); font-size:14px; line-height:20px; }
.caption { font-size:12px; line-height:16px; font-weight:600; }
.cap { font-size:12px; line-height:16px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-muted); margin:0 0 8px 16px; }
.card { background:var(--surface); border-radius:var(--radius-md); box-shadow:var(--shadow-card); overflow:hidden; }
.card.lg { border-radius:var(--radius-lg); }
.stack { display:flex; flex-direction:column; gap:12px; }
.gap24 { margin-bottom:24px; }
.btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:52px; border-radius:var(--radius-md);
  border:1px solid transparent; font-size:17px; line-height:22px; font-weight:600; cursor:pointer; text-decoration:none; padding:0 16px; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.btn.primary { background:var(--brand); color:var(--on-brand); }
.btn.secondary { background:var(--surface); border-color:var(--line); color:var(--ink); }
.btn:disabled { opacity:.6; }
.link { background:none; border:0; color:var(--accent); font-weight:600; padding:8px; cursor:pointer; min-height:44px; }
.tile { flex:none; width:32px; height:32px; border-radius:var(--radius-sm); background:var(--brand-soft); color:var(--brand); display:flex; align-items:center; justify-content:center; }
.tile svg { width:20px; height:20px; }
.tile.xl { width:64px; height:64px; border-radius:16px; }
.tile.xl svg { width:36px; height:36px; }
.row { display:flex; align-items:center; gap:12px; min-height:60px; padding:0 16px; }
.row + .row .rb { border-top:1px solid var(--line); }
.rb { flex:1; display:flex; align-items:center; gap:8px; min-height:60px; min-width:0; }
.rt { flex:1; min-width:0; }
.t { font-size:17px; line-height:22px; font-weight:600; }
.s { font-size:14px; line-height:20px; color:var(--ink-muted); }
.pill { display:inline-flex; align-items:center; gap:8px; background:var(--brand-soft); color:var(--brand); border-radius:var(--radius-pill); padding:8px 16px; font-size:15px; font-weight:600; }
.pill svg { width:18px; height:18px; }
.punto { padding:32px 16px 24px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field label { font-size:14px; font-weight:600; }
.field input { font:inherit; min-height:52px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--surface); padding:0 14px; color:var(--ink); }
.err { color:var(--critical); font-size:14px; line-height:20px; margin:0 0 12px; }
.note { display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; line-height:18px; color:var(--ink-muted); }
.note svg { width:16px; height:16px; flex:none; }
.bar { height:8px; border-radius:var(--radius-pill); background:var(--line); overflow:hidden; margin-top:12px; }
.bar > div { height:8px; border-radius:var(--radius-pill); background:var(--accent); }
.progress { display:flex; gap:4px; margin-top:12px; }
.progress span { flex:1; height:4px; border-radius:var(--radius-pill); background:var(--line); }
.progress span.on { background:var(--brand); }
.icon-btn { width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--accent); background:none; border:0; margin-left:-12px; cursor:pointer; }
.icon-btn svg { width:24px; height:24px; }

/* Inspección con tarjeta deslizable */
.deck { position:relative; flex:1; margin-top:20px; min-height:420px; touch-action:none; user-select:none; -webkit-user-select:none; }
.deck .back { position:absolute; inset:14px 12px -14px; border-radius:var(--radius-lg); background:var(--surface); opacity:.6; box-shadow:var(--shadow-card); }
.qcard { position:absolute; inset:0; border-radius:var(--radius-lg); background:var(--surface); padding:24px 20px 20px; display:flex; flex-direction:column;
  box-shadow:0 10px 28px rgba(16,24,40,.12); will-change:transform; }
.qcard.fly { transition:transform .25s ease-out, opacity .25s ease-out; }
.qcard.reset { transition:transform .2s ease-out; }
.qcard h2 { font-family:var(--font-display); font-weight:700; font-size:22px; line-height:28px; margin:28px 0 8px; }
.qnum { font-size:12px; line-height:16px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-muted); text-align:right; }
.guide { margin-top:16px; flex:1; min-height:0; background:var(--surface-grouped); border-radius:var(--radius-md); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px; overflow:hidden; }
.guide img { max-width:100%; max-height:100%; object-fit:contain; }
.guide .big svg { width:96px; height:96px; color:var(--brand); }
.stamp { position:absolute; top:22px; padding:2px 12px; border-radius:10px; border:3px solid; font-family:var(--font-display); font-weight:800; font-size:28px; line-height:36px; letter-spacing:.04em; opacity:0; pointer-events:none; }
.stamp.si { left:18px; color:var(--ok); border-color:var(--ok); background:rgba(230,244,236,.92); transform:rotate(-14deg); }
.stamp.no { right:18px; color:var(--warn); border-color:var(--warn); background:rgba(253,241,220,.92); transform:rotate(14deg); }
.hint { text-align:center; font-size:12px; line-height:16px; color:var(--ink-muted); margin-top:28px; }

/* Hoja "¿Cuál?" para puntos grupales */
.sheet-bg { position:fixed; inset:0; background:rgba(16,24,40,.35); display:flex; align-items:flex-end; justify-content:center; z-index:10; }
.sheet { width:100%; max-width:480px; background:var(--surface); border-radius:var(--radius-lg) var(--radius-lg) 0 0; padding:20px 16px calc(env(safe-area-inset-bottom) + 20px); }
.chips { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 20px; }
.chip { min-height:48px; padding:0 18px; border-radius:var(--radius-pill); border:2px solid var(--line); background:var(--surface); font-weight:600; font-size:16px; cursor:pointer; }
.chip.on { border-color:var(--warn); background:var(--warn-soft); color:var(--warn); }

/* Confirmación */
.okcircle { width:96px; height:96px; border-radius:var(--radius-pill); background:var(--ok-soft); color:var(--ok); display:flex; align-items:center; justify-content:center; animation:pop .35s ease-out; }
.okcircle svg { width:52px; height:52px; }
@keyframes pop { from { transform:scale(.6); opacity:0; } to { transform:scale(1); opacity:1; } }
.tile.ok { background:var(--ok-soft); color:var(--ok); }
.tile.warn { background:var(--warn-soft); color:var(--warn); }
.spinner { width:28px; height:28px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--brand); animation:spin .8s linear infinite; margin:0 auto; }
@keyframes spin { to { transform:rotate(360deg); } }
