/* ABAKU LMS — design system propio (tokens lms-*), calcado del patrón abk.
 * Reglas de la casa: NINGUNA fuente <12px; color SIEMPRE por token o
 * color-mix sobre --lms-surface; [hidden] gana a cualquier display. */

:root {
  --lms-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lms-font-size: 15px;
  --lms-font-size-sm: 13px;
  --lms-font-size-xs: 12px; /* piso absoluto */

  --lms-bg: #f4f5f8;
  --lms-surface: #ffffff;
  --lms-surface-2: #eef0f4;
  --lms-texto: #1c2130;
  --lms-texto-suave: #5a6172;
  --lms-borde: #d9dce3;

  --lms-primario: #2563eb;      /* tema base «Aula»: azul eléctrico — identidad
                                   PROPIA del LMS, a propósito distinta del
                                   violeta ABAKU; personalizable por instalación */
  --lms-primario-texto: #ffffff;
  --lms-acento-soft: color-mix(in srgb, var(--lms-primario) 12%, var(--lms-surface));

  --lms-ok: #1e7a46;
  --lms-error: #b3362f;
  --lms-error-soft: color-mix(in srgb, var(--lms-error) 10%, var(--lms-surface));

  --lms-radio: 12px;
  --lms-sombra: 0 1px 2px rgba(15, 20, 40, .05), 0 2px 8px rgba(15, 20, 40, .06);
  --lms-sombra-alta: 0 2px 4px rgba(15, 20, 40, .06), 0 12px 32px rgba(15, 20, 40, .12);
  --lms-nav-ancho: 232px;
  --lms-ease: cubic-bezier(.22, .8, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --lms-bg: #14161d;
    --lms-surface: #1d2029;
    --lms-surface-2: #262a36;
    --lms-texto: #e6e8ef;
    --lms-texto-suave: #9aa1b3;
    --lms-borde: #343949;
    --lms-primario: #60a5fa;
    --lms-sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .35);
    --lms-sombra-alta: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="light"] {
  --lms-bg: #f4f5f8; --lms-surface: #ffffff; --lms-surface-2: #eef0f4;
  --lms-texto: #1c2130; --lms-texto-suave: #5a6172; --lms-borde: #d9dce3;
  --lms-primario: #2563eb;
}
:root[data-theme="dark"] {
  --lms-bg: #14161d; --lms-surface: #1d2029; --lms-surface-2: #262a36;
  --lms-texto: #e6e8ef; --lms-texto-suave: #9aa1b3; --lms-borde: #343949;
  --lms-primario: #60a5fa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--lms-font);
  font-size: var(--lms-font-size);
  color: var(--lms-texto);
  background: var(--lms-bg);
}

a { color: var(--lms-primario); }

/* ── Shell ── */
.lms-shell { display: flex; min-height: 100vh; }

.lms-nav {
  width: var(--lms-nav-ancho);
  flex: 0 0 auto;
  background: var(--lms-surface);
  border-right: 1px solid var(--lms-borde);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.lms-nav__marca {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px; border-bottom: 1px solid var(--lms-borde);
}
.lms-nav__toggle {
  border: 0; background: none; color: var(--lms-texto);
  font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.lms-nav__toggle:hover { background: var(--lms-surface-2); }
.lms-nav__titulo { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-nav__grupo {
  font-size: var(--lms-font-size-xs); text-transform: uppercase; letter-spacing: .06em;
  color: var(--lms-texto-suave); padding: 14px 14px 4px;
}
.lms-nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; color: var(--lms-texto); text-decoration: none;
  border-left: 3px solid transparent;
}
.lms-nav__item:hover { background: var(--lms-surface-2); }
.lms-nav__item.is-activo {
  background: var(--lms-acento-soft);
  border-left-color: var(--lms-primario);
  font-weight: 600;
}
.lms-nav__pie {
  margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--lms-borde);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: var(--lms-font-size-sm);
}
.lms-nav__usuario { color: var(--lms-texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-nav__salir { color: var(--lms-primario); text-decoration: none; }

html.lms-collapsed .lms-nav { width: 56px; }
html.lms-collapsed .lms-nav__titulo,
html.lms-collapsed .lms-nav__texto,
html.lms-collapsed .lms-nav__grupo,
html.lms-collapsed .lms-nav__usuario { display: none; }

.lms-main { flex: 1 1 auto; padding: 22px 26px; min-width: 0; }

@media (max-width: 720px) {
  .lms-nav { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .18s; }
  html.is-nav-open .lms-nav { transform: none; }
  .lms-main { padding: 14px; }
}

/* ── Componentes base ── */
.lms-card {
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra);
  padding: 18px;
}
.lms-h1 { font-size: 22px; margin: 0 0 14px; }
.lms-h2 { font-size: 17px; margin: 0 0 10px; }
.lms-muted { color: var(--lms-texto-suave); }

.lms-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  color: var(--lms-texto); border-radius: var(--lms-radio-ctl, 9px); padding: 8px 14px;
  font-size: var(--lms-font-size-sm); cursor: pointer; text-decoration: none;
}
.lms-btn:hover { background: var(--lms-surface-2); }
.lms-btn--primario {
  background: var(--lms-primario); border-color: var(--lms-primario);
  color: var(--lms-primario-texto);
}
.lms-btn--primario:hover { background: color-mix(in srgb, var(--lms-primario) 88%, #000); }
.lms-btn--peligro { color: var(--lms-error); border-color: var(--lms-error); background: var(--lms-surface); }

/* lms-field es el ENVOLTORIO (label+control); el control es lms-input/select/textarea. */
.lms-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.lms-field > span { font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); }
.lms-input, .lms-select, .lms-textarea {
  background: var(--lms-surface); color: var(--lms-texto);
  border: 1px solid var(--lms-borde); border-radius: 8px;
  padding: 9px 11px; font: inherit; width: 100%;
}
.lms-input:focus, .lms-select:focus, .lms-textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--lms-primario) 45%, transparent);
  outline-offset: 1px;
}

.lms-aviso {
  padding: 10px 12px; border-radius: 8px; margin: 0 0 14px;
  background: var(--lms-acento-soft); border: 1px solid var(--lms-borde);
  font-size: var(--lms-font-size-sm);
}
.lms-aviso--error { background: var(--lms-error-soft); border-color: var(--lms-error); }

.lms-tabla { width: 100%; border-collapse: collapse; font-size: var(--lms-font-size-sm); }
.lms-tabla th, .lms-tabla td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--lms-borde); }
.lms-tabla th { color: var(--lms-texto-suave); font-weight: 600; }
.lms-tablaw { overflow-x: auto; }

/* ── Login ── */
.lms-login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.lms-login {
  width: 100%; max-width: 380px;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra); padding: 28px;
}
.lms-login__titulo { font-size: 20px; margin: 0 0 18px; text-align: center; }
.lms-login .lms-btn { width: 100%; justify-content: center; padding: 10px; }
.lms-hp { position: absolute; left: -9999px; top: -9999px; }

/* ── Toast ── */
.lms-toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--lms-texto); color: var(--lms-bg);
  padding: 9px 16px; border-radius: 999px; font-size: var(--lms-font-size-sm);
  box-shadow: var(--lms-sombra); z-index: 100; opacity: 0; transition: opacity .18s;
}
.lms-toast.is-visible { opacity: 1; }

/* ═══ Capa premium ═════════════════════════════════════════════════════════
 * Refinamiento sobre la base: MISMOS componentes, mejor tacto. Un solo easing
 * (--lms-ease), sombras en capas, foco visible siempre, y todo desactivable
 * con prefers-reduced-motion. Nada de efectos por el efecto: cada transición
 * confirma una acción del usuario. */

