/* Hybred · Conoce Hybred (conoce-hybred.html)
   Toma de styles.css las fuentes, los botones y el logo, y de paginas.css la paleta clara, la barra
   superior, el pie y las entradas (.reveal). Aquí van sus secciones: portada con la estudiante
   sentada, los 20 años y "Todo comenzó con un hilo". */

/* Titulares grandes en mayúscula condensada, como el resto del sitio */
.kh-title, .kh-years h2, .kh-thread h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.kh-title span, .kh-years h2 span, .kh-thread h2 span { display: block; }

/* ---------- Portada ---------- */
.kh-hero {
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  padding: 104px var(--pad) 40px;
  overflow: hidden;
}
.kh-title { font-size: clamp(3.4rem, 7.2vw, 7rem); }
.kh-title span { white-space: nowrap; }
.kh-lead { margin: 28px 0 0; max-width: 31rem; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; color: var(--fg); }
.kh-btn { margin-top: 30px; padding: 1em 1.9em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }
.kh-hero-photo {
  justify-self: end;
  margin: 0 0 0 auto;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1095 / 1147;
  max-height: calc(100svh - 150px);
}
.kh-hero-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }

.js .kh-title span, .js .kh-lead, .js .kh-btn { animation: pg-rise 700ms var(--ease-out) both; }
.js .kh-title span:nth-child(1) { animation-delay: 80ms; }
.js .kh-title span:nth-child(2) { animation-delay: 150ms; }
.js .kh-title span:nth-child(3) { animation-delay: 220ms; }
.js .kh-lead { animation-delay: 330ms; }
.js .kh-btn { animation-delay: 410ms; }
.js .kh-hero-photo img { animation: kh-photo-in 900ms var(--ease-out) 120ms both; }
@keyframes kh-photo-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.kh-thread, .kh-years, .kh-line, .kh-beliefs { scroll-margin-top: 90px; }

/* ---------- 20 años ---------- */
.kh-years {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  column-gap: clamp(20px, 4vw, 64px);
  padding: clamp(48px, 6vw, 88px) var(--pad) 8px;      /* la línea de tiempo sigue justo debajo: es su entrada */
  scroll-margin-top: 90px;
}
.kh-years-photo { margin: 0; }
.kh-years-photo img { display: block; width: 100%; height: auto; max-height: 78svh; object-fit: contain; }
.kh-years h2 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); }
.kh-years-copy p { margin: 22px 0 0; max-width: 32rem; font-size: 1.02rem; line-height: 1.6; color: var(--fg); }
.kh-years-copy.reveal { transition-delay: 100ms; }
.kh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 44px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.kh-link .ico-arrow { width: 1.3em; height: 1.3em; }
.kh-link .kh-link-down { transform: rotate(90deg); }

/* ---------- Todo comenzó con un hilo ---------- */
.kh-thread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  column-gap: clamp(16px, 3vw, 40px);
  padding: 40px 0 0 var(--pad);          /* la foto llega hasta el borde derecho y hasta la franja de abajo */
  scroll-margin-top: 90px;
}
.kh-thread-copy { align-self: center; padding-bottom: 40px; }
.kh-thread h2 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); }
.kh-thread-copy p:not(.kh-kicker) { margin: 18px 0 0; max-width: 30rem; font-size: 1.02rem; line-height: 1.6; color: var(--fg); }
.kh-thread-copy p:not(.kh-kicker) + p { margin-top: 12px; }
.kh-thread-copy .kh-link { margin-top: 26px; }
.kh-thread-photo { margin: 0; }
/* abajo a la izquierda la manga termina en un corte recto: se funde con el blanco */
.kh-thread-photo img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%);
  mask-image: linear-gradient(to right, transparent, #000 9%);
}
/* el hilo se tiende: la foto se descubre de derecha a izquierda (desde la mano que lo sostiene) */
.js .kh-thread-photo.reveal { transform: none; opacity: 1; transition: none; }
.js .kh-thread-photo img { clip-path: inset(0 0 0 100%); transition: clip-path 1400ms var(--ease-in-out) 150ms; }
.js .kh-thread-photo.is-in img { clip-path: inset(0 0 0 0); }

/* ---------- Para quién es Hybred (antes era su propia página) ----------
   Un capítulo aparte sobre fondo lila suave: la sección con la tenista (que llega hasta el borde derecho, porque
   la raqueta sale de la foto), los perfiles y por qué elegir Hybred. Usa los estilos de para-quien.css (.pq-title,
   .pq-sub, .pq-lead, .pq-btn), más pequeños que en una portada, y entra con .reveal al bajar. */
