/* ==========================================================================
   steamrobothink.com · HOJA DE ESTILOS ÚNICA  (css/style.css)
   Sirve a TODAS las páginas: la web pública (web_*) y la plataforma (imagen_*).

   CÓMO FUNCIONA
   · Cada página declara su tema en la etiqueta <html>:
       <html lang="es" class="theme-site">   → web pública (Expert Tutoring + Robothink)
       <html lang="es" class="theme-app">    → plataforma (estudiante, docente, familia) e índice
   · Los colores se definen UNA sola vez, con el mismo nombre en los dos temas
     (var(--orange), var(--ink), var(--line)…). Lo único que cambia entre un tema y
     otro es el valor, y está en la sección 1.
   · Las clases que existen con el mismo nombre en la web y en la plataforma pero con
     estilos distintos (.btn, .card, .chip, .steps, .num, .path, .role, .tips, .note…)
     van con el prefijo  :where(.theme-site)  o  :where(.theme-app).  Ese prefijo no
     suma especificidad: solo limita la regla al tema.
   · Para separar el encabezado o el pie y reutilizarlos: busca la sección
     «Encabezado» / «Pie de página» (web) o «Barra superior» (plataforma).

   ÍNDICE
     1. Variables (colores, tipografía, temas)
     2. Base (reinicio y elementos)
     3. Piezas compartidas (utilidades, botón, tarjeta, aviso)
     4. Web pública
     5. Plataforma
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES
   Si un valor es igual en la web y en la plataforma va en :root.
   Si cambia, va en el tema correspondiente (mismo nombre, distinto valor).
   ========================================================================== */
:root {
  /* marca: igual en toda la web y la plataforma */
  --navy: #1b2b85;
  --navy-2: #13206a;
  --green: #1f8a5b;
  --green-soft: #e3f5ec;
  --yellow-soft: #fff6d6;
  --purple: #6b4fc8;
  --purple-soft: #efebfc;
  --red-soft: #fdece4;
  --on-navy: #d8def7;          /* texto claro sobre fondo azul */
  --locked: #f0f1f7;           /* elemento bloqueado */
  --radius: 24px;
  --max: 1200px;
  /* tipografía: Fredoka para títulos, Andika para textos */
  --font-head: "Fredoka", "Andika", system-ui, sans-serif;
  --font-body: "Andika", system-ui, sans-serif;
}

/* Tema: web pública */
.theme-site {
  --orange: #f07a12;
  --orange-ink: #b8560a;
  --orange-soft: #fff0e2;
  --yellow: #ffd23f;
  --blue: #1f8fe5;
  --blue-soft: #e6f3fd;
  --red: #d64545;
  --ink: #16204f;
  --muted: #4f5878;
  --line: #e2e6f2;
  --bg-soft: #f4f7fe;
}

/* Tema: plataforma */
.theme-app {
  --orange: #e07020;
  --orange-ink: #b4530f;
  --orange-soft: #fff1e6;
  --yellow: #ffc857;
  --blue: #2f6fdb;
  --blue-soft: #e8f0fd;
  --red: #c2410c;
  --ink: #1e1e3a;
  --muted: #5a5a7a;
  --line: #e1e3ee;
  --bg-soft: #f5f6fb;
}

/* Variantes de tipografía de la web (ver content/theme.ts). «amigable» es la que usa :root. */
body.font-moderna { --font-head: "Poppins", "Inter", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; }
body.font-sobria { --font-head: "Inter Display", "Inter", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; }

/* ==========================================================================
   2. BASE
   Reinicio y elementos HTML. Lo común va una sola vez; lo que cambia, por tema.
   ========================================================================== */
* { box-sizing: border-box; }
.theme-site { scroll-behavior: smooth; }

body { margin: 0; font-family: var(--font-body); color: var(--ink); }
:where(.theme-site) body { background: #fff; font-size: 18px; line-height: 1.55; }
:where(.theme-app) body { background: var(--bg-soft); font-size: 17px; line-height: 1.5; }

a { color: var(--navy); }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
:where(.theme-site) :focus-visible { border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }
:where(.theme-site) :is(h1, h2, h3) { line-height: 1.08; }
:where(.theme-site) h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; }
:where(.theme-site) h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
:where(.theme-site) h3 { font-size: 24px; font-weight: 700; }
:where(.theme-app) :is(h1, h2, h3) { font-weight: 600; line-height: 1.15; }
:where(.theme-site) img { max-width: 100%; display: block; }
:where(.theme-site) p { margin: 0; }
:where(.theme-app) :is(button, input, select) { font: inherit; }
:where(.theme-app) textarea {
  font: inherit;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 400;
  resize: vertical;
}
:where(.theme-app) textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--blue-soft); }
body.font-amigable :is(h1, h2, h3) { font-weight: 600; }
body.font-sobria :is(h1, h2) { letter-spacing: -0.02em; font-weight: 800; }
body.font-moderna :is(h1, h2) { letter-spacing: -0.01em; font-weight: 700; }

/* ==========================================================================
   3. PIEZAS COMPARTIDAS
   Lo que es idéntico en la web y en la plataforma. Las diferencias de cada tema van justo debajo.
   ========================================================================== */

/* ---------- utilidades ---------- */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botón (base común; tamaño y color según el tema) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
:where(.theme-site) .btn {
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--font-body);
  font-weight: 800;
  border: 2px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