/* Tacto de los controles */
.lms-btn {
  transition: background .16s var(--lms-ease), border-color .16s var(--lms-ease),
              box-shadow .2s var(--lms-ease), transform .12s var(--lms-ease);
}
.lms-btn:hover { box-shadow: var(--lms-sombra); transform: translateY(-1px); }
.lms-btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.lms-btn--primario {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--lms-primario) 94%, #fff),
    var(--lms-primario));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--lms-primario) 35%, transparent);
}
.lms-btn--primario:hover {
  background: linear-gradient(180deg, var(--lms-primario),
    color-mix(in srgb, var(--lms-primario) 86%, #000));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--lms-primario) 40%, transparent);
}
.lms-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* Foco: visible SIEMPRE que se navega con teclado, en todo lo interactivo */
.lms-btn:focus-visible, .lms-nav__item:focus-visible, a:focus-visible,
.mc-leccion:focus-visible, .lms-nav__toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--lms-primario) 55%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}
.lms-input:focus, .lms-select:focus, .lms-textarea:focus {
  border-color: var(--lms-primario);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lms-primario) 18%, transparent);
  outline: none;
}
.lms-input, .lms-select, .lms-textarea {
  transition: border-color .16s var(--lms-ease), box-shadow .16s var(--lms-ease);
}

/* Tarjetas: se levantan solo las clicables */
.lms-card { transition: box-shadow .2s var(--lms-ease), transform .2s var(--lms-ease), border-color .2s var(--lms-ease); }
.mc-tarjeta:hover { box-shadow: var(--lms-sombra-alta); transform: translateY(-2px); }

/* Sidebar: transiciones del plegado y de los items */
.lms-nav { transition: width .22s var(--lms-ease); }
.lms-nav__item { transition: background .14s var(--lms-ease), border-color .14s var(--lms-ease), padding-left .14s var(--lms-ease); }
.lms-nav__item:hover { padding-left: 17px; }
.lms-nav__item.is-activo:hover { padding-left: 14px; }

/* Tablas: la fila responde */
.lms-tabla tbody tr { transition: background .12s var(--lms-ease); }
.lms-tabla tbody tr:hover { background: color-mix(in srgb, var(--lms-primario) 4%, transparent); }

/* Toast: entra deslizando, sale desvaneciendo */
.lms-toast {
  transform: translateX(-50%) translateY(12px);
  transition: opacity .22s var(--lms-ease), transform .22s var(--lms-ease);
}
.lms-toast.is-visible { transform: translateX(-50%) translateY(0); }

/* Barra de progreso: el avance se ANIMA hacia su valor */
.mc-barra > div {
  transition: width .5s var(--lms-ease);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--lms-primario) 80%, #fff), var(--lms-primario));
  border-radius: inherit;
}

/* Contenido del módulo: entrada suave al navegar */
.lms-main > * { animation: lms-entrada .24s var(--lms-ease) both; }
@keyframes lms-entrada {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Login: fondo con profundidad y tarjeta que llega */
.lms-login-body {
  background:
    radial-gradient(1100px 500px at 85% -10%,
      color-mix(in srgb, var(--lms-primario) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%,
      color-mix(in srgb, var(--lms-primario) 9%, transparent), transparent 60%),
    var(--lms-bg);
}
.lms-login {
  box-shadow: var(--lms-sombra-alta);
  animation: lms-entrada .32s var(--lms-ease) both;
}
.lms-login__titulo { letter-spacing: -.01em; }

/* Estado "Cargando…": pulso discreto en lugar de texto muerto */
.lms-muted:only-child { animation: lms-pulso 1.6s ease-in-out infinite; }
@keyframes lms-pulso { 0%, 100% { opacity: .75; } 50% { opacity: .45; } }

/* Retro del repaso y micro-quiz: aparece, no brinca */
.rep-retro, .ev-muestra { animation: lms-entrada .2s var(--lms-ease) both; }

/* Detalles tipográficos */
.lms-h1 { letter-spacing: -.015em; }
.lms-h2 { letter-spacing: -.01em; }
code {
  background: var(--lms-surface-2); padding: 1px 6px; border-radius: 6px;
  font-size: 0.92em;
}

/* La regla que manda: si la persona pidió menos movimiento, se le da CERO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Iconos propios (SVG stroke, heredan color) ── */
.lms-ico { flex: 0 0 auto; vertical-align: -3px; }
.lms-nav__icono { display: inline-flex; width: 20px; justify-content: center; color: var(--lms-texto-suave); }
.lms-nav__item.is-activo .lms-nav__icono, .lms-nav__item:hover .lms-nav__icono { color: var(--lms-primario); }
.lms-nav__salir { display: inline-flex; align-items: center; gap: 5px; }

.lms-nav__logo { flex: 0 0 auto; border-radius: 6px; }
html.lms-collapsed .lms-nav__logo { display: none; }

/* ── Login: versión con distintivo IA ── */
.lms-login__version { text-align: center; margin: 16px 0 0; font-size: var(--lms-font-size-xs);
  display: flex; align-items: center; justify-content: center; gap: 5px; }
.lms-login__ia { color: var(--lms-primario); display: inline-flex; }

/* ── Portada pública (.lp-) — la academia se presenta sola ──
 * Los colores del hero son VARIABLES del motor de identidades
 * (--lp-hero-de/--lp-hero-a, emitidas por idn_css): el diseño es dato. */
.lp-body { background: var(--lms-bg); }
.lp-hero {
  color: #f4f8ff;
  background:
    radial-gradient(900px 420px at 85% -20%, color-mix(in srgb, var(--lms-primario) 40%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 120%, color-mix(in srgb, var(--lms-primario) 20%, transparent), transparent 60%),
    linear-gradient(150deg, var(--lp-hero-de, #0d1f45), var(--lp-hero-a, #081226));
  padding: 22px 6vw 74px;
}
.lp-nav__acciones { display: flex; gap: 8px; align-items: center; }
.lp-mini {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: var(--lms-font-size-xs); font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  color: #f4f8ff; text-decoration: none;
  transition: background .16s var(--lms-ease);
}
.lp-mini:hover { background: rgba(255, 255, 255, .17); }
/* La onda cierra el hero: sangra sobre el padding lateral e ignora el
 * inferior, para que el color del hero muera exactamente en la curva. */
.lp-onda { display: block; width: calc(100% + 12vw); height: 70px; margin: 44px -6vw -74px; }
.lp-main--clasica { margin-top: 24px; }
.lp-main { padding-top: 26px; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; }
.lp-nav__logo { height: 34px; display: block; }
.lp-nav__nombre { font-size: 17px; }
.lp-btn-claro {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #f4f8ff;
}
.lp-btn-claro:hover { background: rgba(255, 255, 255, .16); }
.lp-hero__cuerpo { max-width: 760px; margin: 64px auto 0; text-align: center; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; font-size: var(--lms-font-size-sm);
  background: rgba(59, 130, 246, .18); border: 1px solid rgba(96, 165, 250, .45); color: #a5c8ff;
}
.lp-hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin: 18px 0 14px; }
.lp-hero h1 span { color: #60a5fa; }
.lp-hero__sub { font-size: 17px; line-height: 1.6; color: rgba(244, 248, 255, .82); margin: 0 auto; max-width: 620px; }
.lp-hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.lp-btn-grande { padding: 12px 22px; font-size: var(--lms-font-size); }

.lp-main { max-width: 1080px; margin: 0 auto; padding: 0 5vw 40px; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.lp-feature h3 { margin: 10px 0 6px; font-size: 16px; letter-spacing: -.01em; }
.lp-feature p { margin: 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.55; }
.lp-feature__ico {
  display: inline-flex; padding: 9px; border-radius: 10px; color: var(--lms-primario);
  background: var(--lms-acento-soft);
}
.lp-catalogo { margin-top: 44px; }
.lp-catalogo h2 { font-size: 24px; letter-spacing: -.015em; margin: 0 0 16px; }
.lp-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.lp-curso h3 { margin: 0 0 8px; font-size: 17px; }
.lp-curso p { color: var(--lms-texto-suave); font-size: var(--lms-font-size-sm); line-height: 1.55; }
.lp-curso__pie { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.lp-nota { margin-top: 18px; font-size: var(--lms-font-size-sm); }
.lp-pie {
  border-top: 1px solid var(--lms-borde); padding: 18px 5vw; margin-top: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--lms-texto-suave); font-size: var(--lms-font-size-sm);
}
.lp-pie span { display: inline-flex; align-items: center; gap: 5px; }
.lp-pie span svg { color: var(--lms-primario); }
.lp-pie a { color: var(--lms-primario); text-decoration: none; }

/* ── Portada v2: profundidad, movimiento lento y rostros ── */
.lp-hero { position: relative; overflow: hidden; }
.lp-nav, .lp-hero__fusion, .lp-stats { position: relative; z-index: 2; }
.lp-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  pointer-events: none; z-index: 0;
}
.lp-blob--a {
  width: 520px; height: 520px; top: -180px; right: -80px;
  background: radial-gradient(circle at 40% 40%, #3b82f6, transparent 65%);
  animation: lp-flota 16s ease-in-out infinite alternate;
}
.lp-blob--b {
  width: 420px; height: 420px; bottom: -160px; left: -120px;
  background: radial-gradient(circle at 60% 60%, #1d4ed8, transparent 65%);
  animation: lp-flota 20s ease-in-out infinite alternate-reverse;
}
@keyframes lp-flota {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}
.lp-malla {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 180, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 480px at 50% 20%, #000, transparent 75%);
}
.lp-chip__punto {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
  animation: lp-pulso-punto 2.2s ease-out infinite;
}
@keyframes lp-pulso-punto {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Rostros: pila solapada en el hero */
.lp-caras { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.lp-caras__pila { display: flex; flex-shrink: 0; }
.lp-caras__pila img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 2px solid var(--lp-hero-de, #0d1f45); margin-left: -10px;
  transition: transform .18s var(--lms-ease);
}
.lp-caras__pila img:first-child { margin-left: 0; }
.lp-caras__pila img:hover { transform: translateY(-4px) scale(1.08); z-index: 2; position: relative; }
.lp-caras > span { font-size: var(--lms-font-size-sm); color: rgba(244, 248, 255, .75); max-width: 340px; line-height: 1.5; }

/* Login: halo detrás de la tarjeta */
.lp-login { position: relative; }
.lp-login__brillo {
  position: absolute; inset: -28px; z-index: -1; border-radius: 24px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(96, 165, 250, .35), transparent 75%);
  filter: blur(18px);
}

/* Cifras reales bajo el hero */
.lp-stats {
  max-width: 1080px; margin: 46px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
}
.lp-stat {
  text-align: center; padding: 14px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 180, 255, .18);
  backdrop-filter: blur(4px);
}
.lp-stat strong { display: block; font-size: 26px; letter-spacing: -.02em; color: #93c5fd; }
.lp-stat span { font-size: var(--lms-font-size-xs); color: rgba(244, 248, 255, .7); }

/* Cómo se aprende: tres pasos con hilo */
.lp-pasos { margin: 54px 0 10px; }
.lp-pasos h2, .lp-equipo h2 { font-size: 24px; letter-spacing: -.015em; margin: 0 0 16px; }
.lp-pasos__fila {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
  position: relative;
}
.lp-paso {
  position: relative; padding: 20px 18px 16px;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra);
}
.lp-paso__num {
  position: absolute; top: -14px; left: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lms-primario); color: var(--lms-primario-texto);
  font-size: var(--lms-font-size-sm); font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lms-primario) 40%, transparent);
}
.lp-paso h3 { margin: 4px 0 8px; font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--lms-texto); }
.lp-paso h3 svg { color: var(--lms-primario); }
.lp-paso p { margin: 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.55; }

/* Features: borde superior que se enciende al pasar */
.lp-features { margin-top: 40px; }
.lp-feature { position: relative; overflow: hidden; }
.lp-feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lms-primario), color-mix(in srgb, var(--lms-primario) 40%, transparent));
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--lms-ease);
}
.lp-feature:hover { box-shadow: var(--lms-sombra-alta); transform: translateY(-3px); }
.lp-feature:hover::before { transform: scaleX(1); }

