/* ============================================================================
   cosme.css · Sistema de diseño · Diplomado en Cosmiatría
   Plum clínico · tipografía Sora (títulos) + Inter (texto)
   ========================================================================== */

:root {
  --ink:        #241a2e;
  --ink-soft:   #5b5168;
  --muted:      #8b8199;

  --brand:        #6d3a8e;
  --brand-strong: #562c72;
  --brand-soft:   #f1eaf7;
  --brand-tint:   #faf7fc;

  --ok:      #1f7a4d;  --ok-soft:   #e7f4ec;
  --warn:    #946410;  --warn-soft: #fbf1dc;
  --bad:     #b23a36;  --bad-soft:  #fbeceb;

  --bg:        #f5f3f9;
  --surface:   #ffffff;
  --line:      #e9e3f1;
  --line-soft: #f2eef7;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(36,26,46,.04), 0 10px 30px rgba(36,26,46,.06);
  --shadow-sm: 0 1px 2px rgba(36,26,46,.05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

/* ---- Contenedor de página ---- */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 22px 96px;
}

/* ---- Encabezado de página ---- */
header.cab {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
header.cab .clave {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
header.cab h1 { font-size: 1.6rem; font-weight: 700; }

.meta { color: var(--ink-soft); font-size: .92rem; margin: 10px 0 20px; }
.nota { color: var(--muted); font-size: .9rem; }
.seccion { margin-top: 34px; }
.seccion h2 { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; }

/* ---- Tarjeta / panel genérico ---- */
.tarjeta, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin: 16px 0;
}

/* ---- Botones ---- */
.btn, button.enviar, button.reh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .96rem; font-weight: 600;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  padding: 11px 22px; transition: background .15s, transform .05s, box-shadow .15s;
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(86,44,114,.25);
}
.btn:hover, button.enviar:hover, button.reh:hover { background: var(--brand-strong); text-decoration: none; }
.btn:active, button.enviar:active { transform: translateY(1px); }
.btn:disabled, button.enviar:disabled { opacity: .5; cursor: not-allowed; }
button.reh { background: var(--warn); box-shadow: 0 1px 2px rgba(148,100,16,.25); }
button.reh:hover { background: #7c5410; }
.btn-fantasma {
  background: transparent; color: var(--brand);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-fantasma:hover { background: var(--brand-tint); }

/* ---- Tablas ---- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  margin: 14px 0;
}
th, td { text-align: left; padding: 13px 16px; font-size: .93rem; }
thead th {
  background: var(--brand-tint); color: var(--ink-soft);
  font-weight: 600; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
tbody td { border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--brand-tint); }

/* ---- Píldoras de estado ---- */
.pill, .badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .01em;
}
.pill.ok,  .badge.b-aprobada    { background: var(--ok-soft);    color: var(--ok); }
.pill.mal, .badge.b-en_refuerzo { background: var(--warn-soft);  color: var(--warn); }
.badge.b-en_curso   { background: #e9ecfb; color: #3f4fb0; }
.badge.b-disponible { background: var(--brand-soft); color: var(--brand); }
.badge.b-bloqueada  { background: #efecf3; color: var(--muted); }

/* ---- Reactivos (práctica y examen) ---- */
.reactivo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px 20px; margin: 16px 0;
}
.reactivo .num {
  color: var(--brand); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.reactivo .vineta { margin: 6px 0 14px; font-weight: 600; font-size: 1.02rem; color: var(--ink); }

.opcion {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin: 8px 0; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.opcion:hover { border-color: var(--brand); background: var(--brand-tint); }
.opcion input { margin-top: 3px; accent-color: var(--brand); }
.opcion.correcta    { border-color: var(--ok);  background: var(--ok-soft); }
.opcion.elegida-mal { border-color: var(--bad); background: var(--bad-soft); }
.opcion.bloqueada   { cursor: default; }
.opcion.bloqueada:hover { background: transparent; }

.retro {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: .92rem; background: var(--brand-soft);
  border: 1px solid var(--line); color: var(--ink-soft);
}
.retro.ok  { background: var(--ok-soft);  border-color: #bfe6cd; color: #155f3a; }
.retro.mal { background: var(--bad-soft); border-color: #f0c5c5; color: #8a2b2b; }

.expl {
  margin-top: 9px; font-size: .89rem; color: var(--ink-soft);
  background: var(--brand-tint); border: 1px solid var(--line);
  padding: 9px 12px; border-radius: var(--radius-sm);
}

/* ---- Estados vacíos / avisos ---- */
.vacio {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted);
}
.aviso {
  background: var(--bad-soft); border: 1px solid #f0c5c5; color: #8a2b2b;
  padding: 15px 17px; border-radius: var(--radius-sm);
}
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .93rem; }
.flash.ok  { background: var(--ok-soft);  border: 1px solid #bfe6cd; color: #155f3a; }
.flash.err { background: var(--bad-soft); border: 1px solid #f0c5c5; color: #8a2b2b; }

.refuerzo-box {
  background: var(--warn-soft); border: 1px solid #f0dcb0;
  border-radius: var(--radius); padding: 18px 20px; margin: 16px 0;
}

/* ---- Barra de envío (examen) ---- */
.barra {
  position: sticky; bottom: 0; margin-top: 22px; padding: 16px 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex; gap: 14px; align-items: center;
}
.progreso { color: var(--ink-soft); font-size: .9rem; }

/* ---- Resultado del examen ---- */
.resultado {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin: 18px 0;
}
.resultado.ok  { border-left-color: var(--ok); }
.resultado.mal { border-left-color: var(--bad); }
.resultado h2  { font-size: 1.5rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }

/* ---- Barra de % de fallo (panel maestro) ---- */
.barra-fallo {
  height: 8px; background: var(--line-soft); border-radius: 6px;
  overflow: hidden; max-width: 180px;
}
.barra-fallo > span { display: block; height: 100%; background: var(--bad); }

/* ---- Responsivo ---- */
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 80px; }
  header.cab h1 { font-size: 1.35rem; }
  th, td { padding: 10px 12px; }
}

/* Accesibilidad: foco visible */
a:focus-visible, button:focus-visible, .opcion:focus-within, input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ============================================================================
   Componentes de build-01 (login, inicio, materias, materia, lección, alumnos)
   ========================================================================== */

/* Contenedor principal de _layout */
.contenedor { max-width: 1060px; margin: 0 auto; padding: 28px 22px 96px; }
@media (max-width: 640px) { .contenedor { padding: 20px 16px 80px; } }

/* Tarjetas de contenido */
.tarjeta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px 24px; margin: 16px 0;
}
.tarjeta h1 { font-size: 1.5rem; margin-bottom: 6px; }
.tarjeta h2 { font-size: 1.1rem; margin-bottom: 10px; }
.tarjeta.angosta { max-width: 420px; margin: 40px auto; }

/* Botones de enlace (.boton) */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: 10px 20px;
  border-radius: var(--radius-sm); border: 0; cursor: pointer;
  box-shadow: 0 1px 2px rgba(86,44,114,.25); transition: background .15s;
}
.boton:hover { background: var(--brand-strong); text-decoration: none; }
.boton.secundario {
  background: transparent; color: var(--brand);
  border: 1px solid var(--line); box-shadow: none;
}
.boton.secundario:hover { background: var(--brand-tint); }

/* Formularios */
form label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
form input[type=text], form input[type=email], form input[type=password], form input:not([type]) {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: .96rem;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
form input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
form button[type=submit] {
  margin-top: 18px; background: var(--brand); color: #fff; border: 0;
  font-family: inherit; font-weight: 600; font-size: .96rem;
  padding: 11px 24px; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: 0 1px 2px rgba(86,44,114,.25); transition: background .15s;
}
form button[type=submit]:hover { background: var(--brand-strong); }
form.en-linea { display: inline; margin: 0; }

/* Alertas (.error / .exito / .aviso) */
.error { background: var(--bad-soft); border: 1px solid #f0c5c5; color: #8a2b2b;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.exito { background: var(--ok-soft); border: 1px solid #bfe6cd; color: #155f3a;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }

/* Listas de inicio */
ul.acciones { list-style: none; margin: 14px 0 0; padding: 0; }
ul.acciones li { margin: 0; }
ul.acciones a {
  display: block; padding: 12px 16px; margin: 8px 0;
  background: var(--brand-tint); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 500; text-decoration: none;
  transition: background .15s, border-color .15s;
}
ul.acciones a:hover { background: var(--brand-soft); border-color: var(--brand); }

/* Lista de materias / lecciones */
.lista-materias, .lista-lecciones { list-style: none; margin: 8px 0 0; padding: 0; }
.lista-materias li, .lista-lecciones li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  margin: 7px 0; background: #fff; transition: border-color .15s, background .15s;
}
.lista-materias li:hover, .lista-lecciones li:hover { border-color: var(--brand); background: var(--brand-tint); }
.lista-materias a, .lista-lecciones a { font-weight: 500; text-decoration: none; }

/* Progreso mini (materias) */
.progreso-mini { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.barra-mini { width: 90px; height: 7px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.barra-mini > span { display: block; height: 100%; background: var(--brand); }
.tic { color: var(--ok); font-weight: 700; }

/* Ruta / breadcrumb */
.ruta { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }

/* ---- Lección: los 5 pasos Plaza Sésamo ---- */
.leccion { margin: 4px 0; }
.paso {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 22px; margin: 14px 0;
}
.paso h3 {
  display: flex; align-items: center; gap: 10px; font-size: 1.02rem;
  color: var(--brand-strong); margin-bottom: 10px;
}
.paso h3 .icono { font-size: 1.15rem; }
.paso-texto { color: var(--ink); line-height: 1.65; }
.paso-texto p { margin: 0 0 10px; }
.paso-paso1_idea     { border-left-color: #6d3a8e; }
.paso-paso2_escalon  { border-left-color: #8a4fb0; }
.paso-paso3_cabina   { border-left-color: #a86fc7; }
.paso-paso4_profesional { border-left-color: #5a7bbf; }
.paso-paso5_frase    { border-left-color: #1f7a4d; }

.barra-leccion { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav-lecciones { display: flex; gap: 10px; }
.pie-glosario { margin-top: 18px; }

/* Glosario: término con tooltip CSS */
.termino {
  border-bottom: 2px dotted var(--brand); cursor: help;
  position: relative; color: var(--brand-strong); font-weight: 500;
}
.termino:hover::after, .termino:focus::after {
  content: attr(data-def); position: absolute; left: 0; top: 130%;
  z-index: 20; width: max-content; max-width: 320px;
  background: var(--ink); color: #fff; font-weight: 400; font-size: .82rem;
  line-height: 1.4; padding: 9px 12px; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(36,26,46,.25);
}

/* ============================================================================
   Componentes de build-01 (layout encabezado()/pie · páginas de contenido)
   ========================================================================== */

main.contenedor, .contenedor {
  max-width: 1060px; margin: 0 auto; padding: 28px 22px 96px;
}

/* Tarjeta de sección (inicio, materias, materia, login, alumnos...) */
.tarjeta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px 24px; margin: 16px 0;
}
.tarjeta h1 { font-size: 1.5rem; margin-bottom: 6px; }
.tarjeta h2 { font-size: 1.15rem; margin-bottom: 10px; }
.tarjeta.angosta { max-width: 440px; margin-left: auto; margin-right: auto; }

/* Botones nombrados de build-01 */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: 10px 20px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: 0 1px 2px rgba(86,44,114,.25); transition: background .15s;
}
.boton:hover { background: var(--brand-strong); text-decoration: none; }
.boton.secundario {
  background: transparent; color: var(--brand); border: 1px solid var(--line);
  box-shadow: none;
}
.boton.secundario:hover { background: var(--brand-tint); }

/* Formularios */
form label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
form input[type=text], form input[type=email], form input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .12s, box-shadow .12s;
}
form input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
form button[type=submit], form button.enviar-form {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; font-family: inherit;
  font-weight: 600; font-size: .95rem; padding: 11px 22px; border-radius: var(--radius-sm);
  cursor: pointer; box-shadow: 0 1px 2px rgba(86,44,114,.25); transition: background .15s;
}
form button[type=submit]:hover { background: var(--brand-strong); }
.acciones-fila { display: flex; gap: 8px; flex-wrap: wrap; }
.acciones-fila button { margin: 0; font-size: .8rem; padding: 6px 12px; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  font-weight: 600; font-size: .8rem; padding: 6px 12px; border: 0; cursor: pointer;
  border-radius: 8px; background: var(--brand); color: #fff; transition: background .15s;
}
.btn-mini:hover { background: var(--brand-strong); }
.btn-mini.gris { background: #6b6280; }
.btn-mini.gris:hover { background: #554d68; }
.btn-mini.peligro { background: var(--bad); }
.btn-mini.peligro:hover { background: #8a2b2b; }
.en-linea { display: inline; }

/* Mensajes */
.error  { background: var(--bad-soft); border: 1px solid #f0c5c5; color: #8a2b2b;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.exito  { background: var(--ok-soft); border: 1px solid #bfe6cd; color: #155f3a;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }

/* Listas de materias / lecciones */
.acciones, .lista-materias, .lista-lecciones { list-style: none; padding: 0; margin: 12px 0 0; }
.acciones li { margin: 8px 0; }
.acciones a, .lista-materias > li > a, .lista-lecciones a { font-weight: 500; }
.lista-materias > li, .lista-lecciones > li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 4px; border-bottom: 1px solid var(--line-soft);
}
.lista-materias > li:last-child, .lista-lecciones > li:last-child { border-bottom: 0; }

/* Barra de progreso mini (materias) */
.progreso-mini { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.barra-mini { width: 120px; height: 7px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.barra-mini > span { display: block; height: 100%; background: var(--brand); }

.tic { color: var(--ok); font-weight: 700; }
.ruta { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }

/* Lección: los 5 pasos Plaza Sésamo */
.leccion { margin: 8px 0; }
.paso {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 22px; margin: 14px 0;
}
.paso h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.paso .icono { font-size: 1.1rem; }
.paso-texto { color: var(--ink-soft); }
.paso-texto p { margin: 8px 0; }
.paso1_idea, .paso-paso1_idea { border-left-color: #c9a227; }
.paso-paso2_escalon { border-left-color: #3f8fcf; }
.paso-paso3_cabina { border-left-color: var(--brand); }
.paso-paso4_profesional { border-left-color: #2f9e6f; }
.paso-paso5_frase { border-left-color: #b5564b; }

.barra-leccion { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nav-lecciones { display: flex; gap: 10px; }

/* Glosario: términos anotados */
.termino {
  border-bottom: 2px dotted var(--brand); cursor: help; position: relative;
}
.termino:hover, .termino:focus { background: var(--brand-soft); outline: none; }
.pie-glosario { margin-top: 20px; }

/* --- Barra de navegación entre lecciones --- */
.nav-leccion-sticky {
  position: sticky; bottom: 0; z-index: 30; margin-top: 24px; padding: 14px 0;
  background: linear-gradient(to top, var(--bg) 82%, transparent);
}
.nav-leccion-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.nav-flecha {
  display: flex; flex-direction: column; gap: 2px; justify-content: center; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; text-decoration: none; box-shadow: var(--shadow-sm);
}
.nav-flecha:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.nav-flecha.next { text-align: right; }
.nav-flecha .dir { color: var(--brand); font-weight: 600; font-size: .82rem; }
.nav-flecha .tit { color: var(--ink-soft); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-flecha.vacia { background: transparent; border: 0; box-shadow: none; }
.nav-centro { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
.nav-centro form { margin: 0; }
.nav-centro .boton { margin: 0; white-space: nowrap; }
.nav-indice { font-size: .9rem; }
.exito.compacto { padding: 6px 12px; margin: 0; }
@media (max-width: 680px) {
  .nav-leccion-inner { grid-template-columns: 1fr; }
  .nav-flecha.next { text-align: left; }
  .nav-flecha .tit { white-space: normal; }
}

/* === Barra de navegación de lecciones (rediseño) === */
.nav-leccion-sticky {
  position: sticky; bottom: 12px; z-index: 10; margin-top: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 28px rgba(36,26,46,.12); padding: 12px 14px;
}
.nav-leccion-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch;
}
.nav-flecha {
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-decoration: none; min-width: 0;
  transition: border-color .15s, background .15s;
}
.nav-flecha:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.nav-flecha .dir { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.nav-flecha .tit { font-size: .88rem; color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-flecha.next { text-align: right; align-items: flex-end; }
.nav-flecha.vacia { border: 0; background: transparent; }
.nav-centro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.nav-centro form { margin: 0; }
.nav-centro .boton, .nav-centro button { margin: 0; white-space: nowrap; }
.exito.compacto { padding: 5px 11px; font-size: .84rem; margin: 0; }
.nav-indice { white-space: nowrap; }
.leccion-progreso { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.leccion-num { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 720px) {
  .nav-leccion-inner { grid-template-columns: 1fr 1fr; }
  .nav-centro { grid-column: 1 / -1; order: -1; flex-direction: row; flex-wrap: wrap; }
  .nav-flecha .tit { max-width: 42vw; }
}
