:root{ --bg:#f6f7f8; --card:#fff; --ink:#0f172a; --muted:#64748b; --ok:#16a34a; --bad:#dc2626; --pri:#0ea5e9; --acc:#6366f1; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:system-ui, -apple-system, Segoe UI, Roboto, Ubuntu; background:var(--bg); color:var(--ink); }
.topbar{ position:sticky; top:0; background:var(--card); padding:12px 16px; box-shadow:0 2px 12px rgba(2,6,23,.06); }
.topbar h1{ margin:0; font-size:18px; }
.topbar p{ margin:4px 0 0; color:var(--muted); font-size:12px; }
.container{ max-width:720px; margin:10px auto; padding:0 12px; }
.controls{ background:var(--card); border-radius:16px; padding:12px; box-shadow:0 6px 24px rgba(2,6,23,.06); }
.controls label{ display:block; font-size:12px; color:var(--muted); margin-top:6px; }
.row{ display:flex; gap:8px; margin:6px 0 10px; }
.btn{ border:0; padding:10px 12px; border-radius:12px; background:#e5e7eb; color:#111827; font-weight:600; }
.btn-primary{ background:var(--pri); color:#fff; }
.btn-accent{ background:var(--acc); color:#fff; width:100%; margin-top:10px; padding:12px; }
input[type=number]{ width:100%; padding:10px; border-radius:12px; border:1px solid #e5e7eb; }
.card{ background:var(--card); border-radius:16px; padding:12px; box-shadow:0 6px 24px rgba(2,6,23,.06); margin:12px 0; }
.option{ display:block; width:100%; text-align:left; padding:10px; border-radius:12px; border:1px solid #e5e7eb; background:#fff; margin:6px 0; }
.option.selected{ outline:2px solid #94a3b8; }
.option.correct{ outline:2px solid var(--ok); background:#f0fdf4; }
.option.wrong{ outline:2px solid var(--bad); background:#fef2f2; }
.meta{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.actions{ position:sticky; bottom:10px; display:flex; gap:8px; }
.hidden{ display:none; }
.progress{ height:8px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.progress > div{ height:8px; background:var(--pri); width:0%; }
.badge{ display:inline-block; font-size:12px; padding:4px 8px; border-radius:999px; background:#e5e7eb; }
.badge.ok{ background:#dcfce7; color:#166534; }
.badge.bad{ background:#fee2e2; color:#991b1b; }
.foot{ text-align:center; color:var(--muted); font-size:12px; padding:16px; }

/* === Accesibilidad por usuario (añadir al FINAL de styles.css) === */
:root{
  --fs-base: 16px;
  --lh-base: 1.6;
}

body{
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

/* Rafa (tamaño normal) */
body.rafa{
  --fs-base: 16px;
  --lh-base: 1.6;
}

/* Julia (tipografía + espaciado mayores) */
body.julia{
  --fs-base: 22px;   /* sube a 24px si lo ve mejor */
  --lh-base: 1.75;
}

/* Botones e inputs ligeramente más cómodos para Julia */
body.julia .btn{ padding: 12px 14px; border-radius: 14px; }
body.julia .btn-accent{ padding: 14px; }
body.julia input[type=number]{ padding: 12px; }

/* Un poco más de contraste en botones clave para Julia (opcional) */
body.julia .btn-primary,
body.julia .btn-accent{ filter: saturate(1.1) contrast(1.05); }