:where(.theme-app) .btn {
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}
:where(.theme-site) .btn:hover { transform: translateY(-1px); filter: brightness(.97); }
:where(.theme-app) .btn:hover { filter: brightness(.95); color: #fff; }

/* ---------- tarjeta ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
:where(.theme-site) .card { padding: 28px; }
:where(.theme-app) .card { padding: 24px; }

/* ---------- aviso breve (toast) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%,20px);
  opacity: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 16px;
  transition: .25s;
  max-width: calc(100% - 32px);
  text-align: center;
}
:where(.theme-site) .toast { box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 99; }
:where(.theme-app) .toast { box-shadow: 0 10px 30px rgba(30,30,58,.25); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* ==========================================================================
   4. WEB PÚBLICA  (html.theme-site · páginas web_01 a web_11)
   ========================================================================== */

/* ---------- estructura de página ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 720px; margin-top: 14px; }
.navy .lead { color: var(--on-navy); }
.kicker {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--orange-ink);
  line-height: 1;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.navy .kicker { color: var(--yellow); }
.hero .kicker { color: var(--yellow); }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mt { margin-top: 36px; }
.mt-s { margin-top: 18px; }

/* ---------- botones: variantes ---------- */
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { color: var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { color: #fff; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 18px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- franja de teléfonos ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar-in { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 36px; flex-wrap: wrap; }
.topbar span { color: #c9d1f2; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow); }
.topbar .flag { font-size: 16px; }
.phones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brandmarks { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brandmarks img.et { height: 46px; width: auto; }
.brandmarks img.rt { height: 40px; width: auto; }
.brandmarks .sep { width: 1px; height: 34px; background: var(--line); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); padding: 10px 12px; border-radius: 12px; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--blue-soft); }
.header .btn { min-height: 46px; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-weight: 800;
  font-size: 14px;
}
.lang-switch > * { padding: 6px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); line-height: 1; }
.lang-switch .on { background: var(--navy); color: #fff; }
.lang-switch a:hover { color: var(--navy); background: var(--blue-soft); }

/* ---------- video de la plataforma ---------- */
.hero-video { position: relative; margin: 0; }
.hero-video .screen {
  background: #fff;
  border-radius: 22px;
  padding: 34px 10px 10px;
  box-shadow: 0 24px 60px rgba(10,20,70,.35);
  position: relative;
}
.hero-video .dots { position: absolute; top: 13px; left: 18px; display: flex; gap: 6px; }
.hero-video .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5f0; display: block; }
.hero-video video, .hero-video .placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.hero-video video { object-fit: cover; }
.hero-video .placeholder img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.hero-video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  padding-left: 6px;
  box-shadow: 0 10px 30px rgba(240,122,18,.5);
}
.hero-video .ph-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(27,43,133,.9);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
}
.hero-video .pi {
  position: absolute;
  width: 30%;
  right: -6%;
  bottom: -14%;
  border-radius: 24px;
  background: #fff;
  padding: 6px;
  transform: rotate(5deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.hero-video figcaption { margin-top: 18px; font-family: var(--font-head); font-size: 18px; color: var(--yellow); font-weight: 600; }

/* ---------- portada (home): caminos, video y cifras ---------- */
.heroB {
  background: radial-gradient(1200px 500px at 50% -10%, var(--blue-soft), #fff 70%);
  padding: 64px 0 40px;
  text-align: center;
  overflow: hidden;
}
.heroB-in { display: flex; flex-direction: column; align-items: center; }
.heroB h1 { max-width: 920px; margin: 6px auto 0; }
.heroB .lead { max-width: 720px; margin: 16px auto 0; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 900px; margin-top: 30px; }
:where(.theme-site) .path {
  text-align: left;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 18px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform .15s, box-shadow .15s;
  color: var(--ink);
}
:where(.theme-site) .path b { font-family: var(--font-head); font-size: 20px; color: var(--navy); }
:where(.theme-site) .path span { font-size: 15px; color: var(--muted); }
:where(.theme-site) .path:hover, :where(.theme-site) .path:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,32,79,.12);
}
.path-orange { background: var(--orange-soft); border-color: #f9c79a; }
.path-sky { background: var(--blue-soft); border-color: #a9d3f7; }
.path-yellow { background: var(--yellow-soft); border-color: #f5dc7c; }
.heroB-media { width: 100%; max-width: 900px; margin-top: 40px; }
.heroB-media .hero-video figcaption { color: var(--orange-ink); }
.heroB-media .hero-video .pi { width: 17%; right: -4%; bottom: 4%; }
.factsB {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--line);
}
.factsB li { padding: 22px 18px 0; text-align: left; border-left: 1px solid var(--line); }
.factsB li:first-child { border-left: 0; }
.factsB b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--navy); line-height: 1.1; }
.factsB span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }

/* ---------- encabezado de páginas interiores ---------- */
.phero { padding: 64px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.phero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.phero img.side { border-radius: var(--radius); max-height: 360px; object-fit: contain; margin-left: auto; }
.meme { border-radius: var(--radius); max-height: 520px; object-fit: cover; object-position: center top; width: 100%; }
.phero img.side.meme { max-height: 500px; width: auto; border-radius: 24px; box-shadow: 0 18px 40px rgba(22,32,79,.15); }

/* ---------- tarjetas ---------- */
:where(.theme-site) .card p { color: var(--muted); margin-top: 8px; }
.brand-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.brand-card .logo { height: 70px; width: auto; object-fit: contain; align-self: flex-start; }
.brand-card .where { font-weight: 800; color: var(--green); font-size: 15px; }
.brand-card .btn, .brand-body .btn { align-self: flex-start; margin-top: auto; }
.brand-visual { height: 230px; position: relative; overflow: hidden; }
.brand-expert .brand-visual { background: var(--orange-soft); }
.brand-robothink .brand-visual { background: var(--blue-soft); }
.brand-visual .photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.brand-visual .cv {
  position: absolute;
  height: 200px;
  width: auto;
  bottom: -24px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(22,32,79,.22);
  background: #fff;
}
.brand-visual .cv1 { left: 12%; transform: rotate(-8deg); }
.brand-visual .cv2 { right: 12%; transform: rotate(8deg); }
.brand-visual .cv3 { left: 50%; transform: translateX(-50%); bottom: -10px; height: 215px; z-index: 2; }
.brand-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brand-body .claim { font-weight: 800; color: var(--orange-ink); margin: 0; }
.brand-body .text { margin: 0; font-size: 18px; }
.brand-body .tick { margin: 4px 0 6px; }
.covers-hero { height: 380px; background: var(--orange-soft); border-radius: var(--radius); }
.covers-hero .cv { height: 300px; bottom: 30px; }
.covers-hero .cv3 { height: 320px; bottom: 20px; }
.covers-hero .cv1 { left: 4%; height: 250px; bottom: 40px; }
.covers-hero .cv2 { right: 4%; height: 250px; bottom: 40px; }
.book-card img {
  border-radius: 10px;
  border: 1px solid var(--line);
  height: 230px;
  width: 100%;
  object-fit: contain;
  background: var(--bg-soft);
}
.book-card .level {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange-ink);
  background: var(--orange-soft);
  padding: 4px 12px;
  border-radius: 999px;
}
.book-card h3 { margin-top: 10px; }
.book-card { display: flex; flex-direction: column; }
.book-card .btn { margin-top: auto; align-self: flex-start; }
.book-card p { margin-bottom: 18px; }
.photo-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 16px; }
.photo-card h3 { margin-top: 16px; font-size: 21px; }
:where(.theme-site) .tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tip .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.tip h3 { margin-bottom: 6px; }
.tip p { margin: 0; }
:where(.theme-site) .num {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.icon-dot {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ---------- listas, etiquetas y bloques de texto ---------- */
.tick { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.tick li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.tick li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.cross li::before {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
:where(.theme-site) .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
:where(.theme-site) .chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}
.navy .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.quote {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  line-height: 1.2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.formula {
  font-weight: 800;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 14px 24px;
  display: inline-block;
  margin-top: 24px;
}
:where(.theme-site) .steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.where-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.where-item { border-radius: 20px; padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.where-item b { font-family: var(--font-head); font-size: 28px; display: block; color: #fff; }
.where-item span { color: var(--on-navy); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
:where(.theme-site) .note { font-size: 15px; color: var(--muted); margin-top: 18px; }
.sellos { border-radius: 16px; background: #fff; padding: 10px; }
:where(.theme-site) .roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
:where(.theme-site) .role { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
:where(.theme-site) .role .icon-dot { width: 84px; height: 84px; border-radius: 24px; margin: 0; }

/* ---------- comunidad y formularios ---------- */
.community { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.benefits-title { margin-top: 26px; font-size: 22px; }
.wa-alt { margin: 28px 0 0; font-weight: 700; color: var(--muted); }
.form { display: grid; gap: 16px; padding: 30px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--navy); }
.form input, .form select {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
  box-sizing: border-box;
}
.form input:focus, .form select:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .req { color: var(--orange-ink); }
.chips-field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips-field legend { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 8px; padding: 0; }
.chip-radio { display: inline-flex !important; grid-auto-flow: column; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip-radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.chip-radio input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--blue); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.form button { justify-self: start; }
.form-error { margin: 0; background: #fdecec; color: #9b1c1c; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}
.thanks { text-align: center; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.thanks-pi { width: 160px; border-radius: 24px; background: #fff; margin-bottom: 18px; }

/* ---------- socios ---------- */
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-list li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 22px; }
.why-list b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--yellow); line-height: 1.1; }
.why-list span { color: var(--on-navy); }
.steps-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list .n {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps-list b { display: block; color: var(--navy); }
.steps-list div span { color: var(--muted); }

/* ---------- verificación de socios ---------- */
.exclusive {
  margin: 26px auto 0;
  max-width: 760px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  background: var(--yellow-soft);
  border-radius: 14px;
  padding: 14px 18px;
}
.verify { max-width: 720px; }
.verify-form { margin-top: 26px; display: grid; gap: 8px; }
.verify-form label { font-weight: 700; color: var(--navy); }
.verify-row { display: flex; gap: 12px; }
.verify-row input {
  flex: 1;
  font: inherit;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.verify-result { margin-top: 26px; }
.verify-result .badge { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.verify-result.ok { border: 2px solid var(--green); background: var(--green-soft); }
.verify-result.ok .badge { color: var(--green); }
.verify-result.no { border: 2px solid #f0b4b4; background: #fdf2f2; }
.verify-result.no .badge { color: #9b1c1c; }
.verify-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.verify-result dt { font-weight: 700; color: var(--muted); }
.verify-result dd { margin: 0; font-weight: 700; color: var(--ink); }
.ready-cover {
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(22,32,79,.2);
  margin-bottom: 18px;
  background: #fff;
}

/* ---------- pie de página ---------- */
.footer { background: var(--navy-2); color: #c9d0f0; padding: 48px 0 28px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .tag { font-family: var(--font-head); font-size: 20px; color: var(--yellow); letter-spacing: .5px; }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- aviso informativo ---------- */
.static-note {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 700;
}

/* ---------- portada anterior (sin uso en las páginas actuales: puedes borrarlo cuando quieras) ---------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .14;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-navy); }
.hero-art { position: relative; min-height: 380px; }
.hero-art .book {
  position: absolute;
  width: 58%;
  left: 4%;
  top: 6%;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: rotate(-5deg);
}
.hero-art .mascot {
  position: absolute;
  width: 52%;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  background: #fff;
  padding: 8px;
  transform: rotate(4deg);
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(22,32,79,.08);
}
.fact b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--navy); line-height: 1.1; }
.fact span { font-size: 15px; color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
}

/* ---------- adaptación a pantallas pequeñas (web) ---------- */
@media (min-width: 761px) {
  .header-in { flex-wrap: nowrap; gap: 12px; }
  .nav { flex-wrap: nowrap; gap: 2px; }
  .nav a { padding: 8px 9px; font-size: 15px; white-space: nowrap; }
  .header-actions { gap: 10px; flex: none; }
  .header .btn { padding: 0 18px; font-size: 15px; min-height: 44px; white-space: nowrap; }
  .brandmarks { gap: 10px; flex: none; }
  .brandmarks img.et { height: 42px; }
  .brandmarks img.rt { height: 36px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 960px) {
  .hero-in, .phero-in, .split { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  :where(.theme-site) :is(.grid3, .steps, .roles, .where-list) { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { display: none; }
  .paths { grid-template-columns: 1fr; }
  .factsB { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .factsB li:nth-child(3) { border-left: 0; }
  .hero-video .pi { width: 26%; right: -2%; }
  .community { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header-in { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; min-height: 0; justify-content: stretch; }
  .brandmarks img.et { height: 40px; }
  .brandmarks img.rt { height: 28px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin: 0 -24px;
    padding: 0 24px 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 12px; font-size: 15px; }
  .heroB { padding-top: 36px; }
  .topbar-in { justify-content: center; gap: 12px; font-size: 12px; flex-wrap: nowrap; min-height: 32px; white-space: nowrap; }
  .topbar span { display: none; }
  :where(.theme-site) .tips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :where(.theme-site) body { font-size: 17px; }
  .section { padding: 52px 0; }
  :where(.theme-site) :is(.grid2, .grid3, .steps, .roles, .where-list, .facts, .footer-in) { grid-template-columns: 1fr; }
  .phero img.side { margin: 0 auto; }
  .form .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .verify-row { flex-direction: column; }
}

/* ==========================================================================
   5. PLATAFORMA  (html.theme-app · páginas imagen_01 a imagen_23 y 00_indice)
   ========================================================================== */

/* ---------- barra superior ---------- */
header.bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
:where(.theme-app) .logo img { height: 48px; width: auto; display: block; }
.right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- botones: variantes ---------- */
:where(.theme-app) .btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
:where(.theme-app) .btn.green { background: var(--green); }
:where(.theme-app) .btn.blue { background: var(--blue); }
:where(.theme-app) .btn.yellow { background: var(--yellow); color: var(--navy); }
:where(.theme-app) .btn.wide { width: 100%; }

/* ---------- estructura ---------- */
:where(.theme-app) main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 60px; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- selector de idioma ---------- */
.lang a,.lang span { font-weight: 700; font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.lang span { background: var(--navy); color: #fff; }

/* ---------- ¿quién eres? y banner ---------- */
.hello h1 { font-size: clamp(34px,5vw,52px); }
:where(.theme-app) .roles { margin-top: 32px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
:where(.theme-app) .role {
  flex: 1 1 260px;
  max-width: 350px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(30,30,58,.06);
  text-decoration: none;
  color: var(--ink);
}
:where(.theme-app) .role:hover { border-color: var(--orange); color: var(--ink); }
:where(.theme-app) .role .pic {
  width: 100%;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  height: 170px;
  align-items: center;
}
:where(.theme-app) .role .pic img { height: 140px; width: auto; }
:where(.theme-app) .role h2 { font-size: 28px; }
.banner {
  margin: 32px auto 0;
  background: var(--navy);
  border-radius: 24px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #fff;
}
.banner h2 { color: #fff; font-size: 24px; }

/* ---------- entrar (login) ---------- */
.login { max-width: 560px; margin: 10px auto 0; }
.login .head { display: flex; gap: 16px; align-items: center; }
.login .head img { width: 96px; height: auto; }
.login h1 { font-size: 40px; }
.field { display: grid; gap: 6px; margin-top: 18px; font-weight: 700; }
.field input {
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 19px;
  font-weight: 400;
  width: 100%;
}
.field input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--blue-soft); }
.field select {
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  font-size: 19px;
  font-weight: 400;
  width: 100%;
  background: #fff;
  color: var(--ink);
}
.field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--blue-soft); }

/* ---------- ventana «Completa tu perfil» del docente (no se puede cerrar) ---------- */
/* El borde redondo lo lleva el <dialog> (overflow: hidden); el desplazamiento va por dentro,
   en .perfil-in, para que la barra no tape las esquinas de la derecha. */
.perfil-modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(22,32,79,.28);
}
.perfil-modal[open] { display: flex; flex-direction: column; }
.perfil-modal::backdrop { background: rgba(22,32,79,.55); }
.perfil-in {
  overflow-y: auto;
  padding: 26px 28px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.perfil-in::-webkit-scrollbar { width: 8px; }
.perfil-in::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.perfil-in::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.perfil-modal .field { margin-top: 14px; }
.perfil-modal .field input, .perfil-modal .field select { min-height: 52px; font-size: 18px; }
.perfil-modal .rolepick { margin-top: 14px; gap: 8px; }
.perfil-modal .rolepick span { padding: 8px 16px; }
.perfil-modal h2 { font-size: 30px; margin: 4px 0 8px; }
.perfil-modal .pi { width: 96px; height: auto; display: block; margin: 0 auto 8px; }
.perfil-modal .paso[data-paso="1"] { text-align: center; }
.perfil-modal .pasos { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.perfil-modal .rolepick span { text-transform: none; }
.perfil-modal .acciones { display: flex; gap: 12px; margin-top: 20px; }
.perfil-modal .acciones .btn.green { flex: 1; }
.perfil-modal .salir { margin: 14px 0 0; }
@media (max-width: 560px) {
  .perfil-in { padding: 22px 18px 18px; }
  .perfil-modal h2 { font-size: 24px; }
}
.alert {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  background: var(--red-soft);
  color: var(--red);
}
.demo {
  margin-top: 14px;
  font-size: 15px;
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--navy);
}

/* ---------- docente: pestañas, saludo y panel Hoy ---------- */
.tabs { display: flex; gap: 18px; flex-wrap: wrap; }
.tabs a {
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 2px;
}
.tabs a[aria-current] { color: var(--navy); border-color: var(--orange); }
.bar-in>.tabs { order: 3; flex-basis: 100%; gap: 26px; margin: -4px 0 -10px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.groupsel select {
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  padding: 0 10px;
  font-weight: 700;
  background: #fff;
}
.greet h1 { font-size: clamp(30px,4vw,44px); }
.grid { margin-top: 22px; display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.today { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.today .cover { width: 120px; border-radius: 10px; border: 1px solid var(--line); }
.today h2 { font-size: clamp(24px,3vw,34px); margin-top: 8px; }
:where(.theme-app) .steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
:where(.theme-app) .steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  flex-wrap: wrap;
}
:where(.theme-app) .steps li.is-done { background: #fbfdfc; }
:where(.theme-app) .num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
:where(.theme-app) .num.done { background: var(--green); }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
:where(.theme-app) .steps .txt { flex: 1; min-width: 180px; }
:where(.theme-app) .steps .txt b { display: block; font-size: 17px; }
:where(.theme-app) .steps .txt span { font-size: 14px; color: var(--muted); }
.link {
  background: none;
  border: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  min-height: 44px;
  padding: 0 6px;
  cursor: pointer;
}
:where(.theme-app) .side { display: grid; gap: 22px; }
:where(.theme-app) .side h2 { font-size: 26px; }
.barrow { display: flex; justify-content: space-between; font-size: 15px; margin-top: 14px; }
.track { height: 10px; border-radius: 99px; background: var(--line); margin-top: 6px; }
.fill { height: 10px; border-radius: 99px; }
.support { margin: 14px 0 0; padding-left: 20px; }
.support li { margin: 6px 0; }
.eval { background: var(--navy); color: #fff; border-radius: 24px; padding: 22px 24px; }
.eval b { display: block; font-size: 19px; }
.tiles { margin-top: 22px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.tile b { display: block; color: var(--navy); font-size: 17px; }
.tile .s { display: block; font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 40px; }

/* ---------- proyector de clase ---------- */
.proj { background: var(--navy); color: #fff; min-height: 100vh; padding: 40px; }
.proj h1 { color: #fff; font-size: clamp(32px,5vw,60px); }
.proj ol { font-size: clamp(20px,2.6vw,32px); line-height: 1.8; }
:where(.theme-app) .proj .btn { margin-top: 30px; }

/* ---------- estudiante: mapa de retos ---------- */
:where(.theme-app) .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  background: #fff;
}
:where(.theme-app) .chip.itx { background: var(--orange-soft); border-color: var(--orange-soft); color: var(--orange-ink); }
.maphead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.maptitle { font-size: clamp(34px,5vw,56px); margin-top: 4px; }
.blockprog { min-width: 280px; flex: 0 1 380px; }
.domains { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.domains a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.domains a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
:where(.theme-app) .path { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 26px; }
.nodelink { display: flex; align-items: center; gap: 20px; color: var(--ink); text-decoration: none; }
a.nodelink:hover b { color: var(--orange-ink); }
.circle {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border: 5px solid;
  background: #fff;
}
.node-done .circle { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.node-current .circle {
  border-color: var(--orange);
  color: var(--orange);
  width: 116px;
  height: 116px;
  font-size: 44px;
  box-shadow: 0 0 0 10px var(--orange-soft);
}
.node-open .circle { border-color: var(--blue); color: var(--blue); }
.node-locked .circle { border-color: #c4c7dc; background: var(--locked); }
.node-locked b { color: var(--muted); }
.ntxt { display: flex; flex-direction: column; gap: 4px; }
.ntxt b { font-size: 20px; }
.pill.here { background: var(--orange); color: #fff; align-self: flex-start; margin-top: 6px; }
.raiz { background: var(--blue-soft); border-radius: 24px; padding: 20px; display: flex; gap: 14px; align-items: center; }
.raiz img { width: 110px; height: auto; }
.raiz p { margin: 0; font-size: 18px; }
.badges { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.badges li { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.badges li.won { background: var(--orange-soft); }
.badges li.won:nth-child(2) { background: var(--green-soft); }
.badges li.won:nth-child(3) { background: var(--purple-soft); }
.badges li.won:nth-child(4) { background: var(--blue-soft); }
.badges li.lock { background: var(--locked); opacity: .8; }

/* ---------- estudiante: actividad (pregunta, pista, ¡muy bien!) ---------- */
.quizbar { gap: 18px; flex-wrap: nowrap; }
.qprog { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qprog .muted { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz { max-width: 980px; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px 28px; text-align: center; }
.qcard h1 {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: clamp(24px,3.2vw,34px);
  line-height: 1.35;
  max-width: 760px;
  margin: 10px auto 0;
  font-weight: 700;
}
.listen { margin-top: 16px; }
.opts { border: 0; padding: 0; margin: 26px 0 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 150px;
  padding: 0 24px;
  border-radius: 20px;
  border: 3px solid var(--line);
  background: #fff;
  font-size: clamp(20px,2.6vw,30px);
  font-weight: 700;
}
.opt input:checked+span { border-color: var(--blue); background: var(--blue-soft); }
.opt input:focus-visible+span { outline: 3px solid var(--orange); outline-offset: 3px; }
.opt.ok span { border-color: var(--green); background: var(--green-soft); }
.opt.bad span { border-color: var(--red); background: var(--red-soft); }
fieldset[disabled] .opt { cursor: default; }
.fb { margin-top: 20px; border-radius: 24px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fb img { width: 84px; height: auto; }
.fbtxt { flex: 1; min-width: 220px; }
.fbtxt h2 { font-size: 26px; }
.fbtxt p { margin: 4px 0 0; }
.fb-ok { background: var(--green-soft); border: 2px solid var(--green); }
.fb-ok h2 { color: var(--green); }
.fb-hint { background: var(--orange-soft); border: 2px solid var(--orange); }
.fb-hint h2 { color: var(--orange-ink); }
.fb-reveal { background: var(--blue-soft); border: 2px solid var(--blue); }
.donecard { max-width: 880px; margin: 20px auto 0; padding: 40px; }
.donecard h1 { font-size: clamp(34px,5vw,52px); margin-top: 10px; }
.itx { color: var(--orange-ink); }

/* ---------- docente y familia: secciones ---------- */
.whoname { white-space: nowrap; }
.small { font-size: 14px; }
.pagehead h1 { font-size: clamp(30px,4vw,42px); }
.pagehead p { margin: 6px 0 0; font-size: 18px; }
.pagehead.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.flash { max-width: 1180px; margin: 18px auto 0; border-radius: 16px; padding: 14px 18px; font-weight: 700; }
main>.flash,.login .flash { margin: 18px 0 0; }
body>.flash { margin: 18px auto 0; width: calc(100% - 48px); }
.flash-ok { background: var(--green-soft); color: var(--green); }
.flash-err { background: var(--red-soft); color: var(--red); }
.flash.big { font-size: 19px; color: var(--ink); border: 2px solid var(--green); margin-top: 22px; }
.flash .pin {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 34px;
  letter-spacing: .18em;
  color: var(--navy);
  background: #fff;
  border-radius: 12px;
  padding: 2px 14px;
  margin-left: 6px;
  vertical-align: middle;
}
.flash .s { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 6px; }
:where(.theme-app) .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
:where(.theme-app) .chips a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--navy);
}
:where(.theme-app) .chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpis { margin-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.kpis.four { grid-template-columns: repeat(4,1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.kpi b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--navy); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 15px; }
.kpi.warn { background: var(--orange-soft); border-color: #f6d2b5; }
.kpi.warn b { color: var(--orange-ink); }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th,.tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.tbl tbody th { font-weight: 700; }
.tbl tbody tr:last-child>* { border-bottom: 0; }
.tbl td.late { color: var(--red); font-weight: 700; }
.pill.warnpill { background: var(--orange-soft); color: var(--orange-ink); font-size: 12px; padding: 3px 9px; margin-left: 6px; }
.minibar {
  display: inline-block;
  width: 70px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  vertical-align: middle;
  margin-right: 6px;
  overflow: hidden;
}
.minibar span { display: block; height: 8px; border-radius: 99px; }
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan .unit { margin-top: 10px; }
.plan .unit:first-child { margin-top: 0; }
.plan .unit h2 { font-size: 22px; }
.plan .sess {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  flex-wrap: wrap;
}
.plan .sess.is-today { border: 2px solid var(--orange); background: #fffaf5; }
.plan .date {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1;
}
.plan .date b { font-family: var(--font-head); font-size: 24px; }
.plan .date span { font-size: 13px; text-transform: uppercase; font-weight: 700; }
.plan .is-today .date { background: var(--orange); color: #fff; }
.plan .txt { flex: 1; min-width: 200px; }
.plan .txt b { display: block; font-size: 18px; }
.plan .txt span { font-size: 15px; }
.evlist,.notices,.weeklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.evlist li { display: flex; gap: 12px; align-items: center; }
.evlist li>span:last-child b { display: block; }
.evlist li>span:last-child .muted { font-size: 15px; }
.evdot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}
.evdot.up { background: var(--purple-soft); }
.notices li { border-left: 4px solid var(--orange); background: #fffaf5; border-radius: 0 14px 14px 0; padding: 12px 14px; }
.notices li b { display: block; font-size: 17px; color: var(--navy); }
.notices li p { margin: 4px 0 6px; }
.field input[type=date] { max-width: 260px; }
:where(.theme-app) .note {
  margin: 16px 0 0;
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
}
.reslist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  gap: 16px;
}
.res {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res b { font-size: 18px; color: var(--navy); flex: 1; }
:where(.theme-app) .res .btn { margin-top: 6px; min-height: 44px; }
.weeklist .barrow { margin-top: 0; }
.weeklist .track { margin: 6px 0 4px; }
.fbadges { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.fbadges li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--orange-soft);
}
.fbadges li.lock { background: var(--locked); }
.fbadges .bi { font-size: 24px; }
.fbadges b { font-size: 15px; }
.fbadges .small { margin-left: auto; }
:where(.theme-app) .tips { margin: 6px 0 0; padding-left: 20px; }
:where(.theme-app) .tips li { margin: 4px 0; }
.rolepick { border: 0; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.rolepick legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.rolepick label { cursor: pointer; }
.rolepick input { position: absolute; opacity: 0; }
.rolepick span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-weight: 700;
  text-transform: capitalize;
}
.rolepick input:checked+span { background: var(--navy); border-color: var(--navy); color: #fff; }
.rolepick input:focus-visible+span { outline: 3px solid var(--orange); outline-offset: 3px; }
.wa {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.wa p { flex-basis: 100%; }
.helpbox { background: var(--blue-soft); border-color: #d5e2fb; position: relative; padding-right: 110px; }
.helpbox img { position: absolute; right: 14px; top: 14px; width: 84px; height: auto; }
:where(.theme-app) .helpbox .tips { margin-top: 10px; }

/* ---------- índice de pantallas (00_indice) ---------- */
.screens {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: 12px;
}
.screens a {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.screens a:hover { border-color: var(--orange); }
:where(.theme-app) .screens .num {
  flex: none;
  min-width: 44px;
  padding: 0 6px;
  height: 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  display: grid;
  place-items: center;
}
.screens b { display: block; color: var(--navy); }
.screens .muted { font-size: 13px; word-break: break-all; }

/* ---------- docente: elegir libro (imagen_05b), elegir trimestre (imagen_05c) y barra de trimestre (imagen_06) ---------- */
.sec-t { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 24px; margin: 0 0 6px; }
.tile .mini { width: 44px; height: 57px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.books { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 14px; max-width: 960px; }
.book {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 14px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.book:hover, .book:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,43,133,.12); }
.book img { width: 100%; aspect-ratio: 936/1211; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.book b { display: block; margin-top: 10px; color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.book .s { display: block; font-size: 13px; color: var(--muted); }
.book.is-mine { border: 2px solid var(--orange); }
.book .mine {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 1;
  white-space: nowrap; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px;
}
.book.extra .art { aspect-ratio: 936/1211; border-radius: 10px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; }
.book.extra .art img { width: 72%; height: auto; aspect-ratio: auto; border: 0; object-fit: contain; }

:where(.theme-app) .btn.back { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.bookhead { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.bookhead img { width: 74px; border-radius: 8px; border: 1px solid var(--line); }
.bookhead h1 { font-size: clamp(30px,4vw,44px); }
.eyebrow-s { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }

.bookchip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px 4px 4px; background: #fff; }
.bookchip img { width: 28px; height: 36px; object-fit: cover; border-radius: 4px; }
.bookchip b { display: block; color: var(--navy); font-size: 14px; line-height: 1.1; }
.bookchip span span { display: block; font-size: 12px; color: var(--orange); font-weight: 700; line-height: 1.1; }
.trisel { max-width: var(--max); margin: 14px auto 0; padding: 0 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.trisel a { text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 6px 14px; }
.trisel a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.trisel .now { font-size: 11px; background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.trinote { border-left: 6px solid var(--orange); background: var(--orange-soft); border-radius: 0 16px 16px 0; padding: 14px 18px; margin: 18px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trinote[hidden] { display: none; }
.trinote p { margin: 0; flex: 1; min-width: 240px; }

/* ---------- Mis grupos (las clases de un libro), Novedades (foro de la clase) y Unirme ----------
   imagen_05c_docente_mis_grupos.html · imagen_06_docente.html#novedades · imagen_02b_estudiante_unirme_a_una_clase.html */
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.clase { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.clase .band { display: block; padding: 22px 20px; min-height: 112px; background: var(--navy); color: #fff; text-decoration: none; }
.clase:nth-child(3n+2) .band { background: var(--blue); }
.clase:nth-child(3n+3) .band { background: var(--green); }
.clase .band b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1.15; }
.clase .band span { opacity: .9; }
.clase .band:hover b, .clase .band:focus-visible b { text-decoration: underline; }
.clase .foot { display: grid; gap: 6px; justify-items: start; padding: 14px 20px 18px; }
.clase .code { color: var(--muted); }
.clase .code b { color: var(--ink); font-size: 18px; letter-spacing: .06em; }
.clase .rename { padding: 0 20px 20px; display: grid; gap: 12px; }
.clase.new { border: 2px dashed var(--line); padding: 20px; gap: 4px; background: var(--bg-soft); }
.clase.new h2 { margin: 0; font-size: 22px; }
.clase.new .plus { font-size: 34px; line-height: 1; color: var(--orange); }
.clase.new .btn { margin-top: 16px; }
:where(.theme-app) .chips a.add { border-style: dashed; color: var(--orange-ink); }
.tablon { display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.tablon > * { min-width: 0; }
.tablon aside { display: grid; gap: 16px; position: sticky; top: 12px; }
.codecard { display: grid; gap: 6px; justify-items: start; }
.codecard .big { font-size: 40px; font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: .06em; }
.mini-card { display: grid; gap: 6px; }
.stream { display: grid; gap: 16px; }
.composer > summary { list-style: none; width: max-content; }
.composer > summary::-webkit-details-marker { display: none; }
.composer textarea { width: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; font: inherit; font-size: 18px; }
.para { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.para legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.para label { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.para label:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); }
.post header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post header > div { display: grid; }
.post .ptags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.post h3 { margin: 14px 0 0; font-size: 20px; color: var(--navy); }
.post > p { margin: 10px 0 0; font-size: 18px; }
.ptag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); }
.ptag.fam { background: var(--orange-soft); color: var(--orange-ink); }
.ptag.tarea, .ptag.cuestionario { background: var(--purple-soft); color: var(--purple); }
.ptag.material { background: var(--green-soft); color: var(--green); }
.comments { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.comments li { display: flex; gap: 10px; }
.comments p { margin: 2px 0 0; }
.avatar.s { width: 32px; height: 32px; font-size: 14px; flex: none; }
.comment { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.comment input { flex: 1; min-width: 0; min-height: 48px; border: 2px solid var(--blue); border-radius: 999px; padding: 0 18px; font: inherit; font-size: 17px; }
.comment button { border: 0; background: none; font-size: 24px; color: var(--blue); cursor: pointer; min-width: 48px; min-height: 48px; }
.restri { margin: 26px 0 0; font-size: 20px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.restri .now { font-size: 12px; background: var(--orange); color: #fff; border-radius: 999px; padding: 2px 9px; font-family: var(--font-body); }
.restri + .reslist { margin-top: 12px; }
:where(.theme-app) .restabs { margin-top: 14px; }
.restabs .now { font-size: 11px; background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
:where(.theme-app) .restabs a[aria-current] .now { background: #fff; color: var(--orange-ink); }
.crearform { margin-top: 20px; border: 2px solid var(--green); }
.crearform h2 { margin: 0; }
.post .due { margin: 6px 0 0; font-weight: 700; color: var(--purple); }
.pagehead.row .bookhead { margin-top: 14px; }
.crear { position: relative; }
.crear > summary { list-style: none; }
.crear > summary::-webkit-details-marker { display: none; }
.crear .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(27,43,133,.12); padding: 8px; min-width: 240px; display: grid; }
.crear .menu a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 17px; }
.crear .menu a:hover, .crear .menu a:focus-visible { background: var(--bg-soft); }
@media (max-width: 820px) { .tablon { grid-template-columns: 1fr; } .tablon aside { position: static; grid-template-columns: 1fr 1fr; } .crear .menu { left: 0; right: auto; } }
@media (max-width: 520px) { .tablon aside { grid-template-columns: 1fr; } }

/* ---------- Zona ITX: botón especial ⚡ y plan de estudios (imagen_06_docente.html#zona-itx) ---------- */
:where(.theme-app) .tabs a.itxbtn {
  margin-left: auto; border: 0; border-radius: 999px; padding: 8px 18px; align-self: center;
  background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--orange-soft);
}
:where(.theme-app) .tabs a.itxbtn[aria-current] { background: var(--navy); box-shadow: 0 0 0 3px var(--yellow); color: #fff; }
.itxhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.itxhead h1 { margin: 2px 0 0; }
.itxdomains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.domain { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 24px; border-left: 6px solid var(--blue); }
.domain h2 { color: #fff; margin: 10px 0 0; font-size: 24px; }
.domain .dtag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: var(--blue); color: #fff; }
.domain .dq { margin: 4px 0 0; font-style: italic; color: var(--on-navy); }
.domain .dpj { display: inline-block; margin-top: 12px; font-size: 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 12px; color: var(--on-navy); }
.domain .dpj b { color: var(--blue); }
.domain .dpw { margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy); }
.domain ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.domain li::before { content: "● "; color: var(--blue); }
.domain .dprog { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--on-navy); }
.domain .dprog b { color: #fff; }
.domain .track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.domain .track span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.domain.d-green { border-left-color: var(--green); } .domain.d-green .dtag, .domain.d-green .track span { background: var(--green); } .domain.d-green .dpj b, .domain.d-green li::before { color: #5dcaa5; }
.domain.d-yellow { border-left-color: var(--yellow); } .domain.d-yellow .dtag, .domain.d-yellow .track span { background: var(--yellow); color: var(--ink); } .domain.d-yellow .dpj b, .domain.d-yellow li::before { color: var(--yellow); }
.domain.d-purple { border-left-color: var(--purple); } .domain.d-purple .dtag, .domain.d-purple .track span { background: var(--purple); } .domain.d-purple .dpj b, .domain.d-purple li::before { color: #afa9ec; }
.domain .dpj b, .domain li::before { color: #85b7eb; }
@media (max-width: 820px) { .itxdomains { grid-template-columns: 1fr; } }

/* ---------- Estudiante: Mis clases (imagen_02c) y su clase (imagen_02d) ---------- */
.shello { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.shello img { width: 96px; height: auto; flex: none; }
.shello h1 { margin: 0; font-size: clamp(32px, 4.4vw, 46px); }
.shello p { margin: 4px 0 0; font-size: 20px; }
.itxcard { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 24px; border-radius: 24px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 0 0 4px var(--yellow); transition: transform .15s; }
.itxcard:hover, .itxcard:focus-visible { transform: translateY(-2px); }
.itxcard .bolt { flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.itxcard .txt { flex: 1; display: grid; gap: 2px; }
.itxcard .txt b { font-family: var(--font-head); font-size: 28px; font-weight: 600; }
.itxcard .txt span { color: var(--on-navy); font-size: 17px; }
.itxcard .go { flex: none; background: var(--orange); border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 18px; }
.sclases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.sclase { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.sclase:hover, .sclase:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,43,133,.12); }
.sclase .band { display: flex; gap: 14px; align-items: center; background: var(--blue); color: #fff; padding: 18px 20px; }
.sclase .band img { width: 58px; height: 75px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,255,255,.6); flex: none; }
.sclase .band b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.15; }
.sclase .band span span { opacity: .9; }
.sclase .info { display: grid; gap: 6px; justify-items: start; padding: 16px 20px 0; }
.sclase .btn { margin: 16px 20px 20px; }
.sclase.join { border: 2px dashed var(--line); background: var(--bg-soft); align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; min-height: 200px; }
.sclase.join .plus { font-size: 44px; line-height: 1; color: var(--orange); }
.sclase.join b { font-size: 20px; color: var(--navy); }
.todo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.todo li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; flex-wrap: wrap; }
.todo .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--purple-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.todo .t { flex: 1; min-width: 180px; display: grid; }
.todo .t b { font-size: 18px; color: var(--navy); }
.todo .due { font-weight: 700; color: var(--purple); }
.todo.done li { opacity: .75; }
.todo.done .ic { background: var(--green-soft); color: var(--green); }
.sband { display: flex; gap: 16px; align-items: center; margin-top: 16px; background: var(--blue); color: #fff; border-radius: 22px; padding: 18px 22px; }
.sband img { width: 60px; height: 78px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,255,255,.6); }
.sband h1 { color: #fff; margin: 0; font-size: clamp(28px, 4vw, 38px); }
.sband p { margin: 2px 0 0; opacity: .9; }
.sstream { max-width: 860px; }
.sband + .vista { margin-top: 24px; }
@media (max-width: 560px) { .itxcard { flex-wrap: wrap; } .itxcard .go { width: 100%; text-align: center; } .shello img { width: 70px; } }

/* ---------- adaptación a pantallas pequeñas (plataforma) ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2,1fr); }
  .kpis,.kpis.four { grid-template-columns: repeat(2,1fr); }
  .famgrid>aside { order: -1; }
  .books { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .quizbar { flex-wrap: wrap; }
  :where(.theme-app) .quizbar .chip { display: none; }
  .circle { width: 70px; height: 70px; font-size: 26px; }
  .node-current .circle { width: 84px; height: 84px; }
  :where(.theme-app) .path li { margin-left: 0 !important; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tabs { display: none; }
  .fbadges { grid-template-columns: 1fr; }
  .whoname { display: none; }
  .bar-in>.tabs { gap: 14px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .helpbox { padding-right: 24px; }
  .helpbox img { position: static; width: 64px; float: right; }
  .books { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .bookchip > span { display: none; }
}