/* Quiénes te acompañan: caras grandes */
.lp-equipo { margin-top: 54px; }
.lp-equipo__sub { color: var(--lms-texto-suave); font-size: var(--lms-font-size-sm); margin: -6px 0 16px; max-width: 560px; }
.lp-equipo__fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lp-persona { text-align: center; padding: 22px 16px 18px; }
.lp-persona img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--lms-acento-soft);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--lms-primario) 22%, transparent);
  transition: transform .2s var(--lms-ease);
}
.lp-persona:hover img { transform: scale(1.06); }
.lp-persona h3 { margin: 12px 0 2px; font-size: 15.5px; }
.lp-persona__rol {
  display: inline-block; font-size: var(--lms-font-size-xs); color: var(--lms-primario);
  background: var(--lms-acento-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.lp-persona p { margin: 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.5; }

/* Pie con enlaces legales */
.lp-pie__links { display: flex; gap: 18px; flex-wrap: wrap; }
.lgl-main { max-width: 760px; margin: 0 auto; padding: 34px 5vw 40px; }
.lgl-doc { padding: 26px 28px; line-height: 1.65; }
.lgl-doc h2, .lgl-doc h3 { letter-spacing: -.01em; }

/* Movimiento de la portada: cero si la persona pidió menos movimiento
   (la regla global ya frena animation/transition; los blobs además se fijan) */
@media (prefers-reduced-motion: reduce) {
  .lp-blob { animation: none; }
}
@media (max-width: 860px) {
  .lp-caras { justify-content: center; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Figuras dentro de una lección (diagramas del curso) ──
   Fondo claro SIEMPRE: los diagramas se dibujan para papel claro y en tema
   oscuro viven en su propia "hoja", como una lámina. */
.lms-fig {
  margin: 18px 0; padding: 14px;
  background: #fff; border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra);
}
.lms-fig img { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }
.lms-fig figcaption {
  text-align: center; margin-top: 10px;
  font-size: var(--lms-font-size-sm); color: #5a6172;
}

/* Fila de quiz en el índice del curso: se distingue de una lección */
.mc-quiz { background: var(--lms-acento-soft); border-radius: 8px; font-weight: 600; }

/* ── Pestañas (homenaje al estilo Moodle: fila horizontal, activa subrayada) ── */
.lms-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 2px solid var(--lms-borde); margin-bottom: 18px;
}
.lms-tab {
  border: 0; background: none; color: var(--lms-texto-suave);
  font: inherit; font-size: var(--lms-font-size-sm); cursor: pointer;
  padding: 9px 16px; margin-bottom: -2px;
  border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .14s var(--lms-ease), background .14s var(--lms-ease), border-color .14s var(--lms-ease);
}
.lms-tab:hover { color: var(--lms-texto); background: var(--lms-surface-2); }
.lms-tab.is-activa {
  color: var(--lms-primario); font-weight: 600;
  border-bottom-color: var(--lms-primario);
}

/* ── Portada fusionada (inicio + login en el hero, estilo Moodle 5) ── */
.lp-hero__fusion {
  max-width: 1080px; margin: 48px auto 0;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: center;
}
.lp-hero__pitch h1 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.02em; margin: 16px 0 12px; }
.lp-hero__pitch .lp-hero__sub { margin: 0; max-width: 540px; }
.lp-login { padding: 24px; box-shadow: var(--lms-sombra-alta); }
.lp-login .lms-h2 { margin-bottom: 14px; }
@media (max-width: 860px) {
  .lp-hero__fusion { grid-template-columns: 1fr; gap: 26px; }
  .lp-hero__pitch { text-align: center; }
  .lp-hero__pitch .lp-hero__sub { margin: 0 auto; }
}

/* ── Modo curso: el reproductor toma la pantalla ──
 * Al abrir un curso, la navegación principal se ancla en un header FIJO
 * («Ir atrás» + Inicio/Mis cursos/Repaso) y el índice del curso ocupa el
 * lugar de la barra original: cero espacio duplicado. */
html.lms-modo-curso .lms-nav { display: none; }
html.lms-modo-curso .lms-main { padding-top: 66px; }
/* SIN animación de entrada en modo curso: una animación de transform con
 * fill both queda activa para siempre y vuelve al módulo "containing block"
 * — el header fixed dejaba de ser fijo y se iba con el scroll. */
html.lms-modo-curso .lms-main > * { animation: none; }
.mc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 18px;
  background: color-mix(in srgb, var(--lms-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lms-borde);
  animation: lms-baja .28s var(--lms-ease) both;
}
@keyframes lms-baja { from { transform: translateY(-100%); } to { transform: none; } }
.mc-header__atras {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  color: var(--lms-texto); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: var(--lms-font-size-sm); font-weight: 600; cursor: pointer;
  transition: background .14s var(--lms-ease), transform .12s var(--lms-ease);
}
.mc-header__atras:hover { background: var(--lms-surface-2); transform: translateX(-2px); }
.mc-header__titulo {
  font-weight: 700; font-size: var(--lms-font-size-sm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.mc-header__nav { display: flex; gap: 2px; }
.mc-header__nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--lms-texto-suave); text-decoration: none;
  font-size: var(--lms-font-size-sm); padding: 7px 12px; border-radius: 999px;
  transition: background .14s var(--lms-ease), color .14s var(--lms-ease);
}
.mc-header__nav a:hover { color: var(--lms-primario); background: var(--lms-acento-soft); }
@media (max-width: 720px) {
  .mc-header__nav a span { display: none; }   /* quedan los iconos */
  .mc-header { gap: 8px; padding: 9px 10px; }
}

/* Cambio de contenido: lo nuevo ENTRA, no brinca */
.mc-contenido.is-entrando { animation: lms-entrada .26s var(--lms-ease) both; }
.mc-leccion { transition: background .14s var(--lms-ease), padding-left .14s var(--lms-ease); }
.mc-leccion:hover { padding-left: 4px; }
.mc-leccion.is-activa { border-radius: 8px; }
.mc-quiz.is-activa { outline: 2px solid color-mix(in srgb, var(--lms-primario) 45%, transparent); }

/* ── Agentes nativos: burbuja del shell ── */
.agt-burbuja {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 0;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--lms-primario) 92%, #fff), var(--lms-primario));
  color: var(--lms-primario-texto);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--lms-primario) 45%, transparent);
  transition: transform .16s var(--lms-ease), box-shadow .2s var(--lms-ease);
}
.agt-burbuja:hover { transform: translateY(-2px) scale(1.05); }
.agt-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 70;
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra-alta);
  animation: lms-entrada .22s var(--lms-ease) both;
}
.agt-panel__cab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--lms-borde);
}
.agt-panel__cab strong { font-size: var(--lms-font-size-sm); flex: 1; }
.agt-panel__cab select { max-width: 170px; }
.agt-hilo { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.agt-msg {
  max-width: 86%; padding: 8px 12px; border-radius: 12px;
  font-size: var(--lms-font-size-sm); line-height: 1.5; white-space: pre-wrap;
  animation: lms-entrada .18s var(--lms-ease) both;
}
.agt-msg--user { align-self: flex-end; background: var(--lms-acento-soft); }
.agt-msg--ia { align-self: flex-start; background: var(--lms-surface-2); }
.agt-pie { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--lms-borde); }
.agt-pie .lms-input { flex: 1; }

