/* Base común. El diseño está en leccion.css (lección) y app.css (el resto).
   La lección aprobada se apoya en estas reglas: cambiarlas cambia cómo se ve.
   Solo fuentes del sistema (SPEC §1). */
:root { --paper:#eeeee5; --surface:#fafaf3; --ink:#202b29; --muted:#52615b; --rule:#7a8780; --accent:#92d7cc; --accent-ink:#142f2b; --focus:#006c60; --font-body:system-ui,-apple-system,"Segoe UI",sans-serif; --font-display:var(--font-body); }
[data-mode="dark"] { --paper:#182522; --surface:#23322e; --ink:#f0f2e9; --muted:#b8c8bf; --rule:#899b92; --accent:#92d7cc; --accent-ink:#142f2b; --focus:#a0e4d7; }
@media (prefers-color-scheme:dark) { :root:not([data-mode]) { --paper:#182522; --surface:#23322e; --ink:#f0f2e9; --muted:#b8c8bf; --rule:#899b92; --focus:#a0e4d7; } }
* { box-sizing:border-box; }
html, body { overflow-x:clip; }
html { color-scheme:light dark; scrollbar-color:var(--muted) var(--paper); }
:root[data-mode="light"] { color-scheme:light; } :root[data-mode="dark"] { color-scheme:dark; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-body); font-size:16px; line-height:1.6; }
::selection { background:var(--accent); color:var(--accent-ink); }
.shell { width:min(100% - 40px,1040px); margin-inline:auto; }
a { color:inherit; text-underline-offset:4px; }
main { padding-block:32px 80px; }
h1,h2,h3 { font-family:var(--font-display); line-height:1.2; overflow-wrap:break-word; min-width:0; text-wrap:balance; }
h1 { font-size:2.5rem; margin-top:0; } h2 { font-size:1.5rem; } h3 { font-size:1.2rem; }
p { max-width:65ch; white-space:pre-line; }
button,input,select,textarea { font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--rule); border-radius:3px; min-height:44px; padding:8px 16px; max-width:100%; caret-color:var(--focus); }
button { cursor:pointer; transition:transform 120ms ease-out; }
button:hover { border-color:var(--ink); background:var(--paper); }
button:active { transform:translateY(1px); }
button:disabled { opacity:.6; cursor:not-allowed; border-style:dashed; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
input:not([type=radio]):not([type=checkbox]),textarea { width:100%; }
label { display:block; }
form>button { margin:12px 8px 0 0; }
small { color:var(--muted); }
details { margin-block:12px; } summary { min-height:44px; cursor:pointer; padding-block:8px; }
table { border-collapse:collapse; width:100%; table-layout:fixed; } td,th { border-bottom:1px solid var(--rule); padding:12px; text-align:left; overflow-wrap:anywhere; }
#aviso:not(:empty) { padding-block:16px; }
@media(max-width:600px) { .shell { width:calc(100% - 32px); } h1 { font-size:2rem; } button { overflow-wrap:anywhere; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
