/* Campus Hotel Crew · modo oscuro (decisión de Alejo, 11 nov 2026: así se diferencia del sitio público).
   Identidad: azul marino #0A1830, amarillo #FFFF00, Instrument Serif (titulares, cursiva para énfasis) + Manrope.
   Referentes: Mitti (celular primero, lección y examen a pantalla completa), MasterClass (portada de curso de cine),
   Typsy (sellos, rutas por cargo, logros). Se usan como referente, no se copia código. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-normal-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-normal-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #050b16;
  --s1: #0a1426;
  --s2: #0f1c33;
  --s3: #162845;
  --navy: #0a1830;
  --line: rgba(234, 238, 247, .09);
  --line-2: rgba(234, 238, 247, .16);
  --text: #eef0f4;
  --muted: #9ba5b8;
  --dim: #6b7790;
  --amar: #ffff00;
  --amar-suave: rgba(255, 255, 0, .12);
  --ok: #43d69a;
  --mal: #ff7a70;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 15px;
  --wrap: 1280px;
  --gut: clamp(16px, 3.5vw, 44px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sombra: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(30, 60, 120, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(20, 40, 90, .3), transparent 60%); }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amar); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Titulares */
.t-xl { font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.t-l { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; }
.t-m { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.t-s { font-size: 18px; font-weight: 700; line-height: 1.3; }
.t-xl em, .t-l em, .t-m em { font-style: italic; color: var(--amar); padding-bottom: .06em; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.etiqueta i { color: var(--amar); font-size: 16px; }

/* Botones */
.btn { --bg-b: var(--amar); --tx-b: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0; background: var(--bg-b); color: var(--tx-b); font-weight: 800; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 255, 0, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn i { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover i.ph-arrow-right, .btn:hover i.ph-play { transform: translateX(3px); }
.btn--vidrio { --bg-b: rgba(255, 255, 255, .08); --tx-b: var(--text); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.btn--vidrio:hover { --bg-b: rgba(255, 255, 255, .14); box-shadow: none; }
.btn--l { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.enlace { color: var(--amar); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.enlace:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 40; padding: 14px 0; }
.top__pill { display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 12px 0 24px; border-radius: 999px;
  background: rgba(10, 20, 38, .72); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(150%); }
.top__logo { color: var(--text); display: flex; align-items: center; gap: 12px; flex: none; }
.top__logo svg { height: 18px; width: auto; }
.top__logo span { font-size: 12px; font-weight: 700; color: var(--amar); border-left: 1px solid var(--line-2); padding-left: 12px; }
.top__nav { display: flex; gap: 6px; flex: 1; }
.top__nav a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; transition: color .25s, background-color .25s; }
.top__nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.top__nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .08); }
.top__xp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--amar-suave); color: var(--amar); font-weight: 800; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--text); font-weight: 800; font-size: 14px; border: 1px solid var(--line-2); }
.avatar--l { width: 64px; height: 64px; font-size: 22px; }
.menu-u { position: relative; }
.menu-u summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu-u summary::-webkit-details-marker { display: none; }
.menu-u__caja { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; padding: 10px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line-2); box-shadow: var(--sombra); }
.menu-u__caja p { padding: 8px 12px 12px; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu-u__caja p strong { display: block; font-size: 15px; }
.menu-u__caja button, .menu-u__caja a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.menu-u__caja button:hover, .menu-u__caja a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

/* Barra inferior en el celular */
.tabbar { display: none; }
@media (max-width: 820px) {
  .top { padding: 10px 0; }
  .top__pill { height: 56px; gap: 12px; padding: 0 8px 0 18px; }
  .top__nav, .top__logo span { display: none; }
  .top__xp { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    height: 64px; border-radius: 22px; background: rgba(10, 20, 38, .88); border: 1px solid var(--line-2); backdrop-filter: blur(18px); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a i { font-size: 22px; }
  .tabbar a[aria-current] { color: var(--amar); }
  main { padding-bottom: 96px; }
}

/* Superficies */
.caja { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
.sec { padding: clamp(40px, 6vw, 72px) 0; }
.sec__cab { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec__cab p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

/* Progreso */
.barra { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.barra span { display: block; height: 100%; width: var(--p, 0%); background: var(--amar); border-radius: inherit; transform-origin: left; animation: crecer 1.1s var(--ease) both; }
@keyframes crecer { from { transform: scaleX(0); } }
.anillo { --p: 0; width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--amar) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); position: relative; }
.anillo::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--s1); }
.anillo b { position: relative; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.anillo b small { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* ---------- Inicio ---------- */
.hola { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; padding-top: clamp(20px, 4vw, 44px); }
.hola__saludo { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.hola__saludo p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.seguir { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; min-height: 340px; position: relative; isolation: isolate; }
.seguir__foto { position: relative; overflow: hidden; }
.seguir__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.seguir:hover .seguir__foto img { transform: scale(1.05); }
.seguir__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--s1)); }
.seguir__play { position: absolute; left: 24px; bottom: 24px; z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--amar); color: var(--navy); font-size: 24px;
  box-shadow: 0 0 0 0 rgba(255, 255, 0, .4); animation: latido 2.6s var(--ease) infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 0, .35); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 0, 0); } }
