/* Teléfono a prueba de robos (guía del estudio). Claro y de alto contraste para leer bien
   a cualquier edad; respeta el modo oscuro del teléfono. «Letra grande» agranda todo. */
:root {
  --bg: #fff8f3; --surface: #ffffff; --ink: #1d1418; --muted: #5d4e53; --line: #ead9d1;
  --accent: #c2402a; --accent-ink: #ffffff; --accent-soft: #fde8e1;
  --alert: #a3321a; --alert-soft: #fbe3db; --done: #2f7d3a;
  --serif: "Fraunces", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px; --fs: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171019; --surface: #22191f; --ink: #fff4ec; --muted: #d6c6c0; --line: #3a2c33;
    --accent: #ff8a6b; --accent-ink: #2a0f08; --accent-soft: #3a211d;
    --alert: #ff9b7e; --alert-soft: #3a211d; --done: #74d184;
    color-scheme: dark;
  }
}
html.big { --fs: 21px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs); line-height: 1.55; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
a { color: var(--accent); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2em, 7vw, 2.6em); }
h2 { font-size: 1.35em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
section { margin-top: 32px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1em; }
.big-toggle { font: inherit; font-size: 0.85em; font-weight: 700; color: var(--ink); background: var(--surface); border: 2px solid var(--line);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.big-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.intro { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 0.75em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.05em; }
.hint { color: var(--muted); font-size: 0.85em; margin-top: 8px; }

.prep { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; }
.prep ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prep li span { display: inline-block; width: 1.6em; }

.ask h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qn { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: 0.75em; font-weight: 800; flex: none; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .picker { grid-template-columns: 1fr; } }
.pick { font: inherit; text-align: left; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r);
  padding: 16px; min-height: 72px; display: flex; flex-direction: column; gap: 4px; }
.pick strong { font-size: 1.1em; }
.pick span { color: var(--muted); font-size: 0.85em; }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pick.guess { border-color: var(--accent); }

.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.count { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--done); border-radius: 99px; transition: width 0.35s ease; }

.phase-title { font-size: 0.75em; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.step { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.step.current { border-color: var(--accent); }
.step-head { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; min-height: 60px; }
.num { flex: none; width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85em;
  border: 2px solid var(--line); color: var(--muted); }
.step.current .num { border-color: var(--accent); color: var(--accent); }
.step.done .num { background: var(--done); border-color: var(--done); color: #fff; }
.step-title { flex: 1; min-width: 0; font-weight: 700; }
.step.done .step-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.tag { flex: none; font-size: 0.7em; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--alert-soft); color: var(--alert); }
.step-body { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.why { color: var(--muted); }
.route-t { font-size: 0.8em; font-weight: 800; color: var(--muted); }
.route { list-style: none; margin: 0; padding: 12px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 6px; counter-reset: r; }
.route li { counter-increment: r; display: flex; gap: 10px; align-items: baseline; }
.route li::before { content: counter(r) "."; font-weight: 800; color: var(--accent); min-width: 1.4em; }
.route li b { font-weight: 700; }
.note { font-size: 0.9em; padding-left: 12px; border-left: 4px solid var(--alert); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font: inherit; font-weight: 700; border-radius: 12px; padding: 12px 18px; min-height: 52px; cursor: pointer; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { border-color: var(--line); background: var(--surface); color: var(--ink); font-size: 0.9em; min-height: 48px; }
.help { border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.9em; }

.finished { margin-top: 18px; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.thanks { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }

.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.card.alert { border-color: var(--alert); }
ol.plan { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; }
ol.plan li::marker { font-weight: 800; color: var(--alert); }
ul.habits { margin: 12px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.ref > p { margin-top: 12px; }
.rules { border: 2px dashed var(--accent); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 1.05em; }
.rules-t { font-family: var(--serif); font-size: 1.15em; }

footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 0.85em; display: flex; flex-direction: column; gap: 8px; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
@media print {
  .top .big-toggle, .ask, #guide .actions, .help, .foot-actions, .progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 13pt; }
  .step, .card, .prep, .rules { break-inside: avoid; border-color: #999; }
}