/* las secciones lilas entran suave desde el blanco (sin corte): el lila llega completo a unos 110-180 px */
.kh-pq { margin-top: 0; background: linear-gradient(180deg, #FFFFFF 0, #F3EEFB clamp(110px, 12vw, 180px), #F7F4FD 60%, #FFFFFF 100%); }
.kh-who {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  padding: clamp(40px, 5vw, 64px) 0 0 var(--pad);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.kh-who-photo { margin: 0; justify-self: end; width: 100%; max-width: 620px; aspect-ratio: 1059 / 1387; max-height: 80svh; }
.kh-who-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.kh-who .pq-title { font-size: clamp(2.6rem, 4.8vw, 4.6rem); }
.kh-who .pq-sub { margin-top: 18px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.kh-who-photo.reveal { transition-delay: 100ms; }
.js .kh-who .pq-title span, .js .kh-who .pq-sub, .js .kh-who .pq-lead, .js .kh-who .pq-btn { animation: none; }
/* el punto de "Hybred." aparece con un pequeño salto cuando la sección entra */
.js .kh-who .pq-dot { animation: none; transform: scale(0); }
.js .kh-who-copy.is-in .pq-dot { animation: pq-dot 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 450ms both; }
.kh-pq .pq-profiles { padding-top: clamp(28px, 4vw, 48px); }

/* ======================================================================================================
   Secciones nuevas (historia en hitos, lo que creemos, modelo académico, respaldo, equipo, hubs,
   la diferencia y la invitación final). Comparten encabezado: etiqueta + titular condensado.
   ====================================================================================================== */
.kh-kicker {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
}
.kh-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.kh-h2 span { display: block; }
.kh-sub { margin: 16px 0 0; max-width: 34rem; font-size: 1.02rem; line-height: 1.6; color: var(--fg); }
.kh-note { margin: 12px 0 0; font-size: 0.8rem; }
.kh-head { max-width: 46rem; }
.kh-line .reveal, .kh-beliefs .reveal, .kh-learn .reveal, .kh-backing .reveal, .kh-team .reveal, .kh-hubs .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- El hilo de nuestra historia: los hitos sobre un hilo ---------- */
.kh-line { padding: clamp(48px, 6vw, 88px) var(--pad) clamp(32px, 4vw, 56px); }
.kh-line-track { position: relative; margin-top: 18px; }
.kh-line-thread { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.kh-line-thread path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* el hilo se tiende de izquierda a derecha cuando la línea entra en la vista */
.js .kh-line-track.reveal, .js .kh-line-track.reveal:not(.is-in) { opacity: 1; transform: none; }
.js .kh-line-track path { transition: stroke-dashoffset 1800ms var(--ease-in-out) 100ms; }
.js .kh-line-track:not(.is-in) path { stroke-dashoffset: 1; }
.kh-line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr));
  column-gap: clamp(10px, 1.4vw, 22px);
}
.kh-mile { position: relative; padding-top: 74px; text-align: center; }
.kh-mile-dot {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px #FFFFFF;
}
.kh-mile:last-child .kh-mile-dot { background: var(--celeste); border-color: var(--celeste); }
.kh-mile-year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.kh-mile-year .tbd { font-size: 0.7em; }
.kh-mile h3 { margin: 8px 0 0; font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.kh-mile p:not(.kh-mile-year) { margin: 6px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
/* los puntos aparecen uno tras otro, siguiendo el hilo */
.js .kh-mile { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 180ms); }
.js .kh-line-track:not(.is-in) .kh-mile { opacity: 0; transform: translateY(10px); }

/* ---------- El hilo se teje con el scroll (js/conoce.js pone .is-woven) ----------
   Un hilo torcido de tres hebras (dos violetas y una celeste) que avanza con el scroll: la punta lleva las
   hebras sueltas y abiertas, meciéndose; a su paso, cada hito se ensarta como una cuenta (el punto salta) y
   aparece su año, que sube desde el anterior. Los colores y grosores de las hebras los pone js/conoce.js. */
.kh-line-pin { position: relative; }
.kh-line-note { margin: -4px 0 6px; }
.kh-weave { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.js .kh-line.is-woven .kh-weave path { transition: none; }
.kh-weave-halo { fill: rgba(140, 92, 240, 0.16); transition: opacity 300ms ease; }
.kh-fray-tip { transition: opacity 300ms ease; }
.kh-weave.is-idle .kh-fray-tip, .kh-weave.is-idle .kh-weave-halo, .kh-weave.is-done .kh-weave-halo { opacity: 0; }
.kh-line.is-woven .kh-line-list { border-left-color: transparent; }
.kh-line.is-woven .kh-mile-dot { z-index: 1; }
.kh-mile-year { font-variant-numeric: tabular-nums; }
.js .kh-line.is-woven .kh-line-track .kh-mile { opacity: 1; transform: none; transition: none; }
/* Antes de que llegue el hilo, cada hito ya está a la vista pero bloqueado: en gris claro y con un candado en
   la cuenta. Cuando el hilo llega, se desbloquea: la cuenta salta y toma color, el texto se colorea y el año
   sube desde el anterior. */
.kh-line.is-woven .kh-mile > :not(.kh-mile-dot) { transition: color 500ms var(--ease-out); }
.kh-line.is-woven .kh-mile > h3 { transition-delay: 60ms; }
.kh-line.is-woven .kh-mile > p:last-child { transition-delay: 120ms; }
.kh-line.is-woven .kh-mile:not(.is-on) .kh-mile-year { color: #D7DBE1; }
.kh-line.is-woven .kh-mile:not(.is-on) h3 { color: #B4BAC4; }
.kh-line.is-woven .kh-mile:not(.is-on) p:last-child { color: #C2C7CF; }
.kh-line.is-woven .kh-mile:not(.is-on) .tbd { color: inherit; background: #F2F4F6; border-bottom-color: #DADEE3; }
/* el hito es una cuenta ensartada en el hilo: el hilo entra por detrás de ella */
.kh-line.is-woven .kh-mile-dot {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-width: 3.5px;
  border-color: #DADEE3;
  background: #F3F5F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7AEB9' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 9px no-repeat;
  box-shadow: none;
  transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
.kh-line.is-woven .kh-mile.is-on .kh-mile-dot {
  border-color: #118AB2;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(42, 13, 92, 0.28), inset 0 -2px 3px rgba(74, 28, 147, 0.18);
  animation: kh-bead-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kh-line.is-woven .kh-mile:last-child.is-on .kh-mile-dot { background: var(--celeste); border-color: var(--celeste); }
@keyframes kh-bead-pop { 0% { transform: scale(0.55); } 100% { transform: scale(1); } }
/* la ruta del hilo, en puntos grises, mientras aún no se ha tejido */
.kh-weave-guide { fill: none; stroke: #D3D8DE; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 7; }
/* computador: la línea se queda fija mientras se teje; detrás, en grande, el año al que va llegando */
.kh-line-bg { display: none; }
/* "Desliza para tejer nuestra historia": aparece mientras el hilo no ha empezado y se va al empezar a tejer */
.kh-line-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.kh-line-hint {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 20px 10px 14px;
  border-radius: 999px;
  background: #E3F6FB;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.kh-line.is-woven .kh-line-hint { display: inline-flex; }
/* en computador se va al empezar a tejer; en columna (teléfono) se queda: no deja un hueco al irse */
.kh-line.is-started:not(.is-vertical) .kh-line-hint { opacity: 0; transform: translateY(8px); pointer-events: none; }
.kh-line.is-vertical .kh-line-hint { margin: 4px 0 8px; padding: 8px 16px 8px 12px; font-size: 0.86rem; }
/* el ícono: un mouse con la rueda bajando (en pantallas táctiles, una flecha que baja) */
.kh-hint-ico { position: relative; flex: none; width: 22px; height: 32px; border: 2px solid #118AB2; border-radius: 12px; }
.kh-hint-ico span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #118AB2; animation: kh-wheel 1.6s var(--ease-in-out) infinite; }
@keyframes kh-wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(9px); } 100% { opacity: 0; transform: translateY(9px); } }
@media (hover: none) {
  .kh-hint-ico { width: 22px; height: 22px; border: 0; border-radius: 0; }
  .kh-hint-ico span { left: 50%; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 0; background: none; border-right: 2.5px solid #118AB2; border-bottom: 2.5px solid #118AB2; transform: rotate(45deg); animation: kh-nudge 1.4s var(--ease-in-out) infinite; }
  @keyframes kh-nudge { 0%, 100% { transform: translateY(-2px) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } }
}
.kh-line.is-pinned { height: calc(100vh + 750px); padding: 0; }
.kh-line.is-pinned .kh-line-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--pad) 48px;
  overflow: hidden;
}
.kh-line.is-pinned .kh-line-bg {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #D9F3FA;
  pointer-events: none;
}
.kh-line-bg.is-new { animation: kh-bg-in 500ms var(--ease-out); }
@keyframes kh-bg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Lo que creemos ---------- */
.kh-beliefs { padding: clamp(48px, 6vw, 88px) var(--pad); }
.kh-beliefs-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.kh-belief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.kh-belief-n {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--celeste);
}
.kh-belief h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.kh-belief p { margin: 10px 0 0; font-size: 0.96rem; line-height: 1.55; color: var(--fg); }

/* ---------- Así se aprende: título a la izquierda, tarjetas a la derecha ---------- */
.kh-learn {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 88px) var(--pad);
  scroll-margin-top: 90px;
}
.kh-learn-head { position: sticky; top: 120px; }
.kh-learn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kh-learn { background: linear-gradient(180deg, #FFFFFF 0, #F5F1FC clamp(110px, 12vw, 180px), #F5F1FC calc(100% - clamp(110px, 12vw, 180px)), #FFFFFF 100%); }   /* entra y sale suave: arriba la portada y abajo la tabla, en blanco */
.kh-learn-card { padding: 26px 24px 24px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 1px 0 rgba(74, 28, 147, 0.05), 0 12px 32px rgba(74, 28, 147, 0.07); }
.kh-learn-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
}
.kh-learn-ico .ico { width: 24px; height: 24px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kh-learn-card h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.kh-learn-card p { margin: 10px 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--fg); }
/* la plataforma propia: tarjeta destacada a todo el ancho, en violeta */
.kh-learn-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 30px 30px 28px;
  background:
    radial-gradient(circle at 95% 0%, rgba(64, 204, 237, 0.32), transparent 45%),
    linear-gradient(135deg, #4A1C93, #2A0E63);
  box-shadow: 0 18px 40px rgba(42, 14, 99, 0.25);
}
.kh-learn-card.is-featured .kh-learn-ico { grid-row: span 3; width: 56px; height: 56px; background: var(--celeste); }
.kh-learn-card.is-featured .kh-learn-ico .ico { width: 28px; height: 28px; stroke: #1C1152; }
.kh-learn-card.is-featured .kh-learn-tag { margin: 2px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--celeste); }
.kh-learn-card.is-featured h3 { margin-top: 6px; font-size: 2rem; color: #FFFFFF; }
.kh-learn-card.is-featured p:not(.kh-learn-tag) { max-width: 40rem; font-size: 0.98rem; color: rgba(255, 255, 255, 0.86); }
/* Video de la plataforma, a todo el ancho de la tarjeta (16:9) */
.kh-learn-video { grid-column: 1 / -1; margin: 24px 0 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #160737; }
.kh-learn-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #160737; }
.kh-learn-video-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(64, 204, 237, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.05);
}
.kh-learn-video-play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--celeste); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.kh-learn-video-play .ico { width: 44px; height: 44px; margin-left: 3px; fill: #1C1152; stroke: none; }
.kh-learn-video-note .tbd { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); text-decoration-color: rgba(255, 255, 255, 0.5); }
.kh-learn-video-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); }

/* ---------- Respaldo: franja violeta ---------- */
/* la franja violeta va sobre blanco (antes y después hay secciones blancas: el equipo y la historia) */
.kh-backing { padding: 0 var(--gutter); background: none; }
.kh-backing-in {
  max-width: calc(var(--wrap) + 2 * clamp(24px, 5vw, 72px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(64, 204, 237, 0.3), transparent 42%),
    linear-gradient(135deg, #4A1C93, #2A0E63);
  color: #FFFFFF;
}
.kh-backing .kh-kicker { color: var(--celeste); }
.kh-backing .kh-h2 { color: #FFFFFF; }
.kh-backing .kh-h2 .hl { color: var(--celeste); }
.kh-backing-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); }
.kh-seal { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.kh-seal img { display: block; width: 64px; height: 64px; object-fit: contain; }
.kh-seal-ico { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 50%; }
.kh-seal-ico .ico { width: 28px; height: 28px; fill: none; stroke: #FFFFFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kh-seal h3 { margin: 16px 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.3; color: #FFFFFF; }
.kh-seal p { margin: 8px 0 0; font-size: 0.92rem; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }

/* ---------- El equipo ---------- */
.kh-team { padding: clamp(56px, 7vw, 96px) var(--pad) clamp(24px, 3vw, 40px); scroll-margin-top: 90px; }
.kh-team-group {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: 16px 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.kh-team-group + .kh-team-group { margin-top: 0; }
.kh-team-name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--accent);
}
.kh-team-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.kh-person { display: flex; flex-direction: column; align-items: flex-start; }
.kh-person-photo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: #EDE6FA;
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5px var(--line);
}
.kh-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kh-person-ini { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.kh-person-ico .ico { display: block; width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kh-person-name { margin-top: 14px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.kh-person-role { margin-top: 4px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
.kh-person-cred { margin-top: 6px; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; line-height: 1.35; color: var(--accent); }
.kh-person-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;   /* tamaño cómodo para el dedo */
  margin-top: auto;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: background-color var(--settle) var(--ease-out), border-color var(--settle) var(--ease-out);
}
.kh-person-more .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kh-person-more:active { transform: scale(0.97); transition-duration: var(--press); }
.kh-person-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kh-person-more:hover { background: #F3EEFB; border-color: rgba(74, 28, 147, 0.3); } }
/* el perfil: un diálogo con la foto, el cargo, la formación, la experiencia, los idiomas y un dato personal */
.kh-profile {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 32px 32px 28px;
  border: 0;
  border-radius: 24px;
  background: #FFFFFF;
  color: var(--fg);
  box-shadow: 0 30px 80px rgba(18, 6, 48, 0.45);
}
.kh-profile[open] { animation: kh-pop 240ms var(--ease-out); }
.kh-profile::backdrop { background: rgba(18, 6, 48, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes kh-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.kh-profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #F3EEFB;
  color: var(--accent);
  cursor: pointer;
}
.kh-profile-close .ico { width: 18px; height: 18px; transform: rotate(45deg); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kh-profile-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kh-profile-head { display: flex; align-items: center; gap: 18px; padding-right: 36px; }
.kh-profile-head .kh-person-photo { width: 96px; height: 96px; flex: none; }
.kh-profile-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 0.95; letter-spacing: var(--track-display); text-transform: uppercase; color: var(--ink); }
.kh-profile-role { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.kh-profile-head .kh-person-cred { margin: 6px 0 0; }
.kh-profile-body { margin: 22px 0 0; }
.kh-profile-body > div { padding: 14px 0; border-top: 1px solid var(--line); }
.kh-profile-body dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.kh-profile-body dd { margin: 6px 0 0; font-size: 0.94rem; line-height: 1.55; color: var(--fg); }
.kh-profile-body ul { margin: 0; padding-left: 1.1em; }
.kh-profile-body li + li { margin-top: 4px; }

/* Materias por grado (ventana desde "Plan de estudios oficial") */
.kh-learn-more { margin-top: 16px; }
.kh-subjects { width: min(640px, calc(100vw - 32px)); }
.kh-subjects-head { padding-right: 44px; }
.kh-subjects-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 0.95; letter-spacing: var(--track-display); text-transform: uppercase; color: var(--ink); }
/* Siete grados: la barra ocupa todo el ancho y cada pestaña toma su parte */
.kh-subj-tabs { display: flex; gap: 4px; margin: 20px 0 0; padding: 4px; border-radius: 999px; background: #F5F1FC; }
.kh-subj-tabs [role="tab"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 4px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: background-color var(--settle) var(--ease-out), color var(--settle) var(--ease-out);
}
.kh-subj-tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: #FFFFFF; }
.kh-subj-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kh-subj-tabs [role="tab"][aria-selected="false"]:hover { background: #EDE6FA; } }
/* Todas las listas ocupan la misma celda: la ventana no cambia de alto al pasar de un grado a otro */
.kh-subj-panels { display: grid; margin-top: 18px; }
.kh-subj-panel { grid-area: 1 / 1; }
.kh-subj-panel[hidden] { display: block; visibility: hidden; }
.kh-subj-count { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kh-subj-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kh-subj-list li { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; background: #F5F1FC; font-size: 0.9rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.kh-subjects .kh-note { margin-top: 16px; }

/* Plan de estudios de un grado (ventana de los grados): el documento completo, una página debajo de otra, a lo
   ancho de la ventana; la familia solo baja para leerlo. Con él, la ventana se agranda (.has-plan) y las
   pestañas de los grados se quedan arriba mientras se baja. */
.kh-subjects.has-plan { width: min(1000px, calc(100vw - 32px)); height: calc(100vh - 32px); height: calc(100svh - 32px); padding-top: 22px; overflow: hidden; }
.kh-subjects.has-plan[open] { display: flex; flex-direction: column; }   /* título, pestañas y la X quedan quietos; solo baja el documento */
.kh-subjects.has-plan .kh-subjects-head .kh-profile-role { display: none; }
.kh-subjects.has-plan .kh-subj-tabs { flex: none; margin-top: 14px; }
.kh-subjects.has-plan .kh-subj-panels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 14px -8px 0; padding: 0 8px 4px; }
.kh-subj-panel.has-plan[hidden] { display: none; }
.kh-plan { display: grid; gap: 12px; }
.kh-plan-nota { margin: 0; font-size: 0.84rem; color: var(--muted); }
.kh-plan-pages { display: grid; gap: 16px; }
.kh-plan-pages img { display: block; width: 100%; max-width: 950px; height: auto; margin: 0 auto; border-radius: 10px; background: #FFFFFF; box-shadow: 0 8px 26px rgba(28, 17, 82, 0.14); }
@media (max-width: 760px) {
  .kh-subjects.has-plan { width: calc(100vw - 16px); max-height: calc(100vh - 16px); height: calc(100svh - 16px); padding: 18px 12px 12px; }
  .kh-plan-pages { gap: 10px; }
  .kh-plan-pages img { border-radius: 6px; }
}
.kh-person-note { margin-top: 6px; max-width: 15rem; font-size: 0.8rem; line-height: 1.45; color: var(--accent); }

/* ---------- Hubs ---------- */
.kh-hubs { padding: clamp(48px, 6vw, 88px) var(--pad) clamp(56px, 7vw, 96px); scroll-margin-top: 90px; background: linear-gradient(180deg, #FFFFFF 0, #F5F1FC clamp(110px, 12vw, 180px), #FFFFFF 100%); }
.kh-hubs-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* cómo funciona un hub: cuatro puntos con ícono, arriba de las ciudades; y una nota al final */
.kh-hubs-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kh-hubs-points li { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
.kh-hubs-pt-ico { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(143, 82, 242, 0.1); }
.kh-hubs-pt-ico .ico { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kh-hubs-points + .kh-hubs-list { margin-top: 16px; }
.kh-hubs-note { margin: 14px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) { .kh-hubs-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kh-hub {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(74, 28, 147, 0.06);
}
.kh-hub .ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kh-hub h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.kh-hub p { margin: 12px 0 0; font-size: 0.94rem; line-height: 1.55; color: var(--fg); }
.kh-hub .kh-hub-addr { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.kh-hub-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}
.kh-hub-map .ico-arrow { width: 1.1em; height: 1.1em; transition: transform var(--settle) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .kh-hub-map:hover .ico-arrow { transform: translateX(3px); } }
/* Hub con foto: la foto cubre la tarjeta y un velo violeta (más oscuro abajo, donde va el texto) deja leer */
.kh-hub.has-photo { overflow: hidden; isolation: isolate; border-color: transparent; background: #22104A; box-shadow: 0 16px 40px rgba(34, 16, 74, 0.2); }
.kh-hub-photo { position: absolute; inset: 0; z-index: -1; }
.kh-hub-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.kh-hub-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 10, 60, 0.24) 0%, rgba(26, 10, 60, 0.7) 34%, rgba(26, 10, 60, 0.9) 100%); }
.kh-hub.has-photo h3 { color: #FFFFFF; text-shadow: 0 2px 16px rgba(26, 10, 60, 0.45); }
.kh-hub.has-photo p { color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 8px rgba(26, 10, 60, 0.6); }
.kh-hub.has-photo .kh-hub-addr { color: rgba(255, 255, 255, 0.78); }
.kh-hub.has-photo .ico { stroke: var(--celeste); }
.kh-hub.has-photo .kh-hub-map { color: var(--celeste); }

/* ---------- La diferencia: tabla comparativa, la columna de Hybred resaltada ---------- */
.kh-compare { padding: clamp(56px, 7vw, 96px) var(--pad) clamp(32px, 4vw, 56px); scroll-margin-top: 90px; }
.kh-compare-wrap { margin-top: 32px; }
.kh-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 0.95rem; }
.kh-table th, .kh-table td { padding: 16px 18px; text-align: left; vertical-align: top; line-height: 1.45; }
.kh-table thead th {
  padding-top: 22px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}
.kh-table thead td { width: 18%; }
.kh-table tbody th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.kh-table tbody th, .kh-table tbody td { border-top: 1px solid var(--line); }
.kh-table tbody td { color: var(--fg); }
/* la columna de Hybred: una tarjeta violeta continua de arriba abajo */
.kh-table .is-hybred { background: var(--accent); color: #FFFFFF; border-top-color: rgba(255, 255, 255, 0.18); }
.kh-table thead .is-hybred { border-radius: 20px 20px 0 0; color: #FFFFFF; }
.kh-table tbody tr:last-child .is-hybred { border-radius: 0 0 20px 20px; }
.kh-table td.is-hybred { font-weight: 600; }
.kh-table td.is-hybred .ico { float: left; width: 18px; height: 18px; margin: 2px 8px 0 0; fill: var(--celeste); stroke: none; }
.kh-table td.is-hybred span { display: block; overflow: hidden; }
.kh-compare-note { margin: 16px 0 0; font-size: 0.84rem; color: var(--muted); }

/* ---------- Invitación final ---------- */
.kh-cta { padding: 16px var(--gutter) 56px; }
.kh-cta-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  max-width: calc(var(--wrap) + 2 * clamp(24px, 5vw, 72px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 15%, rgba(64, 204, 237, 0.35), transparent 45%),
    linear-gradient(135deg, #4A1C93, #2A0E63);
  color: #FFFFFF;
}
.kh-cta .kh-h2 { color: #FFFFFF; }
.kh-cta .kh-h2 .hl { color: var(--celeste); }
.kh-cta p { margin: 14px 0 0; max-width: 32rem; font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, 0.84); }
.kh-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.kh-cta-btn { padding: 1em 1.8em; border-color: var(--celeste); background: var(--celeste); color: #1C1152; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.kh-cta-wa { padding: 1em 1.6em; border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #FFFFFF; font-size: 0.88rem; }
.kh-cta-wa .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones nuevas en pantallas medianas ---------- */
@media (max-width: 1100px) {
  /* hitos: en columna, sobre un hilo vertical a la izquierda */
  .kh-line-thread { display: none; }
  .kh-line-list { display: block; position: relative; max-width: 40rem; margin-left: 8px; padding-left: 30px; border-left: 2.4px solid var(--accent); }
  .kh-mile { padding: 0 0 28px; text-align: left; }
  .kh-mile:last-child { padding-bottom: 4px; }
  .kh-mile-dot { top: 6px; left: -30px; margin: 0 0 0 -9.2px; }
  .kh-line.is-woven .kh-mile-dot { top: 17px; margin: -10px 0 0 -11.2px; }
  .kh-line.is-woven .kh-line-track { margin-top: 48px; }   /* aire para las hebras sueltas del comienzo */
  .kh-learn { grid-template-columns: minmax(0, 1fr); }
  .kh-learn-head { position: static; }
  .kh-team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Secciones nuevas en el teléfono ---------- */
@media (max-width: 760px) {
  .kh-h2 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .kh-sub { font-size: 0.98rem; }
  .kh-line { padding: 36px var(--gutter) 24px; }
  .kh-mile-year { font-size: 1.9rem; }
  .kh-beliefs { padding: 40px var(--gutter); }
  .kh-beliefs-list { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .kh-belief { column-gap: 14px; padding: 20px 0; }
  .kh-belief-n { font-size: 2.6rem; }
  .kh-belief h3 { font-size: 1.45rem; }
  .kh-learn { padding: 40px var(--gutter); gap: 24px; }
  .kh-learn-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kh-learn-card { padding: 22px 20px; border-radius: 20px; }
  .kh-learn-card.is-featured { display: block; padding: 26px 22px 24px; }
  .kh-learn-card.is-featured h3 { font-size: 1.8rem; }
  .kh-backing { padding: 0 12px; }
  .kh-backing-in { padding: 36px 22px; border-radius: 24px; }
  .kh-backing-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .kh-seal { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; }
  .kh-seal img, .kh-seal-ico { grid-row: span 2; width: 52px; height: 52px; }
  .kh-seal h3 { margin-top: 2px; }
  .kh-team { padding: 48px var(--gutter) 16px; }
  .kh-team-group { grid-template-columns: minmax(0, 1fr); margin-top: 24px; padding-top: 22px; gap: 16px; }
  .kh-team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-bottom: 24px; }
  .kh-person-photo { width: 88px; height: 88px; }
  .kh-person-name { font-size: 0.95rem; }
  .kh-person-role { font-size: 0.84rem; }
  .kh-hubs { padding: 32px var(--gutter) 48px; }
  .kh-hubs-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .kh-hubs-points { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; }
  .kh-hubs-points li { padding: 12px 14px 12px 12px; font-size: 0.9rem; }
  .kh-hub { padding: 22px 20px; border-radius: 20px; }
  .kh-hub h3 { font-size: 2.4rem; }
  /* la tabla se vuelve tarjetas: un tema por tarjeta, Hybred resaltado abajo */
  .kh-compare { padding: 48px var(--gutter) 24px; }
  .kh-compare-wrap { margin-top: 24px; }
  .kh-table, .kh-table tbody, .kh-table tr, .kh-table th, .kh-table td { display: block; width: auto; }
  .kh-table thead { display: none; }
  .kh-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 12px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
  .kh-table tbody th, .kh-table tbody td.is-hybred { grid-column: 1 / -1; }
  .kh-table tbody th, .kh-table tbody td { border-top: 0; }
  .kh-table tbody th { padding: 16px 18px 6px; }
  .kh-table tbody td { padding: 6px 18px 4px; font-size: 0.88rem; }
  .kh-table tbody td:not(.is-hybred) + td:not(.is-hybred) { padding-left: 8px; }
  .kh-table tbody td::before { content: attr(data-col); display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .kh-table tbody td.is-hybred { margin-top: 8px; padding: 14px 18px 16px; border-radius: 0; }
  .kh-table tbody tr:last-child .is-hybred { border-radius: 0; }
  .kh-table tbody td.is-hybred::before { color: var(--celeste); }
  .kh-table td.is-hybred .ico { display: none; }
  .kh-cta { padding: 8px 12px 40px; }
  .kh-profile { padding: 26px 20px 20px; }
  .kh-profile-head .kh-person-photo { width: 76px; height: 76px; }
  .kh-subj-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kh-subj-list li { min-height: 40px; }
  .kh-profile-head h3 { font-size: 1.6rem; }
  .kh-cta-in { grid-template-columns: minmax(0, 1fr); padding: 36px 22px; border-radius: 24px; }
  .kh-cta-btn, .kh-cta-wa { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .js .kh-line-track path { transition: none; }
  .js .kh-line-track:not(.is-in) path { stroke-dashoffset: 0; }
  .js .kh-mile { transition: opacity 300ms ease; transform: none !important; }
  .kh-line.is-woven .kh-mile > :not(.kh-mile-dot), .kh-line.is-woven .kh-mile-dot { transition: none; }
  .kh-line.is-woven .kh-mile.is-on .kh-mile-dot { animation: none; }
  .kh-line-bg.is-new { animation: none; }
  .kh-line.is-woven .kh-line-hint { display: none; }
}

/* ---------- Hover solo con mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .kh-link:hover .ico-arrow { transform: translateX(3px); }
  .kh-link:hover .kh-link-down { transform: rotate(90deg) translateX(3px); }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 900px) {
  .kh-thread { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .kh-thread-copy { padding: 0 var(--pad) 8px 0; }
  .kh-thread-photo { justify-self: end; width: min(100%, 720px); }
}

/* ---------- Tablet en vertical: la foto arriba, grande; el texto debajo ---------- */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .kh-hero { display: flex; flex-direction: column; justify-content: center; padding: 112px var(--pad) 56px; }
  .kh-hero-photo { order: -1; align-self: center; width: min(76%, 560px); max-height: 46svh; margin: 0 0 28px; }
  .kh-hero-photo img { object-position: center bottom; }
  .kh-title { font-size: clamp(4rem, 9.6vw, 6.2rem); }
  .kh-lead { max-width: 36rem; }
}

/* ---------- Teléfono: foto arriba, texto debajo ---------- */
@media (max-width: 760px) {
  .kh-hero { display: flex; flex-direction: column; min-height: 0; padding: 88px var(--gutter) 40px; }
  .kh-hero-photo { order: -1; align-self: center; width: min(100%, 420px); margin: 0 0 18px; max-height: none; }
  .kh-title { font-size: clamp(2.9rem, 13.6vw, 4rem); }
  .kh-lead { margin-top: 20px; font-size: 0.98rem; }
  .kh-btn { width: 100%; }
  .kh-years { display: flex; flex-direction: column; padding: 40px var(--gutter) 8px; }
  .kh-years-photo { width: min(100%, 440px); align-self: center; margin-bottom: 18px; }
  .kh-years h2, .kh-thread h2 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .kh-thread { padding: 24px 0 0 var(--gutter); }
  .kh-thread-copy { padding-right: var(--gutter); }
  .kh-who { display: flex; flex-direction: column; padding: 32px var(--gutter) 8px; }
  .kh-who-photo { order: -1; align-self: flex-end; width: min(74%, 420px); max-height: none; margin: 0 calc(-1 * var(--gutter)) 16px 0; }
  .kh-who .pq-title { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .kh-who .pq-sub { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .kh-who .pq-btn { width: 100%; justify-content: center; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .kh-title span, .js .kh-lead, .js .kh-btn, .js .kh-hero-photo img { animation: pg-fade-only 300ms ease both; }
  .js .kh-thread-photo img { clip-path: none; transition: none; }
  .js .kh-who-copy.is-in .pq-dot { animation: none; transform: none; }
  .js .kh-thread-photo:not(.is-in) img { opacity: 0; }
  .js .kh-thread-photo.is-in img { opacity: 1; transition: opacity 300ms ease; }
  .kh-link:hover .ico-arrow { transform: none; }
}

/* ==========================================================================
   Así se aprende · mosaico (va al final: reemplaza el diseño anterior de la sección)
   Computador: título arriba a todo el ancho; tres columnas. La plataforma ocupa 2 × 2 con su video; a su
   derecha, Bilingüe y Plan de estudios; abajo, Evaluación y Aprender jugando (este a dos columnas).
   Cada tarjeta lleva arriba un dibujo pequeño que la explica (decorativo, salvo los grados, que se tocan).
   ========================================================================== */
.kh-learn { display: block; }
.kh-learn-head { position: static; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 16px 48px; margin-bottom: 36px; }
.kh-learn-head .kh-sub { margin: 0 0 8px; max-width: 34rem; }
.kh-learn-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kh-learn-card.is-featured { grid-column: span 2; grid-row: span 2; }
.kh-learn-card.is-featured .kh-learn-ico { grid-row: auto; }
.kh-learn-card.is-featured .kh-learn-txt { min-width: 0; }

.kh-learn-card.has-vis { display: flex; flex-direction: column; }
.kh-learn-card.has-vis h3 { margin-top: 0; }
.kh-vis { order: -1; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-height: 150px; margin: 0 0 22px; padding: 18px; border-radius: 18px; }

/* Bilingüe: un chat corto en inglés y español */
.kh-learn-card.is-chat .kh-vis { gap: 8px; background: linear-gradient(160deg, #DFF6FC, #F2FBFE); }
.kh-bubble {
  align-self: flex-start;
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: #FFFFFF;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(28, 17, 82, 0.08);
  transition: opacity 420ms var(--ease-out) 250ms, transform 420ms var(--ease-out) 250ms;
}
.kh-bubble.is-der { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--accent); color: #FFFFFF; font-weight: 600; }
.kh-bubble:nth-child(2) { transition-delay: 700ms; }
.kh-bubble:nth-child(3) { transition-delay: 1150ms; }
.kh-bubble b { display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 6px; background: #1C1152; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; color: #FFFFFF; vertical-align: 1px; }
.js .kh-learn-card.is-chat:not(.is-in) .kh-bubble { opacity: 0; transform: translateY(10px); }

/* Plan de estudios: los grados, que se tocan y abren sus materias */
.kh-learn-card.is-grados .kh-vis { background: #F3EEFB; }
.kh-grades { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }   /* los siete grados en una fila, como una regla */
.kh-grade {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(74, 28, 147, 0.18);
  border-radius: 12px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: background-color var(--settle) var(--ease-out), color var(--settle) var(--ease-out), border-color var(--settle) var(--ease-out);
}
.kh-grade:active { transform: scale(0.96); }
.kh-grade:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kh-grade:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; } }
.kh-learn-card .kh-vis-hint { margin: 12px 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }

/* Evaluación: un mini reporte de competencias. Las logradas llevan chulo; la que va en proceso, un anillo a medio
   llenar. Las filas entran una tras otra. */
.kh-learn-card.is-competencias .kh-vis { background: linear-gradient(160deg, #F3EEFB, #FBF9FE); }
.kh-comp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kh-comp li { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 3px 10px rgba(28, 17, 82, 0.06); font-size: 0.84rem; font-weight: 600; line-height: 1.25; color: var(--ink); transition: opacity 420ms var(--ease-out) 250ms, transform 420ms var(--ease-out) 250ms; }
.kh-comp li:nth-child(2) { transition-delay: 370ms; }
.kh-comp li:nth-child(3) { transition-delay: 490ms; }
.kh-comp i { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.kh-comp .is-ok i { background: var(--celeste) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.4l4.2 4.2 8.8-9' fill='none' stroke='%231C1152' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kh-comp .is-wip i { background: conic-gradient(#118AB2 0 60%, #DCE3EA 60% 100%); -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px); mask: radial-gradient(circle, transparent 6px, #000 6.5px); }
.kh-comp span { min-width: 0; }
.kh-comp small { display: block; margin-top: 1px; font-size: 0.74rem; font-weight: 700; color: #118AB2; }
.js .kh-learn-card.is-competencias:not(.is-in) .kh-comp li { opacity: 0; transform: translateY(8px); }

/* Aprender jugando: el aviso de un reto superado (con sus puntos) y la barra del nivel, sobre celeste */
.kh-learn-card.is-logros { background: linear-gradient(120deg, #40CCED, #93E2F5); box-shadow: 0 18px 40px rgba(64, 204, 237, 0.28); }
.kh-learn-card.is-logros h3, .kh-learn-card.is-logros p { color: #1C1152; }
.kh-learn-card.is-logros .kh-vis { gap: 10px; background: rgba(255, 255, 255, 0.3); }
.kh-win { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 10px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(28, 17, 82, 0.12); transition: opacity 360ms var(--ease-out) 250ms, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms; }
.kh-win .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent); fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* el mensaje y los puntos van en línea; si no caben (tarjeta angosta o texto largo), los puntos bajan */
.kh-win-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.kh-win b { min-width: 0; font-size: 0.86rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.kh-win em { flex: none; padding: 4px 9px; border-radius: 999px; background: #1C1152; font-style: normal; font-size: 0.74rem; font-weight: 700; white-space: nowrap; color: #FFFFFF; }
.kh-level { display: block; padding: 10px 12px 12px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(28, 17, 82, 0.1); }
.kh-level-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.kh-level-top b { font-weight: 700; color: var(--ink); }
.kh-level-top small { font-size: inherit; font-weight: 700; color: #118AB2; }
.kh-level i { position: relative; display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: #E6E1F2; overflow: hidden; }
.kh-level i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8C5CF0); transform-origin: left; transform: scaleX(var(--p, 0.7)); transition: transform 900ms var(--ease-out) 600ms; }
.js .kh-learn-card.is-logros:not(.is-in) .kh-win { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .kh-learn-card.is-logros:not(.is-in) .kh-level i::after { transform: scaleX(0); }

@media (max-width: 1100px) {
  .kh-learn-head { grid-template-columns: minmax(0, 1fr); }
  .kh-learn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-learn-card.is-featured { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .kh-learn-head { margin-bottom: 24px; }
  .kh-learn-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kh-vis { min-height: 0; }
  .kh-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .kh-bubble, .kh-comp li, .kh-win, .kh-level i::after { transition: none; }
  .js .kh-learn-card.is-chat:not(.is-in) .kh-bubble { opacity: 1; transform: none; }
  .js .kh-learn-card.is-competencias:not(.is-in) .kh-comp li { opacity: 1; transform: none; }
  .js .kh-learn-card.is-logros:not(.is-in) .kh-win { opacity: 1; transform: none; }
  .js .kh-learn-card.is-logros:not(.is-in) .kh-level i::after { transform: scaleX(var(--p, 0.7)); }
}

/* ==========================================================================
   Así se aprende · versión compacta (va después del mosaico y lo ajusta)
   Arriba, la plataforma como franja: texto a la izquierda y video a la derecha. Debajo, las otras cuatro
   tarjetas en una fila (dos por fila en tableta). En el teléfono, esas cuatro se deslizan de lado.
   ========================================================================== */
.kh-learn { padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(44px, 5vw, 72px); }
.kh-learn-head { margin-bottom: 28px; }
.kh-learn-card.is-featured { grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.85fr); column-gap: 24px; align-items: center; margin: 0 0 18px; padding: 26px 26px 26px 28px; }
.kh-learn-card.is-featured .kh-learn-ico { grid-column: 1; grid-row: 1; align-self: start; }
.kh-learn-card.is-featured .kh-learn-txt { grid-column: 2; grid-row: 1; }
.kh-learn-card.is-featured h3 { font-size: 1.9rem; }
.kh-learn-video { grid-column: 3; grid-row: 1; margin: 0; }
.kh-learn-video-play { width: 56px; height: 56px; }
.kh-learn-video-play .ico { width: 36px; height: 36px; }
/* Los puntos de la plataforma: tres filas con ícono. Sin video, ocupan la columna derecha; con video, van
   debajo del texto. En tableta vertical y celular, siempre debajo del texto. */
.kh-learn-points { grid-column: 3; grid-row: 1; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kh-learn-card.has-video .kh-learn-points { grid-column: 2; grid-row: 2; margin-top: 16px; }
.kh-learn-points li { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(255, 255, 255, 0.07); font-size: 0.95rem; font-weight: 600; line-height: 1.35; color: #FFFFFF; }
/* enlace a la plataforma para quien ya estudia en Hybred: debajo de los puntos, discreto */
.kh-learn-access { grid-column: 3; grid-row: 2; margin: 12px 0 0; padding-left: 4px; font-size: 0.9rem; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.kh-learn-card.has-video .kh-learn-access { grid-column: 2; grid-row: 3; }
.kh-learn-access a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--celeste); text-decoration: underline; text-decoration-color: rgba(64, 204, 237, 0.45); text-underline-offset: 3px; }
.kh-learn-access a:hover { text-decoration-color: currentColor; }
.kh-learn-access a:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; border-radius: 4px; }
.kh-learn-access .ico-arrow { width: 16px; height: 16px; transition: transform 200ms ease; }
.kh-learn-access a:hover .ico-arrow { transform: translateX(3px); }
.kh-learn-pt-ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(64, 204, 237, 0.16); }
.kh-learn-pt-ico .ico { width: 20px; height: 20px; fill: none; stroke: var(--celeste); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kh-learn-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kh-learn-card.has-vis { padding: 20px 20px 22px; }
.kh-learn-card.has-vis h3 { font-size: 1.45rem; }
.kh-learn-card.has-vis p { font-size: 0.9rem; }
.kh-vis { min-height: 128px; margin-bottom: 18px; padding: 14px; }
.kh-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kh-grade { min-height: 40px; }
@media (max-width: 1100px) {
  .kh-learn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kh-learn-card.is-featured { display: block; }
  .kh-learn-card.is-featured .kh-learn-ico { margin-bottom: 14px; }
  .kh-learn-video { margin-top: 20px; }
  .kh-learn-points { margin-top: 20px; }
  .kh-learn-access { margin-top: 14px; }
}
@media (max-width: 760px) {
  .kh-learn { padding-top: 40px; padding-bottom: 32px; }
  .kh-learn-head { margin-bottom: 20px; }
  .kh-learn-card.is-featured { margin-bottom: 12px; padding: 24px 20px 20px; }
  .kh-learn-card.is-featured h3 { font-size: 1.7rem; }
  /* las cuatro tarjetas, en una fila que se desliza (se asoma la siguiente) */
  .kh-learn-list { display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .kh-learn-list::-webkit-scrollbar { display: none; }
  .kh-learn-list > li { flex: 0 0 82%; scroll-snap-align: start; }
  .kh-vis { min-height: 120px; }
}

/* Tarjetas con dibujo: primero el título, luego el dibujo y al final el texto. En computador y tableta, con
   subgrid, los títulos, los dibujos y los textos quedan alineados entre las tarjetas de una misma fila. */
.kh-learn-card.has-vis .kh-vis { order: 0; margin: 14px 0 16px; }
.kh-learn-card.has-vis .kh-learn-desc { margin: 0; }
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .kh-learn-list > .kh-learn-card.has-vis { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    .kh-learn-card.has-vis h3 { align-self: end; }
  }
}

/* Después del equipo: una invitación corta a agendar (es donde la página genera más confianza) */
.kh-team-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin: 8px 0 0; padding: 22px 26px; border-radius: 20px; background: #F3EEFB; }
.kh-team-cta .btn { margin: 0; }
.kh-team-cta p { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.05; letter-spacing: var(--track-display); text-transform: uppercase; color: var(--ink); }
@media (max-width: 760px) {
  .kh-team-cta { padding: 20px; }
  .kh-team-cta p { font-size: 1.35rem; }
  .kh-team-cta .btn { width: 100%; justify-content: center; }
}