.seguir__txt { padding: 32px 32px 32px 8px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.seguir__txt h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; }
.seguir__prox { font-size: 15px; color: var(--muted); }
.seguir__prox strong { color: var(--text); display: block; font-size: 16px; }
.seguir__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

.ruta-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ruta-card__fila { display: flex; align-items: center; gap: 22px; }
.ruta-card h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.ruta-card__lista { display: grid; gap: 8px; }
.ruta-card__lista li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.ruta-card__lista li i { font-size: 18px; color: var(--dim); }
.ruta-card__lista li.hecho { color: var(--text); }
.ruta-card__lista li.hecho i { color: var(--amar); }

.datos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dato { padding: 22px 24px; display: flex; align-items: center; gap: 16px; transition: border-color .3s, transform .4s var(--ease); }
.dato:hover { border-color: var(--line-2); transform: translateY(-3px); }
.dato i { font-size: 26px; color: var(--amar); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--amar-suave); flex: none; }
.dato b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.dato span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* Tarjetas de curso */
.fila-h { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.fila-h::-webkit-scrollbar { display: none; }
.fila-h > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .fila-h--4 { grid-auto-columns: calc((100% - 54px) / 4); } }
.cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.curso { display: flex; flex-direction: column; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); overflow: hidden; position: relative;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.curso:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--sombra); }
.curso__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--s2); }
.curso__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.curso:hover .curso__img img { transform: scale(1.06); }
.curso__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 11, 22, .65)); }
.curso__estado { position: absolute; z-index: 2; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  background: var(--amar); color: var(--navy); }
.curso__txt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.curso__area { font-size: 12px; font-weight: 800; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.curso__area i { color: var(--amar); }
.curso__t { font-size: 18px; font-weight: 700; line-height: 1.3; }
.curso__meta { font-size: 13px; color: var(--dim); font-weight: 700; margin-top: auto; padding-top: 6px; display: flex; gap: 14px; }
.curso__meta span { display: inline-flex; gap: 5px; align-items: center; }
.curso .barra { margin-top: 10px; }
.curso__ver { position: absolute; z-index: 2; left: 18px; top: calc(75% - 58px); padding: 8px 14px; border-radius: 999px; background: rgba(5, 11, 22, .7); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.curso:hover .curso__ver { opacity: 1; transform: none; }

/* Posiciones */
.posiciones { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.podio { padding: 28px; display: grid; gap: 4px; }
.podio li { display: grid; grid-template-columns: 34px 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 8px; border-radius: 12px; transition: background-color .25s; }
.podio li:hover { background: rgba(255, 255, 255, .04); }
.podio li.yo { background: var(--amar-suave); }
.podio__n { font-family: var(--serif); font-size: 26px; color: var(--dim); text-align: center; }
.podio li:nth-child(-n+3) .podio__n { color: var(--amar); }
.podio__q { font-size: 15px; font-weight: 700; line-height: 1.25; }
.podio__q small { display: block; font-weight: 600; color: var(--dim); font-size: 12px; }
.podio__xp { font-weight: 800; font-size: 14px; color: var(--muted); }
.mi-puesto { padding: 32px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(140deg, var(--s2), var(--s1)); }
.mi-puesto b { font-family: var(--serif); font-size: 84px; line-height: .9; font-weight: 400; color: var(--amar); }

/* ---------- Catálogo ---------- */
.cab { padding: clamp(28px, 5vw, 60px) 0 10px; }
.cab p { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 17px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 8px; }
.filtro { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: color .25s, background-color .25s, border-color .25s; }
.filtro:hover { color: var(--text); border-color: var(--text); }
.filtro[aria-pressed="true"] { background: var(--amar); border-color: var(--amar); color: var(--navy); }
.area-bloque { padding-top: 34px; }
.area-bloque h2 { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.area-bloque h2 i { color: var(--amar); font-size: 24px; }
.area-bloque[hidden] { display: none; }

/* ---------- Portada de curso (cine) ---------- */
.portada { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(78dvh, 720px); margin-top: -94px; isolation: isolate; }
.portada__img { position: relative; overflow: hidden; }
.portada__img img { width: 100%; height: 100%; object-fit: cover; animation: acercar 2.4s var(--ease) both; }
@keyframes acercar { from { transform: scale(1.12); opacity: .4; } }
.portada__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--bg)), linear-gradient(180deg, rgba(5, 11, 22, .5), transparent 30%, transparent 70%, var(--bg)); }
.portada__txt { padding: 130px var(--gut) 48px 12px; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 620px; }
.portada__txt .t-l { font-size: clamp(40px, 5vw, 66px); }
.portada__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 700; }
.portada__meta span { display: inline-flex; gap: 6px; align-items: center; }
.portada__meta i { color: var(--amar); }
.portada__desc { color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.portada__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.portada__prof { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.portada__prof strong { display: block; font-size: 15px; }
.portada__avance { max-width: 380px; }
.aprender { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.aprender::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .aprender { grid-auto-columns: calc((100% - 48px) / 4); } }
.paso { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.2; scroll-snap-align: start; background: var(--s2); display: block; }
.paso img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(.9); }
.paso:hover img { transform: scale(1.07); }
.paso::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 22, .1) 30%, rgba(5, 11, 22, .92)); }
.paso__n { position: absolute; z-index: 2; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amar); color: var(--navy); font-weight: 800; font-size: 14px; }
.paso__t { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.paso__t small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.paso__check { position: absolute; z-index: 2; right: 16px; top: 16px; color: var(--amar); font-size: 24px; }
.temario { display: grid; gap: 14px; }
.temario details { border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.temario summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.temario summary::-webkit-details-marker { display: none; }
.temario summary h3 { flex: 1; font-size: 17px; font-weight: 700; }
.temario summary small { color: var(--dim); font-weight: 700; font-size: 13px; }
.temario summary i { transition: transform .35s var(--ease); color: var(--muted); }
.temario details[open] summary i.ph-caret-down { transform: rotate(180deg); }
.temario ol { padding: 0 12px 12px; }
.item-t { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; transition: background-color .25s; }
.item-t:hover { background: rgba(255, 255, 255, .04); }
.item-t__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 16px; }
.item-t.hecho .item-t__ico { background: var(--amar); color: var(--navy); }
.item-t__t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.item-t__d { color: var(--dim); font-size: 13px; font-weight: 700; }
.item-t[aria-current] { background: rgba(255, 255, 255, .07); }
.barra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 14px 0; background: rgba(5, 11, 22, .86); border-top: 1px solid var(--line); backdrop-filter: blur(16px);
  transform: translateY(110%); transition: transform .5s var(--ease); }
