/* Velotecla · Contenido de texto bajo el pliegue (SEO y guías) */

.content {
  max-width: 700px;
  margin: 96px auto 0;
  padding: 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.content h2 {
  margin: 56px 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text);
}
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 28px 0 8px; font-size: 1.125rem; color: var(--text); }
.content strong { color: var(--text); font-weight: 600; }
.content ul { padding-left: 0; list-style: none; }
.content li { position: relative; margin: 10px 0; padding-left: 22px; }
/* Listas numeradas: solo el número (en ámbar), sin el guion de las listas normales */
.content ol { padding-left: 0; list-style: none; counter-reset: paso; }
.content ol > li { counter-increment: paso; padding-left: 30px; }
.content ol > li::before {
  content: counter(paso) ".";
  position: absolute;
  left: 0; top: 0;
  width: auto; height: auto;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.content ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 10px; height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

@media (max-width: 767px) {
  .content { margin-top: 40px; padding: 0 16px; }
  .content h2 { font-size: 1.875rem; }
}

/* ---------- Migas de pan, teclado de la lección y paginador ---------- */
.crumbs { margin-bottom: 28px; font-size: 0.8125rem; color: var(--pending); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.kb--lesson { margin: 8px 0 8px; max-width: 100%; }
.kb--lesson .key { height: 34px; }
.lesson-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.lesson-pager__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s;
}
.lesson-pager__link:hover { border-color: var(--muted); }
.lesson-pager__link--next { text-align: right; grid-column: 2; }

/* Tablas y teclas dentro del contenido de la portada */
.content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 0.9375rem; }
.content th { text-align: left; padding: 8px 12px 8px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.content td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.content a { color: var(--accent); }

/* ---------- Botón "Volver" (guías, lecciones, páginas legales) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px -12px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.back-link .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.back-link:hover { color: var(--text); background: var(--surface); }
.back-link:hover .icon { translate: -3px 0; }

/* ---------- Teclado con manos dentro de una guía ---------- */
.kb-figure {
  margin: 28px 0 32px;
  padding: 24px 20px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.kb-figure .kb { margin-bottom: 6px; }
.kb-figure figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ---------- Selector de dedo (guía "qué dedo va en cada tecla") ---------- */
.finger-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.finger-picker button {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, box-shadow .15s, background-color .15s;
}
.finger-picker button:hover { color: var(--text); }
.finger-picker button[aria-pressed="true"] { color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 1px var(--muted); }
.finger-picker button:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 35%, transparent); outline-offset: 2px; }
.kb-figure .hands-hint { margin-top: 10px; }

/* ---------- Guía de símbolos ---------- */
/* Símbolos como teclas cuadradas, en letra monoespaciada para que se distingan bien ({ [ | \) */
.finger-picker--symbols { gap: 4px; }
.finger-picker--symbols button {
  justify-content: center;
  min-inline-size: 2.5rem;
  min-block-size: 2.5rem;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.125rem;
}
.finger-picker--symbols button[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Tablas anchas: se desplazan solas en el celular, sin mover la página */
.table-scroll { overflow-x: auto; margin: 20px 0; }
.table-scroll table { margin: 0; min-inline-size: 36rem; }
.table-scroll caption { caption-side: top; text-align: start; padding-block-end: 8px; color: var(--muted); font-size: 0.875rem; }
.symbol-cell { display: inline-block; min-inline-size: 1.5em; font-family: var(--font-mono); font-size: 1.125rem; color: var(--accent); }
