/* =====================================================================
   v2 · Rediseño del lado alumno (referente Platzi, marca MorgansMedia).
   Oscuro por defecto · navegación arriba · escala compacta 15/24 ·
   un solo color de acción (celeste) · superficies en escalera de grises.
   Solo lee tokens. Prefijo x- para no chocar con el sistema anterior.
   ===================================================================== */
body.x { background: var(--lienzo); color: var(--tinta); font-size: 15px; line-height: 24px; }
body.x h1, body.x h2, body.x h3 { color: var(--tinta); }
.x .t-2 { color: var(--tinta-2); } .x .t-3 { color: var(--tinta-3); }
.x a { color: inherit; }
.x .ico { width: 18px; height: 18px; }
.x .ico--16 { width: 16px; height: 16px; }

/* Botones: píldora; un solo color de acción */
.x .btn { border-radius: 999px; min-height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; gap: 8px; transition: background .2s cubic-bezier(.16,1,.3,1), border-color .2s, color .2s; }
.x .btn--primario { background: var(--acento); color: #000; }
.x .btn--primario:hover { background: var(--acento-hover); }
.x .btn--secundario { background: var(--superficie-3); color: var(--tinta); border-color: transparent; }
.x .btn--secundario:hover { background: var(--hilo-fuerte); }
.x .btn--fantasma { color: var(--tinta-2); }
.x .btn--fantasma:hover { background: var(--superficie-2); color: var(--tinta); }
.x .btn--chico { min-height: 34px; padding: 0 14px; font-size: 13px; }
.x .chip { border-radius: 999px; background: var(--superficie-3); color: var(--tinta-2); font-size: 12px; height: 26px; padding: 0 10px; font-weight: 500; }
.x .chip--acento { background: color-mix(in srgb, var(--acento) 16%, transparent); color: var(--acento-tinta); }
.x .chip--ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.x .entrada, .x textarea.entrada, .x select.entrada { background: var(--superficie-2); border-color: var(--hilo-fuerte); color: var(--tinta); border-radius: 10px; font-size: 15px; }
.x .entrada:focus { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }

/* ---------- Cabecera ---------- */
.x-cab { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--lienzo) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hilo); }
.x-cab__in { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.x-logo { flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 0 !important; }
.x-logo .marca-mm__logo { width: 150px !important; height: 13px !important; }
.x-nav { display: flex; gap: 2px; margin-left: 8px; }
.x-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tinta-2); text-decoration: none; }
.x-nav a:hover { color: var(--tinta); background: var(--superficie-2); text-decoration: none; }
.x-nav a.activa { color: var(--tinta); background: var(--superficie-3); }
.x-nav a.activa .ico { color: var(--acento); }
.x-menu { position: relative; }
.x-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.x-menu summary::-webkit-details-marker { display: none; }
.x-curso summary { padding: 7px 12px; border: 1px solid var(--hilo-fuerte); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tinta-2); max-width: 260px; }
.x-curso summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-menu__caja { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: var(--superficie-2); border: 1px solid var(--hilo-fuerte); border-radius: 14px; padding: 6px; box-shadow: 0 18px 48px rgba(0,0,0,.35); display: flex; flex-direction: column; z-index: 50; }
.x-menu__caja--der { left: auto; right: 0; }
.x-menu__caja a, .x-menu__caja button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--tinta-2); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.x-menu__caja a:hover, .x-menu__caja button:hover { background: var(--superficie-3); color: var(--tinta); text-decoration: none; }
.x-menu__caja a.activa { color: var(--tinta); font-weight: 600; }
.x-menu__caja form { margin: 0; border-top: 1px solid var(--hilo); padding-top: 4px; margin-top: 4px; }
.x-menu__quien { padding: 10px 12px 12px; border-bottom: 1px solid var(--hilo); margin-bottom: 4px; display: flex; flex-direction: column; }
.x-menu__quien small { color: var(--tinta-3); font-size: 12px; }
.x-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--superficie-3); color: var(--tinta); display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid var(--hilo-fuerte); }
.x-main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 96px; }
.x-main--sala { max-width: none; padding: 0; }
.x-aviso { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--superficie-2); border: 1px solid var(--hilo-fuerte); margin-bottom: 20px; font-size: 14px; }
.x-aviso .ico { color: var(--ok); }
.x-aviso--alerta .ico, .x-aviso--riesgo .ico { color: var(--alerta); }
.x-tabs { display: none; }
@media (max-width: 960px) {
  .x-nav { display: none; }
  .x-cab__in { gap: 10px; }
  .x-logo .marca-mm__logo { width: 112px !important; height: 10px !important; }
  .x-logo .marca-mm__sub { display: none; }
  .x-curso { margin-left: auto; min-width: 0; }
  .x-curso summary { max-width: 168px; padding: 6px 10px; font-size: 12px; }
  .x-curso .x-menu__caja { position: fixed; left: 12px; right: 12px; top: 60px; min-width: 0; }
  .x-cab__in { height: 56px; padding: 0 16px; }
  .x-main { padding: 20px 16px 96px; }
  .x-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--superficie); border-top: 1px solid var(--hilo); padding-bottom: env(safe-area-inset-bottom); }
  .x-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; font-weight: 600; color: var(--tinta-3); text-decoration: none; }
  .x-tabs a.activa { color: var(--tinta); }
  .x-tabs a.activa .ico { color: var(--acento); }
}
.x-hoja { background: var(--superficie); }
.x-hoja__nav { display: flex; flex-direction: column; margin-top: 8px; }
.x-hoja__nav a, .x-hoja__nav button { display: flex; align-items: center; gap: 12px; padding: 13px 8px; font-size: 15px; color: var(--tinta-2); text-decoration: none; background: none; border: 0; border-top: 1px solid var(--hilo); width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.x-hoja__nav a.activa { color: var(--tinta); font-weight: 600; }
.x-hoja__nav form { margin: 0; }
.x-hoja__sec { font-size: 12px; font-weight: 600; color: var(--tinta-3); padding: 16px 8px 6px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Títulos y bloques comunes ---------- */
.x-h1 { font-family: var(--font-titulo); font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; }
.x-h2 { font-family: var(--font-titulo); font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.x-meta { font-size: 13px; line-height: 18px; color: var(--tinta-3); }
.x-panel { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 16px; }
.x-barra { height: 6px; border-radius: 999px; background: var(--superficie-3); overflow: hidden; }
.x-barra > i { display: block; height: 100%; background: var(--acento); border-radius: inherit; }
.x-miniatura { aspect-ratio: 16 / 9; border-radius: 8px; background: #000 center / cover no-repeat; flex: none; position: relative; overflow: hidden; }
.x-miniatura--vacia { background: var(--superficie-3); display: grid; place-items: center; color: var(--tinta-3); }

/* ---------- Sala de clase (lección) ---------- */
.x-clase-bar { position: sticky; top: 64px; z-index: 30; background: var(--lienzo); border-bottom: 1px solid var(--hilo); }
.x-clase-bar__in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.x-clase-bar__tit { min-width: 0; flex: 1; }
.x-clase-bar__tit b { display: block; font-family: var(--font-titulo); font-size: 18px; line-height: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-clase-bar__tit span { font-size: 13px; color: var(--tinta-3); }
.x-clases-btn summary { padding: 8px 14px; border-radius: 999px; background: var(--superficie-3); font-size: 14px; font-weight: 600; }
.x-clases-btn .x-menu__caja { width: min(420px, 90vw); max-height: 70vh; overflow: auto; right: 0; left: auto; }
.x-sala { max-width: 1320px; margin: 0 auto; padding: 20px 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.x-sala__principal { min-width: 0; }
.x-sala__video .video-caja { border-radius: 14px; }
.x-titulo-movil { display: none; }
.x-sala__lado { position: sticky; top: 140px; max-height: calc(100vh - 160px); display: flex; flex-direction: column; overflow: hidden; }
.x-estado { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 6px; }
.x-estado .estado-vista { font-size: 14px; }
.x-pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--hilo); margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.x-pestanas button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font: 600 14px/20px var(--font-texto); color: var(--tinta-3); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.x-pestanas button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--acento); }
.x-pestanas .x-cuenta { font-size: 11px; background: var(--superficie-3); border-radius: 999px; padding: 0 7px; line-height: 18px; color: var(--tinta-2); }
.x-panel-tab { padding: 20px 0; }
.x-panel-tab .prosa p, .x-panel-tab .prosa li { color: var(--tinta-2); font-size: 15px; line-height: 26px; }
.x-panel-tab .prosa b { color: var(--tinta); }
.x-lado-tabs { display: flex; border-bottom: 1px solid var(--hilo); padding: 0 6px; flex: none; }
.x-lado-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 8px; font: 600 14px/20px var(--font-texto); color: var(--tinta-3); cursor: pointer; }
.x-lado-tabs button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--acento); }
.x-lado-cuerpo { overflow-y: auto; padding: 14px; flex: 1; }
.x-temario { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.x-temario__mod { font-family: var(--font-titulo); font-weight: 600; font-size: 14px; color: var(--tinta); padding: 14px 6px 8px; }
.x-temario a { display: grid; grid-template-columns: 22px 72px 1fr; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; }
.x-temario a:hover { background: var(--superficie-2); text-decoration: none; }
.x-temario a.actual { background: var(--superficie-3); }
.x-temario__n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hilo-fuerte); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--tinta-3); }
.x-temario a.hecha .x-temario__n { background: var(--ok); border-color: var(--ok); color: #fff; }
.x-temario a.actual .x-temario__n { border-color: var(--acento); color: var(--acento); }
.x-temario__t { min-width: 0; }
.x-temario__t b { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-temario__t span { font-size: 12px; color: var(--tinta-3); }
.x-temario .x-miniatura { width: 72px; }
.x-pregunta { padding: 12px 4px; border-bottom: 1px solid var(--hilo); font-size: 14px; line-height: 22px; }
.x-pregunta:last-child { border-bottom: 0; }
.x-pregunta__quien { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.x-pregunta__quien span { font-weight: 400; color: var(--tinta-3); }
.x-pregunta p { margin: 4px 0 0; color: var(--tinta-2); }
.x-resp { margin: 10px 0 0 12px; padding: 8px 12px; border-left: 2px solid var(--hilo-fuerte); }
.x-resp--oficial { border-left-color: var(--acento); background: color-mix(in srgb, var(--acento) 8%, transparent); border-radius: 0 8px 8px 0; }
.x-preguntar { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--hilo); flex: none; }
.x-preguntar textarea { min-height: 44px; flex: 1; resize: none; }
.x-reto { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.x-reto h3 { font-family: var(--font-titulo); font-size: 18px; line-height: 24px; font-weight: 700; }
.x-reto .comentario-profe { background: var(--superficie-2); color: var(--tinta); }
.x .prompt { background: var(--superficie); border-color: var(--hilo); }
.x .prompt__cab { background: var(--superficie-2); border-color: var(--hilo); }
.x .archivo-reto { background: var(--superficie-2) !important; color: var(--tinta) !important; border-color: var(--hilo) !important; }
.x-nav-clases { display: flex; gap: 8px; }
@media (max-width: 1100px) {
  .x-sala { grid-template-columns: 1fr; padding: 0 0 96px; gap: 0; }
  .x-sala__video .video-caja { border-radius: 0; }
  .x-sala__info { padding: 0 16px; }
  .x-sala__lado { position: static; max-height: none; margin: 8px 16px 0; }
  .x-clase-bar { top: 56px; }
  .x-clase-bar__in { padding: 10px 16px; gap: 10px; }
  .x-clase-bar__tit { display: none; }
  .x-clase-bar__in { justify-content: space-between; }
  .x-titulo-movil { display: block; padding-top: 14px; }
  .x-titulo-movil h1 { font-family: var(--font-titulo); font-size: 20px; line-height: 26px; font-weight: 700; }
  .x-titulo-movil span { font-size: 13px; color: var(--tinta-3); }
  .x-estado { gap: 8px 12px; }
  .x-estado .crece { display: none; }
}

/* ---------- Inicio ---------- */
.x-hola { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.x-hola p { margin: 4px 0 0; color: var(--tinta-2); }
.x-inicio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.x-seguir { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--superficie); border: 1px solid var(--hilo); border-radius: 16px; overflow: hidden; text-decoration: none !important; }
.x-seguir .x-miniatura { border-radius: 0; aspect-ratio: 16 / 9; width: 100%; }
.x-seguir__play { position: absolute; inset: 0; display: grid; place-items: center; }
.x-seguir__play span { width: 64px; height: 64px; border-radius: 50%; background: var(--acento); color: #000; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0,0,0,.35); }
.x-seguir__play .ico { width: 28px; height: 28px; fill: #000; margin-left: 3px; }
.x-seguir__txt { padding: 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.x-seguir__txt .x-h2 { font-size: 22px; line-height: 28px; }
.x-sec-tit { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 12px; }
.x-sec-tit a { font-size: 14px; color: var(--acento-tinta); font-weight: 600; }
.x-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.x-card { display: flex; flex-direction: column; background: var(--superficie); border: 1px solid var(--hilo); border-radius: 12px; overflow: hidden; text-decoration: none !important; transition: border-color .2s; }
.x-card:hover { border-color: var(--hilo-fuerte); }
.x-card .x-miniatura { border-radius: 0; width: 100%; }
.x-card__txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.x-card__txt b { font-size: 14px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.x-check .ico { width: 14px; height: 14px; }
.x-lado { display: flex; flex-direction: column; gap: 16px; }
.x-lado .x-panel { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.x-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.x-cifras b { display: block; font-family: var(--font-titulo); font-size: 26px; line-height: 30px; font-weight: 700; }
.x-cifras span { font-size: 12px; line-height: 16px; color: var(--tinta-3); }
.x-enlace-lado { display: flex; gap: 12px; align-items: flex-start; text-decoration: none !important; }
.x-enlace-lado > .ico { color: var(--acento); margin-top: 3px; flex: none; }
.x-enlace-lado b { display: block; font-size: 14px; }
.x-enlace-lado span { font-size: 13px; color: var(--tinta-3); line-height: 19px; }
@media (max-width: 1100px) { .x-inicio { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .x-seguir { grid-template-columns: 1fr; }
  .x-seguir__txt { padding: 16px 18px 20px; }
  .x-h1 { font-size: 26px; line-height: 32px; }
  .x-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .x-card__txt { padding: 10px 10px 12px; }
}

/* ---------- Ficha pública (temario en línea de tiempo) ---------- */
.x-tl { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.x-tl::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 1px; background: var(--hilo-fuerte); }
.x-tl__mod { font-family: var(--font-titulo); font-weight: 600; font-size: 16px; line-height: 24px; padding: 18px 0 8px; position: relative; }
.x-tl__mod::before { content: ""; position: absolute; left: -24px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--hilo-fuerte); }
.x-tl__clase { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; position: relative; }
.x-tl__clase::before { content: attr(data-n); position: absolute; left: -31px; width: 22px; height: 22px; border-radius: 50%; background: var(--lienzo); border: 1px solid var(--hilo-fuerte); font-size: 11px; font-weight: 600; display: grid; place-items: center; color: var(--tinta-3); }
.x-tl__clase .x-miniatura { width: 96px; }
.x-tl__clase b { font-size: 14px; line-height: 20px; font-weight: 600; }
.x-tl__clase .x-meta { display: block; }
@media (max-width: 720px) { .x-tl__clase { grid-template-columns: 76px 1fr; } .x-tl__clase .x-miniatura { width: 76px; } .x-tl__clase > .chip { grid-column: 2; justify-self: start; } }

/* Tarjetas heredadas en la columna del Inicio, con el lenguaje nuevo */
.x-lado-viejo { display: flex; flex-direction: column; gap: 16px; }
.x-lado-viejo .tarjeta { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 16px; padding: 18px; }
.x-lado-viejo .tarjeta h3 { font-family: var(--font-titulo); font-size: 15px; line-height: 20px; font-weight: 600; }
.x-lado-viejo .tarjeta .ico { color: var(--acento); }
.x-lado-viejo .t-chico { font-size: 13px; line-height: 19px; }
.x .cert-aviso { border-radius: 14px; }
.x .anuncio { background: var(--superficie); border: 1px solid var(--acento); border-radius: 14px; margin-bottom: 20px; }
.x .encuentro { background: var(--superficie); border-color: var(--hilo); margin-bottom: 20px; }

/* ---------- Páginas públicas en el lenguaje nuevo ---------- */
.pub-mm.x { background: var(--lienzo); }
.x .pubm-hero { background: radial-gradient(1200px 400px at 20% 0%, color-mix(in srgb, var(--acento) 10%, transparent), transparent 70%), var(--lienzo); border-bottom: 1px solid var(--hilo); color: var(--tinta); }
.x .pubm-hero h1 { color: var(--tinta); font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.025em; }
.x .pubm-bajada { color: var(--tinta-2); font-size: 16px; line-height: 26px; }
.x .pubm-datos span { background: var(--superficie-3); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--tinta-2); }
.x .compra-caja { background: var(--superficie); border: 1px solid var(--hilo-fuerte); box-shadow: 0 24px 60px rgba(0,0,0,.35); color: var(--tinta); }
.x .compra-caja .incluye li { font-size: 14px; line-height: 22px; color: var(--tinta-2); }
.x .compra-caja .incluye b { color: var(--tinta); }
.x .temario { background: var(--superficie); border-color: var(--hilo); }
.x .temario summary b { color: var(--tinta); }
.x .profe { background: var(--superficie); border-color: var(--hilo); }
.x .pubm-pie { background: var(--superficie); border-top-color: var(--hilo); }
.x .pubm-pie a { color: var(--tinta-2); }
.x .curso-card { background: var(--superficie); border-color: var(--hilo); }
.x .pubm-sec .prosa p, .x .pubm-sec .prosa li { color: var(--tinta-2); }
.x .pubm-in { max-width: 1320px; }

.x-ficha { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.x-ficha__main { min-width: 0; max-width: 760px; }
.x-ficha__h1 { font-family: var(--font-titulo); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.03em; }
.x-compra { position: sticky; top: 88px; padding: 16px 16px 22px; gap: 14px; }
.x-compra .precio-grande { padding: 0 8px; }
.x-compra > p, .x-compra > .incluye { padding: 0 8px; }
.x-ficha-video { border-radius: 12px; }
.x .x-ficha .pubm-bajada { max-width: 64ch; }
@media (max-width: 960px) {
  .x-ficha { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .x-compra { position: static; order: 1; }
  .x-ficha__main { order: 0; }
}

.x-cta-movil { display: none; }
@media (max-width: 960px) { .x-cta-movil { display: flex; align-items: center; gap: 14px; margin-top: 4px; } .x-cta-movil .btn { flex: 1; } .x-cta-movil .precio-chico { font-size: 22px; } }

/* ---------- Varios cursos ---------- */
.x-op-curso { align-items: flex-start !important; }
.x-op-curso b { display: block; font-weight: 600; color: var(--tinta); font-size: 14px; line-height: 20px; }
.x-op-curso.activa .ico { color: var(--acento); }
.x-continuar { margin-bottom: 28px; }
.x-continuar .x-h2 { margin-bottom: 12px; }
.x-cc-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.x-cc { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--superficie); border: 1px solid var(--hilo); border-radius: 14px; padding: 12px; text-decoration: none !important; transition: border-color .2s; }
.x-cc:hover { border-color: var(--hilo-fuerte); }
.x-cc--actual { border-color: var(--acento); }
.x-cc .x-miniatura { width: 168px; }
.x-cc .x-seguir__play span { width: 40px; height: 40px; box-shadow: 0 0 0 6px rgba(0,0,0,.3); }
.x-cc .x-seguir__play .ico { width: 18px; height: 18px; }
.x-cc__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.x-cc__txt b { font-size: 15px; line-height: 21px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-cc__curso { color: var(--acento-tinta); font-weight: 600; }
.x-cc__avance { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.x-cc__avance .x-barra { flex: 1; }
.x-cursos-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--hilo); padding-bottom: 12px; margin-bottom: 20px; scroll-margin-top: 80px; }
.x-cursos-tabs a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tinta-2); text-decoration: none; border: 1px solid var(--hilo-fuerte); }
.x-cursos-tabs a:hover { color: var(--tinta); text-decoration: none; }
.x-cursos-tabs a.activa { background: var(--tinta); color: var(--lienzo); border-color: var(--tinta); }
.x-cursos-tabs .x-meta { margin-right: 4px; }
@media (max-width: 720px) {
  .x-cc-fila { grid-template-columns: 1fr; }
  .x-cc { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .x-cc .x-miniatura { width: 120px; }
  .x-cursos-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .x-cursos-tabs a { white-space: nowrap; }
  .x-cursos-tabs .x-meta { display: none; }
  .x-sec-tit { gap: 12px; }
  .x-sec-tit a { white-space: nowrap; }
}

/* ---------- Piezas del sistema anterior dentro del marco nuevo ---------- */
.x-main h1 { font-family: var(--font-titulo); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.x-main .t-h2 { font-size: 20px; line-height: 26px; }
.x-main .t-h3 { font-size: 17px; line-height: 23px; }
.x-main header.pila-2 > .rotulo, .x-main header.pila-3 > .rotulo { font-size: 13px; color: var(--tinta-3); font-weight: 500; letter-spacing: 0; }
.x-main header.pila-2 > .t-2, .x-main header.pila-3 > .t-2 { font-size: 15px; line-height: 24px; }
.x .tarjeta { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 14px; }
.x .tarjeta--link:hover { border-color: var(--hilo-fuerte); box-shadow: none; }
.x .lista { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 12px; }
.x .lista > * { border-top-color: var(--hilo); }
.x .aviso { border-radius: 12px; font-size: 14px; }
.x .aviso--neutro { background: var(--superficie-2); }
.x .tabla-caja { border-radius: 12px; border-color: var(--hilo); background: var(--superficie); }
.x .archivo { padding: 14px 18px; }
.x .archivo__ico { border-radius: 10px; }
.x .campo > label { font-size: 14px; }
.x .kpis { border-radius: 14px; border-color: var(--hilo); background: var(--superficie); }
.x .metas { border-radius: 14px; border-color: var(--hilo); background: var(--superficie); }
.x .tarjeta-plan { border: 1px solid var(--hilo); border-radius: 16px; }
.x .plan { border-radius: 16px; }
.x .plan--destacado { border-color: var(--acento); }

/* Encabezado de página reutilizable */
.x-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.x-cabecera p { margin: 6px 0 0; color: var(--tinta-2); max-width: 64ch; }
.x-dos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.x-dos > aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) { .x-dos { grid-template-columns: 1fr; } .x-dos > aside { position: static; order: -1; } }

/* Temario con estado (página del curso) */
.x-tl--estado .x-tl__clase { padding: 4px 0; }
.x-tl__link { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none !important; color: inherit; width: 100%; }
.x-tl--estado .x-tl__clase { display: block; }
.x-tl--estado .x-tl__clase::before { top: 30px; }
.x-tl__link:hover { background: var(--superficie-2); }
.x-tl__link .x-miniatura { width: 112px; }
.x-tl__link b { display: block; font-size: 15px; line-height: 21px; font-weight: 600; }
.x-tl__clase.actual .x-tl__link { background: var(--superficie); box-shadow: inset 0 0 0 1px var(--acento); }
.x-tl__clase.hecha::before { background: var(--ok); border-color: var(--ok); color: #fff; }
.x-tl__clase.actual::before { border-color: var(--acento); color: var(--acento-tinta); }
.x-tl__bajada { display: block; font-family: var(--font-texto); font-weight: 400; font-size: 14px; line-height: 21px; color: var(--tinta-2); margin-top: 2px; }
@media (max-width: 720px) { .x-tl__link { grid-template-columns: 84px 1fr; } .x-tl__link .x-miniatura { width: 84px; } .x-tl__link > .chip { grid-column: 2; justify-self: start; } }

/* Foro */
.x .pregunta { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 14px; padding: 18px 20px; }
.x .pregunta__txt p { font-size: 15px; line-height: 24px; }
.x .respuesta--oficial { background: color-mix(in srgb, var(--acento) 8%, transparent); }
.x-dos--foro > aside #preguntar { margin: 0; }
@media (max-width: 1100px) { .x-dos--foro > aside { order: -1; } }

/* Certificado */
.x-req { display: flex; gap: 14px; align-items: flex-start; }
.x-req b { font-size: 15px; }
.x-req__ico { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--hilo-fuerte); display: grid; place-items: center; flex: none; color: var(--tinta-3); }
.x-req--ok .x-req__ico { background: var(--ok); border-color: var(--ok); color: #fff; }
.x-req--ok .x-barra > i { background: var(--ok); }
.x-dos--cert { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.x-cert-previa { position: relative; }
.x-cert-previa .cert-marco { opacity: .55; filter: grayscale(.4); }
.x-cert-previa__candado { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 8px; align-items: center; background: var(--superficie); border: 1px solid var(--hilo-fuerte); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
@media (max-width: 1100px) { .x-dos--cert { grid-template-columns: 1fr; } .x-dos--cert > aside { order: 2; } }

@media (max-width: 1100px) { .x-dos--cuenta > aside { order: 2; } }

/* ---------- Ingreso / registro ---------- */
body.acceso.x { background: var(--superficie); }
.acceso.x .acceso__form h2 { font-family: var(--font-titulo); font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.acceso.x .acceso__form .btn { min-height: 48px; font-size: 15px; }
.acceso.x .acceso__form .entrada { min-height: 48px; background: var(--superficie); }
.acceso.x .acceso__lado { background: #0a0c0f; }
.acceso.x .acceso__mensaje h1 { font-family: var(--font-titulo); }

/* ---------- Panel de administración en el sistema nuevo ---------- */
.x-adm { background: var(--lienzo); }
.x-adm .al { font-size: 15px; }
.x-adm .al__lado { background: var(--superficie); border-right-color: var(--hilo); }
.x-adm .al__lado .nav a { border-radius: 10px; font-size: 14px; padding: 9px 12px; color: var(--tinta-2); }
.x-adm .al__lado .nav a.activa { background: var(--superficie-3); color: var(--tinta); font-weight: 600; }
.x-adm .al__lado .nav a.activa svg { color: var(--acento); }
.x-adm .nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 16px 12px 6px; }
.x-adm .al__contenido { max-width: 1180px; padding: 12px 32px 96px; }
.x-adm .al__barra { max-width: 1180px; }
.x-adm h1 { font-family: var(--font-titulo); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.x-adm .kpi__valor { font-family: var(--font-titulo); font-weight: 700; }
.x-adm .tabla th { background: var(--superficie-2); font-size: 12px; text-transform: none; }
.x-adm .tabla td { font-size: 14px; }
.x-adm details.tarjeta > summary { font-size: 15px; }
.x-adm .ed-modulo { border-radius: 16px; }
.x-adm .ed-leccion { padding: 10px 12px 10px 16px; }
.x-adm .ed-leccion:hover { background: var(--superficie-2); }

.acceso.x .acceso__mensaje h1 { color: #fff; }
.x-adm-curso { margin: 0 4px 14px; }
.x-adm-curso summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hilo-fuerte); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--tinta); }
.x-adm-curso summary small { display: block; font-size: 11px; color: var(--tinta-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.x-adm-curso summary .crece { min-width: 0; line-height: 18px; }
.x-adm-curso .x-menu__caja { left: 0; right: 0; min-width: 0; }

.x-adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hilo); overflow-x: auto; scrollbar-width: none; }
.x-adm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--tinta-3); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.x-adm-tabs a:hover { color: var(--tinta); text-decoration: none; }
.x-adm-tabs a.activa { color: var(--tinta); border-bottom-color: var(--acento); }
.x-adm-tabs a.activa .ico { color: var(--acento); }

/* ---------- Ronda QA del rediseño ---------- */
.x-curso-actual { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--hilo); padding-bottom: 12px; margin-bottom: 20px; scroll-margin-top: 80px; }
.x-curso-actual b { font-family: var(--font-titulo); font-size: 18px; }
.x-cifras span { white-space: nowrap; }
.x-portada-curso { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; background: #0a0c0f; color: #fff; padding: 20px 22px; position: relative; overflow: hidden; }
.x-portada-curso::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--acento); right: -14%; bottom: -30%; }
.x-portada-curso__niv { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); position: relative; z-index: 1; }
.x-portada-curso b { font-family: var(--font-titulo); font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; max-width: 80%; position: relative; z-index: 1; }
.x-portada-curso__pie { font-size: 12px; color: #b4bec7; position: relative; z-index: 1; }
.curso-card .x-portada-curso { border-radius: 0; }
.x-vel { display: inline-flex; align-items: center; gap: 4px; }
.x-vel .x-meta { margin-right: 4px; }
.x-vel button { border: 1px solid var(--hilo-fuerte); background: var(--superficie); color: var(--tinta-2); border-radius: 999px; padding: 4px 10px; font: 600 12px/18px var(--font-texto); cursor: pointer; }
.x-vel button[aria-pressed="true"] { background: var(--tinta); color: var(--lienzo); border-color: var(--tinta); }
.x-ir-preguntas { display: none; }
@media (max-width: 1100px) { .x-ir-preguntas { display: inline-flex; } .x-pestanas button { padding: 12px 10px; } }
.x-cert-previa__candado { top: 14px; right: 14px; left: auto; transform: none; }
.x-cert-previa .cert-marco { opacity: .7; filter: grayscale(.3); }
.acceso.x .acceso__form { margin: 0 auto; }
.x .planes, .x .plan, .x .plan * { min-width: 0; }
.x .codigo-ref__fila { flex-wrap: wrap; }
.x .codigo-ref code { overflow-wrap: anywhere; }
.x .incluye li span { overflow-wrap: anywhere; }
.x-tl::before { background: var(--hilo-fuerte); }
.x-tl__clase::before { border-color: var(--tinta-3); }
.x-main .pila-6 > header.pila-2:first-child, .x-main .pila-6 > header.pila-3:first-child, .x-main .pila-5 > header.pila-2:first-child { margin-bottom: 4px; }
.x-main header > .rotulo { margin: 0 0 4px !important; line-height: 18px; }
/* Panel: tabla densa tipo herramienta */
.x-adm .tabla { font-size: 14px; line-height: 20px; }
.x-adm .tabla th { font-size: 12px; font-weight: 600; color: var(--tinta-3); padding: 10px 14px; }
.x-adm .tabla td { padding: 10px 14px; vertical-align: middle; }
.x-adm .tabla td small, .x-adm .tabla td .t-chico, .x-adm .tabla td .t-mono { font-size: 12px; line-height: 16px; }
.x-adm .tabla td a b { font-weight: 600; }
.x-adm .tabla .chip { font-size: 12px; }
.x-adm .al__lado { align-self: start; }
.x-adm .x-adm-curso summary { font-size: 13px; line-height: 18px; }
/* Catálogo: la portada ya lleva nivel y título */
.curso-card .x-portada-curso + .curso-card__txt > .rotulo { display: none; }
.curso-card .x-portada-curso + .curso-card__txt > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Editor: módulo como bloque editable en línea, no como formulario */
.x-adm .ed-modulo { padding: 20px 22px; gap: 10px; }
.x-adm .ed-modulo { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.x-adm .ed-modulo > * { grid-column: 1 / -1; }
.x-adm .ed-modulo > .ed-mod-cab { grid-column: 1; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.x-adm .ed-modulo > .ed-mod-acciones { grid-column: 2; grid-row: 1; align-self: start; }
.ed-mod-cab > .t-mono { grid-column: 1 / -1; font-size: 11px; letter-spacing: .12em; }
.ed-mod-cab .entrada { border-color: transparent; background: transparent; padding-left: 8px; margin-left: -8px; min-height: 0; }
.ed-mod-cab .entrada:hover { border-color: var(--hilo); }
.ed-mod-cab .entrada:focus { border-color: var(--acento); background: var(--superficie); }
.ed-mod-titulo { grid-column: 1; font: 700 20px/28px var(--font-titulo) !important; letter-spacing: -0.01em; padding-top: 2px !important; padding-bottom: 2px !important; }
.ed-mod-bajada { grid-column: 1; font-size: 14px !important; color: var(--tinta-2); padding-top: 2px !important; padding-bottom: 2px !important; }
.ed-mod-guardar { grid-column: 2; grid-row: 2 / span 2; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ed-mod-cab.sucio .ed-mod-guardar, .ed-mod-guardar:focus-visible { opacity: 1; pointer-events: auto; }
.ed-bloqueado { color: var(--tinta-3); opacity: .45; cursor: help; display: inline-grid; place-items: center; }
.x-adm .ed-lecciones { border: 1px solid var(--hilo); border-radius: 12px; overflow: hidden; }
.x-adm .ed-lecciones .ed-leccion { border: 0; border-radius: 0; border-bottom: 1px solid var(--hilo); padding: 8px 10px 8px 14px; min-height: 52px; }
.x-adm .ed-lecciones .ed-leccion:last-child { border-bottom: 0; }
.x-adm .ed-lecciones .ed-leccion:hover { background: var(--superficie-2); }
.x-adm .ed-lecciones .ed-leccion b { font-weight: 600; font-size: 14px; }
.ed-nueva { border: 1px dashed var(--hilo-fuerte); border-radius: 12px; padding: 4px 6px 4px 14px; color: var(--tinta-3); gap: 6px; }
.ed-nueva .entrada { border: 0; background: transparent; min-height: 40px; padding-left: 4px; }
.ed-nueva .entrada:focus { box-shadow: none; outline: none; }
.ed-nueva:focus-within { border-color: var(--acento); border-style: solid; }
.x-check { top: 8px; right: auto; bottom: auto; left: 8px; }
@media (max-width: 720px) {
  .x-adm-tabs { margin-right: -20px; padding-right: 20px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.x-cert-previa .cert-marco { opacity: 1; filter: none; }
.x-cert-previa { position: relative; }
.x-cert-previa__candado { z-index: 2; }

/* ---------- Ronda QA 2 ---------- */
/* Certificado: la lámina se ve tal cual; el rótulo va encima, fuera de ella */
.x-cert-previa__candado { position: static !important; transform: none !important; align-self: flex-start; box-shadow: none; font-size: 13px; padding: 6px 12px; }
.x-cert-previa .cert-marco { opacity: 1; filter: none; }
/* Clase: al elegir una pestaña, queda bajo la barra fija */
.x-pestanas { scroll-margin-top: 150px; }
.x-estado { padding: 10px 0 2px; }
@media (max-width: 960px) {
  .x-clase-bar { position: static; }
  .x-clases-btn, .x-clase-bar .btn { white-space: nowrap; }
  .x-solo-escritorio { display: none; }
  .x-clase-bar__in { gap: 6px; }
  .x-pestanas { scroll-margin-top: 70px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
/* Retos del panel: compactos */
.reto-item { background: var(--superficie); border: 1px solid var(--hilo); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.reto-cab { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.reto-cab .crece { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reto-fecha { white-space: nowrap; margin-left: auto; }
.reto-texto { margin: 0; padding: 10px 14px; background: var(--superficie-2); border-left: 3px solid var(--hilo-fuerte); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 22px; max-height: 132px; overflow: auto; white-space: pre-wrap; }
.reto-pedia summary { cursor: pointer; }
.reto-pedia p { margin: 6px 0 0; }
.reto-form { display: flex; gap: 8px; align-items: flex-end; }
.reto-form textarea { flex: 1; min-height: 44px; resize: vertical; }
.reto-hechos { border: 1px solid var(--hilo); border-radius: 12px; background: var(--superficie); overflow: hidden; }
.reto-hecho { border-bottom: 1px solid var(--hilo); }
.reto-hecho:last-of-type { border-bottom: 0; }
.reto-hecho > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.reto-hecho > summary::-webkit-details-marker { display: none; }
.reto-hecho > summary .reto-cab { flex: 1; }
.reto-hecho > summary:hover { background: var(--superficie-2); }
.reto-hechos > .btn { margin: 10px 16px; }
@media (max-width: 720px) { .reto-cab { flex-wrap: wrap; } .reto-cab .crece { white-space: normal; flex-basis: 100%; order: 3; } .reto-form { flex-direction: column; align-items: stretch; } }
/* Desplegables: que se vean como tales */
.x details.tarjeta > summary, .x details.ed-datos > summary, .x .cuenta details > summary, .x details.x-plegable > summary { list-style: none; position: relative; padding-right: 36px; cursor: pointer; }
.x details.tarjeta > summary::-webkit-details-marker { display: none; }
.x details.tarjeta > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--tinta-3); border-bottom: 2px solid var(--tinta-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.x details.tarjeta[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.x details.tarjeta:not([open]):hover { border-color: var(--hilo-fuerte); background: var(--superficie-2); }
/* Controles nativos con la marca */
.x input[type=checkbox], .x input[type=radio] { accent-color: var(--acento); width: 16px; height: 16px; }
.x textarea.entrada { resize: vertical; }
.x select.entrada { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--tinta-3) 50%), linear-gradient(135deg, var(--tinta-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
/* Inicio */
.x-cc__tag { font-style: normal; font-size: 11px; font-weight: 600; background: var(--acento); color: #000; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.x-h2-curso { font-family: var(--font-texto); font-weight: 400; font-size: 14px; margin-left: 4px; }
/* Catálogo */
.curso-card__btn { align-self: flex-start; margin-top: 12px; }
/* Editor: que se note qué se edita */
.ed-mod-cab .entrada:hover { border-style: dashed; border-color: var(--acento); }
/* Barra lateral del panel: selector de alto fijo */
.x-adm-curso summary b, .x-adm-curso summary .x-adm-curso__nom { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Cabecera alumno: más espacio para el nombre del curso */
@media (min-width: 961px) { .x-curso > summary { max-width: 320px; } }
@media (max-width: 720px) {
  #tabla-alumnos td:nth-child(3), #tabla-alumnos td:nth-child(5), #tabla-alumnos td:has(> .t-3:only-child) { display: none; }
}
/* Editor: arrastrar lecciones */
.ed-asa { color: var(--tinta-3); cursor: grab; display: inline-grid; place-items: center; margin-left: -6px; }
.ed-leccion[draggable="true"]:active { cursor: grabbing; }
.ed-leccion.arrastrando { opacity: .45; background: var(--superficie-2); }
.ed-lecciones.soltar-aqui { outline: 2px dashed var(--acento); outline-offset: 2px; }
.ed-lecciones--vacia { border-style: dashed !important; }
.ed-vacia { padding: 14px; }
/* Mi cuenta: cursos como enlaces vivos */
.x-enlace-lado b { color: var(--tinta); }
.x-enlace-lado .x-enlace-flecha { color: var(--tinta-3); margin-top: 10px; flex: none; }
.x-enlace-lado:hover b { color: var(--acento-tinta); }
.x .cuenta details > summary, .x details:not(.x-menu):not(.reto-hecho) > summary { cursor: pointer; }
/* Casilla con su texto, alineados */
.x-check-fila { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.x-check-fila input { margin: 0; flex: none; }
/* Ingreso: ayuda en dos líneas y pie legible */
.acceso__ayuda { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.acceso.x .acceso__pie, .acceso.x .acceso__mensaje .t-mono:last-child { color: #9aa4ae; }
/* Desplegable simple (sin tarjeta) con chevron propio */
.x details.x-plegable > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; padding-right: 22px; }
.x details.x-plegable > summary::-webkit-details-marker { display: none; }
.x details.x-plegable > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--tinta-3); border-bottom: 2px solid var(--tinta-3); transform: translateY(-2px) rotate(45deg); transition: transform .2s; margin-left: 2px; }
.x details.x-plegable[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.x-cc .x-seguir__play { transform: scale(.75); }
/* La lámina del certificado tiene colores propios: ningún tema los pisa */
.cert .cert__nombre, .cert .cert__curso, .cert .cert__firma { color: #000 !important; }
.cert .cert__texto { color: #444a52 !important; }
.cert .cert__detalle, .cert .cert__cargo, .cert .cert__cod { color: #666 !important; }
/* Celdas con correos largos */
.x-adm .tabla td { overflow-wrap: anywhere; }
/* Barra de la clase opaca al hacer scroll */
.x-clase-bar { background: var(--lienzo); box-shadow: 0 1px 0 var(--hilo); }
/* En la sala la cabecera va opaca: el video celeste se transparentaba detrás */
.x-main--sala ~ * .x-cab, body:has(.x-clase-bar) .x-cab { background: var(--lienzo); backdrop-filter: none; }
/* ---------- Adjuntos ---------- */
.adjuntos { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.adj-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-width: 560px; }
.adj-foto { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--superficie-3); border: 1px solid var(--hilo); }
.adj-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.adj-foto a:hover img { transform: scale(1.03); }
.adj-video { margin: 0; max-width: 560px; }
.adj-video video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; display: block; }
.adj-video figcaption { margin-top: 4px; }
.adj-docs { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.adj-doc { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--hilo); border-radius: 10px; background: var(--superficie); min-width: 0; }
.adj-doc a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.adj-doc > .ico { color: var(--acento); flex: none; }
.adj-quitar { margin: 0; }
.adj-foto .adj-quitar { position: absolute; top: 4px; right: 4px; }
.adj-foto .adj-quitar .btn-icono { background: rgba(0,0,0,.6); color: #fff; width: 26px; height: 26px; min-height: 0; border-radius: 50%; }
/* Campo para adjuntar */
.adj-campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adj-boton { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--acento-tinta); padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--hilo-fuerte); }
.adj-boton:hover { border-color: var(--acento); background: var(--superficie-2); }
.adj-boton:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }
.adj-cola { display: flex; flex-direction: column; gap: 6px; }
.adj-cola:empty { display: none; }
.adj-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--hilo); border-radius: 10px; background: var(--superficie); min-width: 0; }
.adj-item img, .adj-item__ico { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--superficie-3); display: grid; place-items: center; font-size: 16px; }
.adj-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adj-item__txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adj-item__txt small { font-size: 12px; color: var(--tinta-3); }
.adj-item__barra { height: 3px; border-radius: 3px; background: var(--superficie-3); overflow: hidden; display: none; }
.adj-item.subiendo .adj-item__barra { display: block; }
.adj-item__barra i { display: block; height: 100%; width: 0; background: var(--acento); transition: width .2s; }
.adj-item--listo small { color: var(--ok); }
.adj-item--error { border-color: var(--riesgo, #c0392b); }
.adj-item--error small { color: var(--riesgo, #c0392b); }
.adj-x { flex: none; }
.reto-entrega { padding: 12px 14px; border-radius: 12px; background: var(--superficie-2); border: 1px solid var(--hilo); margin-bottom: 8px; }
.reto-form-caja { display: flex; flex-direction: column; gap: 8px; }
.x-preguntar { flex-wrap: wrap; }
.x-preguntar .adj-campo { flex-basis: 100%; }
.x-sala__lado .adjuntos { margin-top: 6px; }
.x-sala__lado .adj-fotos { grid-template-columns: repeat(3, 1fr); }