.barra-fija.ver { transform: none; }
.barra-fija .wrap { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.barra-fija p { margin: 0; font-weight: 700; font-size: 15px; }
.barra-fija p small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
@media (max-width: 820px) { .barra-fija { bottom: 86px; left: 12px; right: 12px; border-radius: 18px; border: 1px solid var(--line-2); } .barra-fija p small { display: none; } }

/* ---------- Lección ---------- */
.leccion { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding-top: 18px; }
.reproductor { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--sombra); }
.reproductor iframe, .reproductor > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.leccion__cab { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin: 24px 0 8px; flex-wrap: wrap; }
.leccion__cab h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.leccion__nav { display: flex; gap: 10px; }
.leccion__estado { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.leccion__estado.hecho { color: var(--amar); }
.leccion__texto { color: var(--muted); max-width: 70ch; white-space: pre-line; }
.lado { padding: 8px; max-height: calc(100dvh - 120px); overflow-y: auto; position: sticky; top: 100px; scrollbar-width: thin; }
.lado__cab { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lado__cab a { font-size: 13px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.lado__cab a:hover { color: var(--text); }
.lado__cab h2 { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin: 8px 0 12px; }
.lado__sec { font-size: 12px; font-weight: 800; color: var(--dim); padding: 14px 12px 6px; }
@media (max-width: 1000px) { .leccion { grid-template-columns: 1fr; } .lado { position: static; max-height: none; } .reproductor { margin: 0 calc(var(--gut) * -1); border-radius: 0; } }

/* Aviso que sube (puntos ganados) */
.aviso-xp { position: fixed; z-index: 60; left: 50%; bottom: 32px; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; background: var(--amar); color: var(--navy); font-weight: 800;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 18px 40px -12px rgba(255, 255, 0, .45); transition: transform .6s var(--ease); }
.aviso-xp.ver { transform: translate(-50%, 0); }
@media (max-width: 820px) { .aviso-xp { bottom: 100px; } }

/* ---------- Examen ---------- */
.examen { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gut) 40px; min-height: calc(100dvh - 100px); display: flex; flex-direction: column; }
.examen__top { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.examen__top a { color: var(--muted); font-size: 22px; }
.examen__puntos { flex: 1; display: flex; gap: 6px; }
.examen__puntos span { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background-color .4s; }
.examen__puntos span.bien { background: var(--ok); }
.examen__puntos span.mal { background: var(--mal); }
.examen__puntos span.ahora { background: var(--amar); }
.pantalla { display: none; flex: 1; flex-direction: column; gap: 22px; animation: entrar .6s var(--ease) both; }
.pantalla.activa { display: flex; }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }
.pantalla h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.pregunta__n { font-size: 14px; font-weight: 800; color: var(--muted); }
.pregunta__t { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; white-space: pre-line; }
.pregunta__ayuda { font-size: 14px; color: var(--dim); font-weight: 700; margin-top: -10px; }
.opciones { display: grid; gap: 12px; }
.op { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 14px 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--s1); text-align: left; cursor: pointer;
  font-size: 17px; font-weight: 600; transition: border-color .25s, background-color .25s, transform .35s var(--ease); }
.op:hover { border-color: var(--text); transform: translateX(4px); }
.op__marca { width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 16px; transition: all .25s; }
.op--multi .op__marca { border-radius: 8px; }
.op[aria-pressed="true"] { border-color: var(--amar); background: var(--amar-suave); }
.op[aria-pressed="true"] .op__marca { background: var(--amar); border-color: var(--amar); color: var(--navy); }
.op.es-bien { border-color: var(--ok); background: rgba(67, 214, 154, .12); }
.op.es-bien .op__marca { background: var(--ok); border-color: var(--ok); color: var(--navy); }
.op.es-mal { border-color: var(--mal); background: rgba(255, 122, 112, .1); }
.op.es-mal .op__marca { background: var(--mal); border-color: var(--mal); color: var(--navy); }
.op[disabled] { cursor: default; transform: none; }
.ordenar li { display: flex; align-items: center; gap: 12px; }
.ordenar li .op { cursor: default; }
.ordenar li .op:hover { transform: none; }
.ordenar__btns { display: grid; gap: 4px; }
.ordenar__btns button { width: 40px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--s2); cursor: pointer; }
.ordenar__btns button:hover { border-color: var(--text); }
.espacios { display: grid; gap: 12px; }
.espacios label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.campo { width: 100%; min-height: 56px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s1); color: var(--text); font: 600 17px var(--sans); }
.campo:focus { outline: none; border-color: var(--amar); box-shadow: 0 0 0 3px var(--amar-suave); }
.campo::placeholder { color: var(--dim); }
.retro { border-radius: var(--r); padding: 18px 20px; display: none; gap: 6px; flex-direction: column; animation: entrar .5s var(--ease) both; }
.retro.ver { display: flex; }
.retro.bien { background: rgba(67, 214, 154, .1); border: 1px solid rgba(67, 214, 154, .4); }
.retro.mal { background: rgba(255, 122, 112, .08); border: 1px solid rgba(255, 122, 112, .4); }
.retro strong { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.retro.bien strong { color: var(--ok); }
.retro.mal strong { color: var(--mal); }
.retro p { margin: 0; color: var(--text); }
.pista { align-self: start; background: none; border: 0; color: var(--amar); font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 0; }
.pista-txt { color: var(--muted); font-size: 15px; padding: 14px 18px; border-radius: 12px; background: var(--s1); border: 1px dashed var(--line-2); white-space: pre-line; }
.examen__pie { margin-top: auto; padding-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }
.intro-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-datos div { padding: 18px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.intro-datos b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.intro-datos span { font-size: 13px; color: var(--muted); font-weight: 700; }
.resultado { align-items: center; text-align: center; justify-content: center; }
.resultado .anillo { width: 180px; }
.resultado .anillo b { font-size: 54px; }
.resultado p { color: var(--muted); max-width: 46ch; }
.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confeti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; background: var(--amar); animation: caer var(--d, 2.4s) var(--ease) forwards; }
@keyframes caer { to { transform: translate(var(--x, 0), 110dvh) rotate(var(--r, 540deg)); opacity: .2; } }

/* ---------- Logros ---------- */
.perfil { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.sellos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sello { padding: 24px 18px; text-align: center; display: grid; justify-items: center; gap: 10px; transition: transform .5s var(--ease), border-color .3s; }
.sello:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--line-2); }
.sello__disco { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; position: relative;
  background: radial-gradient(circle at 35% 30%, #ffff8a, var(--amar) 45%, #c9c900); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(255, 255, 0, .5); }
.sello__disco::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255, 255, 0, .4); animation: girar 24s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.sello strong { font-size: 15px; }
.sello small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.sello.bloqueado .sello__disco { background: var(--s3); color: var(--dim); box-shadow: none; }
.sello.bloqueado .sello__disco::before { border-color: var(--line-2); animation: none; }
.sello.bloqueado strong { color: var(--muted); }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert { display: flex; gap: 16px; align-items: center; padding: 18px; transition: border-color .3s, transform .4s var(--ease); }
.cert:hover { border-color: var(--amar); transform: translateY(-3px); }
.cert__ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--amar-suave); color: var(--amar); font-size: 26px; flex: none; }
.cert strong { display: block; font-size: 15px; line-height: 1.3; }
.cert small { color: var(--muted); font-size: 13px; }
.vacio { padding: 40px; text-align: center; display: grid; justify-items: center; gap: 12px; color: var(--muted); }
.vacio i { font-size: 40px; color: var(--dim); }

