/* =========================================================
   Explora Saber — estilos base
   Paleta formal y sobria (estilo plataforma educativa
   profesional), mobile-first, sin dependencias externas
   ========================================================= */
:root {
  --violet: #1d4ed8;
  --violet-dark: #13327f;
  --pink: #9d174d;
  --orange: #b45309;
  --yellow: #d97706;
  --green: #15803d;
  --green-dark: #0f5c2c;
  --blue: #2563eb;
  --red: #b91c1c;
  --ink: #1f2430;
  --ink-soft: #5b6472;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eef1f5;
  --border: #dde1e6;
  --violet-soft: #e7edfd;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  /* Todo el software usa rem, así que este único valor agranda toda la
     letra (títulos, botones, y las preguntas) de forma proporcional. */
  font-size: 16px;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(29,78,216,0.05) 0, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(15,23,42,0.03) 0, transparent 40%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
p { line-height: 1.55; }
button { font-family: inherit; }
img, svg { max-width: 100%; display: block; }
.app-main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 16px; }
/* ---------- Header ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: linear-gradient(120deg, var(--violet), var(--violet-dark));
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header__brand { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 1.15rem; }
.app-header__logo { font-size: 1.5rem; }
.conn-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: #fff;
}
.conn-badge__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.conn-badge--on .conn-badge__dot { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.conn-badge--off { background: rgba(248,113,113,.22); }
.conn-badge--off .conn-badge__dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.conn-badge--off:hover { background: rgba(248,113,113,.32); }
.conn-badge--on:hover { background: rgba(255,255,255,.22); }
.app-header__profile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-profile__avatar { font-size: 1.6rem; background: rgba(255,255,255,.18); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.header-profile__info { display: flex; flex-direction: column; line-height: 1.15; }
.header-profile__name { font-weight: 700; font-size: .92rem; }
.header-profile__level { font-size: .78rem; opacity: .9; }
.header-profile__streak { background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; font-size: .82rem; font-weight: 700; }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  box-shadow: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--ghost { background: rgba(255,255,255,.15); color: #fff; }
.btn--outline { background: #fff; color: var(--violet); border: 2px solid var(--violet); box-shadow: none; }
.btn--green { background: var(--green); }
.btn--green:hover { background: var(--green-dark); }
.btn--pink { background: var(--pink); }
.btn--pink:hover { background: #7d1240; }
.btn--wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
/* ---------- Generic layout helpers ---------- */
.screen { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
/* ---------- Íconos propios (js/icons.js) ---------- */
.icon { width: 1.3em; height: 1.3em; display: inline-block; vertical-align: -0.22em; flex-shrink: 0; }
.icon--medal { width: 56px; height: 56px; }
.screen-title { text-align: center; margin-bottom: 4px; }
.title-icon { display: inline-flex; color: var(--violet); }
.title-icon .icon { width: 1em; height: 1em; }
.screen-subtitle { text-align: center; color: var(--ink-soft); margin-bottom: 24px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; font-size: .9rem; color: var(--ink-soft); }
.breadcrumb button { background: none; border: none; color: var(--violet); font-weight: 700; cursor: pointer; padding: 2px 4px; font-size: .9rem; }
/* ---------- Hero (pantalla principal) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--violet), var(--violet-dark) 70%);
  padding: 40px 20px 34px;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}
/* Elementos decorativos flotantes desactivados a propósito: la app usa un
   estilo formal/sobrio, sin animaciones lúdicas de fondo. */
.hero__decor { display: none; }
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.hero__title { font-size: 1.9rem; margin-bottom: 6px; }
.hero__tagline { font-size: 1.02rem; opacity: .92; margin-bottom: 4px; }
.hero__mascot-bubble {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: 18px;
  text-align: left;
  font-size: .95rem;
  line-height: 1.4;
}
.hero__mascot-emoji { font-size: 2rem; flex-shrink: 0; }
/* ---------- Hero de sección (Panel de padres / Administrador) ----------
   Mismo lenguaje visual que el hero de inicio (degradado + medallón +
   burbuja informativa), pero con su propia paleta para que cada panel se
   distinga de un vistazo: verde para padres, grafito/ámbar para
   administrador. El ícono grande de fondo es estático a propósito (sin
   animación), solo para dar textura — sigue el mismo criterio sobrio que
   el resto de la app. */
.hero--padres { background: linear-gradient(155deg, var(--green), var(--green-dark) 75%); }
.hero--admin { background: linear-gradient(155deg, #3a4658, #10151f 78%); }
.hero__watermark {
  position: absolute; top: -18px; right: -14px; z-index: 1;
  width: 170px; height: 170px; opacity: .14; transform: rotate(-8deg);
}
.hero__watermark .icon { width: 100%; height: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 12px;
}
.hero__badge .icon { width: 28px; height: 28px; }
.hero__stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.hero__stat {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-sm); padding: 8px 14px; font-size: .85rem; font-weight: 700;
}
.hero__stat strong { font-size: 1rem; margin-right: 4px; }
/* ---------- Profile selection ---------- */
@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(14px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.avatar-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.avatar-picker__opt {
  font-size: 1.8rem;
  background: var(--surface-soft);
  border: 3px solid transparent;
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.avatar-picker__opt.selected { border-color: var(--violet); background: #fff; }
/* ---------- Gestión de perfiles (panel de administrador) ---------- */
/* ---------- Estadísticas y contenido (panel de administrador) ---------- */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.admin-stat {
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; text-align: center;
}
.admin-stat strong { display: block; font-size: 1.4rem; color: var(--violet); }
.admin-stat span { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.admin-content-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-content-table th, .admin-content-table td { padding: 8px 10px; text-align: center; border: 1px solid var(--border); }
.admin-content-table th { background: var(--surface-soft); font-weight: 700; }
.admin-content-table td:first-child, .admin-content-table th:first-child { text-align: left; font-weight: 600; }
/* ---------- Seguridad (panel de administrador) ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--violet); }
/* ---------- Explicador de puntaje (inicio) ---------- */
.score-explainer { margin-top: 26px; }
.score-steps { display: grid; gap: 14px; margin: 18px 0 26px; }
.score-step { display: flex; gap: 14px; align-items: flex-start; }
.score-step__num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.score-step p { margin: 4px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.score-step__list { margin: 8px 0; padding-left: 20px; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.score-step__list li { margin-bottom: 2px; }
.score-calc__title { margin: 24px 0 4px; font-size: 1.1rem; }
.score-calc__intro { margin: 0 0 14px; }
.score-calc { background: var(--surface-soft); border-radius: var(--radius); padding: 18px; margin-top: 10px; }
.score-calc__sliders { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.score-calc__row { background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; }
.score-calc__row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.score-calc__row-label { font-weight: 700; font-size: .92rem; }
.score-calc__row-total { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.score-calc__row-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.score-calc__row input[type="range"] { flex: 1; min-width: 100px; accent-color: var(--violet); }
.score-calc__row-count { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.score-calc__number {
  width: 56px; padding: 6px 8px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  font-size: .9rem; font-weight: 800; text-align: center; color: var(--ink);
}
.score-calc__number:focus { outline: none; border-color: var(--violet); }
.score-calc__row-val { display: block; margin-top: 8px; font-size: .82rem; font-weight: 800; color: var(--violet-dark); }
.score-calc__breakdown { background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; border: 1px dashed var(--border); }
.score-calc__line {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  padding: 6px 0; font-size: .88rem; border-bottom: 1px solid var(--surface-soft);
}
.score-calc__line span:last-child { font-weight: 700; text-align: right; min-width: 55px; }
.score-calc__line--sub { color: var(--ink-soft); font-style: italic; }
.score-calc__result {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--violet);
  font-size: 1.05rem; font-weight: 800;
}
.score-calc__result strong { font-size: 1.8rem; color: var(--violet-dark); }
/* ---------- Maps (grados / materias) ---------- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 18px; }
.map-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--tile-accent, var(--violet));
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}
.map-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tile-accent, var(--violet)); }
.map-tile__icon {
  margin: 0 auto 8px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tile-accent-soft, var(--surface-soft));
  color: var(--tile-accent, var(--violet));
}
.map-tile__icon .icon { width: 26px; height: 26px; }
.map-tile__label { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.map-tile__sub { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.map-tile__badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--tile-accent, var(--violet)); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 3px 8px;
}
.map-tile__actions { display: flex; gap: 6px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.map-tile__mini {
  background: var(--surface-soft); border: 1px solid var(--border); color: var(--ink-soft);
  font-weight: 700; font-size: .68rem; padding: 5px 9px; border-radius: 999px; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.map-tile__mini:hover { background: var(--tile-accent, var(--violet)); color: #fff; border-color: var(--tile-accent, var(--violet)); }
.tile-1 { --tile-accent: #1d4ed8; --tile-accent-soft: #e7edfd; }
.tile-2 { --tile-accent: #9d174d; --tile-accent-soft: #fbe9ef; }
.tile-3 { --tile-accent: #b45309; --tile-accent-soft: #fdf2e2; }
.tile-4 { --tile-accent: #15803d; --tile-accent-soft: #e7f5ec; }
.tile-5 { --tile-accent: #0e7490; --tile-accent-soft: #e5f4f6; }
.tile-6 { --tile-accent: #4338ca; --tile-accent-soft: #ececfc; }
/* ---------- Asignatura (ficha de materia, distinta de la sala de estudio) ---------- */
.subject-status { margin-bottom: 24px; }
.subject-status__title { margin: 0 0 10px; }
.subject-status__row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.subject-status__item { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.subject-study-hint { text-align: center; color: var(--ink-soft); font-size: .88rem; margin: 14px 0 0; }
.subject-study-hint a { color: var(--violet); font-weight: 700; text-decoration: underline; cursor: pointer; }
.subject-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; margin-top: 10px; }
.subject-action-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.subject-action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.subject-action-card__icon { font-size: 2.2rem; margin-bottom: 8px; }
.subject-action-card h3 { margin: 0 0 8px; }
.subject-action-card p { color: var(--ink-soft); font-size: .85rem; margin: 0 0 16px; min-height: 3.2em; }
.subject-action-card .btn { pointer-events: none; }
/* ---------- Dashboard (Mapa de grados / pantalla de inicio) ---------- */
.dash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--violet), var(--violet-dark) 75%);
  color: #fff; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.dash-hero__eyebrow { margin: 0 0 4px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.dash-hero__text h1 { margin: 0 0 8px; font-size: 1.9rem; }
.dash-hero__sub { margin: 0; max-width: 520px; opacity: .92; line-height: 1.55; }
.dash-hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
/* Variantes de madurez por grado (ver toneBucket() en app.js): 6°-7° más
   vivo y juguetón, 8°-9° el balance de siempre (sin cambios), 10°-11° más
   serio y sobrio, a tono con "modo examen" en vez de "modo juego". */
.dash-hero--junior { background: linear-gradient(120deg, #f97316, #db2777 85%); }
.dash-hero--senior { background: linear-gradient(155deg, #3a4658, #10151f 80%); }
/* ---------- Tarjeta de nivel (inicio del estudiante) ----------
   Reemplaza la vieja barra de progreso plana: un anillo de XP como los
   medallones del resto de la app, la racha de los últimos 7 días como
   una tira de llamas, y la próxima insignia por desbloquear como una
   meta concreta — mismo material (XP, racha, insignias) que ya le
   gustaba ver al estudiante, compuesto con más personalidad. */
/* ---------- Meta diaria (estilo Duolingo, en XP) ---------- */
.real-hero { padding: 32px 24px; }
.real-info__list { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.real-info__list li { line-height: 1.5; color: var(--ink-soft); }
.real-info__materias { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.real-info__materias li { line-height: 1.5; }
.real-results .results-breakdown__item { text-align: left; }
/* ---------- Cronograma de estudio (camino de 200 días) ---------- */
.crono-today {
  background: linear-gradient(115deg, var(--violet), var(--violet-dark) 65%);
  color: #fff;
}
.crono-today__badge {
  display: inline-block; background: rgba(255,255,255,.18); font-weight: 800; font-size: .78rem;
  letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.crono-today__badge--done { background: rgba(255,255,255,.28); }
.crono-today__main { display: flex; align-items: center; gap: 16px; }
.crono-today__icon { font-size: 2.2rem; flex-shrink: 0; }
.crono-today__main h3 { margin: 0 0 4px; font-size: 1.25rem; }
.crono-today__main p { margin: 0; opacity: .92; font-size: .92rem; line-height: 1.5; }
.crono-today__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.crono-today__actions .btn--outline { background: rgba(255,255,255,.92); }
.crono-progress { margin: 16px 0 26px; }
.crono-progress__bar { background: var(--surface-soft); border-radius: 999px; height: 12px; overflow: hidden; }
.crono-progress__fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--violet));
  transition: width .4s ease;
}
.crono-progress__label { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-soft); font-weight: 700; text-align: center; }
.crono-path { margin-bottom: 10px; }
.crono-ronda-header {
  display: flex; align-items: center; gap: 12px; margin: 28px 0 12px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-soft);
}
.crono-ronda-header__icon { font-size: 1.7rem; flex-shrink: 0; }
.crono-ronda-header h3 { margin: 0; font-size: 1.02rem; color: var(--violet-dark); }
.crono-ronda-header p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); }
.crono-weeks { display: flex; flex-direction: column; gap: 8px; }
.crono-week { display: flex; align-items: center; gap: 12px; }
.crono-week__label { width: 74px; flex-shrink: 0; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
.crono-week__days { display: flex; gap: 8px; flex-wrap: wrap; }
.crono-day {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; flex-shrink: 0; transition: transform .12s ease;
  border: 2px solid transparent;
}
.crono-day:hover { transform: scale(1.12); }
.crono-day--done { background: linear-gradient(150deg, var(--green), var(--green-dark)); color: #fff; }
.crono-day--current {
  background: var(--violet); color: #fff;
  border-color: #fff; box-shadow: 0 0 0 3px var(--violet);
  animation: pulse 1.6s ease-in-out infinite;
}
.crono-day--locked { background: var(--surface-soft); color: var(--ink-soft); opacity: .65; cursor: not-allowed; }
.crono-day--locked:hover { transform: none; }
.crono-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.crono-shortcut {
  background: var(--surface-soft); color: var(--ink); font-weight: 700; font-size: .85rem;
  padding: 9px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border);
  transition: transform .12s ease, background .12s ease;
}
.crono-shortcut strong { color: var(--violet-dark); margin-left: 4px; }
.crono-shortcut:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.crono-shortcut:hover strong { color: #fff; }
/* ---------- Sala de estudio ---------- */
.quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quick-nav a {
  background: var(--surface-soft); color: var(--violet-dark); font-weight: 700; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--border);
  transition: transform .12s ease, background .12s ease;
}
.quick-nav a:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.icfes-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: .92rem;
}
.icfes-callout p { margin: 0 0 8px; font-style: italic; color: var(--ink); }
.icfes-callout__badge {
  flex-shrink: 0;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
}
.icfes-callout__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: .82rem; }
.example { margin-top: 12px; background: var(--surface-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; }
.example::before { content: "💡 "; }
/* ---------- Profesor virtual (sala de estudio guiada) ---------- */
.tutor { margin-bottom: 8px; }
.tutor-voice-toggle {
  margin-left: auto; background: var(--surface-soft); border: 1px solid var(--border); color: var(--violet-dark);
  font-weight: 700; font-size: .76rem; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: background .12s ease;
}
.tutor-voice-toggle:hover { background: #ece8ff; }
@keyframes tutorTyping { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.tutor-check-context-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 4px; }
.tutor-check-context {
  background: var(--surface-soft); border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px;
  font-size: .92rem; line-height: 1.6; margin-bottom: 12px; white-space: pre-line;
  font-family: Georgia, "Times New Roman", serif;
}
.tutor-check-feedback { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); }
.tutor-check-feedback.ok { background: #e4fbee; color: var(--green-dark); }
.tutor-check-feedback.no { background: #fff4e0; color: #a15c00; }
.tutor-check-feedback p { margin: 4px 0 0; font-weight: 400; color: var(--ink-soft); }
/* ---------- Badge de nivel (distingue chequeo de estudio vs. práctica/simulacro) ---------- */
.nivel-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  padding: 4px 11px; border-radius: 999px; margin: 4px 0 0;
}
.nivel-badge--comprension { background: #ffe1ec; color: #c23768; }
.nivel-badge--aplicacion { background: #e0f0ff; color: #1a6fb8; }
/* ---------- Sala de estudio: página de lección tipo LMS (Moodle/Khan) ----------
   A propósito NO se parece a la práctica/simulacro (quiz-engine.js): aquí todo
   el contenido se lee de corrido por secciones, con tono más "editorial"
   (menos redondeado, tipografía de lectura), y la verificación de cada
   sección es "elige y comprueba" en vez de clic-inmediato. */
.lesson { max-width: 760px; margin: 0 auto; }
.lesson-header {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; color: #fff;
}
.lesson-header__mascot {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.lesson-header__eyebrow { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .85; margin: 0 0 4px; }
.lesson-header__greeting { margin: 0; line-height: 1.5; }
.lesson-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 14px;
}
.lesson-toolbar__timer { font-size: .78rem; color: var(--ink-soft); font-weight: 700; margin-right: auto; }
.lesson-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
  padding: 12px; background: var(--surface-soft); border-radius: var(--radius-sm);
}
.lesson-toc__item {
  font-size: .78rem; font-weight: 700; color: var(--violet-dark); background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; text-decoration: none;
}
.lesson-toc__item:hover { border-color: var(--violet); }
.lesson-progress-bar { background: var(--surface-soft); border-radius: 999px; height: 8px; overflow: hidden; }
.lesson-progress-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width .3s ease; }
.lesson-progress-label { font-size: .78rem; color: var(--ink-soft); font-weight: 700; margin: 6px 0 22px; }
.lesson-body { display: flex; flex-direction: column; gap: 22px; }
.lesson-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; scroll-margin-top: 90px;
}
.lesson-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lesson-section__badge {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.lesson-section__title { margin: 0; flex: 1; font-family: Georgia, "Times New Roman", serif; }
.lesson-listen {
  flex-shrink: 0; background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: .95rem;
}
.lesson-listen:hover { background: #ece8ff; }
.lesson-section__body {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.7; color: var(--ink);
  margin: 0 0 14px;
}
.lesson-example {
  background: #fff8ec; border: 1px dashed var(--orange); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 4px;
}
.lesson-example__label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #b5741a; margin: 0 0 4px; }
.lesson-example p { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.lesson-section--aplicacion {
  background: linear-gradient(100deg, #eaf6ff, var(--surface) 55%); border-color: #bfe1ff;
}
.lesson-section__eyebrow { font-size: .8rem; font-weight: 800; color: #1a6fb8; margin: 0 0 8px; }
.lesson-check { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.lesson-check__heading { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; margin: 0 0 14px; }
.lesson-check__item {
  background: var(--surface-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px;
}
.lesson-check__item:last-child { margin-bottom: 0; }
.lesson-check__number { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); margin: 0 0 8px; }
.lesson-check__question { font-weight: 700; margin: 0 0 12px; }
.lesson-check__options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lesson-check__option {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; transition: border-color .12s ease;
}
.lesson-check__option:hover { border-color: var(--violet); }
.lesson-check__option input[type="radio"] { accent-color: var(--violet); width: 16px; height: 16px; flex-shrink: 0; }
.lesson-check__letter {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft);
  color: var(--violet-dark); font-weight: 800; font-size: .74rem; display: flex; align-items: center; justify-content: center;
}
.lesson-check__opt-text { flex: 1; }
.lesson-check__option.correct { border-color: var(--green); background: #e4fbee; }
.lesson-check__option.correct .lesson-check__letter { background: var(--green); color: #fff; }
.lesson-check__option.incorrect { border-color: var(--red); background: #ffe4e4; }
.lesson-check__option.incorrect .lesson-check__letter { background: var(--red); color: #fff; }
.lesson-check__submit:disabled { opacity: .45; cursor: not-allowed; }
/* ---------- Práctica guiada (problema + solución revelable) ---------- */
.lesson-guided {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #f2effc; border: 1px dashed var(--violet);
}
.lesson-guided__heading { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; margin: 0 0 10px; }
.lesson-guided__enunciado { font-weight: 700; margin: 0 0 12px; line-height: 1.5; }
.lesson-guided__hints-btn { margin-right: 8px; margin-bottom: 10px; }
.lesson-guided__hints {
  margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); font-size: .92rem; line-height: 1.6;
}
.lesson-guided__solution {
  margin: 14px 0 0; padding: 14px 16px 14px 34px; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--border); line-height: 1.7;
}
.lesson-guided__solution li { margin-bottom: 4px; }
.lesson-guided__solution li:last-child { margin-bottom: 0; font-weight: 700; }
/* ---------- Reflexión escrita (autoevaluación, no se corrige) ---------- */
.lesson-reflexion {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #eaf6ff; border: 1px dashed #7fb8e6;
}
.lesson-reflexion__heading { margin: 0 0 8px; }
.lesson-reflexion__prompt { font-weight: 700; margin: 0 0 12px; line-height: 1.5; }
.lesson-reflexion__input {
  width: 100%; resize: vertical; font-family: inherit; font-size: .95rem; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 2px solid var(--border); margin-bottom: 10px;
}
.lesson-reflexion__input:focus { outline: none; border-color: var(--violet); }
.lesson-reflexion__input:disabled { background: var(--surface-soft); color: var(--ink-soft); }
.lesson-reflexion__saved { color: var(--green-dark); font-weight: 700; margin: 10px 0 0; }
/* ---------- Repaso rápido de cierre (verdadero/falso) ---------- */
.lesson-repaso__list { display: flex; flex-direction: column; gap: 12px; }
.repaso-item { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.repaso-item__text { font-weight: 700; margin: 0 0 10px; }
.repaso-item__btns { display: flex; gap: 10px; }
.repaso-item__btns button.correct { border-color: var(--green); background: #e4fbee; color: var(--green-dark); }
.repaso-item__btns button.incorrect { border-color: var(--red); background: #ffe4e4; color: var(--red); }
.repaso-item__fb { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); line-height: 1.5; }
.repaso-item__fb.ok { background: #e4fbee; color: var(--green-dark); }
.repaso-item__fb.no { background: #ffe4e4; color: var(--red); }
.lesson-footer {
  text-align: center; background: var(--surface-soft);
  border: 1px solid var(--border);
}
.lesson-footer__title { font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; }
.lesson-footer__score { color: var(--ink-soft); font-weight: 700; margin: 0 0 14px; min-height: 1.2em; }
.lesson-footer__hint { color: var(--ink-soft); font-size: .82rem; margin: 10px 0 0; }
@media (max-width: 640px) {
  .lesson-header { flex-direction: column; align-items: flex-start; }

}
.section-heading { display: flex; align-items: center; gap: 8px; margin: 28px 0 14px; scroll-margin-top: 90px; }
.section-heading .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.btn--outline.correct { background: var(--green); border-color: var(--green); color: #fff; }
.btn--outline.incorrect { background: var(--red); border-color: var(--red); color: #fff; }
/* ---------- Quiz / simulacro ---------- */
.quiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.quiz-progress__bar { flex: 1; height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.quiz-progress__fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width .3s ease; }
.quiz-progress__label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.quiz-timer { font-weight: 800; background: var(--surface-soft); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.quiz-timer.warning { background: #fff1d6; color: #b8790a; }
.quiz-timer.danger { background: #ffe0e0; color: #c0392b; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.05);} }
.question-context { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; font-size: .95rem; white-space: pre-line; }
.question-text { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  text-align: left; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: #fff; cursor: pointer; font-size: .98rem;
  display: flex; gap: 10px; align-items: flex-start; transition: all .12s ease;
}
.option-btn:hover:not(:disabled) { border-color: var(--violet); background: var(--surface-soft); }
.option-btn__letter { font-weight: 800; color: var(--violet); }
.option-btn.correct { border-color: var(--green); background: #e4fbee; }
.option-btn.incorrect { border-color: var(--red); background: #ffe4e4; }
/* En modo Simulacro no se revela si acertó o no (eso solo se ve al
   entregar), pero SÍ hay que mostrar cuál opción quedó marcada — sin esto
   el estudiante tocaba una respuesta y no veía ningún cambio en pantalla
   durante los 250ms antes de pasar a la siguiente pregunta. */
.option-btn.selected-answer { border-color: var(--violet); background: var(--violet-soft); }
.option-btn:disabled { cursor: default; }
.feedback-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.feedback-box.ok { background: #e4fbee; border: 2px solid var(--green); }
.feedback-box.no { background: #ffe4e4; border: 2px solid var(--red); }
.results-summary { text-align: center; }
.results-summary__score { font-size: 3rem; font-weight: 900; color: var(--violet); }
.results-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; margin: 20px 0; }
.results-breakdown__item { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.results-breakdown__item b { display: block; font-size: 1.3rem; color: var(--violet-dark); }
/* ---------- Simulacro real: hoja de respuestas + cuadernillo ---------- */
.real-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 74px; z-index: 20; background: var(--bg); padding: 8px 0; }
.real-head__label { font-weight: 700; color: var(--ink-soft); }
.answer-sheet { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; max-height: 320px; overflow-y: auto; }
.answer-sheet__title { margin: 0 0 10px; }
.answer-sheet__grid { display: flex; flex-direction: column; gap: 6px; }
.answer-sheet__row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.answer-sheet__row--active { background: var(--surface-soft); }
.answer-sheet__num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-weight: 800; font-size: .82rem; cursor: pointer; color: var(--ink-soft);
}
.answer-sheet__row--active .answer-sheet__num { background: var(--violet); color: #fff; border-color: var(--violet); }
.answer-sheet__oval {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink-soft);
  background: #fff; font-size: .74rem; font-weight: 800; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.answer-sheet__oval.filled { background: var(--violet); border-color: var(--violet); color: #fff; }
.oval-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.oval-option {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 12px 16px; border-radius: 999px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-size: .98rem;
  transition: all .12s ease;
}
.oval-option:hover { border-color: var(--violet); background: var(--surface-soft); }
.oval-option__bubble {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink-soft);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-soft);
}
.oval-option.selected { border-color: var(--violet); background: #ece8ff; }
.oval-option.selected .oval-option__bubble { background: var(--violet); border-color: var(--violet); color: #fff; }
.booklet__nav { margin-top: 18px; justify-content: space-between; }
/* ---------- Badges / XP ---------- */
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 700;
  animation: toastIn .3s ease, toastOut .3s ease 2.4s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px);} }
.toast-container { position: fixed; top: 80px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast-icon { display: inline-flex; vertical-align: -6px; margin-right: 6px; }
.toast-icon .icon { width: 20px; height: 20px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); gap: 12px; }
.badge-chip { text-align: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 6px; font-size: .75rem; font-weight: 700; }
.badge-chip__icon {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet-soft); color: var(--violet);
}
.badge-chip__icon .icon { width: 22px; height: 22px; }
.badge-chip.locked { opacity: .35; filter: grayscale(1); }
/* ---------- Parent dashboard ---------- */
.dash-child-card { border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); background: var(--surface); }
.dash-child-card__alert {
  background: #fdf2e2; border: 1px solid var(--orange); color: #8a4c07;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; font-weight: 700;
  margin-bottom: 14px;
}
/* ---------- Resumen de varios hijos (panel de padres) ---------- */
/* ---------- Tendencia de puntaje (panel de padres) ---------- */
.dash-trend { margin: 10px 0 4px; }
.dash-trend__svg { width: 100%; max-width: 340px; height: auto; }
.dash-trend__label { font-size: .8rem; margin-top: 4px; }
.dash-trend__diff.ok { color: var(--green-dark); font-weight: 700; }
.dash-trend__diff.no { color: var(--red); font-weight: 700; }
.dash-simulacro-row { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.dash-simulacro-row__head { display: flex; justify-content: space-between; font-size: .88rem; }
/* ---------- Chat (mensajes entre estudiante, padres y administrador) ---------- */
.chat-card { max-width: 640px; margin: 0 auto; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat__list { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; padding: 4px 2px; }
.chat__empty { text-align: center; padding: 24px 0; }
.chat__row { display: flex; }
.chat__row--mine { justify-content: flex-end; }
.chat__bubble {
  max-width: 78%; border-radius: var(--radius-sm); padding: 10px 14px 8px;
  background: var(--surface-soft); border: 1px solid var(--border);
}
.chat__row--mine .chat__bubble { background: var(--violet); border-color: var(--violet); color: #fff; }
.chat__bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.chat__bubble-sender { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.chat__row--mine .chat__bubble-sender { color: rgba(255,255,255,.85); }
.chat__tag { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chat__tag--novedad { background: var(--violet-soft); color: var(--violet); }
.chat__tag--motivacion { background: #fbe9ef; color: var(--pink); }
.chat__row--mine .chat__tag { background: rgba(255,255,255,.25); color: #fff; }
.chat__bubble-text { font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat__bubble-time { font-size: .66rem; opacity: .65; margin-top: 4px; text-align: right; }
.chat__composer { display: flex; gap: 8px; align-items: flex-end; }
.chat__composer textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; font-size: .92rem;
  padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--border); font-family: inherit;
}
.chat__composer textarea:focus { outline: none; border-color: var(--violet); }
/* Botón + insignia de mensajes en el encabezado */
.header-messages-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; margin-left: 2px;
}
/* Toggle de chat en el panel de padres */
.dash-chat-toggle-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; margin-left: 2px;
}
/* Chat por perfil en el panel de administrador */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-row__label { width: 130px; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.bar-row__track { flex: 1; height: 14px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.bar-row__val { width: 40px; text-align: right; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.real-sim-card { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0; }
.real-sim-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.real-sim-card__score { font-size: 1.6rem; font-weight: 900; color: var(--violet-dark); }
.real-sim-card__bars { display: flex; flex-direction: column; gap: 6px; }
/* ---------- Footer ---------- */
.app-footer { text-align: center; padding: 18px; color: var(--ink-soft); font-size: .82rem; }
.app-footer__links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-admin-link { display: inline-block; margin-top: 6px; color: var(--ink-soft); opacity: .6; font-size: .78rem; text-decoration: none; }
.footer-admin-link:hover { opacity: 1; color: var(--violet); text-decoration: underline; }
/* ---------- Cuentas de padres (admin) ---------- */
.child-tag { display: inline-block; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; margin: 2px 4px 2px 0; }
.child-checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.child-checklist__item { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.child-checklist__group-label { font-size: .78rem; font-weight: 800; color: var(--violet); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 2px; }
.child-checklist__group-label:first-child { margin-top: 0; }
.admin-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.admin-filter-bar__search {
  flex: 1; min-width: 160px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: .9rem; background: #fff; color: var(--ink);
}
.admin-filter-bar__grade {
  padding: 9px 12px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  font-size: .9rem; background: #fff; color: var(--ink);
}
.admin-filter-bar__search:focus, .admin-filter-bar__grade:focus { outline: none; border-color: var(--violet); }
/* ---------- Bandeja de mensajes (inbox) ---------- */
.inbox { display: flex; flex-direction: column; gap: 10px; }
.inbox__header { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.inbox__list { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; padding-right: 2px; }
.inbox__row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: #fff; cursor: pointer; font: inherit; color: inherit;
}
.inbox__row:hover { border-color: var(--violet); }
.inbox__row__avatar {
  font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; background: var(--violet-soft);
}
.inbox__row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox__row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inbox__row__name { font-weight: 800; font-size: .92rem; }
.inbox__row__time { font-size: .7rem; color: var(--ink-soft); white-space: nowrap; }
.inbox__row__preview {
  font-size: .82rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox__row__badge {
  flex: none; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; padding: 0 6px;
}
.inbox__back { align-self: flex-start; margin-bottom: 4px; }
.inbox__picker-title { margin: 4px 0 2px; }
.inbox__new-textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font: inherit; resize: vertical; margin-bottom: 8px;
}
.inbox__new-textarea:focus { outline: none; border-color: var(--violet); }
.inbox__thread-head { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 4px; }
.inbox__thread-head .inbox__row__avatar { width: 34px; height: 34px; font-size: 1.2rem; }
/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .app-main { padding: 24px; }
  .results-summary__score { font-size: 4rem; }

}
@media (max-width: 480px) {
  .btn { padding: 11px 16px; }
  .crono-week { flex-wrap: wrap; }
  .crono-week__label { width: 100%; }
  .crono-day { width: 34px; height: 34px; font-size: .88rem; }

}
.map-tile:focus-visible, .crono-day:focus-visible, .crono-shortcut:focus-visible, .avatar-picker__opt:focus-visible, .app-header__brand:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
/* =========================================================
   v2 — banco inteligente, simulacro oficial, cuaderno de errores
   ========================================================= */
/* Contexto enriquecido: párrafos y tablas dentro de la pregunta */
.question-context { white-space: normal; }
.ctx-p { margin: 0 0 6px; white-space: pre-line; line-height: 1.5; }
.ctx-gap { margin: 0; height: 8px; }
.ctx-table { border-collapse: collapse; margin: 8px 0 12px; font-size: .9rem; max-width: 100%; display: block; overflow-x: auto; }
.ctx-table th, .ctx-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; background: var(--surface); }
.ctx-table th { background: var(--violet-soft); color: var(--violet-dark); font-weight: 700; }
.ctx-table td.rowh, .ctx-table th.rowh { background: var(--surface-soft); font-weight: 700; }
/* Filtros tipo "chip" */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--violet); }
.chip--on { background: var(--violet); border-color: var(--violet); color: #fff; }
.focus-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.focus-bar p { margin: 0 0 6px; font-size: .88rem; }
.level-hint { color: var(--violet-dark); font-weight: 600; margin-top: 8px !important; }
.sim-intro { margin-bottom: 14px; }
/* Retroalimentación con metadatos */
.feedback-meta { margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--violet-dark); }
/* Hoja de respuestas: marcar para revisar y descartar opciones */
.answer-sheet__num.flagged { background: #fef3c7; border-color: #d97706; color: #92400e; }
.answer-sheet__row--active .answer-sheet__num.flagged { background: #d97706; color: #fff; border-color: #d97706; }
.flag-btn { margin-top: 12px; }
.flag-btn.on { background: #fef3c7; border-color: #d97706; color: #92400e; }
.oval-option-wrap { display: flex; gap: 8px; align-items: stretch; }
.oval-option-wrap .oval-option { flex: 1; }
.oval-option__text { text-align: left; }
.opt-x { width: 38px; border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; font-size: 1rem; color: var(--ink-soft); }
.opt-x:hover { border-color: var(--red); color: var(--red); }
.oval-option.discarded { opacity: .45; }
.oval-option.discarded .oval-option__text { text-decoration: line-through; }
/* Barras con nota al pie */
.bar-row-wrap { margin-bottom: 10px; }
.bar-row-wrap .bar-row { margin-bottom: 2px; }
.bar-row__extra { margin-left: 140px; font-size: .76rem; color: var(--ink-soft); }
.bar-row__label { width: auto; min-width: 130px; max-width: 46%; }
@media (max-width: 560px) {
  .bar-row__extra { margin-left: 0; }
  .bar-row { flex-wrap: wrap; }
  .bar-row__label { max-width: 100%; width: 100%; }

}
/* Cuaderno de errores, estrategias */
.err-group summary { cursor: pointer; font-weight: 800; font-size: 1rem; }
.strat-card h3 { margin-top: 0; }
.subject-action-card--errors .btn { background: transparent; }
/* ===== Aula de Chalo ===== */
.aula-top, .aula-area, .aula-objetivo, .aula-paso, .aula-card { margin-bottom: 14px; }
.aula-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; cursor: pointer; background: #fff; }
.aula-item:hover, .aula-item:focus-visible { border-color: var(--violet); }
.aula-item--done { background: #f1fbf5; }
.aula-item__main { display: flex; flex-direction: column; gap: 2px; }
.aula-item__side { font-weight: 700; white-space: nowrap; color: var(--violet-dark); }
.aula-tag { display: inline-block; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #e8efff; color: var(--violet-dark); margin-bottom: 8px; }
.aula-tag--tu { background: #fde7f0; color: var(--pink); }
.aula-tag--err { background: #fff4e0; color: #a15c00; }
.aula-tag--regla { background: #e4fbee; color: var(--green-dark); }
.aula-pensar { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; background: #f6f8ff; border-radius: var(--radius-sm); }
.aula-pensar p { margin: 0; }
.aula-pensar__n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.aula-list { margin: 8px 0 8px 20px; }
.aula-list li { margin: 4px 0; }
.aula-pista { margin: 8px 0; font-weight: 600; color: #a15c00; }
.aula-card__q { margin: 8px 0 14px; }
/* ===== ayudas de práctica ===== */
.help-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.hint-box { background: #fff8e1; border: 2px solid #f6c453; border-radius: var(--radius-sm); padding: 10px 14px; margin: 8px 0; font-weight: 600; }
.combo-chip { background: #ffe9d6; color: #c2410c; font-weight: 800; padding: 4px 12px; border-radius: 999px; animation: pop .4s ease; }
.causa-box, .explain-box { margin: 12px 0; padding: 12px 14px; background: #f6f8ff; border-radius: var(--radius-sm); }
.explain-box h4 { margin: 10px 0 2px; color: var(--violet-dark); }
.explain-box[hidden], .hint-box[hidden] { display: none; }
.option-btn.discarded { opacity: .35; text-decoration: line-through; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* ===== premios ===== */
.stars-result { text-align: center; margin-bottom: 12px; }
.stars-row { font-size: 2.6rem; letter-spacing: 6px; }
.star-big { filter: grayscale(1) opacity(.35); display: inline-block; }
.star-big.on { filter: none; animation: pop .6s ease both; }
.stars-msg { font-weight: 700; }
.mk-bronce { box-shadow: 0 0 0 3px #cd7f32; }
.mk-plata { box-shadow: 0 0 0 3px #c0c8d4, 0 0 8px #c0c8d4; }
.mk-oro { box-shadow: 0 0 0 3px #f5b301, 0 0 10px #f5b301; }
.mk-neon { box-shadow: 0 0 0 3px #22d3ee, 0 0 14px #22d3ee, 0 0 24px #a855f7; }
.mk-fuego { box-shadow: 0 0 0 3px #f97316, 0 0 14px #ef4444; animation: fuego 1.2s infinite alternate; }
@keyframes fuego { from { box-shadow: 0 0 0 3px #f97316, 0 0 8px #ef4444; } to { box-shadow: 0 0 0 3px #facc15, 0 0 18px #f97316; } }
.mis-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; background: #fff; }
.mis-item--done { background: #f1fbf5; border-color: var(--green); }
.mis-item__bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.mis-item__fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.mis-item__main { flex: 1; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.shop-item { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.shop-item .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: #eef2ff; }
.coin-chip { font-weight: 800; color: #a16207; background: #fef3c7; padding: 4px 10px; border-radius: 999px; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.header-coins { font-weight: 800; color: #a16207; background: #fef3c7; padding: 3px 9px; border-radius: 999px; font-size: .9rem; }
.badge-chip.locked { opacity: .45; }
.aviso { font-size: .82rem; margin-top: 10px; }
/* ===== Chalo, asistente flotante ===== */
.chalo-fab { position: fixed; right: 16px; bottom: 16px; z-index: 900; border: 0; border-radius: 999px; padding: 10px 16px; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.chalo-fab[hidden], .chalo-panel[hidden] { display: none; }
.chalo-panel { position: fixed; right: 16px; bottom: 16px; z-index: 950; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--violet); }
.chalo-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--violet); color: #fff; }
.chalo-x { background: transparent; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chalo-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 92%; padding: 8px 12px; border-radius: 14px; font-size: .92rem; }
.chat-msg p { margin: 0 0 4px; }
.chat-msg--bot { background: #eef2ff; align-self: flex-start; }
.chat-msg--yo { background: var(--violet); color: #fff; align-self: flex-end; }
.chalo-note { font-size: .72rem; color: var(--ink-soft); margin: 0; padding: 4px 12px; text-align: center; }
.chalo-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); }
.chalo-form input { flex: 1; padding: 8px 10px; border: 2px solid var(--border); border-radius: 10px; font: inherit; }
@media print {
  .chalo-fab, .chalo-panel, .app-header, .app-footer { display: none !important; }

}
.aula-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; border-left: 6px solid var(--pink); }
/* ===================== PANEL DE ADMINISTRACIÓN (sidebar) ===================== */
.adm { --adm-side: #0f1f4d; --adm-side2: #162a63; --adm-acc: #38bdf8; display: grid; grid-template-columns: 272px 1fr; min-height: calc(100vh - 140px); margin: -8px -4px 0; border-radius: 18px; overflow: hidden; background: #f3f6fc; box-shadow: 0 10px 40px rgba(15,31,77,.18); }
.adm-side { background: linear-gradient(180deg, var(--adm-side), var(--adm-side2)); color: #e6ecff; display: flex; flex-direction: column; padding: 18px 14px; gap: 14px; position: sticky; top: 0; align-self: start; height: 100%; min-height: calc(100vh - 140px); }
.adm-brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.adm-brand__logo { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.5rem; }
.adm-brand strong { display: block; font-size: 1rem; color: #fff; }
.adm-brand small, .adm-user small, .adm-side__foot small { color: #9fb3e8; font-size: .75rem; }
.adm-user { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px; }
.adm-user__av { width: 36px; height: 36px; border-radius: 50%; background: var(--adm-acc); color: #0f1f4d; display: grid; place-items: center; }
.adm-user strong { display: block; color: #fff; font-size: .9rem; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.adm-nav__group { font-size: .68rem; letter-spacing: .12em; color: #7f95cf; font-weight: 800; padding: 12px 10px 4px; }
.adm-nav__item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #cfdaf8; font-weight: 600; font-size: .94rem; transition: background .15s, color .15s; }
.adm-nav__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-nav__item:focus-visible { outline: 2px solid var(--adm-acc); }
.adm-nav__item.is-active { background: linear-gradient(90deg, rgba(56,189,248,.28), rgba(56,189,248,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--adm-acc); }
.adm-nav__ico { width: 24px; text-align: center; font-size: 1.1rem; }
.adm-nav__txt { flex: 1; }
.adm-nav__badge { background: var(--adm-acc); color: #0f1f4d; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.adm-side__foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.adm-main { padding: 22px 26px 40px; min-width: 0; }
.adm-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.adm-top__title { margin: 0; font-size: 1.6rem; color: #0f1f4d; }
.adm-top__sub { margin: 2px 0 0; color: #5b6b94; }
.adm-burger { all: unset; display: none; cursor: pointer; font-size: 1.5rem; padding: 6px 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.adm-pane[hidden] { display: none; }
.adm-pane > .card, .adm-panel { background: #fff; border: 1px solid #e3e9f7; border-radius: 16px; box-shadow: 0 2px 10px rgba(15,31,77,.06); padding: 20px 22px; margin-bottom: 18px; }
.adm-pane h3 { color: #0f1f4d; margin-top: 0; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.adm-kpi { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid #e3e9f7; border-radius: 16px; padding: 16px; display: grid; gap: 2px; box-shadow: 0 2px 10px rgba(15,31,77,.06); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.adm-kpi:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15,31,77,.14); }
.adm-kpi:focus-visible { outline: 2px solid #1d4ed8; }
.adm-kpi__ico { font-size: 1.5rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 6px; }
.adm-kpi__n { font-size: 1.9rem; font-weight: 800; color: #0f1f4d; line-height: 1.1; }
.adm-kpi__t { color: #5b6b94; font-size: .85rem; font-weight: 600; }
.k-azul .adm-kpi__ico { background: #dbeafe; }
.k-verde .adm-kpi__ico { background: #dcfce7; }
.k-naranja .adm-kpi__ico { background: #ffedd5; }
.k-violeta .adm-kpi__ico { background: #ede9fe; }
.k-amarillo .adm-kpi__ico { background: #fef9c3; }
.k-rosa .adm-kpi__ico { background: #fce7f3; }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.adm-bar { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; }
.adm-bar__track { height: 12px; background: #e8eefb; border-radius: 999px; overflow: hidden; }
.adm-bar__fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #38bdf8); border-radius: 999px; }
.adm-rank { display: grid; grid-template-columns: 30px 38px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid #eef2fb; }
.adm-rank__av { width: 36px; height: 36px; border-radius: 50%; background: #eef2ff; display: grid; place-items: center; }
.adm-rank__xp { font-weight: 800; color: #1d4ed8; }
.adm-savebar { position: sticky; bottom: 10px; background: #fff; border: 1px solid #e3e9f7; border-radius: 14px; padding: 8px 14px; box-shadow: 0 6px 24px rgba(15,31,77,.16); margin-top: 8px; }
.adm-savebar .btn-row { margin: 0; }
.adm textarea, .adm input[type=text], .adm input[type=number], .adm input[type=date], .adm select { max-width: 100%; }
.adm textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 2px solid #dbe3f5; border-radius: 10px; font: inherit; }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; z-index: 800; top: 0; bottom: 0; left: 0; width: 280px; transform: translateX(-105%); transition: transform .2s; height: 100vh; overflow-y: auto; }
  .adm-side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .adm-burger { display: inline-block; }
  .adm-main { padding: 14px; }

}
/* ===================== PORTAL DE FAMILIAS (sidebar verde) ===================== */
.adm--padres { --adm-side: #064e3b; --adm-side2: #0b6b52; --adm-acc: #34d399; }
.adm--padres .adm-top__title, .adm--padres .adm-pane h3, .adm--padres .adm-kpi__n { color: #064e3b; }
.adm--padres .adm-nav__item.is-active { background: linear-gradient(90deg, rgba(52,211,153,.3), rgba(52,211,153,.08)); }
.adm--padres .adm-bar__fill, .adm--padres .bar-row__fill { background: linear-gradient(90deg, #059669, #34d399); }
.adm--padres .adm-user__av { color: #064e3b; font-weight: 800; }
.pad-kpi { cursor: default; }
.pad-kpi:hover { transform: none; }
.pad-child { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: 1px solid #d1fae5; border-radius: 18px; padding: 18px; display: grid; gap: 6px; text-align: center; justify-items: center; box-shadow: 0 2px 12px rgba(6,78,59,.08); transition: transform .15s, box-shadow .15s; }
.pad-child:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(6,78,59,.18); }
.pad-child:focus-visible { outline: 2px solid #059669; }
.pad-child small { color: #4b6b61; }
.pad-pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.pad-pill.ok { background: #dcfce7; color: #166534; }
.pad-pill.warn { background: #ffedd5; color: #9a3412; }
.pad-child-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid #d1fae5; border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(6,78,59,.08); }
.pad-child-head__av { width: 72px; height: 72px; border-radius: 50%; background: #ecfdf5; display: grid; place-items: center; font-size: 2.3rem; }
.pad-child-head__txt { flex: 1; min-width: 180px; }
.pad-child-head h2 { margin: 0; color: #064e3b; }
.pad-child-head p { margin: 2px 0 6px; }
.pad-dots { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pad-dot { width: 30px; height: 30px; border-radius: 8px; background: #eef2f1; color: #8aa59b; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.pad-dot.on { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
@media print {
  .adm-side, .adm-top, .app-header, .app-footer, .breadcrumb, .adm-burger { display: none !important; }
  .adm { display: block; box-shadow: none; background: #fff; }
  .adm-pane[hidden] { display: none !important; }
  .adm-main { padding: 0; }

}
/* ===================== BARRA LATERAL GLOBAL (estudiantes / entrada) ===================== */
.shell-side { --adm-side: #0f1f4d; --adm-side2: #162a63; --adm-acc: #38bdf8; position: fixed; left: 0; top: var(--hdr, 64px); width: 272px; height: calc(100vh - var(--hdr, 64px)); max-height: calc(100vh - var(--hdr, 64px)); min-height: 0; overflow-y: auto; box-sizing: border-box; z-index: 40; border-radius: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.shell-side[hidden] { display: none; }
.shell-side .adm-nav { flex: 1 0 auto; }
.shell-side .adm-nav__item { text-decoration: none; }
.shell-side .adm-nav__item--sub { padding-left: 34px; font-size: .88rem; font-weight: 500; }
.shell-user { margin-top: -4px; }
.shell-chips { display: flex; gap: 6px; }
.shell-chips span { flex: 1; text-align: center; background: rgba(255,255,255,.09); border-radius: 10px; padding: 6px 4px; font-size: .82rem; font-weight: 700; color: #fff; }
.shell-foot { gap: 6px; }
.shell-foot__label { font-size: .68rem; letter-spacing: .12em; color: #7f95cf; font-weight: 800; padding: 2px 6px; }
.shell-foot__link { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .15s; }
.shell-foot__link:hover { background: rgba(255,255,255,.16); }
.shell-foot__link span { font-size: 1.3rem; }
.shell-foot__link strong { display: block; font-size: .88rem; }
.shell-foot__link small { color: #9fb3e8; font-size: .72rem; }
.shell-ver { text-align: center; }
.shell-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(8,16,40,.5); z-index: 39; }
.shell-overlay[hidden] { display: none; }
body.has-shell .app-main { margin-left: 272px; width: calc(100% - 272px); max-width: none; box-sizing: border-box; }
body.has-shell .app-footer { margin-left: 272px; }
body.has-shell .app-footer__links { display: none; }
.app-burger { all: unset; display: none; cursor: pointer; font-size: 1.4rem; padding: 4px 12px; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; }
.app-burger[hidden] { display: none !important; }
@media (max-width: 900px) {
  .app-burger:not([hidden]) { display: inline-block; }
  .shell-side { transform: translateX(-105%); transition: transform .2s; width: 288px; z-index: 60; top: 0; height: 100vh; max-height: 100vh; }
  .shell-side.is-open { transform: none; }
  .shell-overlay { z-index: 55; }
  body.has-shell .app-main, body.has-shell .app-footer { margin-left: 0; width: 100%; }

}
.feat { background: #fff; border: 1px solid #e3e9f7; border-radius: 16px; padding: 16px; box-shadow: 0 2px 10px rgba(15,31,77,.06); }
.feat__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e8efff; font-size: 1.4rem; margin-bottom: 8px; }
.feat strong { display: block; color: #0f1f4d; }
.feat p { margin: 4px 0 0; color: #5b6b94; font-size: .9rem; }
@media print {
  .shell-side, .shell-overlay, .app-burger { display: none !important; }
  body.has-shell .app-main { margin-left: 0; width: 100%; }

}
/* ===================== VOZ E IDIOMA DE CHALO ===================== */
.lang-seg { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; gap: 2px; align-items: center; }
.lang-seg button { all: unset; cursor: pointer; padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #dbe6ff; }
.lang-seg button:hover { background: rgba(255,255,255,.14); }
.lang-seg button:focus-visible { outline: 2px solid #fff; }
.lang-seg button.is-on { background: #fff; color: #13327f; }
.lang-seg .lang-cfg { font-size: .95rem; padding: 4px 9px; }
.voz-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(8,16,40,.55); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.voz-box { background: #fff; border-radius: 18px; max-width: 460px; width: 100%; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: 92vh; overflow-y: auto; }
.voz-box__head { display: flex; justify-content: space-between; align-items: center; }
.voz-box__head h3 { margin: 0; color: #0f1f4d; }
.voz-x { all: unset; cursor: pointer; font-size: 1.1rem; padding: 4px 10px; border-radius: 8px; }
.voz-x:hover { background: #eef2ff; }
.voz-field { margin: 14px 0; }
.voz-field label { display: block; font-weight: 700; margin-bottom: 6px; color: #0f1f4d; }
.voz-langs { display: flex; gap: 8px; }
.voz-langs button { all: unset; box-sizing: border-box; flex: 1; text-align: center; cursor: pointer; padding: 10px; border: 2px solid #dbe3f5; border-radius: 12px; font-weight: 700; }
.voz-langs button.is-on { border-color: #1d4ed8; background: #eaf0ff; color: #13327f; }
.voz-sel { width: 100%; padding: 9px 10px; border: 2px solid #dbe3f5; border-radius: 10px; font: inherit; }
.voz-box input[type=range] { width: 100%; }
.voz-scale { display: flex; justify-content: space-between; font-size: .75rem; color: #5b6b94; }
.voz-check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 8px 0; }
.voz-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chat-speak { all: unset; cursor: pointer; margin-left: 6px; font-size: .9rem; opacity: .7; }
.chat-speak:hover { opacity: 1; }
.voz-hablando { outline: 2px solid #38bdf8; border-radius: 8px; }
@media (max-width: 640px) {
  .lang-seg button { padding: 5px 8px; }

}
.chalo-tools { display: inline-flex; gap: 6px; align-items: center; }
.chalo-tools button { all: unset; cursor: pointer; color: #fff; padding: 3px 8px; border-radius: 8px; font-size: .78rem; font-weight: 800; background: rgba(255,255,255,.18); }
.chalo-tools button:hover { background: rgba(255,255,255,.3); }
.chalo-panel__head strong { font-size: .95rem; }
/* ===================== PORTAL DE FAMILIAS v2 (pf-*) ===================== */
.adm--padres { background: #f2f8f5; }
.pf-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; margin-bottom: 18px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(52,211,153,.55), transparent 45%), linear-gradient(135deg, #064e3b 0%, #0b6b52 55%, #0d8a6a 100%); box-shadow: 0 12px 34px rgba(6,78,59,.28); }
.pf-hero__date { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: #a7f3d0; }
.pf-hero h2 { margin: 4px 0 8px; font-size: 2rem; color: #fff; }
.pf-hero p { margin: 0 0 16px; max-width: 560px; color: #d1fae5; line-height: 1.5; }
.pf-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-hero__art { display: flex; gap: 10px; font-size: 3rem; opacity: .95; }
.pf-hero__art span:nth-child(2) { transform: translateY(14px) rotate(-8deg); }
.pf-hero__art span:nth-child(3) { transform: rotate(10deg); }
.pf-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .9rem; transition: transform .12s, box-shadow .12s, background .12s; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-btn:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }
.pf-btn--light { background: #fff; color: #064e3b; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.pf-btn--ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.pf-btn--ghost:hover { background: rgba(255,255,255,.14); }
.pf-btn--solid { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.35); }
.pf-btn--line { border: 2px solid #a7f3d0; color: #065f46; background: #fff; }
.pf-btn--line:hover { background: #ecfdf5; }
.pf-btn--wide { width: 100%; padding: 13px; font-size: 1rem; margin-top: 6px; }
.pf-kpis { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pf-h { margin: 0 0 12px; color: #064e3b; font-size: 1.15rem; }
.pf-child { background: #fff; border: 1px solid #d1fae5; border-left: 6px solid #10b981; border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(6,78,59,.08); }
.pf-child.warn { border-left-color: #f97316; }
.pf-child__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pf-child__av { width: 52px; height: 52px; font-size: 1.7rem; flex: none; }
.pf-child__id { flex: 1; min-width: 0; }
.pf-child__id h4 { margin: 0; color: #064e3b; font-size: 1.1rem; }
.pf-child__id small { color: #4b6b61; }
.pf-child__last { background: #ecfdf5; border-radius: 10px; padding: 8px 12px; color: #065f46; font-size: .92rem; }
.pf-child__ses { margin: 10px 0 0; font-size: .92rem; color: #1f3d34; }
.pf-child__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.pf-child__stats div { background: #f6faf8; border-radius: 12px; padding: 8px 4px; text-align: center; }
.pf-child__stats b { display: block; font-size: 1.1rem; color: #064e3b; }
.pf-child__stats span { font-size: .7rem; color: #5b7a6e; font-weight: 600; }
.pf-child__act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pf-strip { display: flex; gap: 5px; }
.pf-strip__d { flex: 1; height: 28px; border-radius: 8px; background: #eef2f1; color: #8aa59b; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.pf-strip__d.on { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
.pf-strip__d.today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10b981; }
.pf-chart { width: 100%; max-width: 460px; height: auto; display: block; }
.pf-advice { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6faf8; margin-bottom: 8px; align-items: flex-start; }
.pf-advice > span { font-size: 1.4rem; }
.pf-advice strong { display: block; color: #064e3b; font-size: .93rem; }
.pf-advice small { color: #4b6b61; }
.pf-advice.warn { background: #fff4e5; }
.pf-advice.ok { background: #e8fbf1; }
.pf-feed { list-style: none; margin: 0; padding: 0; }
.pf-feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef5f1; font-size: .9rem; }
.pf-feed li:last-child { border: 0; }
.pf-feed__av { width: 34px; height: 34px; border-radius: 50%; background: #ecfdf5; display: grid; place-items: center; flex: none; }
.pf-feed small { display: block; color: #7a968b; }
.pf-tag { display: inline-block; font-size: .72rem; background: #e0f2fe; color: #075985; border-radius: 999px; padding: 1px 8px; font-weight: 700; margin-left: 4px; }
.pf-empty { color: #5b7a6e; background: #f6faf8; border-radius: 12px; padding: 14px; margin: 0; line-height: 1.5; }
.pf-exam { text-align: center; background: linear-gradient(135deg, #fff, #ecfdf5); }
.pf-exam__n { font-size: 3.4rem; font-weight: 900; color: #059669; line-height: 1; }
.pf-big { font-size: 1.15rem; color: #064e3b; }
.pf-sub { margin: 18px 0 8px; color: #064e3b; }
.pf-sub small { color: #6b8a7e; font-weight: 600; }
/* Ingreso */
.pf-gate { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(6,78,59,.2); background: #fff; margin: 10px auto; max-width: 980px; }
.pf-gate__intro { padding: 40px 38px; color: #fff; background: radial-gradient(circle at 20% 0%, rgba(52,211,153,.5), transparent 50%), linear-gradient(160deg, #064e3b, #0b6b52 70%, #0d8a6a); }
.pf-gate__logo { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.16); font-size: 2rem; }
.pf-gate__intro h1 { margin: 16px 0 8px; font-size: 2rem; color: #fff; }
.pf-gate__intro > p { color: #d1fae5; line-height: 1.5; }
.pf-gate__intro ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.pf-gate__intro li { display: flex; gap: 12px; align-items: flex-start; }
.pf-gate__intro li > span { font-size: 1.4rem; background: rgba(255,255,255,.14); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.pf-gate__intro li strong { display: block; color: #fff; }
.pf-gate__intro li small { color: #a7f3d0; }
.pf-gate__card { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.pf-gate__card h2 { margin: 0 0 4px; color: #064e3b; font-size: 1.6rem; }
.pf-gate__card input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #d1fae5; border-radius: 12px; font: inherit; }
.pf-gate__card input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
@media (max-width: 860px) {
  .pf-cols, .pf-gate { grid-template-columns: 1fr; }
  .pf-hero { padding: 22px; }
  .pf-hero__art { display: none; }
  .pf-hero h2 { font-size: 1.6rem; }
  .pf-child__stats { grid-template-columns: repeat(2, 1fr); }
  .pf-gate__intro, .pf-gate__card { padding: 26px 22px; }

}
@media print {
  .pf-hero__cta, .pf-child__act { display: none !important; }

}
/* ===================== INICIO PÚBLICO: roles y chips ===================== */
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.hero__pills span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; }
/* ===================== INICIO DEL ESTUDIANTE: "Empieza aquí" ===================== */
.qs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin: 16px 0; }
@media (max-width: 1180px) {
  .qs { grid-template-columns: 1fr; }

}
/* Informe del hijo */
.pf-sum__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.pf-big-tile { border-radius: 16px; padding: 16px 18px; display: grid; gap: 2px; border: 1px solid transparent; }
.pf-big-tile span { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pf-big-tile strong { font-size: 2rem; line-height: 1.1; }
.pf-big-tile small { opacity: .85; font-weight: 600; }
.t-azul { background: #e0f2fe; color: #075985; }
.t-verde { background: #dcfce7; color: #166534; }
.t-violeta { background: #ede9fe; color: #5b21b6; }
.t-amarillo { background: #fef9c3; color: #854d0e; }
.t-naranja { background: #ffedd5; color: #9a3412; }
.t-gris { background: #eef2f1; color: #4b5d56; }
.pf-verdict { margin: 14px 0 0; padding: 12px 14px; background: #f6faf8; border-left: 4px solid #10b981; border-radius: 10px; color: #1f3d34; line-height: 1.5; }
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-list li { display: grid; grid-template-columns: 1.6fr .8fr 1.4fr; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eef5f1; align-items: center; font-size: .93rem; }
.pf-list li:last-child { border: 0; }
.pf-list b { color: #064e3b; }
.pf-list b.no { color: #b45309; }
.pf-list small { color: #6b8a7e; }
.pf-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-todo li { display: flex; gap: 12px; padding: 11px 14px; background: #fff8ed; border: 1px solid #fde4c0; border-radius: 12px; align-items: flex-start; }
.pf-todo__i { font-size: 1.4rem; }
.pf-todo strong { display: block; color: #7c2d12; }
.pf-todo small { color: #92603a; }
.pf-subj { display: grid; gap: 10px; }
.pf-subj__row { display: grid; grid-template-columns: 1.4fr 2fr .5fr 1fr .8fr; gap: 10px; align-items: center; font-size: .92rem; }
.pf-subj__bar { height: 12px; border-radius: 999px; background: #e8f0ec; overflow: hidden; }
.pf-subj__bar span { display: block; height: 100%; border-radius: 999px; }
.pf-subj__bar .verde { background: linear-gradient(90deg, #059669, #34d399); }
.pf-subj__bar .amarillo { background: linear-gradient(90deg, #ca8a04, #facc15); }
.pf-subj__bar .naranja { background: linear-gradient(90deg, #ea580c, #fb923c); }
.pf-subj__bar .gris { background: #cbd5d1; }
.pf-pill-s { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-align: center; }
.pf-pill-s.verde { background: #dcfce7; color: #166534; }
.pf-pill-s.amarillo { background: #fef9c3; color: #854d0e; }
.pf-pill-s.naranja { background: #ffedd5; color: #9a3412; }
.pf-pill-s.gris { background: #eef2f1; color: #4b5d56; }
.pf-subj small { color: #6b8a7e; }
.pf-avg { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 16px; background: #ecfdf5; border-radius: 12px; font-weight: 700; color: #065f46; }
.pf-avg strong { font-size: 1.6rem; }
.pf-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pf-meta > div { background: #f6faf8; border-radius: 12px; padding: 10px 14px; }
.pf-meta span { display: block; font-size: .75rem; color: #6b8a7e; font-weight: 800; text-transform: uppercase; }
.pf-meta strong { font-size: 1.3rem; color: #064e3b; }
@media (max-width: 760px) {
  .pf-list li { grid-template-columns: 1fr; gap: 2px; }
  .pf-subj__row { grid-template-columns: 1fr 1fr; }
  .pf-subj__bar { grid-column: 1 / -1; }

}
/* ===== Portal de familias: versión compacta ===== */
.adm--padres { font-size: 14px; grid-template-columns: 236px 1fr; }
.adm--padres .adm-side { padding: 14px 10px; gap: 10px; }
.adm--padres .adm-brand__logo { width: 34px; height: 34px; font-size: 1.2rem; }
.adm--padres .adm-brand strong { font-size: .9rem; }
.adm--padres .adm-nav__item { padding: 7px 10px; font-size: .86rem; gap: 10px; }
.adm--padres .adm-nav__group { padding: 8px 10px 2px; font-size: .62rem; }
.adm--padres .adm-main { padding: 16px 20px 30px; }
.adm--padres .adm-top { margin-bottom: 12px; }
.adm--padres .adm-top__title { font-size: 1.25rem; }
.adm--padres .adm-top__sub { font-size: .85rem; }
.adm--padres .adm-pane > .card, .adm--padres .adm-panel { padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; }
.adm--padres .adm-pane h3 { font-size: 1rem; margin-bottom: 8px; }
.adm--padres .pad-child-head { padding: 12px 16px; margin-bottom: 12px; border-radius: 14px; gap: 12px; }
.adm--padres .pad-child-head__av { width: 52px; height: 52px; font-size: 1.7rem; }
.adm--padres .pad-child-head h2 { font-size: 1.2rem; }
.adm--padres .btn--sm { padding: 6px 12px; font-size: .82rem; }
/* inicio */
.pf-hero { padding: 16px 22px; border-radius: 16px; margin-bottom: 12px; }
.pf-hero h2 { font-size: 1.35rem; margin: 2px 0 4px; }
.pf-hero p { font-size: .88rem; margin-bottom: 10px; max-width: 520px; }
.pf-hero__date { font-size: .75rem; }
.pf-hero__art { font-size: 2rem; }
.pf-btn { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.adm--padres .adm-kpis { gap: 10px; margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.adm--padres .adm-kpi { padding: 10px 12px; border-radius: 12px; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.adm--padres .adm-kpi__ico { width: 34px; height: 34px; font-size: 1.1rem; margin: 0; grid-row: span 2; border-radius: 10px; }
.adm--padres .adm-kpi__n { font-size: 1.2rem; }
.adm--padres .adm-kpi__t { font-size: .72rem; }
.pf-cols { gap: 12px; }
.pf-h { font-size: 1rem; margin-bottom: 8px; }
.pf-child { padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; border-left-width: 5px; }
.pf-child__head { gap: 10px; margin-bottom: 6px; }
.pf-child__av { width: 38px; height: 38px; font-size: 1.25rem; }
.pf-child__id h4 { font-size: .98rem; }
.pf-child__id small { font-size: .78rem; }
.pf-child__last { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.pf-child__ses { margin-top: 6px; font-size: .82rem; }
.pf-child__stats { gap: 6px; margin: 8px 0; }
.pf-child__stats div { padding: 5px 2px; border-radius: 8px; }
.pf-child__stats b { font-size: .95rem; }
.pf-child__stats span { font-size: .64rem; }
.pf-strip__d { height: 20px; font-size: .64rem; border-radius: 6px; }
.pf-strip { gap: 4px; }
.pf-child__act { margin-top: 8px; }
.adm--padres .pad-pill { font-size: .7rem; padding: 2px 8px; }
.pf-chart { max-width: 340px; }
.pf-advice { padding: 7px 10px; gap: 9px; margin-bottom: 6px; border-radius: 10px; }
.pf-advice > span { font-size: 1.1rem; }
.pf-advice strong { font-size: .84rem; }
.pf-advice small { font-size: .76rem; }
.pf-feed li { padding: 6px 0; font-size: .82rem; }
.pf-feed__av { width: 28px; height: 28px; }
.pf-exam__n { font-size: 2.4rem; }
/* informe del hijo */
.pf-sum__grid { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.pf-big-tile { padding: 10px 14px; border-radius: 12px; }
.pf-big-tile span { font-size: .68rem; }
.pf-big-tile strong { font-size: 1.35rem; }
.pf-big-tile small { font-size: .74rem; }
.pf-verdict { margin-top: 10px; padding: 8px 12px; font-size: .85rem; }
.pf-list li { padding: 6px 2px; font-size: .84rem; }
.pf-todo li { padding: 8px 12px; }
.pf-todo__i { font-size: 1.15rem; }
.pf-todo strong { font-size: .86rem; }
.pf-todo small { font-size: .78rem; }
.pf-subj__row { font-size: .84rem; gap: 8px; }
.pf-subj__bar { height: 9px; }
.pf-avg { padding: 8px 12px; margin-top: 10px; }
.pf-avg strong { font-size: 1.2rem; }
.pf-meta strong { font-size: 1.05rem; }
.pf-big { font-size: .92rem; }
.pf-sub { margin: 12px 0 6px; font-size: .92rem; }
.adm--padres .pad-dot { width: 24px; height: 24px; font-size: .66rem; }
/* ingreso */
.pf-gate { min-height: 0; max-width: 820px; border-radius: 18px; }
.pf-gate__intro, .pf-gate__card { padding: 28px; }
.pf-gate__intro h1 { font-size: 1.5rem; }
.pf-gate__intro ul { gap: 10px; margin-top: 16px; }
.pf-gate__intro li > span { width: 34px; height: 34px; font-size: 1.1rem; }
.pf-gate__card h2 { font-size: 1.3rem; }
/* ===================== REINICIO DE FÁBRICA ===================== */
.rst-wrap { padding: 20px !important; }
.rst-intro h3 { margin: 0 0 4px; }
.rst-note { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin: 10px 0 16px; }
.rst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.rst-card { border-radius: 18px; padding: 18px; background: #fff; border: 1px solid #e3e9f7; border-top: 6px solid var(--rc); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 12px rgba(15,31,77,.07); }
.rst-amarillo { --rc: #eab308; --rb: #fef9c3; }
.rst-naranja { --rc: #f97316; --rb: #ffedd5; }
.rst-rojo { --rc: #dc2626; --rb: #fee2e2; }
.rst-card__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--rb); display: grid; place-items: center; font-size: 1.6rem; }
.rst-card h4 { margin: 2px 0 0; color: #0f1f4d; }
.rst-card__lema { margin: 0; color: #5b6b94; font-size: .9rem; }
.rst-card__lists { display: grid; gap: 8px; font-size: .84rem; flex: 1; }
.rst-card__lists strong { display: block; margin-bottom: 2px; color: #0f1f4d; }
.rst-card__lists ul { margin: 0; padding-left: 18px; color: #4b5b82; }
.rst-btn, .rst-go { background: var(--rc, #dc2626); color: #fff; border: 0; font-weight: 800; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.rst-btn:hover, .rst-go:hover:not(:disabled) { filter: brightness(1.08); }
.rst-go:disabled { opacity: .45; cursor: not-allowed; }
.rst-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; background: rgba(10,18,40,.6); display: grid; place-items: center; padding: 16px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rst-modal { width: min(480px, 100%); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.rst-modal__head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: var(--rb); border-bottom: 4px solid var(--rc); }
.rst-modal__head > span { font-size: 2rem; }
.rst-modal__head h3 { margin: 0; color: #0f1f4d; }
.rst-modal__head p { margin: 0; color: #991b1b; font-weight: 700; font-size: .85rem; }
.rst-modal__body { padding: 16px 20px; display: grid; gap: 10px; }
.rst-count { margin: 0; background: #f3f6fc; border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.rst-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.rst-check small { color: #5b6b94; }
.rst-modal .form-field input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 2px solid #dbe3f5; border-radius: 10px; font: inherit; }
.rst-err { margin: 0; color: #b91c1c; font-weight: 700; }
.rst-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
/* ===================== ESCALA COMPACTA GLOBAL ===================== */
/* Base 16px (antes 19px). El portal de familias conserva su tamaño actual con zoom. */
.adm--padres { zoom: 1; }
.app-main { padding: 14px 18px; }
.card { padding: 16px; }
.screen-subtitle { margin-bottom: 16px; }
.hero { padding: 24px 24px; }
.hero__title { font-size: 1.6rem; }
.hero__tagline { font-size: .95rem; }
.hero__mascot-bubble { font-size: .88rem; }
.hero__pills span { font-size: .78rem; padding: 4px 11px; }
.map-grid { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.dash-hero { padding: 18px 24px; margin-bottom: 14px; }
.dash-hero__text h1 { font-size: 1.45rem; margin-bottom: 4px; }
.dash-hero__sub { font-size: .9rem; }
.qs { gap: 10px; margin: 12px 0; }
/* ===================== TEMAS DEL ESTUDIANTE ===================== */
html { background: var(--t-base, var(--bg)); }
.theme-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--t-base); }
.theme-bg i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(70px); opacity: .75; }
.theme-bg i:nth-child(1) { background: var(--t-m1); top: -20vmax; left: -10vmax; }
.theme-bg i:nth-child(2) { background: var(--t-m2); top: 10vmax; right: -18vmax; }
.theme-bg i:nth-child(3) { background: var(--t-m3); bottom: -25vmax; left: 25vw; }
body[data-anim="on"] .theme-bg i:nth-child(1) { animation: thmA 26s ease-in-out infinite alternate; }
body[data-anim="on"] .theme-bg i:nth-child(2) { animation: thmB 32s ease-in-out infinite alternate; }
body[data-anim="on"] .theme-bg i:nth-child(3) { animation: thmC 38s ease-in-out infinite alternate; }
@keyframes thmA { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes thmB { to { transform: translate(-16vmax, 12vmax) scale(.9); } }
@keyframes thmC { to { transform: translate(-14vmax, -12vmax) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .theme-bg i { animation: none !important; }

}
body[data-theme] { background: transparent; background-image: none; }
body[data-theme] .app-header { background: var(--t-head, linear-gradient(120deg, var(--violet), var(--violet-dark))); }
body[data-theme] .shell-side { --adm-side: var(--t-s1); --adm-side2: var(--t-s2); --adm-acc: var(--t-acc); }
body[data-theme] .dash-hero, body[data-theme] .dash-hero--junior, body[data-theme] .dash-hero--senior { background: var(--t-hero, linear-gradient(120deg, var(--violet), var(--violet-dark))); }
body[data-theme="claro"] .dash-hero { background: linear-gradient(120deg, var(--violet), var(--violet-dark) 75%); }
body[data-theme] .card { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body[data-dark] .breadcrumb, body[data-dark] .breadcrumb span, body[data-dark] .screen-title, body[data-dark] .screen-subtitle, body[data-dark] .section-heading h3, body[data-dark] .app-footer, body[data-dark] .app-footer p { color: #e8eefc; }
body[data-dark] .breadcrumb button { color: #a5b4fc; }
.shell-theme-btn { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 8px 10px; border-radius: 10px; font-weight: 800; font-size: .82rem; color: #fff; background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); border: 1px dashed rgba(255,255,255,.4); }
.shell-theme-btn:hover { background: rgba(255,255,255,.2); }
.shell-theme-btn:focus-visible { outline: 2px solid var(--adm-acc); }
.thm-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; background: rgba(10,18,40,.55); display: grid; place-items: center; padding: 16px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.thm-modal { width: min(560px, 100%); background: #fff; border-radius: 20px; padding: 18px 20px 20px; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.thm-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.thm-head h3 { margin: 0; color: #0f1f4d; }
.thm-head p { margin: 2px 0 12px; color: #5b6b94; font-size: .88rem; }
.thm-x { all: unset; cursor: pointer; width: 30px; height: 30px; text-align: center; line-height: 30px; border-radius: 50%; background: #eef2fb; color: #0f1f4d; }
.thm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.thm-card { all: unset; cursor: pointer; box-sizing: border-box; display: grid; gap: 6px; padding: 8px; border-radius: 14px; border: 2px solid #e3e9f7; text-align: center; font-size: .85rem; color: #0f1f4d; transition: transform .12s; }
.thm-card:hover { transform: translateY(-2px); }
.thm-card:focus-visible { outline: 3px solid #38bdf8; }
.thm-card.is-on { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.2); }
.thm-sw { display: block; height: 70px; border-radius: 10px; position: relative; overflow: hidden; }
.thm-sw i { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 14px; border-radius: 6px; }
.thm-anim { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: .9rem; color: #0f1f4d; }
.thm-anim small { color: #5b6b94; }
/* ===================== MI PERFIL (estudiante) ===================== */
.pf-me { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.pf-me__preview { text-align: center; padding: 22px 16px; background: linear-gradient(160deg, #fff, #eef2ff); }
.pf-me__av { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: #e7edfd; font-size: 3rem; box-shadow: 0 6px 18px rgba(29,78,216,.25); }
.pf-me__preview h2 { margin: 0; font-size: 1.35rem; color: #0f1f4d; }
.pf-me__real { margin: 4px 0 10px; color: #5b6b94; font-size: .85rem; }
.pf-me__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.pf-me__chips span { background: #eef2fb; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; color: #1d3a8a; }
.pf-me__theme { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; text-align: center; padding: 9px; border-radius: 12px; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(120deg, #4f46e5, #06b6d4); }
.pf-me__theme:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.pf-me__edit h3 { margin: 14px 0 6px; color: #0f1f4d; font-size: 1rem; }
.pf-me__edit h3:first-child { margin-top: 0; }
.pf-me__edit h3 small { color: #5b6b94; font-weight: 600; }
.pf-me__field { position: relative; }
.pf-me__field input { width: 100%; box-sizing: border-box; padding: 11px 56px 11px 14px; border: 2px solid #dbe3f5; border-radius: 12px; font: inherit; }
.pf-me__field input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.pf-me__field span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: #7a89b3; }
.pf-me__avs { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.pf-me__avbtn { all: unset; cursor: pointer; box-sizing: border-box; height: 46px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 12px; background: #f3f6fc; border: 2px solid transparent; transition: transform .1s; }
.pf-me__avbtn:hover { transform: scale(1.1); }
.pf-me__avbtn:focus-visible { outline: 3px solid #38bdf8; }
.pf-me__avbtn.is-on { border-color: #4f46e5; background: #e0e7ff; }
.pf-me__note { margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: #fff8e6; color: #7a5200; font-size: .82rem; }
.pf-me__actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 860px) {
  .pf-me { grid-template-columns: 1fr; }

}
/* Cambio de contraseña (estudiante y padres) */
.pf-sec { margin-top: 14px; max-width: 520px; }
.pf-sec__form { display: grid; gap: 10px; }
.pf-sec__form label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: #334155; }
.pf-sec__form input { padding: 10px 12px; border: 2px solid #dbe3f5; border-radius: 10px; font: inherit; letter-spacing: .15em; }
.pf-sec__form input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.pf-sec__form button { justify-self: start; }
.pf-sec__msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; }
.pf-sec__msg.ok { background: #dcfce7; color: #166534; }
.pf-sec__msg.no { background: #fee2e2; color: #991b1b; }
/* ===================== MARCA: logo, motivo animal, franja ===================== */
.brand-logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; border-radius: 9px; display: block; }
span.brand-logo { font-size: 1.5rem; height: auto; }
.app-header__logo { display: flex; align-items: center; }
.app-header { border-bottom: 3px solid var(--brand-accent, #f5a623); }
.adm-brand__logo { overflow: hidden; padding: 3px; }
.adm-brand__logo .brand-logo { width: 100%; height: 100%; max-width: none; border-radius: 8px; }
.pf-gate__logo .brand-logo { height: 100%; width: 100%; }
.app-footer__contact { margin: 4px 0 0; font-size: .8rem; color: var(--ink-soft); }
/* Banner de la portada */
.hero--brand { background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.16), transparent 45%), linear-gradient(135deg, var(--violet-dark), var(--violet) 70%, var(--violet)); padding: 30px 24px 26px; }
.hero--brand::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: var(--animal-hero) no-repeat right 5% bottom -10% / auto 105%; }
html[data-animal="condor"] .hero--brand::before { background-position: right 4% top 12%; background-size: auto 62%; }
html[data-animal="huellas"] .hero--brand::before { background-repeat: repeat; background-size: 120px; background-position: 0 0; }
html[data-animal="ninguno"] .hero--brand::before { display: none; }
.hero--brand::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #ffd100 50%, #003893 50% 75%, #ce1126 75%); }
html[data-strip="off"] .hero--brand::after { display: none; }
.hero__brand { display: flex; justify-content: center; margin-bottom: 6px; }
.hero__logo { height: 78px; width: auto; max-width: 220px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
span.hero__logo { font-size: 3rem; height: auto; }
.hero__inst { margin: 0 0 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent, #ffd770); font-weight: 800; }
.hero--brand .hero__content { z-index: 2; }
/* Menú lateral: marca de agua animal + franja tricolor */
.adm-side, .shell-side { background-image: linear-gradient(90deg, #ffd100 50%, #003893 50% 75%, #ce1126 75%), var(--animal-side), linear-gradient(180deg, var(--adm-side), var(--adm-side2)); background-repeat: no-repeat, no-repeat, no-repeat; background-size: 100% 4px, 200px auto, 100% 100%; background-position: top left, right -40px bottom 150px, 0 0; }
html[data-strip="off"] .adm-side, html[data-strip="off"] .shell-side { background-image: var(--animal-side), linear-gradient(180deg, var(--adm-side), var(--adm-side2)); background-size: 200px auto, 100% 100%; background-position: right -40px bottom 150px, 0 0; background-repeat: no-repeat; }
html[data-animal="condor"] .adm-side, html[data-animal="condor"] .shell-side { background-size: 100% 4px, 250px auto, 100% 100%; background-position: top left, right -60px bottom 170px, 0 0; }
html[data-animal="huellas"] .adm-side, html[data-animal="huellas"] .shell-side { background-repeat: no-repeat, repeat, no-repeat; background-size: 100% 4px, 110px, 100% 100%; background-position: top left, 0 0, 0 0; }
html[data-animal="ninguno"] .adm-side, html[data-animal="ninguno"] .shell-side { background-image: linear-gradient(90deg, #ffd100 50%, #003893 50% 75%, #ce1126 75%), linear-gradient(180deg, var(--adm-side), var(--adm-side2)); background-size: 100% 4px, 100% 100%; background-position: top left, 0 0; }
.shell-side { background-attachment: local, local, local; }
/* Barra de accesos (estudiante / familia / administración) */
/* Panel de apariencia */
.brand-logo-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 10px 0 14px; }
.brand-logo-prev { width: 110px; height: 110px; border-radius: 20px; background: linear-gradient(135deg, #eef2ff, #fff); border: 2px dashed #c7d2fe; display: grid; place-items: center; overflow: hidden; }
.brand-logo-prev img { max-width: 90%; max-height: 90%; }
.brand-logo-prev span { font-size: 3rem; }
.brand-logo-opts { display: grid; gap: 6px; }
.brand-logo-opts label { display: flex; gap: 6px; align-items: center; }
.brand-colors { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0; }
.brand-colors label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.brand-colors input[type=color] { width: 48px; height: 34px; padding: 0; border: 2px solid #dbe3f5; border-radius: 8px; background: none; }
.brand-animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.brand-animal { all: unset; cursor: pointer; box-sizing: border-box; display: grid; gap: 4px; justify-items: center; padding: 10px 8px; border: 2px solid #e3e9f7; border-radius: 14px; text-align: center; }
.brand-animal.is-on { border-color: #1d4ed8; background: #eef2ff; }
.brand-animal:focus-visible { outline: 3px solid #38bdf8; }
.brand-animal__art { width: 64px; height: 56px; display: grid; place-items: center; }
.brand-animal__art svg { max-width: 100%; max-height: 100%; }
@media (max-width: 760px) {
  .hero--brand::before { opacity: .6; }

}
/* ===================== MI RUTA (guía de estudio) ===================== */
.qs { grid-template-columns: 1fr 1.4fr; }
.guide-card { background: #fff; border: 1px solid #e3e9f7; border-radius: 20px; box-shadow: 0 8px 26px rgba(15,31,77,.12); padding: 18px 20px; margin: 14px 0; border-top: 5px solid var(--brand-accent, #f5a623); }
.guide-card__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.guide-card__eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: #5b6b94; }
.guide-card h2 { margin: 2px 0 0; font-size: 1.3rem; color: #0f1f4d; }
.guide-chalo { display: flex; gap: 10px; align-items: flex-start; background: #f3f6ff; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.guide-chalo__av { font-size: 1.6rem; }
.guide-chalo p { margin: 0; color: #1f2f63; font-size: .92rem; line-height: 1.45; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-step { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e3e9f7; border-radius: 14px; background: #fbfcff; }
.guide-step.is-current { border-color: var(--violet); background: #eef3ff; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.guide-step.is-done { opacity: .72; background: #f4fbf6; border-color: #d1fae5; }
.guide-step__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #e3e9f7; color: #31457e; }
.guide-step.is-current .guide-step__n { background: var(--violet); color: #fff; }
.guide-step.is-done .guide-step__n { background: #22c55e; color: #fff; }
.guide-step__txt strong { display: block; color: #0f1f4d; font-size: .94rem; }
.guide-step__txt small { color: #5b6b94; font-size: .8rem; line-height: 1.35; display: block; }
.guide-step__min { font-size: .75rem; font-weight: 800; color: #5b6b94; background: #eef1f9; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.guide-step__act { display: flex; gap: 6px; align-items: center; }
.guide-go { text-decoration: none; font-weight: 800; font-size: .82rem; padding: 7px 14px; border-radius: 10px; color: var(--violet); border: 2px solid var(--violet); background: #fff; white-space: nowrap; }
.guide-go.is-main { background: linear-gradient(120deg, var(--violet), var(--violet-dark)); color: #fff; border-color: transparent; animation: guidePulse 1.6s ease-in-out infinite; }
.guide-step.is-later { opacity: .6; }
.guide-step.is-later .guide-step__n { background: #e8ecfa; color: #6b7aa5; }
.guide-skip { all: unset; cursor: pointer; font-size: .74rem; color: #6b7aa5; text-decoration: underline; padding: 4px; }
.guide-skip:focus-visible { outline: 2px solid #38bdf8; }
.guide-ok { font-size: .78rem; font-weight: 800; color: #15803d; }
.guide-foot { margin-top: 12px; display: grid; gap: 10px; }
.guide-next { background: #fff8e6; border: 1px solid #fde4a0; border-radius: 12px; padding: 9px 12px; font-size: .86rem; color: #7a5200; }
.guide-next strong { display: block; }
.guide-extra { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-link { text-decoration: none; font-weight: 700; font-size: .84rem; padding: 8px 12px; border-radius: 10px; background: #eef2ff; color: #1d3a8a; }
.guide-link small { font-weight: 600; opacity: .8; }
.guide-link--soft { background: #f3f4f6; color: #374151; }
.guide-card__load { margin: 0; color: #5b6b94; }
@keyframes guidePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,.55); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(29,78,216,0); transform: scale(1.05); } }
/* aro que titila al "señalar" */
.guide-spot { position: relative; z-index: 60; animation: guideRing 1.1s ease-in-out infinite !important; outline: 3px solid #facc15 !important; outline-offset: 3px; border-radius: 12px; }
@keyframes guideRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(250,204,21,.9); } 50% { box-shadow: 0 0 0 14px rgba(250,204,21,0); } }
.guide-tip { position: fixed; z-index: 3000; max-width: 240px; background: #111827; color: #fff; border-radius: 12px; padding: 9px 30px 9px 12px; font-size: .86rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: guideBob 1.2s ease-in-out infinite; }
.guide-tip button { all: unset; cursor: pointer; position: absolute; top: 6px; right: 9px; opacity: .7; }
.guide-tip::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax, 50%) - 7px); border: 7px solid transparent; border-top: 0; border-bottom-color: #111827; }
.guide-tip.is-up::before { top: auto; bottom: -7px; border-bottom: 0; border-top: 7px solid #111827; border-top-color: #111827; }
@keyframes guideBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* sugerencia en el menú lateral */
.adm-nav__item.is-suggested { background: rgba(250,204,21,.16) !important; box-shadow: inset 3px 0 0 #facc15; animation: guideSide 1.8s ease-in-out infinite; }
.adm-nav__item.is-suggested::after { content: "👈 Chalo"; font-size: .66rem; font-weight: 800; color: #1f2937; background: #facc15; border-radius: 999px; padding: 1px 7px; margin-left: auto; }
@keyframes guideSide { 0%, 100% { background-color: rgba(250,204,21,.10); } 50% { background-color: rgba(250,204,21,.28); } }
/* Chalo flotante pide atención */
.chalo-fab--attn { animation: guidePulse 1.5s ease-in-out infinite; }
/* bienvenida */
.guide-welcome { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2500; background: rgba(10,18,40,.6); display: grid; place-items: center; padding: 16px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.guide-welcome__box { width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 24px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.guide-welcome__ico { font-size: 3rem; }
.guide-welcome h2 { margin: 6px 0; color: #0f1f4d; }
.guide-welcome p { color: #4b5b82; }
.guide-welcome ol { text-align: left; background: #f3f6ff; border-radius: 14px; padding: 12px 12px 12px 34px; color: #1f2f63; font-size: .9rem; display: grid; gap: 6px; }
.guide-welcome__btns { display: grid; gap: 8px; margin-top: 14px; }
/* pantalla Mi ruta */
@media (max-width: 760px) {
  .guide-step { grid-template-columns: 30px 1fr; }
  .guide-step__min, .guide-step__act { grid-column: 2; }
  .qs { grid-template-columns: 1fr; }

}
@media (prefers-reduced-motion: reduce) {
  .guide-go.is-main, .guide-spot, .guide-tip, .adm-nav__item.is-suggested, .chalo-fab--attn { animation: none !important; }

}
/* ===================== PORTADA PÚBLICA ===================== */
.score-explainer { border-radius: 20px; padding: 22px 24px; box-shadow: 0 6px 22px rgba(15,31,77,.1); }
.voz-help { margin: 8px 0 2px; font-size: .85rem; color: #475569; }
.voz-help summary { cursor: pointer; font-weight: 700; color: #1d4ed8; }
.voz-help p { margin: 6px 0 0; line-height: 1.45; }
/* ===================== COMPATIBILIDAD: celular, tablet, PC ===================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(29,78,216,.15); }
a, button, .btn, [role="button"], input, select, label { touch-action: manipulation; }
img, svg, video { max-width: 100%; }
/* Pantallas con muesca / barra del sistema (iPhone, Android con gestos) */
.app-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-left: calc(20px + env(safe-area-inset-left, 0px)); padding-right: calc(20px + env(safe-area-inset-right, 0px)); }
.app-main { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.chalo-fab { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.chalo-panel { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.app-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
/* La barra del navegador móvil cambia la altura: usar la altura dinámica si existe */
@supports (height: 100dvh) {
  .shell-side { max-height: calc(100dvh - var(--hdr, 64px)); height: calc(100dvh - var(--hdr, 64px)); }
  @media (max-width: 860px) {
    .shell-side, .adm-side { height: 100dvh !important; max-height: 100dvh !important; }

  }

}
/* Dedos: objetivos táctiles cómodos y sin zoom automático al escribir (iOS) */
@media (pointer: coarse) {
  .btn, .adm-nav__item, .guide-go, .guide-skip, .thm-card, .map-tile, button { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .adm-nav__item { padding-top: 11px; padding-bottom: 11px; }

}
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px !important; }
  .app-header { gap: 8px; }
  .app-header__brand { min-width: 0; }
  .app-header__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
  .app-main { padding-top: 10px; padding-bottom: 10px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm--padres { zoom: 1; }
  .guide-tip { max-width: calc(100vw - 24px); }
  .hero__logo { height: 62px; }

}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .pf-hero { padding: 16px; }
  .pf-hero h2 { font-size: 1.2rem; }
  .map-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .guide-card { padding: 14px; }
  .thm-grid { grid-template-columns: repeat(2, 1fr); }

}
/* Tablet horizontal / pantallas muy anchas: que el contenido no se estire de más */
@media (min-width: 1800px) {
  .app-main { max-width: 1600px; }

}
/* Impresión de informes sin colores de fondo pesados */
@media print {
  body { background: #fff !important; }
  .theme-bg { display: none !important; }

}
/* Encabezado compacto en celular: menos filas, botones más chicos */
@media (max-width: 600px) {
  .app-header { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); row-gap: 6px; }
  .app-header__brand { font-size: 1rem; flex: 1; }
  .app-header__profile { width: 100%; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .app-header__profile::-webkit-scrollbar { display: none; }
  .header-profile__info { white-space: nowrap; }
  .header-profile__streak, .header-coins { flex: none; }
  .app-header .btn--sm { padding: 6px 10px; font-size: .76rem; min-height: 36px; white-space: nowrap; flex: none; }
  .conn-badge { font-size: 0; padding: 9px; gap: 0; min-height: 0; }
  .lang-seg { transform: scale(.92); transform-origin: right center; }

}
@media (max-width: 600px) {
  .header-profile__level { display: none; }

}
/* ===================== ADMIN · CONTENIDO ===================== */
.cb-intro { background: linear-gradient(135deg, #eef2ff, #f0f9ff); border: 1px solid #dbe3f5; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.cb-intro h3 { margin: 0 0 6px; color: #0f1f4d; }
.cb-intro p { margin: 0; color: #334155; line-height: 1.55; font-size: .92rem; }
.cb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 2px solid #eef1f9; padding-bottom: 8px; }
.cb-tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: #475569; background: #f1f4fb; }
.cb-tabs button.is-on { background: #1d4ed8; color: #fff; }
.cb-tabs button:focus-visible { outline: 2px solid #38bdf8; }
.cb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.cb-kpis div { background: #f6f8ff; border-radius: 12px; padding: 10px 14px; }
.cb-kpis strong { display: block; font-size: 1.5rem; color: #0f1f4d; }
.cb-kpis span { font-size: .78rem; color: #5b6b94; font-weight: 600; }
.cb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cb-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cb-table th, .cb-table td { border: 1px solid #e3e9f7; padding: 7px 10px; text-align: center; }
.cb-table th:first-child, .cb-table thead th { background: #f3f6fc; }
.cb-table th:first-child { text-align: left; white-space: nowrap; }
.cb-table thead small { display: block; font-weight: 600; color: #6b7aa5; font-size: .7rem; }
.cb-c { position: relative; }
.cb-c b { font-size: 1rem; }
.cb-c small { color: #6b7aa5; margin-left: 3px; }
.cb-c i { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .5; }
.cb-v { background: #ecfdf5; color: #166534; }
.cb-a { background: #fffbeb; color: #92400e; }
.cb-r { background: #fef2f2; color: #991b1b; }
.cb-tot th, .cb-tot td { background: #eef2ff; font-weight: 800; }
.cb-leg { font-size: .8rem; color: #5b6b94; margin: 10px 0; }
.cb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.cb-meta { margin-top: 10px; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 8px 12px; }
.cb-meta summary { cursor: pointer; font-weight: 700; color: #1d4ed8; }
.cb-meta__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cb-meta__row input { width: 74px; padding: 6px; border: 2px solid #dbe3f5; border-radius: 8px; }
.cb-stack { display: inline-flex; width: 100%; max-width: 140px; height: 10px; border-radius: 99px; overflow: hidden; background: #e5e7eb; vertical-align: middle; }
.cb-stack i { display: block; height: 100%; }
.cb-table--q small { display: block; font-size: .68rem; color: #6b7aa5; }
.cb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cb-filters select, .cb-filters input { padding: 8px 10px; border: 2px solid #dbe3f5; border-radius: 10px; font: inherit; }
.cb-filters input { flex: 1; min-width: 180px; }
.cb-q { border: 1px solid #e3e9f7; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; background: #fbfcff; }
.cb-q summary { cursor: pointer; font-weight: 600; color: #0f1f4d; }
.cb-q blockquote { margin: 8px 0; padding: 8px 12px; background: #f1f5f9; border-left: 4px solid #94a3b8; border-radius: 6px; font-size: .86rem; max-height: 180px; overflow: auto; }
.cb-q ol { margin: 8px 0 8px 22px; padding: 0; }
.cb-q li.ok { color: #166534; font-weight: 700; }
.cb-tag { background: #e0e7ff; color: #3730a3; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 800; margin-right: 4px; }
.cb-niv { float: right; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #eef2f7; }
.cb-meta-line { font-size: .75rem; color: #6b7aa5; margin: 4px 0 0; }
.cb-top { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cb-top li { display: flex; gap: 12px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; }
.cb-pct { font-weight: 800; font-size: 1.1rem; color: #9a3412; min-width: 62px; text-align: center; }
.cb-pct small { display: block; font-size: .62rem; }
.cb-top small { display: block; color: #7a5a3a; }
.cb-empty { background: #f6f8ff; border-radius: 12px; padding: 14px; color: #475569; }
/* Contenido: conmutador banco / exámenes finales */
.cb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.cb-modes button { all: unset; cursor: pointer; text-align: center; padding: 12px 10px; border-radius: 12px; font-weight: 800; font-size: .95rem; color: #1e3a8a; background: #eef2ff; border: 2px solid #dbe3f5; box-sizing: border-box; }
.cb-modes button.is-on { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(29, 78, 216, .25); }
.cb-modes button:focus-visible { outline: 2px solid #38bdf8; }
.cb-real { margin-top: 18px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #fefce8); border: 1px solid #fed7aa; }
.cb-real h3 { margin: 0 0 10px; color: #9a3412; }
.cb-table .cb-l { text-align: left; }
.cb-list { margin: 12px 0 0; padding-left: 18px; color: #334155; font-size: .9rem; line-height: 1.55; }
.cb-modes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .cb-modes { grid-template-columns: 1fr; }

}
.cb-grid-gr { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; margin-top: 12px; }
.cb-gr { border: 1px solid #e2e8f4; border-radius: 16px; padding: 14px; background: #fff; box-shadow: 0 2px 8px rgba(15, 31, 77, .05); }
.cb-gr h4 { margin: 0 0 8px; color: #0f1f4d; font-size: 1.1rem; }
.cb-gr h4 small { font-weight: 600; color: #64748b; font-size: .75rem; margin-left: 6px; }
.cb-kpis--s { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cb-kpis--s strong { font-size: 1.15rem; }
.cb-kpis--s span { font-size: .68rem; }
.cb-bar { display: grid; grid-template-columns: 1.4fr 1.6fr auto auto; gap: 8px; align-items: center; font-size: .8rem; margin: 5px 0; }
.cb-bar > div { height: 8px; border-radius: 6px; background: #eef1f9; overflow: hidden; }
.cb-bar i { display: block; height: 100%; border-radius: 6px; }
.cb-bar i.cb-v { background: #22c55e; }
.cb-bar i.cb-a { background: #f59e0b; }
.cb-bar i.cb-r { background: #ef4444; }
.cb-bar small { color: #94a3b8; }
.cb-ins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) {
  .cb-ins { grid-template-columns: 1fr; }

}
.cb-ins > div { border-radius: 12px; padding: 10px; font-size: .8rem; }
.cb-ins p { margin: 4px 0; }
.cb-ins em { font-style: normal; font-weight: 800; float: right; }
.cb-ins__bad { background: #fef2f2; color: #7f1d1d; }
.cb-ins__ok { background: #f0fdf4; color: #14532d; }
.cb-tema { opacity: .85; }
/* ===== Aventura: clasificación, personaje, tienda, Mundo Chalo ===== */
.rk-sueldo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #fef9c3, #fde68a); border: 1px solid #fcd34d; margin: 8px 0; }
.rk-sueldo div { display: flex; flex-direction: column; }
.rk-sueldo span { font-size: .85rem; color: #78350f; }
.rk-tabla-premios { font-size: .78rem; }
.rk-podio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; margin: 14px 0; }
.rk-pod { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rk-pod b { font-size: .85rem; }
.rk-pod small { color: #64748b; font-size: .7rem; }
.rk-pod__av { width: 84px; height: 98px; }
.rk-pod--1 .rk-pod__av { width: 104px; height: 120px; filter: drop-shadow(0 0 12px #fde047); }
.rk-pod__av svg, .rk-mini svg { width: 100%; height: 100%; }
.rk-pod__base { width: 100%; border-radius: 12px 12px 0 0; padding: 8px 0; font-size: 1.5rem; background: linear-gradient(#e0e7ff, #c7d2fe); }
.rk-pod--1 .rk-pod__base { padding: 20px 0; background: linear-gradient(#fde68a, #fbbf24); }
.rk-pod--2 .rk-pod__base { padding: 12px 0; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 6px; background: #fff; border: 2px solid var(--border); border-radius: 12px; }
.rk-row--yo { border-color: var(--violet); background: #eef2ff; }
.rk-pos { width: 28px; font-weight: 800; color: #475569; }
.rk-mini { width: 38px; height: 44px; flex: none; }
.rk-info { display: flex; flex-direction: column; min-width: 0; }
.rk-info small { color: #64748b; font-size: .72rem; }
.rk-xp { margin-left: auto; font-weight: 800; white-space: nowrap; }
.rk-ligas { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-liga { background: #f1f5f9; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; }
.rk-liga small { color: #64748b; font-weight: 500; }
.pj { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 640px) {
  .pj { grid-template-columns: 1fr; justify-items: center; }

}
.pj__stage { width: 220px; height: 260px; border-radius: 20px; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #c7d2fe, #818cf8 60%, #4338ca); box-shadow: inset 0 0 40px rgba(0,0,0,.2); }
.pj__svg { width: 190px; height: 230px; overflow: visible; }
.pj__stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.pj__stats span { background: #eef2ff; padding: 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.pj__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.pj__row small { width: 100%; color: #64748b; font-weight: 700; }
.pj__opt { all: unset; cursor: pointer; min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; font-size: .75rem; font-weight: 700; background: #f1f5f9; text-align: center; line-height: 24px; }
.pj__opt.on { box-shadow: 0 0 0 3px #4f46e5; }
.pj__opt:focus-visible { outline: 2px solid #38bdf8; }
.pj__row .pj__opt:not([style]) { border-radius: 999px; }
.chalo-aura { transform-origin: 60px 78px; animation: chaloAura 2.6s ease-in-out infinite; }
@keyframes chaloAura { 50% { transform: scale(1.06); opacity: .8; } }
.chalo-pet { animation: chaloPet 1s ease-in-out infinite; }
@keyframes chaloPet { 50% { transform: translateY(-4px); } }
.shop-item { position: relative; }
.shop-item.is-eq { border-color: #4f46e5; box-shadow: 0 0 0 3px #c7d2fe; }
.shop-item__pv { height: 120px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(160deg, #eef2ff, #e0f2fe); overflow: hidden; }
.shop-item__pv svg { height: 116px; width: auto; }
.shop-item__pv--e { font-size: 3rem; }
.shop-item .rz { position: absolute; top: 8px; right: 8px; color: #fff; font-style: normal; font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.rz-epico { border-color: #c084fc; }
.rz-legendario { border-color: #fbbf24; background: linear-gradient(#fffbeb, #fff); }
.mundo-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.mundo-info div { background: #eef2ff; border-radius: 12px; padding: 10px; text-align: center; }
.mundo-info b { display: block; font-size: 1.2rem; }
.mundo-info span { font-size: .72rem; color: #64748b; }
.mundo { display: flex; flex-direction: column; gap: 8px; }
.mundo__hud { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mundo__hud span { background: #0f172a; color: #fff; padding: 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.mundo__btn { all: unset; cursor: pointer; background: #4f46e5; color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.mundo__btn:last-child { background: #64748b; margin-left: auto; }
.mundo__stage { position: relative; border-radius: 16px; overflow: hidden; background: #6fc96b; touch-action: none; }
.mundo__canvas { display: block; width: 100%; touch-action: none; }
.mundo__mini { position: absolute; top: 8px; right: 8px; border: 2px solid rgba(255,255,255,.8); border-radius: 8px; opacity: .92; width: 112px; height: auto; }
.mundo__msg { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(15, 23, 42, .85); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; max-width: 70%; text-align: center; }
.mundo__joy { position: absolute; left: 14px; bottom: 14px; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.3); border: 2px solid rgba(255,255,255,.7); touch-action: none; display: grid; place-items: center; }
.mundo__joy i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mundo__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); display: grid; place-items: center; padding: 12px; overflow: auto; }
.mundo__card { background: #fff; border-radius: 18px; padding: 18px; max-width: 460px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.mundo__card h3 { margin: 0; }
.mundo__big { font-size: 1.3rem; font-weight: 800; margin: 0; }
.mundo__timer { font-size: 3rem; font-weight: 900; color: #4f46e5; }
.mundo__ops { display: grid; gap: 8px; }
.mundo__op { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: #eef2ff; font-weight: 600; font-size: .92rem; text-align: left; }
.mundo__op.ok { background: #bbf7d0; }
.mundo__op.mal { background: #fecaca; }
.mundo__q { font-weight: 700; margin: 0; }
.mundo__fb { margin: 0; }
.mundo__help { font-size: .78rem; color: #64748b; margin: 0; }
.cb-canje { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef1f9; flex-wrap: wrap; }
.cb-badge { background: #ef4444; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; margin-left: 6px; }
.mundo__ctx { margin: 0; text-align: left; font-size: .85rem; background: #f8fafc; border-left: 4px solid #818cf8; padding: 8px 10px; border-radius: 8px; max-height: 120px; overflow: auto; white-space: pre-line; }
/* ===== personaje flotante ===== */
.pjf { position: fixed; z-index: 900; right: 14px; top: 66px; width: 92px; display: flex; flex-direction: column; align-items: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .35)); transition: transform .15s; }
.pjf.is-drag { cursor: grabbing; transform: scale(1.06); }
.pjf__body { width: 92px; height: 108px; }
.pjf__svg { width: 100%; height: 100%; overflow: visible; }
.pjf__tag { background: rgba(15, 23, 42, .85); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .68rem; display: flex; gap: 6px; align-items: center; max-width: 120px; margin-top: -6px; }
.pjf__tag b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
.pjf__tag span { color: #fde047; font-weight: 800; }
.pjf__min { position: absolute; top: -4px; right: -4px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .75); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; padding: 0; }
.pjf.is-min { width: 40px; }
.pjf.is-min .pjf__min { position: static; width: 40px; height: 40px; font-size: 1.2rem; }
@media (max-width: 700px) {
  .pjf { width: 64px; }
  .pjf__body { width: 64px; height: 76px; }
  .pjf__tag { display: none; }

}
/* ===== Mundo Chalo 3D, info de objetos, widgets ===== */
.mundo-pase { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #fef2f2; border: 1px solid #fecaca; margin: 10px 0; }
.mundo-pase.ok { background: #ecfdf5; border-color: #a7f3d0; }
.mundo-pase span { font-size: .85rem; color: #475569; }
.mundo-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: 8px; margin: 8px 0; }
.mundo-w { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--border, #e2e8f0); background: #fff; text-align: center; box-sizing: border-box; }
.mundo-w.on { border-color: #4f46e5; box-shadow: 0 0 0 3px #c7d2fe; }
.mundo-w.lock { opacity: .55; }
.mundo-w small { font-size: .7rem; color: #64748b; }
.mundo-w:focus-visible { outline: 2px solid #38bdf8; }
.mundo-w__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; }
.mundo-det { background: #f8fafc; border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.mundo-det__t { display: flex; gap: 12px; align-items: center; }
.mundo-det__t > span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.mundo-det h4 { margin: 0; }
.mundo-det h4 small { color: #64748b; font-weight: 600; }
.mundo-det p { margin: 2px 0 0; font-size: .85rem; color: #475569; }
.mundo-det ul { margin: 8px 0; padding-left: 18px; font-size: .85rem; }
.mundo-det .btn { margin-top: 6px; }
.mundo__prompt { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(15, 23, 42, .88); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
@media (pointer: fine) and (min-width: 761px) {
  .mundo__joy { display: none; }

}
.mundo__hud .mundo__lvl { background: #4f46e5; }
.mundo__hud .is-low { background: #dc2626; animation: chaloAura 1s infinite; }
.mundo__stage:fullscreen { border-radius: 0; background: #000; }
.mundo__stage:fullscreen .mundo__canvas { height: 100vh !important; }
.info-obj { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .65); display: grid; place-items: center; padding: 14px; overflow: auto; }
.info-obj__card { position: relative; background: #fff; border-radius: 22px; max-width: 640px; width: 100%; display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
@media (max-width: 600px) {
  .info-obj__card { grid-template-columns: 1fr; }

}
.info-obj__x { position: absolute; top: 10px; right: 10px; border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.info-obj__pv { border-radius: 18px; background: radial-gradient(circle at 50% 80%, #fff, color-mix(in srgb, var(--rz) 26%, #eef2ff)); display: grid; place-items: center; min-height: 230px; border: 2px solid var(--rz); }
.info-obj__pv svg { height: 210px; width: auto; }
.info-obj__emoji { font-size: 5rem; }
.info-obj__txt h3 { margin: 6px 0 2px; font-size: 1.3rem; }
.info-obj__d { margin: 0 0 8px; color: #475569; }
.info-obj .rz { color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.info-obj__box { background: #f5f3ff; border-radius: 14px; padding: 10px 12px; }
.info-obj__box p { margin: 4px 0; font-size: .9rem; }
.info-obj__box ul { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; color: #4338ca; }
.info-obj__precio { margin: 10px 0 0; font-size: .9rem; }
.shop-item__row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.shop-item__row .btn { flex: 1 1 auto; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin: 12px 0; }
.ap-card { background: #f8fafc; border: 1px solid #e2e8f4; border-radius: 14px; padding: 12px; }
.ap-card h4 { margin: 0 0 4px; }
.ap-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ap-row input, .ap-row select { flex: 1; min-width: 90px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; }
.ap-go { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.ap-t { margin: 18px 0 4px; }
.ap-tipo { margin: 16px 0 6px; }
.ap-tipo small { color: #94a3b8; }
.ap-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.ap-item { display: flex; gap: 10px; background: #fff; border: 1px solid #e2e8f4; border-radius: 14px; padding: 8px; }
.ap-item__pv { width: 86px; flex: none; background: linear-gradient(160deg, #eef2ff, #e0f2fe); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.ap-item__pv svg { height: 100px; width: auto; }
.ap-emoji { font-size: 2.6rem; }
.ap-item p { margin: 4px 0 0; font-size: .8rem; color: #475569; }
.ap-item em { font-style: normal; font-weight: 800; color: #b45309; font-size: .8rem; }
.ap-item .rz { color: #fff; font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
/* ===== Mundo Chalo: misiones, controles tipo mando, guía ===== */
.pj__gen { margin-bottom: 8px; }
.pj__g { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 999px; background: #f1f5f9; font-weight: 800; font-size: .85rem; border: 2px solid transparent; }
.pj__g.on { background: #4f46e5; color: #fff; }
.pj__g:focus-visible { outline: 2px solid #38bdf8; }
.reg-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: end; margin: 12px 0; }
.reg-form label { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; gap: 4px; }
.reg-form select, .reg-form input { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: .95rem; }
@media (max-width: 560px) {
  .reg-form { grid-template-columns: 1fr; }

}
.mundo__hp { background: rgba(15,23,42,.9) !important; letter-spacing: -2px; }
.mundo__btn--i { padding: 5px 9px; }
.mundo__trk { position: absolute; top: 10px; left: 10px; background: rgba(15, 23, 42, .78); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: .78rem; max-width: 52%; pointer-events: none; }
.mundo__trk i { font-style: normal; color: #fde047; margin-left: 4px; }
.mundo__boss { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: min(420px, 70%); text-align: center; color: #fff; font-weight: 800; font-size: .85rem; text-shadow: 0 1px 4px #000; }
.mundo__boss i { display: block; height: 12px; background: rgba(0,0,0,.6); border-radius: 8px; overflow: hidden; border: 2px solid #fff; margin-top: 2px; }
.mundo__boss u { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f97316); transition: width .15s; }
.mundo__hit { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px 20px rgba(239,68,68,.8); opacity: 0; transition: opacity .2s; }
.mundo__hit.on { opacity: 1; }
.mundo__fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .7s; z-index: 4; }
.mundo__fade.on { opacity: 1; pointer-events: all; }
.mundo__overlay { z-index: 5; }
.mundo__joy { all: unset; }
.pad { position: absolute; inset: 0; pointer-events: none; opacity: .5; transition: opacity .2s; z-index: 3; }
.pad--off { display: none; }
.pad > * { pointer-events: all; touch-action: none; }
.pad__joy { position: absolute; left: 18px; bottom: 18px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.28); border: 2px solid rgba(255,255,255,.75); display: grid; place-items: center; touch-action: none; }
.pad__joy i { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pad__btns { position: absolute; right: 16px; bottom: 16px; width: 150px; height: 150px; }
.pad__b { all: unset; position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; color: #fff; background: rgba(15,23,42,.55); border: 3px solid currentColor; cursor: pointer; user-select: none; box-sizing: border-box; touch-action: none; }
.pad__b.on, .pad__sh.on { background: rgba(255,255,255,.75); color: #0f172a !important; transform: scale(.94); }
.pad__tri { left: 48px; top: 0; color: #4ade80; }
.pad__sq { left: 0; top: 48px; color: #f472b6; }
.pad__cir { right: 0; top: 48px; color: #f87171; }
.pad__x { left: 48px; bottom: 0; color: #60a5fa; }
.pad__sh { all: unset; position: absolute; top: 56px; padding: 6px 14px; border-radius: 10px; background: rgba(15,23,42,.55); color: #fff; font-weight: 800; font-size: .8rem; cursor: pointer; border: 2px solid rgba(255,255,255,.7); touch-action: none; }
.pad__l { left: 14px; }
.pad__r { right: 14px; }
.pad:hover, .pad:active { opacity: .85; }
@media (max-width: 760px) {
  .pad { opacity: .6; }
  .pad__joy { width: 96px; height: 96px; }
  .pad__btns { transform: scale(.88); transform-origin: bottom right; }

}
.mundo__card--guia { max-width: 640px; text-align: left; }
.mundo__card--win { max-width: 480px; background: linear-gradient(160deg, #fffbeb, #fff); }
.mundo__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mundo__tabs button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 10px; background: #f1f5f9; font-weight: 700; font-size: .8rem; }
.mundo__tabs button.on { background: #4f46e5; color: #fff; }
.mundo__sec { max-height: 46vh; overflow: auto; font-size: .88rem; }
.mundo__sec h3, .mundo__sec h4 { margin: 4px 0; }
.mundo__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mundo__grid2 > div { background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
.mundo__grid2 p { margin: 2px 0 0; color: #475569; font-size: .8rem; }
@media (max-width: 520px) {
  .mundo__grid2 { grid-template-columns: 1fr; }

}
.mundo__ol, .mundo__ul { margin: 6px 0; padding-left: 20px; line-height: 1.5; }
.mundo__ruta { display: grid; gap: 4px; margin: 8px 0; }
.mundo__ruta > div { display: flex; gap: 8px; align-items: center; background: #f8fafc; padding: 6px 10px; border-radius: 10px; font-size: .85rem; text-align: left; }
.mundo__ruta .ok { background: #ecfdf5; }
.mundo__ruta b { width: 22px; text-align: center; }
.mundo__m { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #f8fafc; margin: 4px 0; text-align: left; font-size: .84rem; }
.mundo__m.ok { background: #ecfdf5; }
.mundo__m i { display: block; height: 6px; background: #e2e8f0; border-radius: 4px; margin-top: 3px; overflow: hidden; }
.mundo__m u { display: block; height: 100%; background: #22c55e; }
.mundo__m em { font-style: normal; font-size: .72rem; color: #64748b; white-space: nowrap; }
.mundo__emo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mundo__emo button { all: unset; cursor: pointer; text-align: center; padding: 12px 6px; border-radius: 14px; background: #eef2ff; font-weight: 800; display: flex; flex-direction: column; gap: 2px; }
.mundo__emo span { font-size: 2rem; }
.mundo__emo small { color: #64748b; font-weight: 500; }
/* Aula v2: grados, apoyo visual y enlace al video */
.aula-grados { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.aula-visual { text-align: center; margin: 10px 0 12px; padding: 8px; background: #f8faff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.aula-visual svg { display: block; margin: 0 auto; }
.aula-item--mapa { border-color: var(--violet); background: #f6f4ff; }
.aula-video { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; border-left: 6px solid var(--violet); }
.aula-video__ico { font-size: 1.6rem; }
.aula-video__txt { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
/* ===== Tarjeta de Chalos (regalo / canje) adjunta a un mensaje ===== */
.gcard { --g1: #7c3aed; --g2: #ec4899; --gline: #fcd34d; position: relative; overflow: hidden; margin: 8px 0 2px; min-width: 230px; max-width: 340px; border-radius: 16px; color: #fff; text-align: left;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(135deg, var(--g1), var(--g2));
  border: 2px solid var(--gline); box-shadow: 0 6px 18px rgba(76,29,149,.35), inset 0 0 0 2px rgba(255,255,255,.18); }
.gcard--canje { --g1: #0f766e; --g2: #b45309; --gline: #fde68a; box-shadow: 0 6px 18px rgba(120,53,15,.35), inset 0 0 0 2px rgba(255,255,255,.18); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: gcardShine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes gcardShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.gcard__ribbon { display: inline-block; margin: 0 0 0 12px; padding: 3px 12px 4px; font-size: .68rem; font-weight: 900; letter-spacing: .12em; color: #4a2c0a; background: linear-gradient(180deg, #fde68a, #f59e0b); border-radius: 0 0 10px 10px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.gcard__body { display: flex; align-items: center; gap: 12px; padding: 10px 14px 8px; }
.gcard__coinwrap { position: relative; flex: none; width: 64px; height: 64px; }
.gcard__coinwrap .chalo-coin.gcard__coin { width: 64px; height: 64px; margin: 0; vertical-align: top; cursor: default; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); animation: gcardBob 2.4s ease-in-out infinite; }
@keyframes gcardBob { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-4px) rotateY(18deg); } }
.gcard__spark { position: absolute; color: #fff7c2; font-size: .8rem; text-shadow: 0 0 6px #fde047; animation: gcardTw 1.8s ease-in-out infinite; }
.gcard__spark--1 { top: -4px; right: -2px; }
.gcard__spark--2 { bottom: 2px; left: -6px; animation-delay: .6s; font-size: .6rem; }
.gcard__spark--3 { top: 10px; left: -8px; animation-delay: 1.1s; font-size: .5rem; }
@keyframes gcardTw { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
.gcard__info { min-width: 0; flex: 1; }
.gcard__amount { font-size: 1.7rem; font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.28); }
.gcard__amount small { font-size: .75rem; font-weight: 800; opacity: .9; letter-spacing: .04em; }
.gcard__route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: .78rem; font-weight: 800; }
.gcard__route span { background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard__route b { color: var(--gline); }
.gcard__concept { margin-top: 6px; font-size: .7rem; opacity: .95; }
.gcard__foot { padding: 5px 14px 8px; font-size: .65rem; opacity: .8; border-top: 1px dashed rgba(255,255,255,.4); margin: 0 10px; padding-left: 4px; }
.chat__row--mine .gcard, .chat__bubble .gcard { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .gcard::after, .gcard__coin, .gcard__spark { animation: none !important; }

}
/* historial de Chalos */
.gh-list { display: grid; gap: 6px; margin-top: 8px; }
.gh-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); font-size: .88rem; }
.gh-item__amt { font-weight: 900; white-space: nowrap; }
.gh-item--in .gh-item__amt { color: #15803d; }
.gh-item--out .gh-item__amt { color: #b91c1c; }
.gh-item__tag { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #ede9fe; color: #6d28d9; white-space: nowrap; }
.gh-item__tag--canje { background: #fef3c7; color: #92400e; }
.gh-item small { opacity: .7; margin-left: auto; white-space: nowrap; }
.gcard__bal { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 14px 6px; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.28); font-size: .74rem; font-weight: 700; }
.gcard__bal b { font-size: .9rem; color: #fde68a; }
.gcard__bal i { font-style: normal; color: #fde68a; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 8px; margin: 8px 0; }
.gs-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 12px; background: linear-gradient(160deg, #fffbeb, #fef3c7); border: 1px solid #fcd34d; color: #78350f; }
.gs-stat__ic { font-size: 1.2rem; }
.gs-stat b { font-size: 1.15rem; }
.gs-stat small { font-size: .68rem; opacity: .8; }
.gh-item { flex-wrap: wrap; }
.gh-item__bal { font-size: .78rem; background: #f1f5f9; padding: 2px 8px; border-radius: 999px; color: #334155; }
.gcard--premio-pendiente { --g1: #1d4ed8; --g2: #d97706; --gline: #fde68a; }
.gcard--premio-entregado { --g1: #15803d; --g2: #0d9488; --gline: #bbf7d0; }
.gcard--premio-rechazado { --g1: #b91c1c; --g2: #64748b; --gline: #fecaca; }
.gcard--premio-pendiente, .gcard--premio-entregado, .gcard--premio-rechazado { box-shadow: 0 6px 18px rgba(15,23,42,.35), inset 0 0 0 2px rgba(255,255,255,.18); }
.cb-canje { flex-wrap: wrap; gap: 6px; }
/* ===== Bodega del estudiante ===== */
.chip--bodega { background: linear-gradient(135deg, #fde68a, #f59e0b); border-color: #d97706; color: #451a03; font-weight: 800; }
.chip--bodega.chip--on { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.own-tag { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: .66rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #16a34a; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.shop-item.is-owned { background: linear-gradient(180deg, #f0fdf4, #fff); }
.shop-item .shop-item__pv svg { max-height: 150px; }
.bod { grid-column: 1 / -1; display: grid; gap: 12px; }
.shop-grid--bodega { display: block; }
.bod-uso { padding: 12px; border-radius: 16px; color: #fff; background: radial-gradient(120% 100% at 0% 0%, rgba(167,139,250,.5), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81); border: 2px solid #a78bfa; box-shadow: 0 6px 18px rgba(49,46,129,.35); }
.bod-uso h4 { margin: 0 0 8px; color: #fde68a; }
.bod-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 8px; }
.bod-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); text-align: center; }
.bod-slot.on { background: rgba(250,204,21,.16); border: 1px solid #fcd34d; box-shadow: 0 0 12px rgba(250,204,21,.25); }
.bod-slot__ic { font-size: 1.5rem; }
.bod-slot small { opacity: .7; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.bod-slot b { font-size: .76rem; line-height: 1.15; }
.bod-slot__q { margin-top: 4px; font-size: .68rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 0; background: #fff; color: #4338ca; cursor: pointer; }
.bod-filtros { flex-wrap: wrap; }
.chip--sm { font-size: .78rem; padding: 4px 10px; }
.bod-vacia { padding: 18px; text-align: center; border: 2px dashed var(--border); border-radius: 14px; }
.bod-item .shop-item__row { display: flex; gap: 6px; flex-wrap: wrap; }
.bod-dest { max-width: 420px; width: 100%; }
.bod-dest__q { width: 100%; padding: 9px 12px; border: 2px solid var(--border); border-radius: 10px; margin: 6px 0; font-size: .95rem; }
.bod-dest__list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.gcard__emoji { display: grid; place-items: center; width: 64px; height: 64px; font-size: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), rgba(255,255,255,.1)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); animation: gcardBob 2.4s ease-in-out infinite; }
.gcard__amount--item { font-size: 1.05rem; line-height: 1.2; }
.gcard__amount--item small { font-size: .95rem; letter-spacing: 0; }
.bod-slots { grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr)); gap: 6px; }
.bod-slot { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; align-items: center; gap: 2px 8px; padding: 6px 10px; }
.bod-slot__ic { font-size: 1.2rem; }
.bod-slot small { display: block; width: calc(100% - 34px); }
.bod-slot b { flex: 1 1 100%; }
.bod-slot__q { margin-top: 0; margin-left: auto; }
.bod-uso { padding: 8px 10px; }
.bod-uso h4 { font-size: .85rem; margin-bottom: 6px; }
.bod-cab h3 { margin: 4px 0 2px; }
.bod-cab p { margin: 0; }
/* ---------- Respuestas y revisión (rv2) ---------- */
.rv2 { --rv-ok: #16a34a; --rv-okbg: #f0fdf4; --rv-no: #dc2626; --rv-nobg: #fef2f2; --rv-ink: #0f2e25; --rv-mut: #5f7a70; --rv-line: #e3efe9; color: var(--rv-ink); display: grid; gap: 18px; }
.rv2 h2, .rv2 h3, .rv2 h5 { margin: 0; }
.rv2-hero { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 12% 20%, #10b981 0, transparent 45%), linear-gradient(135deg, #064e3b, #0b3a5b); box-shadow: 0 10px 30px rgba(6,78,59,.25); }
.rv2-donut { width: 140px; height: 140px; flex: none; }
.rv2-donut .bg { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 12; }
.rv2-donut .fg { fill: none; stroke: #34d399; stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.rv2-donut.amarillo .fg { stroke: #fbbf24; }
.rv2-donut.naranja .fg { stroke: #fb923c; }
.rv2-donut.gris .fg { stroke: #94a3b8; }
.rv2-donut .n { fill: #fff; font-size: 30px; font-weight: 800; }
.rv2-donut .s { fill: rgba(255,255,255,.75); font-size: 10px; }
.rv2-hero__txt { flex: 1; min-width: 260px; }
.rv2-hero__txt h2 { font-size: 1.6rem; }
.rv2-hero__txt p { margin: 4px 0 14px; opacity: .85; }
.rv2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.rv2-kpis > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(4px); }
.rv2-kpis b { display: block; font-size: 1.45rem; line-height: 1.1; }
.rv2-kpis span { font-size: .78rem; opacity: .85; }
.rv2-kpis .g b { color: #86efac; }
.rv2-kpis .r b { color: #fca5a5; }
.rv2-sec { background: #fff; border: 1px solid var(--rv-line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(6,78,59,.05); }
.rv2-sec > h3 { font-size: 1.08rem; margin-bottom: 12px; }
.rv2-sec > h3 small { font-weight: 600; color: var(--rv-mut); font-size: .78rem; margin-left: 6px; }
.rv2-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.rv2-mat { all: unset; box-sizing: border-box; cursor: pointer; display: block; border: 1px solid var(--rv-line); border-left: 5px solid #94a3b8; border-radius: 14px; padding: 13px 14px; background: #fbfdfc; transition: transform .15s, box-shadow .15s; }
.rv2-mat:hover, .rv2-mat:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,78,59,.12); outline: none; }
.rv2-mat.verde { border-left-color: #16a34a; }
.rv2-mat.amarillo { border-left-color: #eab308; }
.rv2-mat.naranja { border-left-color: #f97316; }
.rv2-mat .top { display: flex; align-items: center; gap: 8px; }
.rv2-mat .ic { font-size: 1.3rem; }
.rv2-mat .nm { font-weight: 800; flex: 1; }
.rv2-mat .pc { font-weight: 800; font-size: 1.15rem; }
.rv2 .bar { display: block; height: 8px; background: #e8f1ed; border-radius: 99px; overflow: hidden; }
.rv2 .bar.big { margin: 9px 0 6px; height: 10px; }
.rv2 .bar b { display: block; height: 100%; border-radius: 99px; background: #16a34a; }
.rv2 .bar b.amarillo { background: #eab308; }
.rv2 .bar b.naranja { background: #f97316; }
.rv2 .bar b.gris { background: #94a3b8; }
.rv2-mat .sub { font-size: .82rem; color: var(--rv-mut); }
.rv2-mat .sub em { font-style: normal; font-weight: 700; color: var(--rv-ink); }
.rv2-mat .comps { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--rv-line); display: grid; gap: 5px; }
.rv2-mat .comps li { display: grid; grid-template-columns: 1fr 56px 34px; gap: 8px; align-items: center; font-size: .76rem; color: #3b564c; }
.rv2-mat .comps small { text-align: right; color: var(--rv-mut); }
.rv2-pris { display: grid; gap: 10px; }
.rv2-pri { display: flex; gap: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 12px 14px; }
.rv2-pri .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f59e0b; color: #fff; display: grid; place-items: center; font-weight: 800; }
.rv2-pri b { display: block; }
.rv2-pri small { color: var(--rv-mut); }
.rv2-pri p { margin: 6px 0 0; font-size: .9rem; color: #5b4a12; }
.rv2-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv2-seg { display: inline-flex; background: #eef5f1; border-radius: 999px; padding: 4px; }
.rv2-seg button { all: unset; cursor: pointer; padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .87rem; color: #3b564c; }
.rv2-seg button.on { background: #059669; color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.35); }
.rv2-sel, .rv2-find, .rv2-print { font: inherit; font-size: .88rem; border: 1px solid #cfe3da; background: #fff; color: var(--rv-ink); border-radius: 999px; padding: 8px 14px; }
.rv2-find { flex: 1; min-width: 160px; }
.rv2-print { cursor: pointer; font-weight: 700; }
.rv2-count { margin: 10px 2px 8px; font-size: .84rem; }
.rv2-ses { border: 1px solid var(--rv-line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.rv2-ses[open] { box-shadow: 0 6px 18px rgba(6,78,59,.09); }
.rv2-ses > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(180px, 1.1fr) 1.2fr minmax(90px, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, #f4fbf7, #fff); }
.rv2-ses > summary::-webkit-details-marker { display: none; }
.rv2-ses > summary::after { content: "▾"; color: var(--rv-mut); margin-left: 4px; }
.rv2-ses[open] > summary::after { content: "▴"; }
.rv2-ses .when { font-weight: 800; }
.rv2-ses .what { color: var(--rv-mut); font-size: .9rem; }
.rv2-ses .enc { font-style: normal; background: #fef3c7; color: #92400e; border-radius: 99px; padding: 1px 8px; font-size: .72rem; margin-left: 6px; }
.rv2-ses .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.rv2-ses .dots i { width: 9px; height: 9px; border-radius: 3px; background: #16a34a; }
.rv2-ses .dots i.no { background: #ef4444; }
.rv2-ses .res { white-space: nowrap; }
.rv2-ses .res .g { color: var(--rv-ok); }
.rv2-ses .res small { color: var(--rv-mut); margin-left: 4px; }
.rv2-qs { display: grid; gap: 12px; padding: 14px 16px 16px; background: #fafdfb; }
.rv2-q { background: #fff; border: 1px solid var(--rv-line); border-left: 5px solid var(--rv-ok); border-radius: 14px; padding: 14px 16px; }
.rv2-q.no { border-left-color: var(--rv-no); }
.rv2-q > header { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; align-items: center; }
.rv2-badge { font-weight: 800; font-size: .78rem; padding: 3px 11px; border-radius: 99px; }
.rv2-badge.ok { background: #dcfce7; color: #166534; }
.rv2-badge.no { background: #fee2e2; color: #991b1b; }
.rv2-chip { background: #eef2f1; color: #3b564c; border-radius: 99px; padding: 3px 10px; font-size: .75rem; }
.rv2-q h5 { font-size: 1.02rem; line-height: 1.4; }
.rv2-ctx { margin: 9px 0 2px; padding: 10px 12px; background: #f3f7f5; border-radius: 10px; font-size: .9rem; color: #36524a; line-height: 1.5; }
.rv2-opts { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 7px; }
.rv2-opts li { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--rv-line); border-radius: 11px; padding: 9px 12px; font-size: .92rem; background: #fff; }
.rv2-opts .ltr { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #eef2f1; display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #3b564c; }
.rv2-opts .tx { flex: 1; line-height: 1.4; }
.rv2-opts .t { flex: none; font-style: normal; font-weight: 800; font-size: .74rem; padding: 2px 9px; border-radius: 99px; align-self: center; }
.rv2-opts .t.cor { background: #16a34a; color: #fff; }
.rv2-opts .t.mal { background: #dc2626; color: #fff; }
.rv2-opts li.cor { background: var(--rv-okbg); border-color: #86efac; }
.rv2-opts li.cor .ltr { background: #16a34a; color: #fff; }
.rv2-opts li.mal { background: var(--rv-nobg); border-color: #fca5a5; }
.rv2-opts li.mal .ltr { background: #dc2626; color: #fff; }
.rv2-why { display: grid; gap: 8px; margin-top: 10px; }
.rv2-why .b { background: #fffbeb; border: 1px solid #fde68a; border-radius: 11px; padding: 9px 12px; }
.rv2-why .b b { font-size: .82rem; color: #92400e; }
.rv2-why .b p { margin: 3px 0 0; font-size: .9rem; color: #4a3b0d; line-height: 1.45; }
.rv2-warn { margin: 8px 0 0; font-size: .84rem; color: #92400e; background: #fff7ed; border-radius: 9px; padding: 7px 11px; }
.rv2-expl { margin-top: 8px; font-size: .88rem; }
.rv2-expl summary { cursor: pointer; color: #047857; font-weight: 700; }
.rv2-expl p { margin: 6px 0 0; color: #36524a; }
.rv2-more { display: block; margin: 12px auto 0; cursor: pointer; font: inherit; font-weight: 700; border: 1px solid #059669; color: #059669; background: #fff; border-radius: 999px; padding: 9px 22px; }
.rv2-empty { text-align: center; padding: 34px 20px; background: #fff; border: 1px dashed #bfe0d1; border-radius: 18px; }
.rv2-empty .ico { font-size: 2.4rem; }
.rv2-empty.small { padding: 16px; }
@media (max-width: 760px) {
  .rv2-ses > summary { grid-template-columns: 1fr; }
  .rv2-hero { padding: 18px; }

}
@media print {
  .rv2-bar, .rv2-more { display: none; }
  .rv2-hero { color: #000; background: #fff; box-shadow: none; border: 1px solid #ccc; }
  .rv2-kpis > div { background: #f4f4f4; border-color: #ddd; }
  .rv2-donut .n { fill: #000; }

}
/* Submenú de cada hijo en el portal de familias */
.adm--padres .adm-nav__item--sub { padding: 6px 10px; font-size: .82rem; font-weight: 600; opacity: .9; }
/* ---------- Portal de familias: barra lateral compacta ---------- */
.adm--padres { grid-template-columns: 208px 1fr; font-size: 13.5px; }
.adm--padres .adm-side { padding: 12px 8px; gap: 8px; }
.adm--padres .adm-brand { padding: 2px 4px 8px; gap: 8px; }
.adm--padres .adm-brand strong { font-size: .82rem; line-height: 1.15; }
.adm--padres .adm-brand small { font-size: .68rem; }
.adm--padres .adm-brand__logo { width: 30px; height: 30px; border-radius: 9px; }
.adm--padres .adm-user { padding: 7px 9px; gap: 8px; border-radius: 10px; }
.adm--padres .adm-user__av { width: 28px; height: 28px; font-size: .85rem; }
.adm--padres .adm-user strong { font-size: .8rem; line-height: 1.15; }
.adm--padres .adm-user small { font-size: .68rem; }
.adm--padres .adm-nav__group { padding: 9px 8px 3px; font-size: .58rem; }
.adm--padres .adm-nav__item { padding: 5px 8px; font-size: .8rem; gap: 8px; border-radius: 8px; line-height: 1.2; }
.adm--padres .adm-nav__ico { width: 18px; font-size: .95rem; flex: none; }
.adm--padres .adm-nav__ico img, .adm--padres .adm-nav__ico svg { width: 16px; height: 16px; }
.adm--padres .adm-nav__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.adm--padres .adm-nav__item--sub { padding: 4px 8px; font-size: .75rem; font-weight: 600; }
.adm--padres .adm-side__foot { padding-top: 8px; gap: 5px; }
.adm--padres .adm-main { padding: 14px 18px 28px; }
@media (max-width: 860px) {
  .adm--padres { grid-template-columns: 1fr; }
  .adm--padres .adm-side { width: 240px; }

}
/* ---------- Panorama del estudiante (pn) ---------- */
.pn { display: grid; gap: 14px; color: #0f2e25; }
.pn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.pn-kpi { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #e3efe9; box-shadow: 0 2px 10px rgba(6,78,59,.05); }
.pn-kpi .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }
.pn-kpi .t { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #5f7a70; font-weight: 700; }
.pn-kpi strong { display: block; font-size: 1.28rem; line-height: 1.15; }
.pn-kpi small { color: #6b8a7e; font-size: .72rem; }
.pn-kpi.azul .ico { background: #e0f2fe; }
.pn-kpi.verde .ico { background: #dcfce7; }
.pn-kpi.naranja .ico { background: #ffedd5; }
.pn-kpi.violeta .ico { background: #ede9fe; }
.pn-kpi.rosa .ico { background: #fce7f3; }
.pn-kpi.cian .ico { background: #cffafe; }
.pn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pn-card { background: #fff; border: 1px solid #e3efe9; border-radius: 18px; padding: 15px 17px; box-shadow: 0 2px 10px rgba(6,78,59,.05); min-width: 0; }
.pn-card.wide { grid-column: 1 / -1; }
.pn-card header { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pn-card h3 { margin: 0; font-size: .98rem; color: #064e3b; }
.pn-card h3 small { color: #6b8a7e; font-weight: 600; font-size: .72rem; margin-left: 6px; }
.pn-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-pills span { background: #eef5f1; border-radius: 99px; padding: 4px 11px; font-size: .76rem; color: #3b564c; }
.pn-pills b { color: #064e3b; }
.pn-leg { font-size: .76rem; color: #5f7a70; display: flex; gap: 8px; align-items: center; }
.pn-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pn-leg i.ok, .pn-svg .b.ok { fill: #34d399; background: #34d399; }
.pn-leg i.no, .pn-svg .b.no { fill: #f87171; background: #f87171; }
.pn-svg { width: 100%; height: auto; display: block; }
.pn-svg .gr { stroke: #e6efeb; stroke-width: 1; }
.pn-svg .ax { fill: #7b9187; font-size: 10px; }
.pn-svg .lb { fill: #5f7a70; font-size: 11px; font-weight: 700; }
.pn-svg .lb.hoy { fill: #059669; }
.pn-svg .lb2 { fill: #9aaea5; font-size: 9px; }
.pn-svg .vl { fill: #264a3e; font-size: 10px; font-weight: 700; }
.pn-svg .b.azul { fill: #38bdf8; }
.pn-svg .b.azul.hoy { fill: #0284c7; }
.pn-svg .b.cian { fill: #22d3ee; }
.pn-svg .b.cian.hoy { fill: #0891b2; }
.pn-svg .meta { stroke: #f59e0b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.pn-svg .metat { fill: #b45309; font-size: 10px; font-weight: 700; }
.pn-svg .ln { fill: none; stroke: #10b981; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pn-svg .dot { stroke: #fff; stroke-width: 2; fill: #10b981; }
.pn-svg .dot.y { fill: #eab308; }
.pn-svg .dot.r { fill: #f97316; }
.pn-card > small { display: block; margin-top: 4px; font-size: .76rem; }
.pn-card small.up { color: #15803d; }
.pn-card small.down { color: #b45309; }
.pn-card small.neu { color: #6b8a7e; }
.pn-row { display: grid; grid-template-columns: 1.2fr 1.4fr 44px 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: .86rem; border-bottom: 1px solid #eef5f1; }
.pn-row:last-child { border: 0; }
.pn-row .bar { display: block; height: 9px; background: #e8f1ed; border-radius: 99px; overflow: hidden; }
.pn-row .bar b { display: block; height: 100%; background: #16a34a; border-radius: 99px; }
.pn-row .bar b.amarillo { background: #eab308; }
.pn-row .bar b.naranja { background: #f97316; }
.pn-row small { color: #6b8a7e; text-align: right; }
.pn-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pn-mini > div { background: #ecfeff; border-radius: 12px; padding: 8px 10px; }
.pn-mini b { display: block; font-size: 1.02rem; color: #0e7490; }
.pn-mini span { font-size: .68rem; color: #4b6b73; line-height: 1.2; display: block; }
.pn-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #f4f8f6; font-size: .84rem; color: #3b564c; line-height: 1.4; }
.pn-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pn-log li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 2px; border-bottom: 1px solid #eef5f1; font-size: .86rem; }
.pn-log li:last-child { border: 0; }
.pn-log small { color: #6b8a7e; font-size: .72rem; }
@media (max-width: 900px) {
  .pn-grid { grid-template-columns: 1fr; }
  .pn-mini { grid-template-columns: repeat(2, 1fr); }

}
@media print {
  .pn-grid { grid-template-columns: 1fr 1fr; }

}
/* ---------- Reporte del día y gráfica de meta (pn) ---------- */
.pn-svg .trk { fill: #f1f6f3; stroke: #d5e4dc; stroke-width: 1; stroke-dasharray: 3 3; }
.pn-svg .bd { cursor: pointer; }
.pn-svg .bd:hover .trk, .pn-svg .bd:focus .trk { stroke: #059669; }
.pn-svg .bd:focus { outline: none; }
.pn-svg .hoyb { filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.pn-svg .st { font-size: 12px; }
.pn-svg .meta { stroke: #d97706; stroke-width: 1.6; stroke-dasharray: 6 4; }
.pn-svg .metat { fill: #92400e; font-size: 10px; font-weight: 800; }
.pn-help { margin: 2px 0 8px; font-size: .84rem; color: #4b6b61; line-height: 1.45; }
.pn-leg2 { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: .8rem; color: #3b564c; }
.pn-leg2 i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.pn-leg2 em { color: #7b9187; font-style: normal; }
.pn-nav { display: inline-flex; gap: 6px; }
.pn-nav button { font: inherit; font-size: .82rem; font-weight: 700; border: 1px solid #cfe3da; background: #fff; color: #064e3b; border-radius: 99px; padding: 5px 13px; cursor: pointer; }
.pn-nav button:disabled { opacity: .4; cursor: default; }
.pn-nav button:not(:disabled):hover { background: #ecfdf5; }
.pn-day { display: grid; grid-template-columns: 1.05fr 1.2fr 1fr; gap: 14px; margin-top: 8px; }
.pn-day > div { border: 1px solid #e3efe9; border-radius: 14px; padding: 12px 14px; background: #fbfdfc; min-width: 0; }
.pn-day h4 { margin: 0 0 8px; font-size: .88rem; color: #064e3b; }
.pn-day__tot span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #5f7a70; font-weight: 700; }
.pn-day__tot strong { display: block; font-size: 1.9rem; line-height: 1.15; margin: 2px 0 8px; color: #0f2e25; }
.pn-day__tot .bar { display: block; height: 11px; background: #e8f1ed; border-radius: 99px; overflow: hidden; }
.pn-day__tot .bar b { display: block; height: 100%; border-radius: 99px; transition: width .5s; }
.pn-day__tot small { display: block; margin-top: 6px; color: #4b6b61; font-weight: 600; }
.pn-day__tot.meta { background: #f0fdf4; border-color: #86efac; }
.pn-day__tot.bajo { background: #fff7f7; border-color: #fecaca; }
.pn-day__ing ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pn-day__ing li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: .88rem; }
.pn-day__ing li.vacio { display: block; color: #6b8a7e; }
.pn-day__ing .n { width: 22px; height: 22px; border-radius: 50%; background: #dbeafe; color: #1e40af; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.pn-day__ing .h { color: #264a3e; }
.pn-day__ing b { color: #064e3b; }
.pn-day__ing .sum { margin: 8px 0 0; padding-top: 7px; border-top: 1px dashed #d5e4dc; font-size: .84rem; color: #3b564c; }
.pn-day__did ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .86rem; }
.pn-strip { margin-top: 12px; }
.pn-strip .rail { position: relative; height: 16px; border-radius: 8px; background: #eef5f1; overflow: hidden; }
.pn-strip .rail i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.pn-strip .hrs { display: flex; justify-content: space-between; font-size: .66rem; color: #7b9187; margin-top: 3px; }
@media (max-width: 900px) {
  .pn-day { grid-template-columns: 1fr; }

}
/* ---------- Importación masiva (imp) ---------- */
.imp { display: grid; gap: 14px; }
.imp-step { display: flex; gap: 12px; align-items: flex-start; }
.imp-step > .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #059669; color: #fff; display: grid; place-items: center; font-weight: 800; margin-top: 2px; }
.imp-step > div { flex: 1; min-width: 0; }
.imp-drop { display: block; margin-top: 6px; border: 2px dashed #9ed3bd; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; background: #f3fbf7; color: #064e3b; transition: background .15s, border-color .15s; }
.imp-drop:hover, .imp-drop.is-over { background: #dcfce7; border-color: #059669; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 8px; font-weight: 700; }
.imp-sum .ok { color: #15803d; }
.imp-sum .bad { color: #b91c1c; }
.imp-scroll { max-height: 360px; overflow: auto; border: 1px solid #e3efe9; border-radius: 10px; }
.imp-table { width: 100%; font-size: .84rem; }
.imp-table th { position: sticky; top: 0; background: #ecfdf5; z-index: 1; }
.imp-table td { vertical-align: top; }
.imp-table tr.is-ok td:nth-child(2) { color: #15803d; font-weight: 800; }
.imp-table tr.is-warn { background: #fffbeb; }
.imp-table tr.is-bad { background: #fef2f2; }
.imp-table tr.is-bad td:nth-child(2) { color: #b91c1c; font-weight: 800; }
.imp-table tr.is-bad td:last-child { color: #991b1b; }
/* ---------- Reporte de estudiantes (inf) ---------- */
.inf { display: grid; gap: 14px; }
.inf-card { border: 1px solid #e3efe9; border-radius: 16px; padding: 14px 16px; background: #fff; }
.inf-card h3 { margin: 0 0 10px; font-size: 1rem; color: #064e3b; display: flex; align-items: center; gap: 9px; }
.inf-card h3 .n { width: 24px; height: 24px; border-radius: 50%; background: #059669; color: #fff; display: grid; place-items: center; font-size: .8rem; }
.inf label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #3b564c; }
.inf select { font: inherit; font-size: .92rem; border: 1px solid #cfe3da; border-radius: 10px; padding: 8px 10px; background: #fff; color: #0f2e25; }
.inf-flt { display: flex; flex-wrap: wrap; gap: 10px; }
.inf-flt label { min-width: 140px; }
.inf-grow { flex: 1; min-width: 220px; }
.inf-tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.inf-tipo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 11px; align-items: flex-start; border: 2px solid #e3efe9; border-radius: 14px; padding: 11px 13px; background: #fbfdfc; transition: border-color .15s, box-shadow .15s, transform .15s; }
.inf-tipo:hover { border-color: #86d9b9; transform: translateY(-1px); }
.inf-tipo.on { border-color: #059669; background: #ecfdf5; box-shadow: 0 4px 14px rgba(5,150,105,.16); }
.inf-tipo .i { font-size: 1.5rem; }
.inf-tipo b { display: block; font-size: .92rem; color: #064e3b; }
.inf-tipo small { display: block; color: #5f7a70; font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.inf-opt-body { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inf-opt-body label { min-width: 180px; }
.inf label.chk { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.inf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inf-hint { margin: -4px 0 0; font-size: .82rem; color: #5f7a70; }
.inf-frame { width: 100%; min-height: 700px; border: 1px solid #d5e7de; border-radius: 12px; background: #e9efec; }
/* ---------- Autorización de datos (lg) ---------- */
.es-consent-gate .shell-side, .es-consent-gate #btn-messages, .es-consent-gate .quick-nav, .es-consent-gate #pj-flotante, .es-consent-gate .chalo-fab, .es-consent-gate .chalo-panel, .es-consent-gate .guide-tip, .es-consent-gate .header-profile { display: none !important; }
.lg-wrap { max-width: 860px; margin: 0 auto; padding: 8px 4px 40px; }
.lg-brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: #064e3b; }
.lg-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #ecfdf5; padding: 3px; }
.lg-logo img { width: 100%; height: 100%; object-fit: contain; }
.lg-card { background: #fff; border: 1px solid #d5e7de; border-radius: 20px; padding: 22px 24px; box-shadow: 0 8px 28px rgba(6,78,59,.1); }
.lg-narrow { max-width: 640px; margin: 0 auto; }
.lg-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.lg-ico { font-size: 2.2rem; }
.lg-head h1 { margin: 0 0 4px; font-size: 1.35rem; color: #064e3b; }
.lg-head p { margin: 0; color: #36524a; line-height: 1.5; }
.lg-kids { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.lg-kid { background: #ecfdf5; border: 1px solid #b7e4cf; border-radius: 99px; padding: 5px 12px; font-weight: 700; color: #064e3b; }
.lg-kid small { font-weight: 500; color: #4b6b61; }
.lg-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; color: #854d0e; font-size: .9rem; }
.lg-doc { max-height: 46vh; overflow: auto; border: 1px solid #d5e7de; border-radius: 12px; padding: 14px 16px; background: #fbfdfc; font-size: .9rem; line-height: 1.55; }
.lg-doc--free { max-height: none; }
.lg-sec h4 { margin: 12px 0 4px; color: #064e3b; }
.lg-sec:first-child h4 { margin-top: 0; }
.lg-sec p { margin: 4px 0; color: #264a3e; }
.lg-hint { font-size: .84rem; color: #5f7a70; margin: 8px 2px; }
.lg-checks { display: grid; gap: 8px; margin: 10px 0; }
.lg-chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; background: #f4fbf8; border: 1px solid #d5e7de; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.lg-chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: #059669; flex: none; }
.lg-chk input:disabled + span { opacity: .55; }
.lg-chk em { color: #b91c1c; font-style: normal; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.lg-foot { font-size: .78rem; color: #6b8a7e; margin: 10px 0 0; }
.lg-steps { margin: 8px 0 8px 18px; line-height: 1.7; color: #264a3e; }
.lg-points { display: grid; gap: 10px; margin: 10px 0; }
.lg-point { display: flex; gap: 12px; align-items: flex-start; background: #f4fbf8; border: 1px solid #d5e7de; border-radius: 12px; padding: 10px 14px; }
.lg-point > span { font-size: 1.5rem; }
.lg-point b { color: #064e3b; }
.lg-point p { margin: 2px 0 0; color: #36524a; font-size: .9rem; }
.lg-pill { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: .74rem; font-weight: 800; margin-left: 6px; }
.lg-pill.ok { background: #dcfce7; color: #166534; }
.lg-pill.pen { background: #fef3c7; color: #92400e; }
.lg-pill.rev { background: #fee2e2; color: #991b1b; }
.lg-pill.des { background: #e0e7ff; color: #3730a3; }
.lg-pill.na { background: #e0f2fe; color: #075985; }
.lg-danger { border-color: #fca5a5 !important; color: #b91c1c !important; }
.lg-adm { display: grid; gap: 14px; }
.lg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.lg-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.lg-form label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #3b564c; }
.lg-form input, .lg-form select { font: inherit; font-size: .9rem; border: 1px solid #cfe3da; border-radius: 10px; padding: 8px 10px; }
.lg-wide { grid-column: 1 / -1; }
.lg-form--man { margin-top: 10px; padding: 12px; border: 1px dashed #9ed3bd; border-radius: 12px; background: #f6fdf9; }
.lg-form--man .usr-hint, .lg-form--man .btn-row { grid-column: 1 / -1; }
.lg-search { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-search input { flex: 1; min-width: 260px; font: inherit; border: 1px solid #cfe3da; border-radius: 99px; padding: 9px 16px; }
.lg-search select { font: inherit; border: 1px solid #cfe3da; border-radius: 99px; padding: 9px 12px; background: #fff; }
.lg-count { margin: 8px 2px; font-size: .84rem; }
.lg-row { border: 1px solid #e3efe9; border-radius: 14px; padding: 11px 14px; margin-bottom: 9px; display: grid; gap: 6px; background: #fff; }
.lg-main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.lg-main small { flex-basis: 100%; }
.lg-kids2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; }
/* Autorización: portal bloqueado, alerta y sección del padre */
.lg-locked .lg-pane { padding: 4px 2px 30px; }
.lg-wrap-in { max-width: 920px; }
.adm-nav__item.is-locked { opacity: .5; cursor: not-allowed; }
.adm-nav__item.is-locked:hover { background: transparent; color: #cfdaf8; }
.adm-nav__lock { margin-left: auto; font-size: .75rem; }
.adm-nav__badge.lg-bd-warn { background: #f59e0b; color: #3b2a00; border-radius: 99px; padding: 1px 8px; font-size: .66rem; font-weight: 800; animation: lgPulse 1.6s ease-in-out infinite; }
@keyframes lgPulse { 50% { box-shadow: 0 0 0 5px rgba(245,158,11,.3); } }
.lg-alert-card { border-color: #fcd34d; overflow: hidden; padding-top: 0; }
.lg-banner { margin: 0 -24px 14px; padding: 10px 24px; background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #3b2a00; font-weight: 800; font-size: .92rem; }
.lg-banner--stop { background: linear-gradient(90deg, #dc2626, #f97316); color: #fff; }
.lg-hero { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #047857, #0b6b52); box-shadow: 0 8px 22px rgba(6,78,59,.22); }
.lg-hero.revocada, .lg-hero.desactualizada { background: linear-gradient(120deg, #b45309, #dc2626); }
.lg-hero__ico { font-size: 2.4rem; }
.lg-hero h2 { margin: 0; font-size: 1.2rem; }
.lg-hero p { margin: 2px 0 0; opacity: .92; }
.lg-hero__pill { margin-left: auto; }
.lg-hero .lg-pill { margin: 0; }
.lg-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.lg-meta > div { background: #f4fbf8; border: 1px solid #d5e7de; border-radius: 12px; padding: 9px 12px; }
.lg-meta span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #5f7a70; font-weight: 700; }
.lg-meta b { font-size: .9rem; color: #064e3b; word-break: break-all; }
.lg-meta .mono { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.lg-h3 { margin: 16px 0 8px; font-size: 1rem; color: #064e3b; }
.lg-kidlist { display: grid; gap: 8px; }
.lg-kidrow { display: flex; align-items: center; gap: 12px; border: 1px solid #e3efe9; border-radius: 12px; padding: 9px 12px; background: #fff; }
.lg-kidrow .av { width: 36px; height: 36px; border-radius: 50%; background: #ecfdf5; display: grid; place-items: center; }
.lg-kidrow b { display: block; }
.lg-kidrow small { color: #5f7a70; }
.lg-kidrow .lg-pill { margin-left: auto; }
.lg-text { border: 1px solid #d5e7de; border-radius: 12px; background: #fbfdfc; }
.lg-text summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: #047857; }
.lg-text .lg-doc { border: 0; border-top: 1px solid #e3efe9; border-radius: 0 0 12px 12px; max-height: 50vh; }
.lg-rights { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 10px 14px; color: #0c4a6e; font-size: .9rem; line-height: 1.5; margin: 0; }
.lg-empty { text-align: center; padding: 30px 10px; }
.lg-banner--soft { background: linear-gradient(90deg, #38bdf8, #7dd3fc); color: #082f49; }
.lg-inline { margin-top: 12px; }
/* ---------- Plan de estudio 200 días (admin) ---------- */
.pl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pl-tab { border: 1.5px solid #cfd9f3; background: #fff; color: #0f1f4d; font-weight: 800; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-size: 15px; }
.pl-tab.is-on { background: #0f1f4d; color: #fff; border-color: #0f1f4d; }
.pl-hero { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #0f1f4d, #2563eb 60%, #7c3aed); color: #fff; border-radius: 18px; padding: 20px 24px; }
.pl-hero h2 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.pl-hero p { margin: 0; opacity: .9; }
.pl-hero .btn { background: #fff; color: #0f1f4d; }
.pl-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 14px 0 6px; }
.pl-chip { background: #f4f7ff; border: 1px solid #dfe7fb; border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.pl-chip span { font-size: 22px; }
.pl-chip strong { color: #0f1f4d; font-size: 15px; }
.pl-chip small { color: #64748b; }
.pl-h3 { margin: 26px 0 8px !important; font-size: 18px; }
.pl-sub { margin: 0 0 10px; font-size: 13px; }
.pl-fases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.pl-fase { border: 1px solid #e3e9f7; border-top: 5px solid var(--c); border-radius: 16px; padding: 14px 16px; background: #fff; }
.pl-fase__top { display: flex; gap: 10px; align-items: center; }
.pl-fase__ico { font-size: 30px; }
.pl-fase h4 { margin: 0; color: var(--c); font-size: 17px; }
.pl-fase small { color: #64748b; }
.pl-fase__meta { margin: 10px 0 8px; font-size: 14px; }
.pl-bar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; background: var(--c); gap: 2px; margin-bottom: 8px; }
.pl-bar span { background: var(--c); display: grid; place-items: center; font-size: 15px; filter: brightness(1); border-right: 2px solid #fff; }
.pl-bar span:nth-child(even) { filter: brightness(1.18); }
.pl-fase ul { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.pl-fase li { display: flex; gap: 6px; align-items: baseline; }
.pl-fase li em { margin-left: auto; font-style: normal; color: #64748b; white-space: nowrap; font-weight: 700; }
.pl-fase__pad { background: #f4f7ff; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 10px 0 0; }
.pl-tira { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.pl-sem { display: grid; place-items: center; text-decoration: none; background: var(--c); color: #fff; border-radius: 10px; padding: 6px 0; min-height: 44px; }
.pl-sem b { font-size: 14px; line-height: 1; }
.pl-sem i { font-style: normal; font-size: 13px; min-height: 15px; }
.pl-sem:hover { filter: brightness(1.12); transform: translateY(-1px); }
.pl-leg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: #475569; }
.pl-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.pl-guion { margin: 0; padding: 14px 18px 14px 34px; background: #fffbea; border: 1px solid #fde68a; border-radius: 14px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.pl-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pl-tools label { font-weight: 700; font-size: 13px; color: #0f1f4d; display: flex; gap: 6px; align-items: center; }
.pl-goto { width: 90px; padding: 6px 8px; border: 1.5px solid #cfd9f3; border-radius: 8px; }
.pl-fil { border: 1.5px solid var(--c, #94a3b8); color: var(--c, #475569); background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.pl-fil.is-on { background: var(--c, #475569); color: #fff; }
.pl-weeks { display: grid; gap: 8px; }
.pl-week { border: 1px solid #e3e9f7; border-left: 5px solid var(--c); border-radius: 12px; background: #fff; }
.pl-week[hidden] { display: none; }
.pl-week summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 14px; flex-wrap: wrap; }
.pl-week summary::-webkit-details-marker { display: none; }
.pl-week__n { font-weight: 800; color: #0f1f4d; }
.pl-week__f { color: var(--c); font-weight: 700; font-size: 13px; }
.pl-week__d { color: #64748b; font-size: 13px; margin-left: auto; }
.pl-week__b { padding: 4px 12px 12px; display: grid; gap: 8px; }
.pl-day { display: grid; grid-template-columns: 62px 1fr 92px; gap: 10px; align-items: stretch; border: 1px solid #edf1fb; border-radius: 12px; overflow: hidden; background: #fafcff; transition: box-shadow .3s; }
.pl-day.is-hit { box-shadow: 0 0 0 3px #facc15; }
.pl-d { color: #fff; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0; }
.pl-d strong { font-size: 22px; line-height: 1; }
.pl-bs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; padding: 8px 0; align-content: center; }
.pl-b { display: flex; gap: 8px; align-items: flex-start; border-left: 3px solid var(--c); padding-left: 8px; }
.pl-b__i { font-size: 20px; }
.pl-b b { color: #0f1f4d; font-size: 14px; display: block; }
.pl-b small { color: #475569; font-size: 12.5px; line-height: 1.35; display: block; }
.pl-h { grid-column: 1 / -1; background: #fff7d6; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: #854d0e; }
.pl-q { display: grid; place-items: center; text-align: center; background: #f1f5ff; padding: 6px; }
.pl-q strong { font-size: 18px; color: #0f1f4d; }
.pl-q small { color: #64748b; font-size: 11px; display: block; }
.pl-alert { background: #fff1f0; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.pl-alert--ok { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
.pl-tablewrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pl-table th { text-align: left; background: #f1f5ff; color: #0f1f4d; padding: 8px 10px; font-size: 12px; }
.pl-table td { padding: 8px 10px; border-bottom: 1px solid #edf1fb; vertical-align: middle; }
.pl-meter { height: 8px; background: #e2e8f0; border-radius: 6px; overflow: hidden; min-width: 80px; }
.pl-meter i { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #22c55e); }
@media (max-width: 640px) {
  .pl-day { grid-template-columns: 52px 1fr; }
  .pl-q { grid-column: 1 / -1; grid-auto-flow: column; gap: 8px; padding: 4px; }

}
@media print {
  .no-print { display: none !important; }
  .pl-tabs, .pl-print, .pl-hero .btn { display: none !important; }
  .pl-day, .pl-fase, .pl-week { break-inside: avoid; }
  .pl-hero, .pl-d, .pl-sem, .pl-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

}
.guide-pace { margin: 8px 0 4px; font-size: 13px; color: #475569; background: #f1f5ff; border-radius: 10px; padding: 8px 12px; line-height: 1.45; }
.guide-sep { list-style: none; font-size: 12.5px; font-weight: 800; color: #7c3aed; padding: 10px 4px 2px; }
.guide-step.is-extra { opacity: .85; border-style: dashed; }
.pl-fase__flex { background: #faf5ff; color: #6b21a8; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; margin: 10px 0 0; }
.pl-ritmos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.pl-ritmo { border: 1px solid #e3e9f7; border-radius: 16px; padding: 14px; text-align: center; background: linear-gradient(180deg, #fff, #f6f9ff); }
.pl-ritmo__i { font-size: 34px; }
.pl-ritmo h4 { margin: 4px 0; color: #0f1f4d; }
.pl-ritmo strong { display: block; font-size: 26px; color: #2563eb; }
.pl-ritmo small { color: #64748b; }
.pl-ritmo p { font-size: 12.5px; color: #475569; margin: 8px 0 0; line-height: 1.4; }
.pl-reglas { margin: 12px 0 0; padding: 12px 18px 12px 20px; list-style: none; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; display: grid; gap: 7px; font-size: 13.5px; line-height: 1.45; }
.pl-x { grid-column: 1 / -1; font-size: 12px; color: #7c3aed; }
.pl-b b em { font-style: normal; font-weight: 600; color: #64748b; font-size: 12px; margin-left: 4px; }
.pl-m { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 4px; font-size: 11px; font-weight: 800; color: #1d4ed8; }
.pl-t { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 11px; color: #475569; font-weight: 700; }
.pl-day { grid-template-columns: 62px 1fr 118px; }
/* Apariencia (admin): vista previa en vivo e indicador de cambios */
.ap-prev { border: 1px solid #e3e9f7; border-radius: 14px; overflow: hidden; font-size: .85rem; }
.ap-prev__bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: #fff; border-bottom: 3px solid; }
.ap-prev__logo { width: 26px; height: 26px; object-fit: contain; display: grid; place-items: center; }
.ap-prev__hero { color: #fff; padding: 16px 18px; }
.ap-prev__row { display: flex; align-items: center; gap: 12px; }
.ap-prev__herologo { width: 46px; height: 46px; object-fit: contain; font-size: 2rem; display: grid; place-items: center; }
.ap-prev__row h4 { margin: 0; font-size: 1.15rem; }
.ap-prev__row small { opacity: .85; }
.ap-prev__tag { margin: 8px 0 2px; font-weight: 600; }
.ap-prev__hello { margin: 0; opacity: .85; }
.ap-prev__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ap-prev__pills span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.ap-prev__foot { padding: 8px 14px; background: #f4f6fc; color: #5a6784; font-size: .75rem; text-align: center; }
.adm-dirty { color: #b45309; font-weight: 700; font-size: .85rem; align-self: center; }
/* Pistas por escalones (pistas.js) */
.hint-box .hint-t { font-weight: 800; margin: 2px 0 4px; }
.hint-box .hint-t--2 { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.2); }
.hint-box p { margin: 4px 0; line-height: 1.5; }
.hint-box code { background: rgba(0,0,0,.07); border-radius: 5px; padding: 0 5px; font-weight: 700; }
.hint-ej { background: rgba(34,165,91,.1); border-left: 4px solid #22a55b; border-radius: 8px; padding: 8px 10px; margin: 6px 0; line-height: 1.55; }
/* Plan de estudio · Simulacros y reportes (plan200.js) */
.pl-sim { margin: 8px 0 18px; }
.pl-sim h4 { margin: 8px 0 6px; }
.pl-rol { border: 1px solid var(--line, #e3e6f5); border-radius: 12px; padding: 10px 12px; background: var(--card, #fff); }
.pl-rol p { margin: 4px 0 0; font-size: .86rem; line-height: 1.45; }
.pl-rol--adm { border-color: #1d3a8a; background: #f3f6ff; }
.pl-sim__nota { background: #eaf1ff; border-left: 4px solid #1d3a8a; border-radius: 10px; padding: 10px 14px; margin-top: 12px; line-height: 1.5; }
@media (prefers-color-scheme: dark) {
  .pl-rol--adm, .pl-sim__nota { background: #1c2c52; }

}
/* Plan de estudio · pestañas de modo y vista Simulacros (plan-simulacros.js) */
.pl-modes { display: flex; gap: 8px; margin: 0 0 12px; }
.pl-mode { all: unset; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-weight: 700; background: #eef0f7; color: #3b4254; }
.pl-mode.is-on { background: #1d3a8a; color: #fff; }
.pl-mode:focus-visible { outline: 2px solid #38bdf8; }
.sm-hero { background: linear-gradient(135deg, #14307a, #2f58cf); color: #fff; border-radius: 16px; padding: 16px 20px; }
.sm-hero h2 { margin: 0 0 4px; color: #fff; }
.sm-hero p { margin: 0; opacity: .92; line-height: 1.45; }
.sm-filtros { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.sm-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-f > label { width: 64px; font-weight: 700; font-size: .85rem; color: #5b6472; }
.sm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-chip { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: #eef0f7; font-size: .85rem; font-weight: 600; }
.sm-chip.is-on { background: #1d3a8a; color: #fff; }
.sm-chip:focus-visible { outline: 2px solid #38bdf8; }
.sm-acc { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-sel { margin: 4px 0 8px; }
.sm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.sm-kpis > div { background: #f3f5fc; border-radius: 14px; padding: 12px; text-align: center; }
.sm-kpis strong { display: block; font-size: 1.8rem; line-height: 1.1; color: #1d3a8a; }
.sm-kpis small { color: #5b6472; font-size: .76rem; display: block; margin-top: 4px; line-height: 1.3; }
.sm-kpi--tot { background: #1d3a8a !important; }
.sm-kpi--tot strong, .sm-kpi--tot small { color: #fff !important; }
.sm-scroll { overflow-x: auto; }
.sm-matriz { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 640px; }
.sm-matriz thead th { font-size: .74rem; text-align: center; color: #5b6472; font-weight: 700; line-height: 1.2; }
.sm-g { font-weight: 800; font-size: 1.05rem; cursor: pointer; text-align: center; padding: 0 8px; border-radius: 8px; }
.sm-g.is-on { background: #1d3a8a; color: #fff; }
.sm-c { text-align: center; background: #fff4e8; border-radius: 10px; padding: 8px 4px; cursor: pointer; border: 2px solid transparent; transition: transform .1s; }
.sm-c:hover { transform: translateY(-1px); }
.sm-c b { display: block; font-size: 1.15rem; }
.sm-c small { color: #5b6472; font-size: .68rem; line-height: 1.25; display: block; }
.sm-c--f { background: #e8eefc; }
.sm-c--s { background: #e3f7f4; }
.sm-c.is-on { border-color: #1d3a8a; box-shadow: 0 0 0 2px rgba(29,58,138,.2); }
.sm-c.is-dim { opacity: .45; }
.sm-nota { font-size: .82rem; margin: 6px 0 0; }
.sm-it { border: 1px solid var(--line, #e3e6f5); border-radius: 12px; margin: 6px 0; background: var(--card, #fff); }
.sm-it[open] { border-color: #1d3a8a; }
.sm-it > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px 94px 1fr 150px 70px 76px; gap: 8px; align-items: center; padding: 9px 12px; font-size: .88rem; }
.sm-it > summary::-webkit-details-marker { display: none; }
.sm-it__g { font-weight: 800; color: #1d3a8a; }
.sm-it__t { background: var(--c); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 700; text-align: center; }
.sm-it__n { font-weight: 700; }
.sm-it__n em { font-weight: 400; color: #5b6472; font-size: .8rem; }
.sm-it__w, .sm-it__q, .sm-it__h { color: #3b4254; font-size: .82rem; }
.sm-ficha { padding: 4px 14px 14px; border-top: 1px dashed var(--line, #e3e6f5); }
.sm-ficha h5 { margin: 12px 0 4px; font-size: .9rem; }
.sm-ficha ul { margin: 4px 0; padding-left: 18px; line-height: 1.5; font-size: .88rem; }
.sm-ficha p { margin: 4px 0; line-height: 1.5; font-size: .88rem; }
.sm-ficha__g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 4px 18px; }
.sm-ars { display: flex; flex-direction: column; gap: 4px; }
.sm-ar { display: flex; justify-content: space-between; gap: 10px; background: #f3f5fc; border-radius: 8px; padding: 4px 10px; font-size: .86rem; }
.sm-rep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.sm-rep > div { background: #f8f9fd; border-radius: 10px; padding: 8px 10px; font-size: .84rem; line-height: 1.4; }
.sm-rep b { display: block; margin-bottom: 2px; }
.sm-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; margin: 6px 0; }
.sm-mas { text-align: center; margin: 8px 0; }
.sm-familia { margin-top: 12px; }
@media (max-width: 760px) {
  .sm-it > summary { grid-template-columns: 34px 1fr 64px; }
  .sm-it__t, .sm-it__w, .sm-it__h { display: none; }
  .sm-f > label { width: 100%; }

}
@media (prefers-color-scheme: dark) {
  .pl-mode, .sm-chip { background: #2a2d44; color: #dfe3f2; }
  .pl-mode.is-on, .sm-chip.is-on { background: #3b5bdb; color: #fff; }
  .sm-kpis > div, .sm-ar, .sm-rep > div { background: #20243b; }
  .sm-kpis strong { color: #cdd8ff; }
  .sm-c { background: #3a2f17; }
  .sm-c--f { background: #1c2c52; }
  .sm-c--s { background: #17332f; }
  .sm-c small { color: #aab2c8; }
  .sm-it__w, .sm-it__q, .sm-it__h { color: #cbd1e6; }

}
@media print {
  .pl-modes, .sm-filtros, .sm-acc { display: none !important; }
  .sm-it { break-inside: avoid; }

}
/* ===== Dashboard del administrador (compacto) ===== */
.dbd { font-size: .86rem; }
.dbd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.dbd-head h3 { margin: 0; font-size: 1.25rem; color: #0f1f4d; letter-spacing: -.01em; }
.dbd-head p { margin: 2px 0 0; color: #64748b; font-size: .8rem; }
.dbd-filtros { background: #fff; border: 1px solid #e3e9f7; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.dbd-filtros > summary { cursor: pointer; font-weight: 700; color: #334155; font-size: .8rem; list-style: none; display: flex; gap: 8px; align-items: center; }
.dbd-filtros > summary::-webkit-details-marker { display: none; }
.dbd-filtros > summary::after { content: "▾"; margin-left: auto; color: #94a3b8; }
.dbd-filtros[open] > summary::after { content: "▴"; }
.dbd-alcance { font-style: normal; font-weight: 700; font-size: .72rem; background: #eef2ff; color: #3730a3; padding: 2px 9px; border-radius: 999px; }
.dbd-filtros select, .dbd-filtros input { font-size: .8rem; }
.dbd-filtros > div { margin-top: 8px; }
.dbd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(172px, 100%), 1fr)); gap: 10px; margin-bottom: 12px; }
.dbd-kpi { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e3e9f7; border-left: 3px solid var(--c); border-radius: 12px; padding: 10px 12px; transition: box-shadow .15s, transform .15s; }
.dbd-kpi:hover { box-shadow: 0 6px 16px rgba(15,31,77,.12); transform: translateY(-1px); }
.dbd-kpi:focus-visible { outline: 2px solid var(--c); }
.dbd-kpi__i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; background: color-mix(in srgb, var(--c) 13%, #fff); flex: none; }
.dbd-kpi__b { display: grid; line-height: 1.15; min-width: 0; }
.dbd-kpi__b b { font-size: 1.3rem; color: #0f1f4d; font-weight: 800; }
.dbd-kpi__b em { font-style: normal; font-size: .76rem; font-weight: 700; color: #334155; }
.dbd-kpi__b small { font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dbd-card { background: #fff; border: 1px solid #e3e9f7; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 6px rgba(15,31,77,.05); min-width: 0; }
.dbd-card h4 { margin: 0 0 8px; font-size: .84rem; color: #0f1f4d; }
.dbd-span2 { grid-column: span 2; }
.dbd-nota { margin: 6px 0 0; font-size: .7rem; color: #94a3b8; }
.dbd-vacio { margin: 8px 0; color: #94a3b8; font-size: .8rem; }
.dbd-cols { width: 100%; height: auto; max-height: 170px; display: block; }
.dbd-val { font-size: 11px; fill: #475569; font-weight: 700; }
.dbd-lbl { font-size: 10px; fill: #94a3b8; }
.dbd-lbl.is-hoy { fill: #1d4ed8; font-weight: 800; }
.dbd-donut { display: flex; align-items: center; gap: 12px; }
.dbd-donut svg { width: 118px; height: 118px; flex: none; }
.dbd-donut__n { font-size: 17px; font-weight: 800; fill: #0f1f4d; }
.dbd-donut__s { font-size: 6.5px; fill: #94a3b8; }
.dbd-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; flex: 1; font-size: .78rem; min-width: 0; }
.dbd-leg li { display: grid; grid-template-columns: 10px 1fr auto; gap: 7px; align-items: center; color: #475569; }
.dbd-leg i { width: 9px; height: 9px; border-radius: 3px; }
.dbd-leg b { color: #0f1f4d; }
.dbd-hb { display: grid; gap: 7px; }
.dbd-hb__r { display: grid; grid-template-columns: minmax(70px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: .78rem; color: #475569; }
.dbd-hb__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-hb__t { height: 8px; background: #edf1fb; border-radius: 999px; overflow: hidden; }
.dbd-hb__t div { height: 100%; border-radius: 999px; }
.dbd-hb__r b { color: #0f1f4d; min-width: 28px; text-align: right; }
.dbd-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dbd-rank li { display: grid; grid-template-columns: 24px 28px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f4fb; }
.dbd-rank li:last-child { border: 0; }
.dbd-rank__a { width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; display: grid; place-items: center; font-size: .95rem; }
.dbd-rank__n { display: grid; min-width: 0; line-height: 1.2; }
.dbd-rank__n b { font-size: .8rem; color: #0f1f4d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-rank__n small { font-size: .68rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-rank__x { font-weight: 800; color: #1d4ed8; font-size: .82rem; }
.dbd-rank__x small { font-weight: 600; color: #94a3b8; }
.dbd-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding: 10px 12px; background: #f6f8fe; border: 1px dashed #d5def3; border-radius: 12px; }
.dbd-acc > span { font-size: .72rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.dbd-chip { all: unset; cursor: pointer; font-size: .76rem; font-weight: 700; color: #1e3a8a; background: #fff; border: 1px solid #d5def3; padding: 5px 11px; border-radius: 999px; }
.dbd-chip:hover { background: #eef2ff; }
.dbd-chip:focus-visible { outline: 2px solid #1d4ed8; }
@media (max-width: 1100px) {
  .dbd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbd-span2 { grid-column: span 2; }

}
@media (max-width: 640px) {
  .dbd-grid { grid-template-columns: 1fr; }
  .dbd-span2 { grid-column: auto; }
  .dbd-donut { flex-direction: column; align-items: flex-start; }

}
/* ---- Plan de estudio › Simulacros: columna «Tema» y ruta de temas ---- */
.sm-cab, .sm-it > summary { grid-template-columns: 38px 94px minmax(150px, 1.1fr) minmax(210px, 1.5fr) 150px 70px 76px; }
.sm-cab { display: grid; gap: 8px; padding: 6px 12px 6px 16px; margin: 10px 0 2px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7390; }
.sm-it { border-left: 4px solid var(--m, #1d3a8a); transition: box-shadow .15s, transform .15s; }
.sm-it:hover { box-shadow: 0 4px 14px rgba(29,58,138,.12); }
.sm-it__tm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; background: color-mix(in srgb, var(--m, #1d3a8a) 11%, #fff); border: 1px solid color-mix(in srgb, var(--m, #1d3a8a) 28%, #fff); border-radius: 999px; padding: 3px 12px 3px 4px; }
.sm-it__tm i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--m, #1d3a8a); color: #fff; font: 800 .72rem/22px system-ui; text-align: center; }
.sm-it__tm b { font-weight: 700; font-size: .84rem; line-height: 1.2; color: #1f2a4d; }
.sm-it__tm--aux { background: transparent; border-color: transparent; color: #8a90a6; font-size: .8rem; padding-left: 2px; }
.sm-tema { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--m, #1d3a8a) 12%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--m, #1d3a8a) 25%, #fff); }
.sm-tema__top { display: flex; align-items: center; gap: 12px; }
.sm-tema__top small { color: #5b6472; font-size: .76rem; }
.sm-tema__top h4 { margin: 0; font-size: 1.05rem; color: #1f2a4d; }
.sm-tema__n { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--m, #1d3a8a); color: #fff; font: 800 1.1rem/38px system-ui; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.sm-sem { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: .74rem; font-weight: 700; margin: 2px 4px 0 0; }
.sm-sem--v { background: #d3f9d8; color: #176b2c; }
.sm-sem--a { background: #fff3bf; color: #8a5a00; }
.sm-sem--r { background: #ffe3e3; color: #a61e1e; }
.sm-ruta { margin: 12px 0 6px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--m, #1d3a8a) 10%, #fff), #fff 75%); border: 1px solid color-mix(in srgb, var(--m, #1d3a8a) 24%, #fff); }
.sm-ruta__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.sm-ruta__h b { color: #1f2a4d; }
.sm-ruta__h small { color: #5b6472; }
.sm-ruta ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 8px; }
.sm-ruta li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e6f5; border-radius: 12px; padding: 7px 10px; font-size: .85rem; font-weight: 600; color: #1f2a4d; }
.sm-ruta li i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--m, #1d3a8a); color: #fff; font: 800 .8rem/26px system-ui; text-align: center; }
.sm-ruta li.is-pro i { background: #fff; color: var(--m, #1d3a8a); border: 2px solid var(--m, #1d3a8a); line-height: 22px; }
.sm-ruta li.is-fin { background: #1d3a8a; color: #fff; border-color: #1d3a8a; }
.sm-ruta li.is-fin i { background: #fff; color: #1d3a8a; }
.sim-tema { border-left: 5px solid #1d3a8a; background: linear-gradient(135deg, #eef2ff, #fff 70%); margin-bottom: 14px; }
.sim-tema__n { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5b6472; }
.sim-tema__t { font-size: 1.25rem; font-weight: 800; color: #1d3a8a; margin: 2px 0 4px; }
.sim-tema p { margin: 4px 0 0; }
.sim-tema--res { border-left-color: #2f9e44; background: linear-gradient(135deg, #ebfbee, #fff 70%); }
@media (max-width: 900px) {
  .sm-cab { display: none; }
  .sm-it > summary { grid-template-columns: 34px 1fr 64px; }
  .sm-it__tm { grid-column: 1 / -1; }
  .sm-it__t, .sm-it__w, .sm-it__h { display: none; }

}
@media print {
  .sm-cab { display: none; }

}
/* ---- Plan de estudio: calendario de simulacros repartido en los 200 días ---- */
.pl-b--sim { background: #fff4e8; border-radius: 10px; box-shadow: inset 3px 0 0 #ea580c; }
.pl-b--sim b { color: #9a3412; }
.pl-calsim th, .pl-calsim td { text-align: center; white-space: nowrap; }
.pl-calsim tbody th { text-align: left; }
.pl-calsim td b { display: block; font-size: 1rem; color: #1d3a8a; }
.pl-calsim td small { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; color: #64748b; font-size: .66rem; }
.pl-calsim td.is-int { background: #eef2ff; }
.pl-calsim td.is-int b { color: #4338ca; }
/* ===== Mi panel (mini dashboard del estudiante) ===== */
.mp { display: grid; gap: 14px; margin-top: 14px; }
.mp-hero { align-items: center; }
.mp-nivel { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border-radius: 16px; padding: 10px 14px; }
.mp-nivel__ring, .mp-ring { --c: #fde047; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.28) 0); }
.mp-nivel__ring > div, .mp-ring > div { width: 50px; height: 50px; border-radius: 50%; background: #1e3a8a; color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.mp-nivel__ring strong { font-size: 1.15rem; }
.mp-nivel__ring small { font-size: .62rem; opacity: .85; }
.mp-nivel__txt { display: grid; gap: 2px; color: #fff; font-size: .8rem; }
.mp-nivel__txt b { font-size: .95rem; }
.mp-hoy { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #7c3aed); box-shadow: 0 10px 28px rgba(79,70,229,.25); }
.mp-hoy.is-listo { background: linear-gradient(135deg, #0f766e, #15803d); }
.mp-hoy__txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mp-hoy h2 { margin: 0; font-size: 1.3rem; }
.mp-hoy p { margin: 0; opacity: .92; }
.mp-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #c7d2fe; }
.mp-bar { height: 8px; background: rgba(255,255,255,.28); border-radius: 99px; overflow: hidden; }
.mp-bar i { display: block; height: 100%; background: #fde047; border-radius: 99px; }
.mp-hoy small { opacity: .9; }
.mp-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.mp-link { color: #fff; font-weight: 700; text-decoration: underline; }
.mp-ring { width: 92px; height: 92px; }
.mp-ring > div { width: 74px; height: 74px; background: #3730a3; }
.mp-ring strong { font-size: 1.5rem; }
.mp-ring small { font-size: .65rem; }
.mp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.mp-kpi { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.mp-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mp-kpi:focus-visible { outline: 3px solid #2563eb; }
.mp-kpi__i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.mp-t-naranja .mp-kpi__i { background: #ffedd5; }
.mp-t-azul .mp-kpi__i { background: #dbeafe; }
.mp-t-verde .mp-kpi__i { background: #dcfce7; }
.mp-t-violeta .mp-kpi__i { background: #ede9fe; }
.mp-t-ambar .mp-kpi__i { background: #fef3c7; }
.mp-kpi__b { display: grid; min-width: 0; }
.mp-kpi__b em { font-style: normal; font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.mp-kpi__b b { font-size: 1.1rem; }
.mp-kpi__b small { font-size: .7rem; color: var(--ink-soft); }
.mp-dots { display: inline-flex; gap: 3px; }
.mp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.mp-dots i.on { background: #ea580c; }
.mp-dots i.hoy { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.mp-dos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.mp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 16px 18px; }
.mp-card h3 { margin: 0 0 10px; font-size: 1rem; }
.mp-mats, .mp-sims { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-mats li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; }
.mp-mats li:hover { background: #f3f4f6; }
.mp-mats li:focus-visible { outline: 3px solid #2563eb; }
.mp-m__i, .mp-s__i { font-size: 1.3rem; flex: none; width: 30px; text-align: center; }
.mp-m__b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.mp-m__b b { font-size: .9rem; }
.mp-m__bar { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.mp-m__bar i { display: block; height: 100%; border-radius: 99px; }
.mp-ok { background: #16a34a; }
.mp-mid { background: #d97706; }
.mp-low { background: #dc2626; }
.mp-nd { background: #9ca3af; }
.mp-m__v { text-align: right; font-weight: 800; min-width: 84px; }
.mp-m__v small, .mp-s__w small { display: block; font-weight: 600; font-size: .68rem; color: var(--ink-soft); }
.mp-sims li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #f9fafb; }
.mp-sims li.is-ya { background: #fef3c7; }
.mp-sims li.mp-final { background: #ede9fe; }
.mp-sims li > div { flex: 1; min-width: 0; }
.mp-sims b { font-size: .86rem; display: block; }
.mp-sims small { color: var(--ink-soft); font-size: .72rem; }
.mp-s__w { text-align: right; font-weight: 800; font-size: .82rem; white-space: nowrap; }
.mp-nota { margin: 10px 0 0; font-size: .74rem; color: var(--ink-soft); }
.mp-rapidos { display: none; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mp-rapidos button { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 960px) {
  .mp-dos { grid-template-columns: 1fr; }

}
@media (max-width: 820px) {
  .mp-rapidos { display: grid; }
  .mp-hoy { flex-direction: column; align-items: flex-start; }
  .mp-ring { display: none; }
  .mp-hero { flex-direction: column; align-items: flex-start; }

}
/* ===== Mi ruta de estudio (rediseño) ===== */
.rt-body { display: grid; gap: 16px; margin-top: 10px; }
.rt-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 92% 8%, rgba(250,204,21,.35), transparent 38%), radial-gradient(circle at 5% 110%, rgba(56,189,248,.35), transparent 40%), linear-gradient(135deg, #1e3a8a, #5b21b6); box-shadow: 0 14px 34px rgba(49,46,129,.32); }
.rt-hero::after { content: "🧭"; position: absolute; right: 130px; bottom: -22px; font-size: 7rem; opacity: .09; pointer-events: none; }
.rt-hero__txt { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 0; }
.rt-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #c7d2fe; }
.rt-hero h1 { margin: 0; font-size: 2rem; line-height: 1.1; color: #fff; }
.rt-hero__fase { margin: 0; color: #e0e7ff; font-size: .92rem; }
.rt-hero__fase b { color: #fde047; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rt-chip { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 7px 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rt-chip i { grid-row: span 2; font-style: normal; font-size: 1.3rem; }
.rt-chip b { font-size: 1.05rem; line-height: 1.1; }
.rt-chip small { font-size: .68rem; color: #c7d2fe; }
.rt-ring { position: relative; z-index: 1; flex: none; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fde047 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.rt-ring > div { width: 94px; height: 94px; border-radius: 50%; background: #3b2a9a; display: grid; place-content: center; text-align: center; }
.rt-ring strong { font-size: 1.7rem; line-height: 1; }
.rt-ring small { font-size: .66rem; color: #c7d2fe; }
.rt-road { background: #fff; border: 1px solid #e3e9f7; border-radius: 22px; padding: 18px 20px 14px; box-shadow: 0 6px 20px rgba(15,31,77,.07); }
.rt-road h3 { margin: 0 0 14px; color: #0f1f4d; }
.rt-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.rt-nodes::before { content: ""; position: absolute; left: 8%; right: 8%; top: 25px; height: 4px; background: repeating-linear-gradient(90deg, #cbd5e1 0 8px, transparent 8px 14px); z-index: 0; }
.rt-node { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 3px; padding: 0 4px; }
.rt-node__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: #eef1f9; color: #6b7aa5; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15,31,77,.15); }
.rt-node b { color: #0f1f4d; font-size: .92rem; }
.rt-node small { color: #5b6b94; font-size: .72rem; }
.rt-node em { font-style: normal; font-size: .72rem; font-weight: 700; color: #31457e; }
.rt-node__bar { display: block; width: 86%; height: 7px; border-radius: 99px; background: #e6ecfb; overflow: hidden; }
.rt-node__bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #38bdf8); border-radius: 99px; }
.rt-node.is-done .rt-node__ico { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-weight: 800; }
.rt-node.is-on .rt-node__ico { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; animation: rtPulse 2s ease-in-out infinite; }
.rt-node.is-on b { color: #1d4ed8; }
.rt-node--meta .rt-node__ico { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rt-road__nota { margin: 14px 0 0; font-size: .8rem; color: #5b6b94; }
.rt-road__nota a { font-weight: 700; color: #1d4ed8; }
@keyframes rtPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); } }
/* pasos de hoy */
.rt .guide-card { margin: 0; border: 1px solid #e3e9f7; border-top: 0; border-radius: 22px; padding: 20px; box-shadow: 0 8px 24px rgba(15,31,77,.09); background: linear-gradient(180deg, #fff, #f8faff); }
.rt .guide-card__head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed #dbe3f5; }
.rt .guide-card__eyebrow { color: #7c3aed; }
.guide-card__prog { display: grid; justify-items: end; gap: 2px; min-width: 90px; }
.guide-card__prog strong { font-size: 1.4rem; color: #0f1f4d; line-height: 1; }
.guide-card__prog small { font-size: .68rem; color: #5b6b94; font-weight: 700; }
.guide-card__progbar { display: block; width: 90px; height: 7px; background: #e6ecfb; border-radius: 99px; overflow: hidden; }
.guide-card__progbar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 99px; }
.rt .guide-chalo { background: linear-gradient(120deg, #eef2ff, #f5f3ff); border: 1px solid #e0e7ff; }
.rt .guide-steps { gap: 10px; counter-reset: paso; }
.rt .guide-step { grid-template-columns: 44px 1fr auto auto; gap: 12px; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 2px 8px rgba(15,31,77,.05); transition: transform .15s, box-shadow .15s; }
.rt .guide-step:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,31,77,.1); }
.rt .guide-step__n { width: 40px; height: 40px; font-size: 1.05rem; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.rt .guide-step.is-current { background: linear-gradient(120deg, #eff6ff, #f5f3ff); border: 2px solid #6366f1; box-shadow: 0 8px 22px rgba(99,102,241,.22); }
.rt .guide-step.is-current .guide-step__n { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.rt .guide-step.is-done { opacity: .8; background: #f0fdf4; border-color: #bbf7d0; }
.rt .guide-step.is-done .guide-step__n { background: linear-gradient(135deg, #22c55e, #15803d); }
.rt .guide-step.is-extra { border-style: dashed; }
.rt .guide-step__txt strong { font-size: 1rem; }
.rt .guide-go { border-radius: 12px; padding: 9px 16px; }
.rt .guide-go.is-main { background: linear-gradient(120deg, #2563eb, #7c3aed); box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.rt .guide-sep { list-style: none; text-align: center; font-size: .8rem; font-weight: 700; color: #7c3aed; margin: 6px 0 0; }
.rt .guide-pace { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 8px 12px; color: #78350f; font-size: .84rem; }
@media (max-width: 820px) {
  .rt-hero { padding: 20px; }
  .rt-hero h1 { font-size: 1.6rem; }
  .rt-ring { display: none; }
  .rt-nodes { grid-template-columns: 1fr; gap: 12px; }
  .rt-nodes::before { display: none; }
  .rt-node { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .rt-node__ico { grid-row: span 4; }
  .rt-node__bar { width: 100%; }
  .rt .guide-step { grid-template-columns: 40px 1fr; }
  .rt .guide-step__min, .rt .guide-step__act { grid-column: 2; }

}
/* ===== Mi progreso (mini dashboard) ===== */
.pg { display: grid; gap: 16px; align-content: start; }
.pg > .breadcrumb, .pg > nav { margin-bottom: 0; }
.pg-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(244,114,182,.35), transparent 40%), radial-gradient(circle at 0% 110%, rgba(56,189,248,.3), transparent 42%), linear-gradient(135deg, #0f766e, #1d4ed8 60%, #6d28d9); box-shadow: 0 14px 34px rgba(29,78,216,.28); }
.pg-hero::after { content: "📊"; position: absolute; right: 150px; bottom: -24px; font-size: 7rem; opacity: .09; pointer-events: none; }
.pg-hero__txt { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 0; }
.pg-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #bae6fd; }
.pg-hero h1 { margin: 0; font-size: 1.9rem; line-height: 1.1; color: #fff; }
.pg-hero__msg { margin: 0; color: #e0f2fe; font-size: .95rem; max-width: 56ch; }
.pg-hero__fase { color: #bae6fd; font-size: .76rem; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pg-chip { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 7px 12px; }
.pg-chip i { grid-row: span 2; font-style: normal; font-size: 1.3rem; }
.pg-chip b { font-size: 1.1rem; line-height: 1.1; }
.pg-chip small { font-size: .68rem; color: #bae6fd; }
.pg-ring { position: relative; z-index: 1; flex: none; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, #fde047) calc(var(--p) * 1%), rgba(255,255,255,.22) 0); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.pg-ring--ok { --c: #4ade80; }
.pg-ring--mid { --c: #fde047; }
.pg-ring--low { --c: #fb923c; }
.pg-ring > div { width: 106px; height: 106px; border-radius: 50%; background: #17357f; display: grid; place-content: center; text-align: center; }
.pg-ring strong { font-size: 2.2rem; line-height: 1; }
.pg-ring small { font-size: .7rem; color: #bae6fd; }
.pg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) {
  .pg-kpis { grid-template-columns: repeat(2, 1fr); }

}
.pg-kpi { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 4px 14px rgba(15,31,77,.06); }
.pg-kpi__i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: #eef2ff; flex: none; }
.pg-kpi > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pg-kpi em { font-style: normal; font-size: .74rem; font-weight: 800; color: #5b6b94; text-transform: uppercase; letter-spacing: .05em; }
.pg-kpi b { font-size: 1.5rem; color: #0f1f4d; line-height: 1; }
.pg-kpi b small { font-size: .8rem; color: #5b6b94; }
.pg-kpi > div > small { font-size: .72rem; color: #5b6b94; }
.pg-bar { display: block; height: 8px; border-radius: 99px; background: #e6ecfb; overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #38bdf8); }
.pg-diag { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(120deg, #fdf2f8, #fff7ed); border: 1px solid #fbcfe8; }
.pg-diag > span { font-size: 2rem; }
.pg-diag > div { flex: 1; display: grid; }
.pg-diag small { color: #6b7280; }
.pg-areas, .pg-errs, .pg-det { background: #fff; border: 1px solid #e3e9f7; border-radius: 22px; padding: 18px 20px; box-shadow: 0 6px 20px rgba(15,31,77,.07); }
.pg-areas h3, .pg-errs h3, .pg-det h3 { margin: 0 0 12px; color: #0f1f4d; }
.pg-areas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.pg-area { position: relative; display: grid; gap: 6px; padding: 16px 14px 14px; border-radius: 18px; background: #f8faff; border: 1px solid #e3e9f7; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pg-area:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15,31,77,.12); }
.pg-area:focus-visible { outline: 3px solid #2563eb; }
.pg-area__ico { font-size: 1.8rem; }
.pg-area b { color: #0f1f4d; font-size: .92rem; }
.pg-area__pct { font-size: 1.8rem; line-height: 1; color: #0f1f4d; }
.pg-area small { font-size: .7rem; color: #5b6b94; }
.pg-area--ok .pg-bar i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.pg-area--mid .pg-bar i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.pg-area--low .pg-bar i { background: linear-gradient(90deg, #dc2626, #fb923c); }
.pg-area--nd .pg-bar i { background: #9ca3af; }
.pg-area--nd .pg-area__pct { color: #9ca3af; }
.pg-tag { position: absolute; top: 10px; right: 10px; font-size: .64rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pg-tag--ok { background: #dcfce7; color: #166534; }
.pg-tag--low { background: #ffedd5; color: #9a3412; }
.pg-nota { margin: 12px 0 0; font-size: .76rem; color: #5b6b94; }
.pg-err { display: grid; grid-template-columns: minmax(130px, 1.2fr) 3fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .88rem; }
.pg-err b { font-size: .8rem; color: #31457e; min-width: 64px; text-align: right; }
.pg-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 600; font-size: .88rem; }
.pg-rec { border-radius: 20px; border: 1px solid #fde68a; background: linear-gradient(120deg, #fffbeb, #fff7ed); }
.pg-rec h3 { margin-top: 0; }
.pg-mat { border: 1px solid #e3e9f7; border-radius: 16px; background: #fbfcff; margin-bottom: 8px; overflow: hidden; }
.pg-mat summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pg-mat summary::-webkit-details-marker { display: none; }
.pg-mat summary b { flex: 1; color: #0f1f4d; }
.pg-mat summary small { color: #5b6b94; font-size: .76rem; }
.pg-mat__i { font-size: 1.4rem; }
.pg-badge { font-size: .68rem; font-weight: 800; background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 99px; }
.pg-mat__chev { font-style: normal; color: #5b6b94; transition: transform .2s; }
.pg-mat[open] .pg-mat__chev { transform: rotate(180deg); }
.pg-mat[open] { background: #fff; box-shadow: 0 6px 16px rgba(15,31,77,.08); }
.pg-mat__body { padding: 4px 14px 14px; display: grid; gap: 6px; }
@media (max-width: 820px) {
  .pg-hero { padding: 20px; }
  .pg-hero h1 { font-size: 1.5rem; }
  .pg-ring { display: none; }
  .pg-err { grid-template-columns: 1fr auto; }
  .pg-err .pg-bar { grid-column: 1 / -1; order: 3; }

}
/* ===== Aula de Chalo (lista) ===== */
.au { display: grid; gap: 16px; align-content: start; }
.au-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 28px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(250,204,21,.4), transparent 40%), radial-gradient(circle at 0% 110%, rgba(244,114,182,.35), transparent 42%), linear-gradient(135deg, #7c3aed, #2563eb 70%); box-shadow: 0 14px 34px rgba(91,33,182,.3); }
.au-hero::after { content: "🧑‍🏫"; position: absolute; right: 150px; bottom: -26px; font-size: 8rem; opacity: .1; pointer-events: none; }
.au-hero__txt { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 0; }
.au-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #ddd6fe; }
.au-hero h1 { margin: 0; font-size: 1.9rem; line-height: 1.12; color: #fff; }
.au-hero p { margin: 0; max-width: 60ch; color: #ede9fe; font-size: .94rem; line-height: 1.5; }
.au-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.au-chip { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 7px 12px; }
.au-chip i { grid-row: span 2; font-style: normal; font-size: 1.3rem; }
.au-chip b { font-size: 1.1rem; line-height: 1.1; }
.au-chip b small { font-size: .75rem; opacity: .8; }
.au-chip em { font-style: normal; font-size: .68rem; color: #ddd6fe; }
.au-ring { position: relative; z-index: 1; flex: none; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fde047 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.au-ring > div { width: 96px; height: 96px; border-radius: 50%; background: #4c1d95; display: grid; place-content: center; text-align: center; }
.au-ring strong { font-size: 1.8rem; line-height: 1; }
.au-ring small { font-size: .68rem; color: #ddd6fe; }
.au-grados { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: #fff; border: 1px solid #e3e9f7; width: fit-content; max-width: 100%; box-shadow: 0 3px 10px rgba(15,31,77,.06); }
.au-grado { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 12px; font-weight: 800; color: #31457e; font-size: .9rem; }
.au-grado:hover { background: #eef2ff; }
.au-grado:focus-visible { outline: 3px solid #2563eb; }
.au-grado.is-on { background: linear-gradient(120deg, #2563eb, #7c3aed); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.4); }
.au-acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.au-acc__it { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 4px 14px rgba(15,31,77,.06); transition: transform .15s, box-shadow .15s; }
.au-acc__it:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,31,77,.12); }
.au-acc__it:focus-visible { outline: 3px solid #2563eb; }
.au-acc__it > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: #eef2ff; flex: none; }
.au-acc__it > div { display: grid; gap: 2px; min-width: 0; }
.au-acc__it b { color: #0f1f4d; font-size: .94rem; }
.au-acc__it small { color: #5b6b94; font-size: .76rem; }
.au-acc__it.is-hot { background: linear-gradient(120deg, #fdf2f8, #fff1f2); border-color: #fbcfe8; }
.au-acc__it.is-hot > span { background: #fce7f3; }
.au-mat { --c1: #2563eb; --c2: #38bdf8; --bg: #eff6ff; background: #fff; border: 1px solid #e3e9f7; border-radius: 24px; padding: 0 0 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,31,77,.08); }
.au-mat--mat { --c1: #2563eb; --c2: #60a5fa; --bg: #eff6ff; }
.au-mat--lec { --c1: #db2777; --c2: #f472b6; --bg: #fdf2f8; }
.au-mat--soc { --c1: #d97706; --c2: #fbbf24; --bg: #fffbeb; }
.au-mat--cie { --c1: #059669; --c2: #34d399; --bg: #ecfdf5; }
.au-mat--ing { --c1: #7c3aed; --c2: #a78bfa; --bg: #f5f3ff; }
.au-mat__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.au-mat__head h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.au-mat__head small { color: rgba(255,255,255,.9); }
.au-mat__head > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.au-mat__ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255,255,255,.25); flex: none; }
.au-mat__pct { display: grid; justify-items: end; gap: 4px; min-width: 96px; }
.au-mat__pct b { font-size: 1.3rem; }
.au-mat__bar { display: block; width: 96px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.au-mat__bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.au-lecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 10px; padding: 16px 16px 0; }
.au-lec { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg); border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.au-lec:hover { transform: translateY(-2px); border-color: var(--c1); box-shadow: 0 8px 18px rgba(15,31,77,.1); }
.au-lec:focus-visible { outline: 3px solid #2563eb; }
.au-lec__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--c1); box-shadow: 0 2px 6px rgba(15,31,77,.12); }
.au-lec__txt { display: grid; gap: 3px; min-width: 0; }
.au-lec__txt b { color: #0f1f4d; font-size: .92rem; line-height: 1.25; }
.au-lec__txt small { color: #5b6b94; font-size: .75rem; }
.au-lec__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.au-lec__tags em { font-style: normal; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #fff; color: #31457e; }
.au-lec__tags .au-lec__sigue { background: #fde047; color: #713f12; animation: auBlink 1.6s ease-in-out infinite; }
.au-lec__go { font-weight: 800; color: var(--c1); font-size: 1.1rem; white-space: nowrap; }
.au-lec.is-done { background: #f0fdf4; }
.au-lec.is-done .au-lec__n { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.au-lec.is-done .au-lec__go { color: #15803d; font-size: .85rem; }
.au-lec.is-mapa { grid-column: 1 / -1; background: linear-gradient(120deg, var(--bg), #fff); border-color: var(--c1); border-style: dashed; }
.au-lec.is-next { border-color: #facc15; box-shadow: 0 0 0 4px rgba(250,204,21,.25); }
@keyframes auBlink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@media (max-width: 820px) {
  .au-hero { padding: 20px; }
  .au-hero h1 { font-size: 1.45rem; }
  .au-ring { display: none; }
  .au-mat__head { padding: 14px; }
  .au-mat__pct { min-width: 70px; }
  .au-mat__bar { width: 70px; }
  .au-lecs { grid-template-columns: 1fr; padding: 12px 12px 0; }

}
@media (prefers-reduced-motion: reduce) {
  .au-lec__tags .au-lec__sigue { animation: none; }

}
/* ===== Aventura y premios ===== */
.av { display: grid; gap: 16px; align-content: start; }
.av-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 28px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(250,204,21,.45), transparent 40%), radial-gradient(circle at 0% 115%, rgba(236,72,153,.4), transparent 45%), linear-gradient(135deg, #4338ca, #7c3aed 60%, #db2777); box-shadow: 0 14px 34px rgba(88,28,135,.32); }
.av-hero::after { content: "🎮"; position: absolute; right: 250px; bottom: -28px; font-size: 8rem; opacity: .08; pointer-events: none; }
.av-hero__txt { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 0; flex: 1; }
.av-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #fde68a; }
.av-hero h1 { margin: 0; font-size: 1.85rem; line-height: 1.1; color: #fff; }
.av-hero p { margin: 0; max-width: 56ch; color: #ede9fe; font-size: .93rem; line-height: 1.5; }
.av-nivel { display: grid; gap: 4px; max-width: 340px; }
.av-nivel b { font-size: .95rem; }
.av-nivel small { color: #ddd6fe; font-size: .72rem; }
.av-nivel__bar { display: block; height: 9px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.av-nivel__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fde047, #fb923c); }
.av-hero__guia { all: unset; cursor: pointer; width: fit-content; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-weight: 800; font-size: .86rem; }
.av-hero__guia:hover { background: rgba(255,255,255,.3); }
.av-hero__guia:focus-visible { outline: 3px solid #fde047; }
.av-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: none; }
.av-stat { display: grid; justify-items: center; gap: 1px; min-width: 112px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.av-stat span { font-size: 1.4rem; }
.av-stat b { font-size: 1.5rem; line-height: 1.1; }
.av-stat small { font-size: .68rem; color: #ddd6fe; }
.av-stat--c { background: linear-gradient(135deg, rgba(250,204,21,.4), rgba(251,146,60,.35)); border-color: rgba(253,224,71,.6); }
.av-stat--c span { font-weight: 900; color: #fde047; }
.av-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 3px 10px rgba(15,31,77,.06); }
.av-tab { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 12px; font-weight: 800; font-size: .86rem; color: #31457e; white-space: nowrap; }
.av-tab:hover { background: #eef2ff; }
.av-tab:focus-visible { outline: 3px solid #2563eb; }
.av-tab.is-on { background: linear-gradient(120deg, #4f46e5, #db2777); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.4); }
.av-body { border-radius: 24px; padding: 20px 22px; }
.av-bar { display: block; height: 9px; border-radius: 99px; background: #e6ecfb; overflow: hidden; }
.av-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #ec4899); }
.av-mis { display: grid; gap: 10px; margin: 12px 0; }
.av-mi { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, #f8faff, #f5f3ff); border: 1px solid #e0e7ff; }
.av-mi__i { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: #fff; box-shadow: 0 2px 6px rgba(15,31,77,.1); }
.av-mi__b { display: grid; gap: 5px; min-width: 0; }
.av-mi__b b { color: #0f1f4d; font-size: .95rem; }
.av-mi__b small { color: #5b6b94; font-size: .74rem; }
.av-mi__p { font-weight: 800; color: #92400e; background: linear-gradient(120deg, #fef3c7, #fde68a); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
.av-mi.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.av-mi.is-done .av-bar i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.av-cofre { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px; border-radius: 18px; background: linear-gradient(120deg, #fff7ed, #fffbeb); border: 2px dashed #fdba74; }
.av-cofre > span { font-size: 2.2rem; }
.av-cofre > div { display: grid; gap: 2px; }
.av-cofre small { color: #7c4a10; }
.av-cofre.is-open { background: linear-gradient(120deg, #ecfdf5, #f0fdf4); border: 2px solid #86efac; }
.av-cofre.is-open small { color: #166534; }
/* guía del juego */
.ag-title { margin: 0; font-size: 1.3rem; color: #0f1f4d; }
.ag-sec { margin-top: 18px; padding: 18px; border-radius: 20px; background: #f8faff; border: 1px solid #e3e9f7; }
.ag-sec h3 { margin: 0 0 12px; color: #0f1f4d; font-size: 1.05rem; }
.ag-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.ag-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 3px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 3px 10px rgba(15,31,77,.06); transition: transform .15s, box-shadow .15s; }
.ag-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15,31,77,.12); }
.ag-tile:focus-visible { outline: 3px solid #2563eb; }
.ag-tile span { font-size: 1.6rem; }
.ag-tile b { color: #0f1f4d; }
.ag-tile small { color: #5b6b94; font-size: .76rem; line-height: 1.35; }
.ag-rows { display: grid; gap: 8px; }
.ag-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f7; }
.ag-row__i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: #eef2ff; }
.ag-row > div { display: grid; gap: 1px; min-width: 0; }
.ag-row b { color: #0f1f4d; font-size: .9rem; }
.ag-row small { color: #5b6b94; font-size: .74rem; line-height: 1.3; }
.ag-row em { font-style: normal; font-weight: 800; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 5px 12px; font-size: .82rem; white-space: nowrap; }
.ag-dia { display: grid; gap: 8px; }
.ag-dia__r { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr auto; gap: 12px; align-items: center; font-size: .86rem; color: #31457e; }
.ag-dia__r b { min-width: 76px; text-align: right; color: #0f1f4d; }
.ag-total { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #fef3c7, #ffedd5); border: 1px solid #fcd34d; }
.ag-total > span { font-size: 2rem; }
.ag-total > div { display: grid; gap: 3px; }
.ag-total b { color: #78350f; }
.ag-total small { color: #92400e; line-height: 1.4; }
.ag-lims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.ag-lim { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f7; }
.ag-lim > span { font-size: 1.5rem; }
.ag-lim > div { display: grid; gap: 2px; }
.ag-lim b { color: #0f1f4d; font-size: .88rem; }
.ag-lim small { color: #5b6b94; font-size: .76rem; line-height: 1.35; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ag-chip { font-size: .78rem; padding: 5px 11px; border-radius: 99px; background: #ede9fe; color: #4c1d95; }
.ag-ligas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 8px; margin-top: 8px; }
.ag-liga { display: grid; justify-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f7; }
.ag-liga i { font-style: normal; font-size: 1.6rem; }
.ag-liga small { color: #5b6b94; font-size: .7rem; }
.ag-gastos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.ag-gasto { display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e9f7; }
.ag-gasto span { font-size: 1.5rem; }
.ag-gasto b { font-size: .86rem; color: #0f1f4d; }
.ag-gasto em { font-style: normal; font-size: .76rem; font-weight: 800; color: #92400e; }
@media (max-width: 820px) {
  .av-hero { flex-direction: column; align-items: stretch; padding: 20px; }
  .av-hero h1 { font-size: 1.45rem; }
  .av-stats { grid-template-columns: repeat(4, 1fr); }
  .av-stat { min-width: 0; padding: 8px 4px; }
  .av-stat b { font-size: 1.1rem; }
  .av-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .ag-row { grid-template-columns: 38px 1fr; }
  .ag-row em { grid-column: 2; width: fit-content; }
  .ag-dia__r { grid-template-columns: 1fr auto; }
  .ag-dia__r .av-bar { grid-column: 1 / -1; order: 3; }
  .av-body { padding: 14px; }

}
/* ===== Mensajes del estudiante (mini dashboard) ===== */
.ms { display: grid; gap: 16px; align-content: start; }
.ms-top { display: grid; gap: 12px; }
.ms-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 26px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(250,204,21,.35), transparent 40%), radial-gradient(circle at 0% 110%, rgba(56,189,248,.35), transparent 42%), linear-gradient(135deg, #0e7490, #2563eb 60%, #6d28d9); box-shadow: 0 14px 34px rgba(29,78,216,.28); }
.ms-hero::after { content: "💬"; position: absolute; right: 290px; bottom: -26px; font-size: 7.5rem; opacity: .08; pointer-events: none; }
.ms-hero__txt { position: relative; z-index: 1; display: grid; gap: 8px; flex: 1; min-width: 0; }
.ms-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #a5f3fc; }
.ms-hero h1 { margin: 0; font-size: 1.7rem; line-height: 1.15; color: #fff; }
.ms-hero p { margin: 0; max-width: 56ch; color: #e0f2fe; font-size: .9rem; line-height: 1.5; }
.ms-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: none; }
.ms-kpi { display: grid; justify-items: center; gap: 1px; min-width: 118px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.ms-kpi span { font-size: 1.25rem; }
.ms-kpi b { font-size: 1.3rem; line-height: 1.15; }
.ms-kpi small { font-size: .68rem; color: #bae6fd; }
.ms-kpi.is-hot { background: linear-gradient(135deg, rgba(244,63,94,.55), rgba(251,146,60,.45)); border-color: rgba(253,164,175,.7); }
.ms-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 3px 10px rgba(15,31,77,.06); }
.ms-quick__t { font-size: .76rem; font-weight: 800; color: #5b6b94; margin-right: 4px; }
.ms-q { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: #f3f6ff; border: 1px solid #e0e7ff; font-size: .84rem; font-weight: 700; color: #1e3a8a; max-width: 220px; }
.ms-q:hover { background: #e0e7ff; }
.ms-q:focus-visible { outline: 3px solid #2563eb; }
.ms-q i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1rem; flex: none; }
.ms-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-q em { font-style: normal; background: #e11d48; color: #fff; font-size: .7rem; font-weight: 800; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.ms-q.is-unread { background: #fff1f2; border-color: #fecdd3; }
.ms-card { max-width: none; width: 100%; border-radius: 24px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(15,31,77,.08); }
.ms .inbox__list { max-height: none; gap: 10px; }
.ms .inbox__row { border: 1px solid #e3e9f7; border-radius: 18px; padding: 12px 14px; background: linear-gradient(120deg, #fff, #f8faff); box-shadow: 0 2px 8px rgba(15,31,77,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ms .inbox__row:hover { transform: translateY(-2px); border-color: #6366f1; box-shadow: 0 8px 18px rgba(99,102,241,.16); }
.ms .inbox__row:focus-visible { outline: 3px solid #2563eb; }
.ms .inbox__row__avatar { width: 48px; height: 48px; font-size: 1.6rem; background: linear-gradient(135deg, #e0e7ff, #fae8ff); box-shadow: 0 2px 6px rgba(15,31,77,.12); }
.ms .inbox__row__name { font-size: .98rem; color: #0f1f4d; }
.ms .inbox__row__preview { font-size: .84rem; }
.ms .inbox__row__badge { background: linear-gradient(135deg, #e11d48, #f97316); min-width: 24px; height: 24px; box-shadow: 0 3px 8px rgba(225,29,72,.4); }
.ms .inbox__header { justify-content: space-between; align-items: center; }
.ms .inbox__header::before { content: "Tus conversaciones"; font-weight: 800; color: #0f1f4d; }
.ms .inbox__thread-head { padding: 10px 12px; border-radius: 16px; background: linear-gradient(120deg, #eef2ff, #f5f3ff); border: 1px solid #e0e7ff; }
.ms .chat__list { max-height: 460px; padding: 10px 4px; }
.ms .chat__bubble { border-radius: 18px 18px 18px 6px; background: #f3f6ff; border: 1px solid #e0e7ff; box-shadow: 0 2px 6px rgba(15,31,77,.05); }
.ms .chat__row--mine .chat__bubble { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #2563eb, #7c3aed); border-color: transparent; }
.ms .chat__composer textarea { border-radius: 16px; border-color: #c7d2fe; }
.ms .chat__composer textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
@media (max-width: 820px) {
  .ms-hero { flex-direction: column; align-items: stretch; padding: 20px; }
  .ms-hero h1 { font-size: 1.4rem; }
  .ms-kpis { grid-template-columns: repeat(4, 1fr); }
  .ms-kpi { min-width: 0; padding: 8px 4px; }
  .ms-kpi b { font-size: 1rem; }
  .ms-card { padding: 12px; }

}
/* ===== Portal de familias: pantalla por estudiante ===== */
.fe-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 94% 0%, rgba(250,204,21,.35), transparent 38%), linear-gradient(135deg, #065f46, #047857 55%, #0f766e); box-shadow: 0 12px 30px rgba(6,95,70,.28); margin-bottom: 14px; }
.fe-head__av { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: rgba(255,255,255,.95); box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.fe-head__txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.fe-head h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.fe-head p { margin: 0; color: #d1fae5; font-size: .9rem; }
.fe-head__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fe-tag { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); }
.fe-head__act { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.fe-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid #d1e7dd; box-shadow: 0 3px 10px rgba(6,95,70,.08); margin-bottom: 14px; }
.fe-tab { all: unset; cursor: pointer; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: .88rem; color: #065f46; white-space: nowrap; }
.fe-tab:hover { background: #ecfdf5; }
.fe-tab:focus-visible { outline: 3px solid #2563eb; }
.fe-tab.is-on { background: linear-gradient(120deg, #059669, #0f766e); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.4); }
.fe-body { display: grid; gap: 14px; }
.fe-panel { display: grid; gap: 14px; }
.fe-panel[hidden] { display: none; }
.fe-card { background: #fff; border: 1px solid #d1e7dd; border-radius: 20px; padding: 18px 20px; box-shadow: 0 5px 18px rgba(6,95,70,.07); }
.fe-card h3 { margin: 0 0 12px; color: #064e3b; font-size: 1.05rem; }
.fe-card h3 small { font-weight: 600; color: #5b7a6f; font-size: .76rem; margin-left: 6px; }
.fe-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 10px; }
.fe-sum > div { display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border-radius: 16px; background: #f0fdf4; }
.fe-sum b { font-size: 1.5rem; color: #064e3b; line-height: 1.1; }
.fe-sum small { font-size: .72rem; color: #5b7a6f; text-align: center; }
.fe-sum .is-ok { background: #dcfce7; }
.fe-sum .is-mid { background: #fef9c3; }
.fe-sum .is-low { background: #ffedd5; }
.fe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fe-chip { all: unset; cursor: pointer; font-size: .8rem; font-weight: 700; padding: 6px 13px; border-radius: 99px; background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
.fe-chip:focus-visible { outline: 3px solid #2563eb; }
.fe-chip.is-on { background: #059669; color: #fff; border-color: #059669; }
.fe-days { display: grid; gap: 12px; }
.fe-day { border: 1px solid #e3efe9; border-radius: 16px; overflow: hidden; }
.fe-day > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; background: linear-gradient(120deg, #ecfdf5, #f0fdfa); }
.fe-day h4 { margin: 0; color: #064e3b; font-size: .95rem; }
.fe-day h4 em { font-style: normal; font-size: .68rem; background: #059669; color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.fe-day > header span { font-size: .78rem; color: #3f6b5b; }
.fe-row { display: grid; grid-template-columns: 62px 30px 1fr auto; gap: 10px; align-items: start; padding: 10px 14px; border-top: 1px solid #eef5f1; }
.fe-row__h { font-size: .76rem; color: #5b7a6f; font-weight: 700; padding-top: 3px; }
.fe-row__i { font-size: 1.25rem; text-align: center; }
.fe-row__b { display: grid; gap: 3px; min-width: 0; }
.fe-row__b b { color: #064e3b; font-size: .9rem; }
.fe-row__b > span { font-size: .84rem; color: #374151; }
.fe-row__t { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.fe-pill { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #f3f4f6; color: #374151; }
.fe-pill--mat { background: #e0f2fe; color: #075985; }
.fe-res { font-size: .78rem; font-weight: 800; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.fe-res.is-ok { background: #dcfce7; color: #166534; }
.fe-res.is-mid { background: #fef9c3; color: #854d0e; }
.fe-res.is-low { background: #ffedd5; color: #9a3412; }
.fe-empty, .fe-load { color: #5b7a6f; margin: 6px 0; }
.fe-nota { margin: 10px 0 0; font-size: .76rem; color: #5b7a6f; line-height: 1.45; }
.fe-comp__rows { display: grid; gap: 10px; }
.fe-cr { display: grid; grid-template-columns: 34px minmax(150px, 1.1fr) 2fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f8fdfa; border: 1px solid #e3efe9; }
.fe-cr__i { font-size: 1.3rem; text-align: center; }
.fe-cr__t { display: grid; }
.fe-cr__t b { color: #064e3b; font-size: .88rem; }
.fe-cr__t small { color: #5b7a6f; font-size: .72rem; }
.fe-cr__bars { display: grid; gap: 5px; }
.fe-cr__bars > div { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: .72rem; color: #5b7a6f; }
.fe-cr__bars i { display: block; height: 9px; border-radius: 99px; }
.fe-cr__bars .b-me { background: linear-gradient(90deg, #059669, #34d399); }
.fe-cr__bars .b-ref { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.fe-cr__bars em { font-style: normal; font-weight: 800; color: #064e3b; min-width: 38px; text-align: right; }
.fe-cr__v { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.fe-cr__v.is-up { background: #dcfce7; color: #166534; }
.fe-cr__v.is-eq { background: #e0f2fe; color: #075985; }
.fe-cr__v.is-down { background: #ffedd5; color: #9a3412; }
.fe-cr__v.is-nd { background: #f3f4f6; color: #6b7280; }
@media (max-width: 820px) {
  .fe-head { flex-wrap: wrap; padding: 16px; }
  .fe-head__av { width: 60px; height: 60px; font-size: 1.9rem; }
  .fe-head__act { width: 100%; }
  .fe-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .fe-row { grid-template-columns: 50px 26px 1fr; }
  .fe-res { grid-column: 3; width: fit-content; }
  .fe-cr { grid-template-columns: 30px 1fr; }
  .fe-cr__bars, .fe-cr__v { grid-column: 1 / -1; }
  .fe-cr__bars > div { grid-template-columns: 80px 1fr auto; }

}
@media print {
  .fe-tabs { display: none; }
  .fe-panel[hidden] { display: grid !important; }
  .fe-head__act { display: none; }

}
/* ===== Reporte del día / mes: selector de fecha y calendario ===== */
.pn-nav--bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.pn-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: #e7f3ed; margin-left: 6px; }
.pn-seg button { all: unset; cursor: pointer; font-size: .8rem; font-weight: 800; color: #065f46; padding: 5px 13px; border-radius: 99px; }
.pn-seg button:focus-visible { outline: 3px solid #2563eb; }
.pn-seg button.on { background: #059669; color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.4); }
.pn-calbtn.on { background: #059669 !important; color: #fff !important; border-color: #059669 !important; }
.pn-pick { margin: 10px 0 4px; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, #f0fdf4, #f0fdfa); border: 1px solid #bbf7d0; }
.pn-pick__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.pn-pick__top strong { color: #064e3b; min-width: 150px; text-align: center; }
.pn-datel { font-size: .76rem; color: #3f6b5b; display: inline-flex; align-items: center; gap: 6px; }
.pn-date { font: inherit; font-size: .82rem; padding: 4px 8px; border-radius: 10px; border: 1px solid #cfe3da; background: #fff; color: #064e3b; }
.pn-cal { max-width: 420px; }
.pn-cal__w, .pn-cal__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.pn-cal__w span { text-align: center; font-size: .7rem; font-weight: 800; color: #5b7a6f; padding-bottom: 2px; }
.pn-cal__e { display: block; }
.pn-cal__d { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: .84rem; color: #064e3b; background: #fff; border: 1px solid #d8eadf; transition: transform .12s, box-shadow .12s; }
.pn-cal__d:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(6,95,70,.18); }
.pn-cal__d:focus-visible { outline: 3px solid #2563eb; }
.pn-cal__d.l1 { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.pn-cal__d.l2 { background: #bbf7d0; border-color: #86efac; }
.pn-cal__d.l3 { background: #16a34a; border-color: #15803d; color: #fff; }
.pn-cal__d.is-hoy { box-shadow: 0 0 0 2px #2563eb; }
.pn-cal__d.is-sel { outline: 3px solid #047857; outline-offset: 1px; }
.pn-cal__d.is-off { cursor: not-allowed; background: repeating-linear-gradient(135deg, #f3f4f6, #f3f4f6 4px, #e9ecef 4px, #e9ecef 8px); color: #b4bcc6; border-color: #e5e7eb; text-decoration: line-through; }
.pn-cal__leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: .68rem; color: #5b7a6f; }
.pn-cal__leg i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; vertical-align: -1px; margin-right: 3px; background: #fff; border: 1px solid #d8eadf; }
.pn-cal__leg .l1 { background: #fee2e2; }
.pn-cal__leg .l2 { background: #bbf7d0; }
.pn-cal__leg .l3 { background: #16a34a; }
.pn-cal__leg .off { background: repeating-linear-gradient(135deg, #f3f4f6, #f3f4f6 2px, #dfe3e8 2px, #dfe3e8 4px); }
.pn-mes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.pn-mes__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.pn-mt { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: #f0fdf4; border: 1px solid #d1fae5; }
.pn-mt > span { font-size: 1.5rem; }
.pn-mt > div { display: grid; gap: 1px; }
.pn-mt em { font-style: normal; font-size: .7rem; font-weight: 800; color: #5b7a6f; text-transform: uppercase; letter-spacing: .04em; }
.pn-mt b { font-size: 1.25rem; color: #064e3b; line-height: 1.15; }
.pn-mt small { font-size: .72rem; color: #5b7a6f; }
@media (max-width: 900px) {
  .pn-mes { grid-template-columns: 1fr; }
  .pn-nav--bar { justify-content: flex-start; }
  .pn-cal { max-width: none; }

}
/* ===== Resultado de simulacro (celebración) ===== */
.results-summary--rs { text-align: left; display: grid; gap: 16px; }
.rs { display: grid; gap: 16px; }
.rs-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: 28px; color: #fff; box-shadow: 0 16px 40px rgba(30,58,138,.3); background: radial-gradient(circle at 92% 8%, rgba(250,204,21,.4), transparent 38%), radial-gradient(circle at 4% 112%, rgba(244,114,182,.35), transparent 42%), linear-gradient(135deg, #1e3a8a, #6d28d9); animation: rsIn .6s ease both; }
.rs-hero.rs-t-top { background: radial-gradient(circle at 92% 8%, rgba(253,224,71,.55), transparent 40%), radial-gradient(circle at 4% 112%, rgba(52,211,153,.4), transparent 45%), linear-gradient(135deg, #1d4ed8, #7c3aed 60%, #db2777); }
.rs-hero.rs-t-ok { background: radial-gradient(circle at 92% 8%, rgba(253,224,71,.4), transparent 38%), linear-gradient(135deg, #047857, #1d4ed8); }
.rs-hero.rs-t-mid { background: radial-gradient(circle at 92% 8%, rgba(253,224,71,.35), transparent 38%), linear-gradient(135deg, #0e7490, #4338ca); }
.rs-hero.rs-t-low { background: radial-gradient(circle at 92% 8%, rgba(167,243,208,.4), transparent 40%), linear-gradient(135deg, #3730a3, #0f766e); }
.rs-hero__txt { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 0; flex: 1; }
.rs-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: #fde68a; text-transform: uppercase; }
.rs-hero h2 { margin: 0; font-size: 2rem; line-height: 1.15; color: #fff; }
.rs-hero h2 span { color: #fde047; }
.rs-hero p { margin: 0; max-width: 52ch; color: #e0e7ff; font-size: 1rem; line-height: 1.55; }
.rs-hero p.rs-note { font-size: .86rem; color: #fde68a; }
.rs-actions { margin-top: 4px; }
.rs-cele { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px; font-weight: 800; font-size: 1rem; color: #4c1d95; background: linear-gradient(120deg, #fde047, #fb923c); box-shadow: 0 8px 22px rgba(251,146,60,.5); transition: transform .15s, box-shadow .15s; }
.rs-cele:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 28px rgba(251,146,60,.6); }
.rs-cele:active { transform: scale(.97); }
.rs-cele:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rs-delta { width: fit-content; font-size: .8rem; font-weight: 800; padding: 5px 13px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.rs-delta.up { background: rgba(74,222,128,.3); border-color: rgba(134,239,172,.7); }
.rs-delta.down { background: rgba(251,146,60,.3); border-color: rgba(253,186,116,.7); }
.rs-ring { position: relative; z-index: 1; flex: none; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fde047 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.2); animation: rsPop .7s cubic-bezier(.2,.9,.3,1.3) .2s both; }
.rs-ring > div { width: 152px; height: 152px; border-radius: 50%; background: rgba(30,27,75,.92); display: grid; place-content: center; text-align: center; justify-items: center; gap: 0; }
.rs-ring__ico { font-size: 1.5rem; line-height: 1; }
.rs-ring strong { font-size: 2.8rem; line-height: 1.05; font-weight: 900; }
.rs-ring small { font-size: .8rem; color: #c7d2fe; }
.rs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 12px; }
.rs-kpi { display: grid; justify-items: center; gap: 1px; padding: 14px 10px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 4px 14px rgba(15,31,77,.06); }
.rs-kpi span { font-size: 1.3rem; }
.rs-kpi b { font-size: 1.6rem; color: #0f1f4d; line-height: 1.1; }
.rs-kpi small { font-size: .72rem; color: #5b6b94; }
.rs-kpi.is-ok { background: linear-gradient(160deg, #f0fdf4, #fff); border-color: #bbf7d0; }
.rs-kpi.is-no { background: linear-gradient(160deg, #fff7ed, #fff); border-color: #fed7aa; }
.rs-card { background: #fff; border: 1px solid #e3e9f7; border-radius: 22px; padding: 20px 22px; box-shadow: 0 6px 20px rgba(15,31,77,.07); }
.rs-card h3 { margin: 0 0 14px; color: #0f1f4d; }
.rs-areas { display: grid; gap: 10px; }
.rs-area { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f8faff; }
.rs-area__i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: #fff; box-shadow: 0 2px 6px rgba(15,31,77,.1); }
.rs-area__b { display: grid; gap: 5px; min-width: 0; }
.rs-area__b b { color: #0f1f4d; font-size: .92rem; }
.rs-area__v { text-align: right; font-weight: 800; color: #0f1f4d; }
.rs-area__v small { display: block; font-size: .7rem; color: #5b6b94; font-weight: 600; }
.rs-bar { display: block; height: 9px; border-radius: 99px; background: #e6ecfb; overflow: hidden; }
.rs-bar i { display: block; height: 100%; border-radius: 99px; animation: rsGrow .9s ease both .3s; transform-origin: left; }
.rs-area.is-ok .rs-bar i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.rs-area.is-mid .rs-bar i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.rs-area.is-low .rs-bar i { background: linear-gradient(90deg, #dc2626, #fb923c); }
.rs-focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin-top: 14px; }
.rs-f { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; }
.rs-f > span { font-size: 1.7rem; }
.rs-f > div { display: grid; gap: 1px; }
.rs-f small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.rs-f b { font-size: .98rem; }
.rs-f em { font-style: normal; font-size: .78rem; }
.rs-f--ok { background: #ecfdf5; color: #065f46; }
.rs-f--low { background: #fff7ed; color: #9a3412; }
.rs-next { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-btn { all: unset; cursor: pointer; padding: 11px 20px; border-radius: 14px; font-weight: 800; font-size: .92rem; transition: transform .15s, box-shadow .15s; }
.rs-btn:hover { transform: translateY(-2px); }
.rs-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.rs-btn--main { color: #fff; background: linear-gradient(120deg, #2563eb, #7c3aed); box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.rs-btn--soft { color: #1e3a8a; background: #eef2ff; border: 1px solid #c7d2fe; }
/* confeti suave */
.rs-confetti { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 4000; pointer-events: none; overflow: hidden; }
.rs-confetti i { position: absolute; top: -16px; width: 10px; height: 14px; border-radius: 2px; opacity: 0; animation: rsFall 2.6s ease-in forwards; }
.rs-confetti i.rs-c--round { width: 10px; height: 10px; border-radius: 50%; }
.rs-confetti i.rs-c--bar { width: 6px; height: 16px; }
@keyframes rsFall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: .9; } }
@keyframes rsIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rsPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes rsGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 820px) {
  .rs-hero { flex-direction: column-reverse; align-items: center; text-align: center; padding: 22px 18px; }
  .rs-hero h2 { font-size: 1.55rem; }
  .rs-hero__txt { justify-items: center; }
  .rs-ring { width: 150px; height: 150px; }
  .rs-ring > div { width: 118px; height: 118px; }
  .rs-ring strong { font-size: 2.2rem; }
  .rs-eyebrow { text-align: center; }

}
@media (prefers-reduced-motion: reduce) {
  .rs-hero, .rs-ring, .rs-bar i { animation: none !important; }
  .rs-confetti { display: none; }

}
/* ===== Informe individual por área + filtros de la bandeja ===== */
.ia-ver-est { display: none; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cm-live .ia-ver-est { display: flex; }
.ia-ver-est small { color: #5b6b94; font-weight: 700; }
.ia-ver-est__b { all: unset; cursor: pointer; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: #eef2ff; color: #1e3a8a; border: 1px solid #c7d2fe; }
.ia-ver-est__b:hover { background: #e0e7ff; }
.ia-ver-est__b:focus-visible { outline: 3px solid #2563eb; }
.ie-portada { background: linear-gradient(135deg, #0f766e, #1d4ed8 70%, #6d28d9) !important; }
.ie-comp { display: grid; gap: 10px; margin-top: 8px; }
.ie-c { display: grid; grid-template-columns: minmax(150px, 1.2fr) 3fr minmax(110px, auto); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f8faff; border: 1px solid #e3e9f7; }
.ie-c.is-poco { opacity: .62; }
.ie-c__t { display: grid; }
.ie-c__t b { color: #0f1f4d; font-size: .9rem; }
.ie-c__t small, .ie-c__v small { color: #5b6b94; font-size: .72rem; }
.ie-c__v { text-align: right; display: grid; }
.ie-c__v strong { font-size: 1.1rem; color: #0f1f4d; }
.ie-bar { position: relative; height: 12px; border-radius: 99px; background: #e6ecfb; }
.ie-bar i { display: block; height: 100%; border-radius: 99px; }
.ie-bar i.cm-ok { background: linear-gradient(90deg, #16a34a, #4ade80); }
.ie-bar i.cm-mid { background: linear-gradient(90deg, #d97706, #fbbf24); }
.ie-bar i.cm-low { background: linear-gradient(90deg, #dc2626, #fb923c); }
.ie-bar i.cm-gris { background: #9ca3af; }
.ie-bar u { position: absolute; top: -4px; width: 4px; height: 20px; border-radius: 2px; background: #475569; text-decoration: none; transform: translateX(-2px); }
.ie-bar .ia-meta { position: absolute; left: 70%; top: -3px; width: 2px; height: 18px; background: #16a34a; }
.ie-niv { display: flex; flex-wrap: wrap; gap: 10px; }
.ie-niv > div { display: grid; justify-items: center; gap: 3px; padding: 10px 16px; border-radius: 14px; background: #f8faff; border: 1px solid #e3e9f7; }
.ie-niv small { font-size: .7rem; color: #5b6b94; }
.ie-spark { width: 30%; }
.ie-spark i { display: block; height: 10px; border-radius: 99px; background: #2563eb; }
.ie-spark i.cm-ok { background: #22c55e; }
.ie-spark i.cm-mid { background: #f59e0b; }
.ie-spark i.cm-low { background: #ef4444; }
.ie-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-bottom: 10px; }
.ie-f { padding: 14px 16px; border-radius: 16px; }
.ie-f h4 { margin: 0 0 6px; }
.ie-f--ok { background: #ecfdf5; border: 1px solid #bbf7d0; }
.ie-f--low { background: #fff7ed; border: 1px solid #fed7aa; }
.ie-orient { display: grid; gap: 8px; padding-left: 20px; }
.ie-orient li { padding: 8px 12px; border-radius: 12px; background: #f5f3ff; border: 1px solid #e0e7ff; }
.cie-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; padding: 12px 14px; border-radius: 16px; background: #f8faff; border: 1px solid #e3e9f7; }
.cie-filtros label { display: grid; gap: 3px; font-size: .74rem; font-weight: 700; color: #5b6b94; }
.cie-filtros select, .cie-filtros input { font: inherit; font-size: .86rem; padding: 6px 10px; border-radius: 10px; border: 1px solid #cfd8ec; background: #fff; color: #0f1f4d; }
@media (max-width: 820px) {
  .ie-c { grid-template-columns: 1fr; }
  .ie-c__v { text-align: left; }

}


/* Márgenes seguros en el panel y el portal del colegio: ningún bloque se sale de su pestaña */
.adm-main, .adm-pane, .adm-pane > *, .adm-panel, .adm-pane .card { min-width: 0; max-width: 100%; box-sizing: border-box; }
.adm-pane :is(select, input:not([type="checkbox"]):not([type="radio"]), textarea) { max-width: 100%; box-sizing: border-box; }
.adm-pane :is(img, svg, video, canvas) { max-width: 100%; }
.adm-pane :is(.cl-t, .ctx-table, .cs-t) { max-width: 100%; }
.adm-pane pre, .adm-pane code { overflow-wrap: anywhere; white-space: pre-wrap; }

/* ---------- Reporte del estudiante (js/reporte-estudiante.js) ---------- */
.rpt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 16px; border-bottom: 2px solid #e5e7eb; }
.rpt-tab { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-soft); padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 10px 10px 0 0; }
.rpt-tab:hover { color: var(--ink); background: #f3f4f6; }
.rpt-tab.is-on { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.rpt-tab:focus-visible { outline: 3px solid #2563eb; }
.rpt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.rpt-kpi { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; }
.rpt-kpi > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.rpt-kpi div { display: grid; min-width: 0; }
.rpt-kpi b { font-size: 1.2rem; line-height: 1.2; }
.rpt-kpi em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
.rpt-kpi small { font-size: .7rem; color: var(--ink-soft); }
.rpt-t-verde > span { background: #dcfce7; } .rpt-t-azul > span { background: #dbeafe; } .rpt-t-ambar > span { background: #fef3c7; } .rpt-t-violeta > span { background: #ede9fe; } .rpt-t-naranja > span { background: #ffedd5; }
.rpt-filtros { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 12px 16px; margin-bottom: 16px; display: grid; gap: 4px; }
.rpt-fila { display: flex; gap: 10px; align-items: flex-start; }
.rpt-fl { flex: none; width: 62px; padding-top: 14px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.rpt-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: rgba(0,0,0,.08); font-size: .72rem; text-align: center; }
.chip--on .rpt-n { background: rgba(255,255,255,.28); }
.rpt-grupo { margin-bottom: 20px; }
.rpt-grupo h3 { margin: 0 0 10px; font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rpt-grupo h3 small { font-size: .76rem; font-weight: 700; color: var(--ink-soft); }
.rpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.rpt-card { background: #fff; border: 1px solid #e5e7eb; border-left: 5px solid #9ca3af; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rpt-e-presentado { border-left-color: #16a34a; } .rpt-e-incompleto { border-left-color: #d97706; background: #fffbeb; } .rpt-e-curso { border-left-color: #2563eb; }
.rpt-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.rpt-card h4 { margin: 0; font-size: .92rem; line-height: 1.3; }
.rpt-badge { flex: none; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.rpt-b-ok { background: #dcfce7; color: #166534; } .rpt-b-warn { background: #fef3c7; color: #92400e; } .rpt-b-info { background: #dbeafe; color: #1e40af; } .rpt-b-off { background: #f3f4f6; color: #4b5563; }
.rpt-sub { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.rpt-res { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.rpt-p { font-size: 1.3rem; font-weight: 800; }
.rpt-ok { color: #16a34a; } .rpt-mid { color: #d97706; } .rpt-low { color: #dc2626; }
.rpt-alerta { margin: 0; font-size: .8rem; padding: 8px 10px; border-radius: 10px; background: #fef3c7; color: #78350f; }
.rpt-plan { margin: 0; font-size: .8rem; }
.rpt-card footer { margin-top: auto; padding-top: 4px; }
.rpt-vacio { padding: 28px; text-align: center; color: var(--ink-soft); background: #fff; border: 2px dashed #d1d5db; border-radius: 16px; }
.rpt-intro, .rpt-nota { font-size: .82rem; color: var(--ink-soft); margin: 0 0 12px; }
.rpt-grid--evo { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.rpt-evo { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 16px; }
.rpt-evo header { display: flex; justify-content: space-between; align-items: center; }
.rpt-evo h4 { margin: 0; font-size: .95rem; }
.rpt-barras, .rpt-dias { display: flex; gap: 4px; align-items: flex-end; height: 110px; margin: 10px 0 4px; }
.rpt-barras span, .rpt-dias span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.rpt-barras i, .rpt-dias i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: #e5e7eb; }
.rpt-barras i.rpt-ok { background: #16a34a; } .rpt-barras i.rpt-mid { background: #d97706; } .rpt-barras i.rpt-low { background: #dc2626; }
.rpt-barras small, .rpt-dias small { font-size: .62rem; color: var(--ink-soft); }
.rpt-dias { height: 90px; } .rpt-dias i.on { background: #2563eb; } .rpt-dias--j i.on { background: #7c3aed; } .rpt-dias .hoy small { font-weight: 800; color: #1d4ed8; }
.rpt-tend { margin: 4px 0 0; font-size: .76rem; font-weight: 700; } .rpt-tend.up { color: #16a34a; } .rpt-tend.down { color: #dc2626; }
.rpt-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 14px 18px; margin-bottom: 14px; }
.rpt-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.rpt-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rpt-temas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rpt-temas li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f9fafb; }
.rpt-temas li div { flex: 1; min-width: 0; display: grid; } .rpt-temas b { font-size: .86rem; } .rpt-temas small { font-size: .72rem; color: var(--ink-soft); } .rpt-mi { font-size: 1.2rem; }
.rpt-temas .rpt-p { font-size: 1rem; }
.rpt-atajos { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .rpt-dos { grid-template-columns: 1fr; } .rpt-fila { flex-direction: column; gap: 0; } .rpt-fl { width: auto; padding-top: 8px; } .rpt-tab { padding: 8px 10px; font-size: .86rem; } }

/* ---- «Continuar con la siguiente actividad» (al terminar cualquier paso de la ruta) ---- */
.guide-cont { margin: 18px 0 10px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #eef2ff, #f5f0ff); border: 2px solid #c7d2fe; box-shadow: 0 6px 20px rgba(79, 70, 229, .12); text-align: left; }
.guide-cont[hidden] { display: none; }
.guide-cont.is-ok { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border-color: #86efac; box-shadow: 0 6px 20px rgba(22, 163, 74, .12); }
.guide-cont__top { display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: #4338ca; }
.guide-cont.is-ok .guide-cont__top { color: #15803d; }
.guide-cont__top strong { margin-left: auto; font-size: .9rem; }
.guide-cont__bar { flex: 0 0 90px; height: 7px; border-radius: 99px; background: rgba(99, 102, 241, .18); overflow: hidden; }
.guide-cont__bar i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 99px; transition: width .5s; }
.guide-cont.is-ok .guide-cont__bar i { background: #22c55e; }
.guide-cont__eye { display: block; margin: 10px 0 6px; font-weight: 700; color: #3730a3; font-size: .86rem; }
.guide-cont.is-ok .guide-cont__eye { color: #166534; }
.guide-cont__next { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; }
.guide-cont__ico { font-size: 1.7rem; line-height: 1; }
.guide-cont__next b { display: block; font-size: 1rem; color: #1e1b4b; }
.guide-cont__next small { display: block; color: #475569; font-size: .8rem; margin-top: 2px; }
.guide-cont__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.guide-cont__go { flex: 1 1 240px; padding: 14px 20px; border: 0; border-radius: 14px; font-weight: 800; font-size: 1.05rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.guide-cont.is-ok .guide-cont__go { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 16px rgba(22, 163, 74, .3); }
.guide-cont__go:hover { transform: translateY(-1px); }
.guide-cont__ver { padding: 12px 16px; border-radius: 14px; border: 2px solid #c7d2fe; background: #fff; color: #4338ca; font-weight: 700; cursor: pointer; }
@media (max-width: 520px) { .guide-cont { padding: 14px; } .guide-cont__go, .guide-cont__ver { flex: 1 1 100%; } .guide-cont__bar { flex-basis: 60px; } }

/* ===== Cierre de sesión por inactividad (js/inactividad.js) ===== */
.es-inact { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100000; display: flex; gap: 12px; align-items: center; width: min(560px, calc(100vw - 24px)); padding: 12px 16px; border-radius: 16px; background: #fff; color: #0f1f4d; border: 2px solid #f59e0b; box-shadow: 0 18px 40px -14px rgba(15, 31, 77, .55); animation: es-inact-in .25s ease-out; }
.es-inact--fin { border-color: #2563eb; top: 14px; bottom: auto; }
.es-inact__i { font-size: 1.8rem; flex: none; } .es-inact b { display: block; font-size: 1rem; } .es-inact p { margin: 2px 0 0; font-size: .86rem; color: #475569; } .es-inact strong { color: #b45309; font-variant-numeric: tabular-nums; }
.es-inact > div { flex: 1; min-width: 0; } .es-inact button { flex: none; }
@keyframes es-inact-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 480px) { .es-inact { flex-wrap: wrap; } .es-inact button { width: 100%; } }