/* ── Editor de identidades ── */
.idn-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.idn-preset {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
  font: inherit; font-size: var(--lms-font-size-sm);
  transition: border-color .14s var(--lms-ease), transform .12s var(--lms-ease);
}
.idn-preset:hover { transform: translateY(-1px); border-color: var(--lms-primario); }
.idn-preset i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.idn-fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.idn-seg { display: inline-flex; border: 1px solid var(--lms-borde); border-radius: 999px; overflow: hidden; }
.idn-seg button {
  border: 0; background: none; color: var(--lms-texto-suave); cursor: pointer;
  font: inherit; font-size: var(--lms-font-size-xs); padding: 7px 13px;
}
.idn-seg button.is-on { background: var(--lms-primario); color: var(--lms-primario-texto); font-weight: 600; }
.idn-zonas { display: flex; gap: 8px; flex-wrap: wrap; }
.idn-zona {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--lms-font-size-sm); border: 1px solid var(--lms-borde);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none;
}
.idn-zona input { accent-color: var(--lms-primario); }
.idn-color { display: inline-flex; align-items: center; gap: 6px; }
.idn-color input[type="color"] {
  width: 40px; height: 34px; border: 1px solid var(--lms-borde);
  border-radius: 8px; background: var(--lms-surface); cursor: pointer; padding: 2px;
}
.idn-color span { font-size: var(--lms-font-size-xs); color: var(--lms-texto-suave); }

/* Ajustes rápidos del sidebar: tema e idioma */
.lms-nav__ajustes {
  display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--lms-borde);
}
.lms-nav__mini {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  color: var(--lms-texto-suave); border-radius: 999px; padding: 5px 10px;
  font: inherit; font-size: var(--lms-font-size-xs); font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: color .14s var(--lms-ease), border-color .14s var(--lms-ease);
}
.lms-nav__mini:hover { color: var(--lms-primario); border-color: var(--lms-primario); }
html.lms-collapsed .lms-nav__ajustes { flex-direction: column; align-items: center; }