/* ---------- Entrar ---------- */
.acceso { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.acceso__foto { position: relative; overflow: hidden; }
.acceso__foto img { width: 100%; height: 100%; object-fit: cover; animation: acercar 2.6s var(--ease) both; }
.acceso__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--bg)), linear-gradient(0deg, rgba(5, 11, 22, .7), transparent 40%); }
.acceso__lema { position: absolute; z-index: 2; left: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px); max-width: 520px; }
.acceso__form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); gap: 22px; max-width: 600px; }
.acceso__form svg.logo { height: 22px; width: auto; color: var(--text); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.form .error { color: var(--mal); font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--amar); }
@media (max-width: 900px) {
  .acceso { grid-template-columns: 1fr; }
  .acceso__foto { height: 34dvh; }
  .acceso__lema { display: none; }
}

/* ---------- Certificado y verificación ---------- */
.verif { max-width: 720px; margin: 0 auto; padding: 60px var(--gut); text-align: center; display: grid; gap: 18px; justify-items: center; }
.verif__ok { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--amar); color: var(--navy); font-size: 40px; }

/* Aparición al bajar */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.si { opacity: 1; transform: none; }

/* Celular */
@media (max-width: 1000px) {
  .hola { grid-template-columns: 1fr; }
  .datos { grid-template-columns: repeat(2, 1fr); }
  .posiciones { grid-template-columns: 1fr; }
  .portada { grid-template-columns: 1fr; margin-top: -86px; min-height: 0; }
  .portada__img { height: 52dvh; }
  .portada__img::after { background: linear-gradient(180deg, rgba(5, 11, 22, .45), transparent 30%, var(--bg)); }
  .portada__txt { padding: 0 var(--gut) 32px; margin-top: -90px; position: relative; }
}
@media (max-width: 640px) {
  .seguir { grid-template-columns: 1fr; }
  .seguir__foto { aspect-ratio: 16 / 10; }
  .seguir__foto::after { background: linear-gradient(180deg, transparent 50%, var(--s1)); }
  .seguir__txt { padding: 4px 22px 24px; }
  .dato { padding: 16px; gap: 12px; }
  .dato i { width: 40px; height: 40px; font-size: 22px; }
  .dato b { font-size: 28px; }
  .intro-datos b { font-size: 28px; }
  .sec__cab { flex-direction: column; align-items: start; }
  .op { font-size: 16px; min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Perfil y hoja de vida ---------- */
.aviso-ok { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(67, 214, 154, .12); color: var(--ok); font-weight: 700; margin-bottom: 18px; }
.hv-cab { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hv-cab__txt { flex: 1; min-width: 240px; }
.hv-foto { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; font-size: 34px; border: 2px solid var(--amar); flex: none; }
.hv-cab__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0 !important; font-size: 14px; font-weight: 700; color: var(--muted); }
.hv-cab__meta span { display: inline-flex; gap: 6px; align-items: center; }
.hv-cab__meta i { color: var(--amar); }
.hv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding-top: 30px; padding-bottom: 60px; align-items: start; }
.hv__main, .hv__lado { display: grid; gap: 20px; }
.hv-bloque { padding: 26px; display: grid; gap: 14px; }
.hv-bloque h2 { display: flex; gap: 10px; align-items: center; }
.hv-bloque h2 i { color: var(--amar); }
.hv-texto { margin: 0; color: var(--muted); white-space: pre-line; }
.hv-linea { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 6px; }
.hv-linea__punto { width: 12px; height: 12px; border-radius: 50%; background: var(--amar); margin-top: 7px; box-shadow: 0 0 0 4px var(--amar-suave); }
.hv-fecha { margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.hv-dato { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hv-dato:last-child { border-bottom: 0; }
.hv-dato span { color: var(--muted); }
.hv-dato small { display: block; font-size: 12px; color: var(--dim); }
.hv-dato strong { text-align: right; }
.hv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-chips span { padding: 6px 12px; border-radius: 999px; background: var(--s3); font-size: 13px; font-weight: 700; }
.hv-privado { border-color: rgba(255, 255, 0, .22); background: linear-gradient(160deg, rgba(255, 255, 0, .04), var(--s1) 40%); }
.hv-nota { margin: -4px 0 4px; font-size: 13px; color: var(--muted); }
.hv-sub { font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 10px; }
.hv-ruta { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.hv-sellos { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-sello { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--amar-suave); color: var(--amar); font-size: 13px; font-weight: 800; }
.hv-certs { display: grid; gap: 4px; }
.hv-certs a { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background-color .25s; }
.hv-certs a:hover { background: rgba(255, 255, 255, .05); }
.hv-certs i { color: var(--amar); }
.hv-certs small { color: var(--dim); font-weight: 700; }
.hv-form { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 60px; max-width: 980px; }
.hv-form fieldset { border: 1px solid var(--line); margin: 0; min-width: 0; }
.hv-form legend { padding: 0; display: flex; gap: 10px; align-items: center; float: left; width: 100%; margin-bottom: 6px; }
.hv-form legend i { color: var(--amar); }
.hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px !important; clear: both; }
.hv-ancho { grid-column: 1 / -1; }
.hv-fila { padding: 18px; border-radius: 12px; background: var(--s2); position: relative; margin-bottom: 12px; }
.hv-quitar { justify-self: start; background: none; border: 0; color: var(--mal); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 0; }
.hv-label { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); clear: both; }
.hv-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; color: var(--muted); transition: all .25s; }
.chip-check input:checked + span { background: var(--amar); border-color: var(--amar); color: var(--navy); }
.chip-check input:focus-visible + span { outline: 2px solid var(--amar); outline-offset: 2px; }
.campo--area { min-height: 0; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.campo--archivo { padding: 14px; font-size: 14px; }
select.campo { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hv-guardar { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 16px; z-index: 5; }
.hv-errores { display: flex; gap: 12px; padding: 18px 22px; border-color: rgba(255, 122, 112, .5); color: var(--mal); }
.hv-errores ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; color: var(--text); font-size: 14px; }
@media (max-width: 1000px) { .hv { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hv-grid { grid-template-columns: 1fr; } .hv-guardar { bottom: 92px; } .hv-guardar .btn { flex: 1; } }

/* ---------- Administración y paneles ---------- */
.adm { padding-top: 18px; padding-bottom: 70px; }
.sub-menu { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); margin-bottom: 26px; scrollbar-width: none; }
.sub-menu::-webkit-scrollbar { display: none; }
.sub-menu a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .25s, background-color .25s; }
.sub-menu a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.sub-menu a[aria-current] { background: var(--amar); color: var(--navy); }
.adm-cab { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-cab p { margin: 8px 0 0; color: var(--muted); }
.tabla-caja { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-size: 12px; font-weight: 800; color: var(--dim); padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--s1); }
.tabla td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background-color .2s; }
.tabla tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tabla .quien { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.tabla .quien small { display: block; font-weight: 600; color: var(--dim); font-size: 12px; }
.etq { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--s3); color: var(--muted); white-space: nowrap; }
.etq--amar { background: var(--amar-suave); color: var(--amar); }
.etq--ok { background: rgba(67, 214, 154, .12); color: var(--ok); }
.etq--mal { background: rgba(255, 122, 112, .1); color: var(--mal); }
.btn--s { min-height: 36px; padding: 0 14px; font-size: 13px; }
.buscar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.buscar .campo { min-height: 46px; flex: 1; min-width: 180px; }
.buscar select.campo { flex: 0 1 220px; }
.paginas { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.paginas a, .paginas span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; }
.paginas span[aria-current] { background: var(--amar); color: var(--navy); border-color: var(--amar); }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.cifra { padding: 22px; }
.cifra b { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 400; }
.cifra span { font-size: 13px; font-weight: 700; color: var(--muted); }
.cifra small { display: block; color: var(--amar); font-weight: 700; margin-top: 6px; font-size: 12px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lista-s li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lista-s li:last-child { border-bottom: 0; }
.lista-s small { color: var(--dim); font-weight: 700; }
.matriz td.celda { text-align: center; padding: 8px; }
.punto { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; }
.punto--ok { background: var(--ok); color: var(--navy); }
.punto--medio { background: var(--amar-suave); color: var(--amar); font-size: 11px; }
.punto--no { background: rgba(255, 255, 255, .06); color: var(--dim); }
.matriz th.giro { writing-mode: vertical-rl; transform: rotate(180deg); height: 170px; vertical-align: bottom; white-space: nowrap; font-weight: 700; color: var(--muted); padding: 12px 6px; max-height: 170px; overflow: hidden; text-overflow: ellipsis; }
.editor { display: grid; gap: 14px; }
.editor details { border-radius: 12px; background: var(--s2); border: 1px solid var(--line); }
.editor summary { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.editor summary::-webkit-details-marker { display: none; }
.editor details > .form { padding: 4px 16px 16px; }
.editor .acciones-i { display: flex; gap: 4px; }
.editor .acciones-i button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--muted); }
.editor .acciones-i button:hover { color: var(--text); border-color: var(--text); }
.resp-fila { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.interruptor { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 22px; }
.interruptor p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--s3); transition: background-color .3s; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .35s var(--ease); }
.switch input:checked + span { background: var(--amar); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--navy); }
.switch input:focus-visible + span { outline: 2px solid var(--amar); outline-offset: 3px; }
@media (max-width: 900px) { .cifras { grid-template-columns: repeat(2, 1fr); } .dos { grid-template-columns: 1fr; } }
.ruta-orden { display: grid; gap: 6px; }
.ruta-orden li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--s1); }
.repaso-banda { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-color: rgba(255, 255, 0, .3); background: linear-gradient(110deg, rgba(255, 255, 0, .08), var(--s1) 60%); transition: transform .4s var(--ease); }
.repaso-banda:hover { transform: translateY(-3px); }
.repaso-banda div { flex: 1; display: grid; gap: 2px; }
.repaso-banda div span { color: var(--muted); font-size: 14px; }
.repaso-banda .dato i { font-size: 26px; color: var(--amar); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--amar-suave); }
@media (max-width: 640px) { .repaso-banda { flex-wrap: wrap; } .repaso-banda .btn { width: 100%; } }

