/* Tutorial en línea de Ledger7. Colores de la marca (frontend/public/marca/tokens.json): terracota sobre arena. */
:root { --bg: #faf7f2; --panel: #ffffff; --ink: #2a2320; --muted: #7a6f66; --line: #e6ded4; --accent: #c4622d;
  --accent-ink: #ffffff; --accent-soft: #f6e3d6; --pos: #2f7d4f; --pos-soft: #e3f2e8; --neg: #b3261e; --neg-soft: #fbe9e7; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1815; --panel: #26211d; --ink: #efe8e0; --muted: #a39686; --line: #3a332d; --accent: #e0845e;
    --accent-ink: #1c1815; --accent-soft: #3b2a20; --pos: #7ccf9a; --pos-soft: #1f3327; --neg: #f19a8f; --neg-soft: #3a2220; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif; }
button, textarea { font: inherit; color: inherit; }
.barra { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.marca img { height: 26px; }
.marca span { color: var(--accent); font-weight: 600; }
.total { color: var(--muted); font-size: 13px; }
.esp { flex: 1; }
#sesion { display: flex; align-items: center; gap: 8px; }
#sesion img { width: 30px; height: 30px; border-radius: 50%; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.link { border: 0; background: none; color: var(--muted); }
.btn:disabled { opacity: .55; cursor: default; }
.cuenta { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.principal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding: 20px 24px 40px; max-width: 1500px; margin: 0 auto; }
@media (max-width: 980px) { .principal { grid-template-columns: 1fr; padding: 14px 16px 32px; } .barra { padding: 10px 16px; } .total { display: none; } }
.video { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
video { width: 100%; height: 100%; display: block; }
.actual { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 14px 2px 0; flex-wrap: wrap; }
.actual h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.actual p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.pasos { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px 8px; }
.pasos h2 { margin-left: 8px; }
.pasos ol, .indice ol { list-style: none; margin: 0; padding: 0; }
.pasos li button { width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; display: grid; grid-template-columns: 52px 1fr; gap: 10px; cursor: pointer; }
.pasos li button:hover, .pasos li button[aria-current="true"] { background: var(--accent-soft); }
.pasos .t { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.indice { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; align-self: start; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; }
.indice h2 { margin-left: 10px; }
.indice li button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; cursor: pointer; align-items: baseline; }
.indice li button:hover, .indice li button[aria-current="true"] { background: var(--accent-soft); }
.indice .num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.indice .tit { font-weight: 600; }
.indice .dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.indice .visto .tit::after { content: " ✓"; color: var(--accent); }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.ancho { width: min(820px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(20, 16, 12, .45); }
dialog form, .ingreso, .mis { padding: 22px 24px; }
dialog h2 { font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.contexto { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 13px; color: var(--muted); }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 10px 12px; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nota { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.aviso.neg { background: var(--neg-soft); color: var(--neg); border-radius: 8px; padding: 8px 12px; }
.pie { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ingreso { text-align: center; }
.ingreso p { color: var(--muted); }
#boton-google { display: flex; justify-content: center; margin: 16px 0 8px; min-height: 44px; }
.mis .cab { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.pregunta { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.pregunta.foco { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pregunta .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.chip { border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; }
.chip.pendiente { background: var(--accent-soft); color: var(--accent); }
.chip.respondida { background: var(--pos-soft); color: var(--pos); }
.pregunta .q { margin: 8px 0 0; white-space: pre-wrap; }
.respuesta { margin-top: 12px; border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; }
.respuesta p, .respuesta ul, .respuesta ol { margin: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; z-index: 20; }