/* ── Diálogo propio (lms-dlg) — jamás confirm() nativo ── */
.lms-dlg__velo {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 14, 24, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
  animation: lms-entrada .16s var(--lms-ease) both;
}
.lms-dlg {
  width: min(420px, 100%);
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); box-shadow: var(--lms-sombra-alta);
  padding: 20px;
  animation: lms-entrada .2s var(--lms-ease) both;
}
.lms-dlg__titulo { margin: 0 0 8px; font-size: 16px; }
.lms-dlg__texto { margin: 0 0 16px; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.55; }
.lms-dlg__botones { display: flex; justify-content: flex-end; gap: 8px; }
.lms-btn--peligro:hover { background: var(--lms-error); color: #fff; }

/* Editor por sección (v2 del motor) */
.idn-seccion { border: 1px solid var(--lms-borde); border-radius: 10px; padding: 10px 14px; }
.idn-seccion summary {
  cursor: pointer; font-size: var(--lms-font-size-sm); font-weight: 600;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.idn-seccion summary::-webkit-details-marker { display: none; }
.idn-seccion summary::before { content: '▸'; transition: transform .15s var(--lms-ease); }
.idn-seccion[open] summary::before { transform: rotate(90deg); }
.idn-sec-ia { padding: 4px 10px; font-size: var(--lms-font-size-xs); }
.idn-sec-item { display: grid; gap: 6px; margin-bottom: 10px; }

/* ═══ Portada v3: rediseño de raíz ═══════════════════════════════════════ */

/* Nav pegajosa de cristal: la entrada siempre a un clic */
.lp-nav--fija {
  position: sticky; top: 0; z-index: 40;
  margin: -22px -6vw 0; padding: 12px 6vw;
  background: color-mix(in srgb, var(--lp-hero-de, #0d1f45) 72%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 180, 255, .12);
}

/* Hero: título más grande, última palabra en degradado */
.lp-hero__fusion { margin-top: 64px; align-items: center; }
.lp-hero__pitch h1 {
  font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06;
  letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 800;
}
.lp-grad {
  background: linear-gradient(92deg,
    color-mix(in srgb, var(--lms-primario) 60%, #fff), var(--lms-primario) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.lp-btn-grande { padding: 12px 22px; font-size: var(--lms-font-size); border-radius: 999px; }

/* Login enmarcado con tarjetas flotantes del producto */
.lp-login__marco { position: relative; }
.lp-flot {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-size: var(--lms-font-size-xs); font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .95); color: #1c2130;
  box-shadow: 0 10px 26px rgba(4, 10, 30, .38);
  animation: lp-flot 6s ease-in-out infinite;
}
.lp-flot svg { color: var(--lms-primario); }
.lp-flot--a { top: -16px; left: -26px; }
.lp-flot--b { bottom: 38px; left: -44px; animation-delay: -2s; }
.lp-flot--c { top: 34%; right: -30px; animation-delay: -4s; }
@keyframes lp-flot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 860px) { .lp-flot { display: none; } }

/* Bento: la sección que enseña el PRODUCTO */
.lp-bento {
  margin-top: 46px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
.lp-bcel {
  grid-column: span 2;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: calc(var(--lms-radio) + 4px); box-shadow: var(--lms-sombra);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  overflow: hidden; position: relative;
  transition: transform .2s var(--lms-ease), box-shadow .2s var(--lms-ease);
}
.lp-bcel:hover { transform: translateY(-3px); box-shadow: var(--lms-sombra-alta); }
.lp-bcel--ancha { grid-column: span 4; flex-direction: row; align-items: center; }
.lp-bcel--ancha .lp-bcel__texto { flex: 1; }
.lp-bcel--ancha .lp-curva { flex: 1.1; min-width: 0; }
.lp-bcel h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.lp-bcel p { margin: 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.55; }
.lp-curva__viva { stroke-dasharray: 620; stroke-dashoffset: 620; animation: lp-traza 2.4s var(--lms-ease) .3s forwards; }
@keyframes lp-traza { to { stroke-dashoffset: 0; } }
.lp-chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.lp-chat__b {
  max-width: 92%; padding: 8px 12px; border-radius: 12px;
  font-size: var(--lms-font-size-xs); line-height: 1.45;
}
.lp-chat__b--yo { align-self: flex-end; background: var(--lms-acento-soft); }
.lp-chat__b--ia { align-self: flex-start; background: var(--lms-surface-2); }
.lp-chat__b--ia svg { color: var(--lms-primario); vertical-align: -2px; }
.lp-vivo {
  margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center;
}
.lp-vivo__tag {
  font-size: var(--lms-font-size-xs); color: var(--lms-texto-suave);
  border: 1px solid var(--lms-borde); border-radius: 999px; padding: 2px 9px; text-align: center;
}
.lp-vivo code { background: var(--lms-surface-2); border-radius: 8px; padding: 6px 10px; font-size: var(--lms-font-size-sm); }
.lp-bcel--oscura { background: linear-gradient(160deg, var(--lp-hero-de, #0d1f45), var(--lp-hero-a, #081226)); border-color: transparent; }
.lp-bcel--oscura h3 { color: #f4f8ff; }
.lp-bcel--oscura p { color: rgba(244, 248, 255, .72); }
.lp-folio {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  color: #a5c8ff; font-size: var(--lms-font-size-sm);
}
.lp-folio code { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 6px 10px; color: #dbe6ff; }
.lp-folio span { color: #4ade80; font-weight: 700; }
@media (max-width: 900px) { .lp-bcel, .lp-bcel--ancha { grid-column: span 6; } .lp-bcel--ancha { flex-direction: column; } }

/* Pasos como línea de tiempo con hilo degradado */
.lp-tl { position: relative; display: grid; gap: 22px; max-width: 720px; margin-top: 8px; }
.lp-tl::before {
  content: ''; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, var(--lms-primario), color-mix(in srgb, var(--lms-primario) 15%, transparent));
}
.lp-tl__paso { display: flex; gap: 18px; align-items: flex-start; position: relative; }
.lp-tl__paso .lp-paso__num { position: static; flex: 0 0 auto; }
.lp-tl__paso h3 { margin: 2px 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.lp-tl__paso h3 svg { color: var(--lms-primario); }
.lp-tl__paso p { margin: 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave); line-height: 1.6; max-width: 60ch; }

/* Catálogo con cover generado por curso */
.lp-curso { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lp-curso__cover {
  height: 92px; display: grid; place-items: center; color: rgba(255, 255, 255, .9);
  background:
    radial-gradient(140px 70px at 80% 0%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, hsl(var(--cv, 220) 70% 46%), hsl(calc(var(--cv, 220) + 40) 70% 34%));
}
.lp-curso__cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.lp-curso__cuerpo p { flex: 1; }
.lp-curso:hover { transform: translateY(-3px); box-shadow: var(--lms-sombra-alta); }

/* Banda de cierre */
.lp-cierre { margin-top: 52px; }
.lp-cierre__panel {
  text-align: center; padding: 40px 24px; border-radius: calc(var(--lms-radio) + 8px);
  color: #f4f8ff;
  background:
    radial-gradient(420px 180px at 50% -30%, color-mix(in srgb, var(--lms-primario) 55%, transparent), transparent 70%),
    linear-gradient(150deg, var(--lp-hero-de, #0d1f45), var(--lp-hero-a, #081226));
}
.lp-cierre__panel h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.015em; }
.lp-cierre__panel p { margin: 0 0 18px; color: rgba(244, 248, 255, .75); }
.lp-cierre__btn { background: #fff; color: #12203f; border-color: #fff; font-weight: 700; }
.lp-cierre__btn:hover { background: #e7edff; }

/* ── Barra superior del shell: módulo + acciones + usuario ── */
.lms-columna { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lms-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 22px;
  background: color-mix(in srgb, var(--lms-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lms-borde);
  position: sticky; top: 0; z-index: 50;
}
.lms-top__modulo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--lms-font-size-sm);
}
.lms-top__modulo svg { color: var(--lms-primario); }
.lms-top__acciones { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lms-top__vista .lms-select { width: auto; padding: 6px 10px; font-size: var(--lms-font-size-xs); border-radius: 999px; }
.lms-user { position: relative; }
.lms-user__chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit;
  transition: border-color .14s var(--lms-ease), box-shadow .14s var(--lms-ease);
}
.lms-user__chip:hover { border-color: var(--lms-primario); box-shadow: var(--lms-sombra); }
.lms-user__foto, .lms-user__inicial {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
}
.lms-user__inicial {
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(140deg, hsl(var(--uh, 220) 65% 52%), hsl(calc(var(--uh, 220) + 45) 65% 40%));
}
.lms-user__datos { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.lms-user__datos strong { font-size: var(--lms-font-size-sm); color: var(--lms-texto); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-user__datos small { font-size: var(--lms-font-size-xs); color: var(--lms-texto-suave); }
.lms-user__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: 12px; box-shadow: var(--lms-sombra-alta); padding: 6px;
  animation: lms-entrada .16s var(--lms-ease) both;
}
.lms-user__item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: var(--lms-texto); text-decoration: none; font-size: var(--lms-font-size-sm);
}
.lms-user__item:hover { background: var(--lms-surface-2); }
.lms-user__item svg { color: var(--lms-texto-suave); }
.lms-vista-banda {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; font-size: var(--lms-font-size-sm);
  background: color-mix(in srgb, var(--lms-primario) 14%, var(--lms-surface));
  border-bottom: 1px solid var(--lms-borde);
}
html.lms-modo-curso .lms-top, html.lms-modo-curso .lms-vista-banda { display: none; }
@media (max-width: 720px) { .lms-user__datos { display: none; } .lms-top { padding: 8px 12px; } }

/* ── Tarjetas de agentes con identidad ── */
.agt-card { margin-bottom: 12px; }
.agt-card__cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.agt-card__marco { position: relative; flex: 0 0 auto; }
.agt-card__foto {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--lms-acento-soft);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--lms-primario) 20%, transparent);
}
.agt-card__foto--vacia {
  display: grid; place-items: center; font-size: 24px; font-weight: 700;
  color: var(--lms-primario); background: var(--lms-acento-soft);
}
.agt-card__subir {
  position: absolute; right: -4px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--lms-borde);
  background: var(--lms-surface); cursor: pointer; font-size: 13px; line-height: 1;
  display: grid; place-items: center;
  transition: transform .14s var(--lms-ease);
}
.agt-card__subir:hover { transform: scale(1.12); }
.agt-card__quien { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.agt-card__quien strong { font-size: 15.5px; }
.agt-card__quien .lms-muted { font-size: var(--lms-font-size-xs); }
.agt-card__switch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: var(--lms-font-size-sm); font-weight: 600;
  border: 1px solid var(--lms-borde); border-radius: 999px; padding: 6px 13px;
}
.agt-card__switch input { accent-color: var(--lms-primario); }
.agt-card__fila { display: flex; gap: 10px; margin-bottom: 12px; }
.agt-panel__cab img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ═══ Portada v4 — ESENCIA editorial: fondo del tema, tipografía gigante,
   el producto al centro. El «hero oscuro con tarjeta de login» murió aquí:
   el login vive en la nav (popover) y en el cierre. ═══ */
.lp4 { background: var(--lms-bg); }
.lp4-solo-claro { display: block; }
.lp4-solo-oscuro { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp4-solo-claro { display: none; }
  :root:not([data-theme="light"]) .lp4-solo-oscuro { display: block; }
}
:root[data-theme="dark"] .lp4-solo-claro { display: none; }
:root[data-theme="dark"] .lp4-solo-oscuro { display: block; }

.lp4-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 6vw;
  background: color-mix(in srgb, var(--lms-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--lms-borde) 60%, transparent);
}
.lp4-nav__logo { height: 30px; display: block; }
.lp4-nav__acciones { display: flex; align-items: center; gap: 8px; }
.lp4-mini {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: var(--lms-font-size-xs); font-weight: 600;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  color: var(--lms-texto-suave); text-decoration: none;
  transition: color .14s var(--lms-ease), border-color .14s var(--lms-ease);
}
.lp4-mini:hover { color: var(--lms-primario); border-color: var(--lms-primario); }
.lp4-entrar { position: relative; }
.lp4-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  width: min(340px, calc(100vw - 24px));
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: 14px; box-shadow: var(--lms-sombra-alta); padding: 18px;
  animation: lms-entrada .18s var(--lms-ease) both;
}

/* Hero editorial: centrado, enorme, sobre el FONDO del tema */
.lp4-hero {
  position: relative; text-align: center;
  max-width: 1100px; margin: 0 auto; padding: 72px 5vw 30px;
}
.lp4-tinta {
  position: absolute; inset: -80px 0 auto; height: 480px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 300px at 30% 10%, color-mix(in srgb, var(--lms-primario) 16%, transparent), transparent 70%),
    radial-gradient(420px 260px at 75% 0%, color-mix(in srgb, var(--lms-primario) 10%, transparent), transparent 70%);
}
.lp4-chip { background: var(--lms-acento-soft); border-color: color-mix(in srgb, var(--lms-primario) 40%, transparent); color: var(--lms-primario); }
.lp4-h1 {
  margin: 22px auto 18px; max-width: 17ch;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800; color: var(--lms-texto);
}
.lp4-marca { position: relative; white-space: nowrap; color: var(--lms-primario); }
.lp4-marca::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; z-index: -1;
  background: color-mix(in srgb, var(--lms-primario) 22%, transparent);
  border-radius: 4px; transform: skewX(-8deg);
}
.lp4-sub {
  margin: 0 auto; max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; color: var(--lms-texto-suave);
}
.lp4-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.lp4-ghost { background: transparent; }
.lp4-caras { justify-content: center; margin-top: 26px; }
.lp4-caras > span { color: var(--lms-texto-suave); }
.lp4-caras .lp-caras__pila img { border-color: var(--lms-bg); }

/* La ventana del producto (maqueta CSS del reproductor) */
.lp4-demo { position: relative; max-width: 860px; margin: 44px auto 0; }
.lp4-flot--a { top: -14px; left: -18px; }
.lp4-flot--b { bottom: -14px; right: -14px; animation-delay: -3s; }
.lp4-ventana {
  border-radius: 16px; overflow: hidden; text-align: left;
  border: 1px solid var(--lms-borde);
  background: var(--lms-surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--lms-primario) 25%, transparent),
              0 24px 70px -18px color-mix(in srgb, var(--lms-primario) 38%, rgba(10, 16, 40, .35));
}
.lp4-ventana__barra {
  display: flex; gap: 6px; padding: 11px 14px;
  background: var(--lms-surface-2); border-bottom: 1px solid var(--lms-borde);
}
.lp4-ventana__barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--lms-borde); }
.lp4-ventana__barra i:first-child { background: #f87171; }
.lp4-ventana__barra i:nth-child(2) { background: #fbbf24; }
.lp4-ventana__barra i:nth-child(3) { background: #34d399; }
.lp4-ventana__cuerpo { display: grid; grid-template-columns: 200px 1fr; min-height: 300px; }
.lp4-mock-indice { border-right: 1px solid var(--lms-borde); padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.lp4-mock-u { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--lms-texto-suave); margin-top: 4px; }
.lp4-mock-lec {
  display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 6px;
  font-size: 11px; color: var(--lms-ok);
}
.lp4-mock-lec i { height: 7px; border-radius: 4px; background: var(--lms-surface-2); display: inline-block; flex: 0 1 auto; }
.lp4-mock-lec.is-activa { background: var(--lms-acento-soft); }
.lp4-mock-lec.is-activa i { background: color-mix(in srgb, var(--lms-primario) 35%, var(--lms-surface-2)); }
.lp4-mock-quiz {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 10.5px; font-weight: 700; color: var(--lms-primario);
  background: var(--lms-acento-soft); border-radius: 999px; padding: 4px 10px;
}
.lp4-mock-leccion { padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; }
.lp4-mock-titulo { height: 13px; width: 46%; border-radius: 6px; background: color-mix(in srgb, var(--lms-texto) 22%, var(--lms-surface-2)); }
.lp4-mock-linea { height: 8px; border-radius: 4px; background: var(--lms-surface-2); }
.lp4-mock-fig {
  margin: 6px 0; padding: 10px; border: 1px solid var(--lms-borde); border-radius: 10px;
  background: color-mix(in srgb, var(--lms-primario) 3%, var(--lms-surface));
}
.lp4-mock-fig svg { display: block; width: 70%; max-width: 300px; margin: 0 auto; }
.lp4-mock-mq {
  margin-top: auto; border: 1px solid var(--lms-borde); border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--lms-texto-suave);
}
.lp4-mock-mq strong { font-size: 11px; color: var(--lms-texto); }
.lp4-mock-op { display: flex; align-items: center; gap: 6px; }
.lp4-mock-op i { height: 7px; border-radius: 4px; background: var(--lms-surface-2); display: inline-block; }
.lp4-mock-op.is-ok { color: var(--lms-ok); font-weight: 700; }
@media (max-width: 700px) {
  .lp4-ventana__cuerpo { grid-template-columns: 1fr; }
  .lp4-mock-indice { display: none; }
}

/* Cifras: una línea tipográfica, no cajitas */
.lp4-cifras {
  display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap;
  margin: 34px 0 0; font-size: var(--lms-font-size-sm); color: var(--lms-texto-suave);
}
.lp4-cifras strong { color: var(--lms-texto); font-size: 17px; letter-spacing: -.01em; }

.lp4-main { padding-top: 56px; }

/* Bento con tintes por celda (se acabó el gris uniforme) */
.lp4 .lp-bcel:nth-child(1) { background: color-mix(in srgb, var(--lms-primario) 6%, var(--lms-surface)); }
.lp4 .lp-bcel:nth-child(2) { background: color-mix(in srgb, #10b981 7%, var(--lms-surface)); }
.lp4 .lp-bcel:nth-child(3) { background: color-mix(in srgb, #f59e0b 8%, var(--lms-surface)); }

/* Cierre: panel oscuro con el formulario DENTRO (la otra mitad de la fusión) */
.lp4-cierre { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; text-align: left; align-items: center; }
.lp4-cierre__form {
  background: var(--lms-surface); border-radius: 14px; padding: 20px;
  box-shadow: var(--lms-sombra-alta); color: var(--lms-texto);
}
.lp4-version { margin-top: 18px !important; font-size: var(--lms-font-size-xs); display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .lp4-cierre { grid-template-columns: 1fr; } }

/* ═══ Portada v5: la ENTRADA de la academia — dos columnas, sin
   autopromoción (lo de «cómo funciona» vive en cursos.php). ═══ */
.lp5-hero { position: relative; max-width: 1100px; margin: 0 auto; padding: 46px 5vw 40px; }
.lp5-cols {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: start;
}
.lp5-h1 { text-align: left; margin: 6px 0 14px; max-width: none; font-size: clamp(32px, 4.4vw, 50px); }
.lp5-sub { margin: 0 0 4px; max-width: 54ch; }
.lp5-cifras { justify-content: flex-start; margin-top: 20px; }
.lp5-caras { justify-content: flex-start; margin-top: 26px; }
.lp5-caras > span { color: var(--lms-texto-suave); }
.lp5-caras .lp-caras__pila img { border-color: var(--lms-bg); }

.lp5-destacados { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.lp5-destacados h2 {
  margin: 0 0 4px; font-size: var(--lms-font-size-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--lms-texto-suave);
}
.lp5-curso {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px; text-decoration: none;
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  transition: border-color .14s var(--lms-ease), transform .14s var(--lms-ease), box-shadow .14s var(--lms-ease);
}
.lp5-curso:hover { border-color: var(--lms-primario); transform: translateX(3px); box-shadow: var(--lms-sombra); }
.lp5-curso__punto {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, hsl(var(--cv, 220) 70% 46%), hsl(calc(var(--cv, 220) + 40) 70% 34%));
}
.lp5-curso__datos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lp5-curso__datos strong { color: var(--lms-texto); font-size: var(--lms-font-size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp5-curso__datos small { color: var(--lms-texto-suave); font-size: var(--lms-font-size-xs); }
.lp5-curso__ir { color: var(--lms-primario); font-weight: 700; }
.lp5-vertodos { align-self: flex-start; margin-top: 4px; border-radius: 999px; }

.lp5-login { position: sticky; top: 76px; }
.lp5-login__card { padding: 24px; box-shadow: var(--lms-sombra-alta); border-radius: 16px; }
@media (max-width: 880px) {
  .lp5-cols { grid-template-columns: 1fr; gap: 28px; }
  .lp5-login { position: static; order: -1; }  /* en móvil, entrar primero */
}
.lp5-main { padding-top: 10px; }

/* Cabecera de cursos.php + chips de categorías */
.lp5-cab { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding: 46px 5vw 8px; }
.lp5-cab__h1 { font-size: clamp(30px, 4vw, 44px); }
.lp5-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.lp5-cat {
  padding: 7px 15px; border-radius: 999px; text-decoration: none;
  font-size: var(--lms-font-size-sm); font-weight: 600;
  color: var(--lms-texto-suave); background: var(--lms-surface); border: 1px solid var(--lms-borde);
  transition: color .14s var(--lms-ease), border-color .14s var(--lms-ease);
}
.lp5-cat:hover { color: var(--lms-primario); border-color: var(--lms-primario); }
.lp5-cat.is-on { background: var(--lms-primario); border-color: var(--lms-primario); color: var(--lms-primario-texto); }

/* ── Tarjetas de curso HORIZONTALES con imagen ── */
.lp-cursos--h { grid-template-columns: 1fr; max-width: 900px; }
.lp-curso--h { flex-direction: row; min-height: 150px; }
.lp-curso--h .lp-curso__img, .lp-curso--h .lp-curso__cover {
  width: min(260px, 34%); height: auto; min-height: 150px; flex: 0 0 auto;
  object-fit: cover;
}
.lp-curso--h .lp-curso__cuerpo { padding: 18px 20px; }
@media (max-width: 640px) {
  .lp-curso--h { flex-direction: column; }
  .lp-curso--h .lp-curso__img, .lp-curso--h .lp-curso__cover { width: 100%; min-height: 120px; }
}
.lp5-curso__mini {
  width: 52px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--lms-borde);
}

/* Mis cursos: tarjeta horizontal con imagen */
.mc-tarjeta--h { display: flex; padding: 0; overflow: hidden; align-items: stretch; }
.mc-tarjeta__img, .mc-tarjeta__cover { width: min(220px, 32%); flex: 0 0 auto; object-fit: cover; min-height: 120px; }
.mc-tarjeta__cover {
  background:
    radial-gradient(120px 60px at 80% 0%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, hsl(var(--cv, 220) 70% 46%), hsl(calc(var(--cv, 220) + 40) 70% 34%));
}
.mc-tarjeta__cuerpo { padding: 16px 18px; flex: 1; min-width: 0; }
.mc-cuadricula { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 560px) {
  .mc-tarjeta--h { flex-direction: column; }
  .mc-tarjeta__img, .mc-tarjeta__cover { width: 100%; height: 110px; }
}

/* ═══ Portada v6 — la esencia del login del SGE: pantalla partida ═══ */
.lp6 { background: var(--lms-bg); }
.lp6-esquina { position: fixed; top: 14px; right: 16px; z-index: 20; display: flex; gap: 8px; }
.lp6-split { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* El panel de arte: los colores de la IDENTIDAD, movimiento lento */
.lp6-arte {
  position: relative; overflow: hidden; display: grid; place-items: center;
  color: #f4f8ff; padding: 40px;
  background:
    radial-gradient(700px 500px at 20% 15%, color-mix(in srgb, var(--lms-primario) 35%, transparent), transparent 65%),
    linear-gradient(155deg, var(--lp-hero-de, #0d1f45), var(--lp-hero-a, #081226));
}
.lp6-arte__malla {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 180, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(560px 560px at 50% 45%, #000, transparent 78%);
}
.lp6-orbe {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
  animation: lp-flota 18s ease-in-out infinite alternate;
}
.lp6-orbe--a { width: 380px; height: 380px; top: -100px; right: -60px; background: color-mix(in srgb, var(--lms-primario) 70%, transparent); }
.lp6-orbe--b { width: 300px; height: 300px; bottom: -90px; left: -70px; background: color-mix(in srgb, var(--lms-primario) 40%, #7c3aed); animation-delay: -8s; }
.lp6-arte__anillo {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, .35);
  box-shadow: inset 0 0 70px rgba(251, 191, 36, .10);
  animation: lp6-gira 26s linear infinite;
}
.lp6-arte__anillo::before {
  content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  top: 8px; left: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #fbbf24 60%, #d97706);
  box-shadow: 0 0 18px 6px rgba(251, 191, 36, .65);
  animation: lp6-late 2.2s ease-in-out infinite;
}
.lp6-arte__anillo--2 {
  width: 420px; height: 420px;
  border-color: rgba(251, 191, 36, .22); border-style: dashed;
  animation: lp6-gira-rev 40s linear infinite;
}
.lp6-arte__anillo--2::before { width: 8px; height: 8px; box-shadow: 0 0 12px 4px rgba(251, 191, 36, .5); }
.lp6-arte__anillo--3 {
  width: 700px; height: 700px;
  border-color: rgba(165, 200, 255, .14);
  animation: lp6-gira 75s linear infinite reverse;
}
.lp6-arte__anillo--3::before {
  background: radial-gradient(circle at 35% 35%, #fff, #60a5fa 60%, #2563eb);
  box-shadow: 0 0 16px 5px rgba(96, 165, 250, .55);
}
@keyframes lp6-gira { to { transform: rotate(360deg); } }
@keyframes lp6-gira-rev { to { transform: rotate(-360deg); } }
@keyframes lp6-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

.lp6-arte__contenido { position: relative; text-align: center; max-width: 400px; }
.lp6-arte__logo { height: 44px; margin: 0 auto 22px; display: block; }
.lp6-arte__glifo { font-size: 40px; margin-bottom: 16px; }
.lp6-arte__titulo { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.lp6-arte__tagline { margin: 0; color: rgba(244, 248, 255, .75); line-height: 1.6; font-size: 15px; }

/* La caja de entrada */
.lp6-caja { display: grid; place-items: center; padding: 48px 6vw; }
.lp6-caja__marco { width: 100%; max-width: 380px; }
.lp6-caja__logo { height: 40px; display: block; margin: 0 0 10px; }
.lp6-caja__sitio { margin: 0 0 26px; color: var(--lms-texto-suave); font-size: var(--lms-font-size-sm); }
.lp6-caja__h { margin: 0 0 16px; font-size: 24px; letter-spacing: -.015em; }
.lp6-caja__cursos { width: 100%; justify-content: center; margin-top: 12px; }
.lp6-caja__legal {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px;
  font-size: var(--lms-font-size-xs);
}
.lp6-caja__legal a { color: var(--lms-texto-suave); text-decoration: none; }
.lp6-caja__legal a:hover { color: var(--lms-primario); }
.lp6 .lms-login__version { text-align: left; justify-content: flex-start; }

.lp6-caras { justify-content: center; display: flex; margin-top: 22px; }
.lp6-caras img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(251, 191, 36, .55); margin-left: -12px;
  box-shadow: 0 6px 18px rgba(4, 10, 30, .45);
  transition: transform .18s var(--lms-ease);
}
.lp6-caras img:first-child { margin-left: 0; }
.lp6-caras img:hover { transform: translateY(-5px) scale(1.12); z-index: 2; position: relative; }

@media (max-width: 860px) {
  .lp6-split { grid-template-columns: 1fr; }
  .lp6-arte { min-height: 230px; padding: 28px; }
  .lp6-arte__anillo, .lp6-arte__anillo--2, .lp6-arte__anillo--3 { display: none; }
  .lp6-caja { padding: 30px 6vw 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp6-orbe, .lp6-arte__anillo, .lp6-arte__anillo--2, .lp6-arte__anillo--3,
  .lp6-arte__anillo::before { animation: none; }
}

/* ── Modo ESCENA del arte: la foto del escenario educativo, ESTÁTICA, con
   velo de la identidad para que el logo y el título respiren. La foto se
   GRADÚA con el tema: cálida de día, azul y honda de noche — así el switch
   también se nota en la imagen, no solo en los paneles. ── */
.lp6-arte--escena { background: var(--lp-hero-a, #081226); }
.lp6-escena {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.06) contrast(1.02);
}
:root[data-theme="dark"] .lp6-escena {
  filter: brightness(.72) saturate(.8) contrast(1.1) hue-rotate(-10deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp6-escena {
    filter: brightness(.72) saturate(.8) contrast(1.1) hue-rotate(-10deg);
  }
}
.lp6-escena__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--lp-hero-de, #0d1f45) 55%, transparent) 0%,
      transparent 38%,
      color-mix(in srgb, var(--lp-hero-a, #081226) 88%, transparent) 100%);
}
.lp6-arte--escena .lp6-arte__contenido {
  align-self: end; margin-bottom: 8vh;
  text-shadow: 0 2px 18px rgba(4, 10, 30, .75);
}

/* CTA dorado a los cursos: el botón que sí brilla sobre la foto */
.lp6-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: var(--lms-font-size); text-decoration: none;
  color: #241a03;
  background: linear-gradient(160deg, #fde68a, #fbbf24 55%, #f59e0b);
  box-shadow: 0 8px 26px rgba(251, 191, 36, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .16s var(--lms-ease), box-shadow .2s var(--lms-ease);
}
.lp6-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 34px rgba(251, 191, 36, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.lp6-cta svg { color: #241a03; }

@media (max-width: 860px) {
  .lp6-arte--escena { min-height: 300px; }
  .lp6-arte--escena .lp6-arte__contenido { margin-bottom: 3vh; }
}

/* ── El cambio de tema entra con un REVELADO CIRCULAR (lms-tema.js): el tema
   nuevo se derrama desde el botón. Acotado a html.lms-tema-vt para NO pisar
   el crossfade de otros usos de startViewTransition (mis_cursos). ── */
html.lms-tema-vt::view-transition-old(root),
html.lms-tema-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.lms-tema-vt::view-transition-old(root) { z-index: 1; }
html.lms-tema-vt::view-transition-new(root) { z-index: 2; }

/* ── Ancla a la miniweb: chevron discreto al pie de la pantalla partida ── */
.lp6-baja {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; z-index: 5;
  color: var(--lms-texto-suave); text-decoration: none; font-size: 15px;
  border: 1px solid var(--lms-borde); background: var(--lms-surface);
  box-shadow: 0 4px 14px rgba(4, 10, 30, .12);
  transition: color .15s, border-color .15s, transform .18s var(--lms-ease);
}
.lp6-baja:hover {
  color: var(--lms-primario); border-color: var(--lms-primario);
  transform: translateX(-50%) translateY(3px);
}

/* ── La miniweb bajo el login: qué es la academia y para qué existe ── */
.lp6-mini { border-top: 1px solid var(--lms-borde); background: var(--lms-bg); }
.lp6-mini__marco { max-width: 980px; margin: 0 auto; padding: 76px 6vw 60px; text-align: center; }
.lp6-mini__kicker {
  margin: 0 0 10px; font-size: var(--lms-font-size-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--lms-primario);
}
.lp6-mini__titulo { margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.lp6-mini__intro { margin: 0 auto 42px; max-width: 660px; color: var(--lms-texto-suave); line-height: 1.7; }
.lp6-mini__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.lp6-mini__card {
  background: var(--lms-surface); border: 1px solid var(--lms-borde);
  border-radius: var(--lms-radio); padding: 22px;
  transition: transform .18s var(--lms-ease), box-shadow .2s var(--lms-ease);
}
.lp6-mini__card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(4, 10, 30, .10); }
.lp6-mini__ico {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; margin-bottom: 12px;
  color: var(--lms-primario); background: var(--lms-acento-soft);
}
.lp6-mini__card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.lp6-mini__card p { margin: 0; color: var(--lms-texto-suave); line-height: 1.6; font-size: var(--lms-font-size-sm); }
.lp6-mini__cta { margin-top: 40px; }
.lp6-mini__pie {
  border-top: 1px solid var(--lms-borde); padding: 18px 6vw;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  color: var(--lms-texto-suave); font-size: var(--lms-font-size-xs);
}
.lp6-mini__pie a { color: var(--lms-texto-suave); text-decoration: none; }
.lp6-mini__pie a:hover { color: var(--lms-primario); }
@media (max-width: 860px) {
  .lp6-mini__grid { grid-template-columns: 1fr; }
  .lp6-mini__marco { padding: 52px 6vw 44px; }
}