/* ===== Cursos bloqueados (no son de la ruta de la persona; puede pedir acceso) ===== */
.curso--bloq .curso__img img { filter: grayscale(.85) brightness(.6); }
.curso--bloq:hover .curso__img img { filter: grayscale(.4) brightness(.75); }
.curso__estado--bloq { background: rgba(5, 11, 22, .75); color: #fff; border: 1px solid var(--line); backdrop-filter: blur(6px); }
.paso--bloq, .item-t--bloq { cursor: default; }
.paso--bloq img { filter: grayscale(.85) brightness(.55); }
.paso--bloq:hover img { transform: none; }
.item-t--bloq { opacity: .6; }
.item-t--bloq:hover { background: transparent; }
.bloqueo { margin-top: 22px; padding: 20px 22px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); max-width: 560px; display: grid; gap: 10px; }
.bloqueo__t { margin: 0; font-weight: 800; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.bloqueo__t i { color: var(--amar); font-size: 22px; }
.bloqueo .muted { margin: 0; }
.bloqueo__form { display: grid; gap: 12px; margin-top: 4px; }
.bloqueo__form textarea { resize: vertical; min-height: 64px; }
.bloqueo__form .btn { justify-self: start; }
@media (max-width: 640px) { .bloqueo__form .btn { justify-self: stretch; justify-content: center; } }
.lista-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-simple li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--txt2, #b7c0d3); }
.lista-simple i { color: var(--amar); }
.sub-menu .contador { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amar); color: var(--navy); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

/* ===== Cursos a medias: aureola amarilla (12 nov 2026) ===== */
.curso--seguir { border-color: var(--amar);
  box-shadow: 0 0 0 1px var(--amar), 0 0 30px 0 rgba(255, 255, 0, .16), 0 0 60px 2px rgba(255, 255, 0, .05); }
.curso--seguir:hover { box-shadow: 0 0 0 2px var(--amar), 0 0 40px 2px rgba(255, 255, 0, .24), 0 0 80px 4px rgba(255, 255, 0, .08); }
.curso--seguir .curso__ver { opacity: 1; transform: none; background: var(--amar); color: var(--navy); top: auto; bottom: 14px; left: 14px; } /* anclado abajo de la foto */
@media (prefers-reduced-motion: no-preference) {
  .curso--seguir { animation: aureola 3s ease-in-out infinite; }
  .curso--seguir:hover { animation: none; }
}
@keyframes aureola {
  0%, 100% { box-shadow: 0 0 0 1px var(--amar), 0 0 22px 0 rgba(255, 255, 0, .12), 0 0 50px 2px rgba(255, 255, 0, .04); }
  50% { box-shadow: 0 0 0 1px var(--amar), 0 0 34px 2px rgba(255, 255, 0, .22), 0 0 70px 4px rgba(255, 255, 0, .07); }
}
.area-bloque--seguir h2 i { color: var(--amar); }
/* Lo que le falta para terminar, en rojo (pedido de Alejo, 12 nov 2026) */
.curso__falta { margin: 2px 0 0; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--mal); }
.curso__falta i { font-size: 15px; }
