/* ============================================================
   GSNA — Componentes de páginas internas
   Siguen el GSNA Framework v4.0. La home manda; esto la extiende.
   ============================================================ */

/* ============ HERO INTERNO (corto, sin video) ============ */
.page-hero {
  /* sticky, igual que el hero del home: se queda quieto y el cuerpo de la
     pagina pasa por encima. El movimiento lo hace el contenido, no el hero. */
  position: sticky; top: 0; z-index: 0;
  padding: calc(var(--nav-height) + var(--sp-80)) 0 var(--section-s);
  background: var(--cream-deep);
  overflow: hidden;
}
/* El cuerpo tapa el hero al subir: mismo gesto que en el home. Se define en
   components.css, no aqui: estaba en los dos sitios con el mismo cuerpo y los
   cambios en uno los deshacia el otro. */
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 760px; }

/* ---------- Hero de /nosotros: foto recortada junto al titulo ---------- */
.page-hero.has-figure { padding-bottom: 0; padding-top: calc(var(--nav-height) + var(--sp-80) + 28px); }
.page-hero.has-figure .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 32px;
  align-items: end;
}
.page-hero.has-figure .page-hero-inner {
  max-width: 640px;
  padding-bottom: var(--section-s);
}
.hero-figure {
  position: relative;
  align-self: end;
  /* start, no center: centrada quedaba pegada al borde derecho */
  justify-self: start;
  width: 100%;
  max-width: 470px;
}
/* Hero de /admisiones: la foto son los cinco estudiantes en fila, ratio 2.3.
   En una columna lateral de 620px medía 270px de alto: diminuta. Una foto tan
   apaisada no va al costado del titulo, va A LO ANCHO debajo. Asi pasa de
   270 a ~600px de alto sin deformarse. */
.page-hero.hero-band { padding-bottom: 0; }
.page-hero.hero-band .container { display: block; }
/* el texto centrado ENCIMA de la foto: la foto es una fila de cinco chicos
   mirando al frente, y un titulo centrado sobre ellos los usa de base */
.page-hero.hero-band .page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: var(--sp-32);
}
.page-hero.hero-band .page-hero-inner .body-1 { margin-inline: auto; }
.page-hero.hero-band .page-hero-actions { justify-content: center; }
.page-hero.hero-band .hero-figure {
  /* un tilin mas chica, como pidio Seb: 88% en vez del ancho completo */
  max-width: 88%; width: 100%;
  margin: 0 auto;
}
.page-hero.hero-band .hero-figure-img {
  /* se funde con el fondo en la base, como en las otras */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}
.page-hero.hero-band .hero-shape-ring  { width: 24%; top: -6%; left: 1%; }
.page-hero.hero-band .hero-shape-dot   { width: 5.5%; left: 27%; top: 3%; }
.page-hero.hero-band .hero-shape-half  { width: 9%;  right: 4%; top: 14%; rotate: 90deg; }
.page-hero.hero-band .hero-shape-arc   { width: 7%;  left: -1%; bottom: 24%; }
@media (max-width: 700px) {
  .page-hero.hero-band .hero-shape { display: none; }
}

/* la foto de /niveles es apaisada: con 470px se veia diminuta */
/* La columna de la foto se estira con la pantalla en vez de ser fija. Era
   `minmax(0, 660px)` a secas, y por eso a 1024px de ancho el titular se quedaba
   en 268px: la foto se llevaba 660 de los 968 disponibles pasara lo que pasara.
   El clamp pone suelo y techo: nunca menos que los 620 de antes (asi la foto no
   encoge en ningun sitio) ni mas de 730 (a partir de ahi el aire sobra).
   Medido: la foto crece 14% a 1280 y 18% a 1440, y el titular GANA sitio en las
   pantallas donde estaba ahogado (268 -> 308 a 1024). */
.page-hero.hero-wide .container { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(620px, 58%, 730px)); }
/* sin tope propio a proposito: manda la columna, asi no queda aire muerto a su
   derecha cuando la columna es mas ancha que el tope de la figura */
.page-hero.hero-wide .hero-figure { max-width: 100%; }
.page-hero.hero-wide .page-hero-inner { max-width: 600px; padding-bottom: calc(var(--section-s) + 24px); }
@media (max-width: 900px) {
  .page-hero.hero-wide .container { grid-template-columns: 1fr; }
  .page-hero.hero-wide .hero-figure { max-width: 400px; margin: 0 auto; }
}
.hero-figure-img {
  position: relative; z-index: 2;
  display: block; width: 100%; height: auto;
  /* la foto se funde con el fondo de la seccion en su base */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  animation: figIn 1.1s cubic-bezier(.2, .7, .2, 1) .15s both;
}
@keyframes figIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
/* degradado inferior del color de fondo: remata la fusion */
.hero-figure::after {
  content: ""; position: absolute; z-index: 3;
  left: -10%; right: -10%; bottom: -1px; height: 30%;
  background: linear-gradient(to top, var(--cream-deep) 22%, transparent);
  pointer-events: none;
}

/* formas que conviven con la foto: circulo, medio circulo y anillo */
.hero-shape { position: absolute; z-index: 1; pointer-events: none; }
.hero-shape-ring {
  /* corona la cabeza: el hueco transparente de arriba lo deja ver entero */
  width: 66%; aspect-ratio: 1; border-radius: 50%;
  top: 2%; left: 2%;
  border: 16px solid color-mix(in srgb, var(--sky) 38%, transparent);
  animation: shapeFloat 9s ease-in-out infinite;
}
.hero-shape-dot {
  /* arriba a la izquierda, fuera de la silueta */
  width: 15%; aspect-ratio: 1; border-radius: 50%;
  left: -6%; top: 12%;
  background: var(--gsna-red);
  animation: shapeFloat 7s ease-in-out infinite reverse;
}
.hero-shape-half {
  /* asoma por el borde derecho, a la altura del hombro */
  width: 26%; aspect-ratio: 2/1;
  right: -9%; top: 40%;
  border-radius: 999px 999px 0 0;
  transform-origin: center;
  rotate: 90deg;
  background: color-mix(in srgb, var(--mustard) 70%, transparent);
  animation: shapeFloat 11s ease-in-out infinite;
}
.hero-shape-arc {
  /* medio circulo por el borde izquierdo, a media altura */
  width: 22%; aspect-ratio: 1/2;
  left: -7%; bottom: 26%;
  border-radius: 0 999px 999px 0;
  background: color-mix(in srgb, var(--mint) 62%, transparent);
  animation: shapeFloat 8s ease-in-out infinite reverse;
}
@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(4px, -12px) rotate(5deg); }
}

@media (max-width: 900px) {
  .page-hero.has-figure .container { grid-template-columns: 1fr; gap: 0; }
  .page-hero.has-figure .page-hero-inner { padding-bottom: var(--sp-32); max-width: 100%; }
  .hero-figure { max-width: 330px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure-img { animation: none; }
  .hero-shape { animation: none !important; }
}
/* los shapes del hero interno viven en los márgenes, nunca sobre el texto */
.page-hero .deco-f1 { left: auto; right: 16%; top: 22%; width: 62px; }
.page-hero .deco-f3 { right: 5%; bottom: 18%; width: 78px; }
@media (max-width: 1200px) { .page-hero .deco-f1 { display: none; } }
.page-hero .h1 { margin-top: var(--sp-16); }
.page-hero p { color: var(--tone-medium); margin-top: var(--sp-20); max-width: 58ch; }
.page-hero .page-hero-actions { display: flex; gap: var(--sp-8); margin-top: var(--sp-32); flex-wrap: wrap; }

/* ============ LÍNEA DE TIEMPO ============ */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: var(--sp-48); }
.timeline-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: var(--sp-32);
  padding: var(--sp-32) 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.timeline-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.timeline-year {
  font-size: var(--fs-h3); line-height: 1;
  font-weight: var(--w-heading);
  color: var(--accent);
}
.timeline-body h3 { margin-bottom: var(--sp-8); }
.timeline-body p { color: var(--tone-medium); max-width: 62ch; }
/* hito cumplido: el año se destaca con el sello de logro */
.timeline-milestone .timeline-year {
  display: inline-flex; align-items: center; gap: 8px;
  color: color-mix(in srgb, var(--mint) 78%, black);
}
.timeline-milestone .timeline-year::after {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mint-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23496f5d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  flex: none;
}
.timeline-milestone .timeline-body h3 { color: color-mix(in srgb, var(--mint) 78%, black); }
@media (max-width: 767px) {
  .timeline-item { grid-template-columns: 1fr; gap: var(--sp-8); padding: var(--sp-24) 0; }
  .timeline-year { font-size: var(--fs-h4); }
}

/* ============ TILES DE HORIZONTE (misión, visión, calidad) ============ */
/* distintivo de meta cumplida (la visión 2026 se celebra, no se borra) */
.achieved-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  background: var(--mint-light);
  color: color-mix(in srgb, var(--mint) 75%, black);
  border-radius: var(--radius-tag);
  padding: 5px 12px 5px 8px;
  font-size: var(--fs-label); line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase; font-weight: var(--w-heading);
  margin-top: -4px;
}
.achieved-check { width: 14px; height: 14px; flex: none; }
.achieved-check svg { width: 100%; height: 100%; }

/* ============ LISTA DE PROMESAS / OBJETIVOS ============ */

/* ============ PILARES (valores) ============ */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--sp-48);
}
.pillar-card {
  border-radius: var(--radius-large);
  padding: var(--sp-24);
  display: flex; flex-direction: column; gap: var(--sp-8);
}
.pillar-card p { color: color-mix(in srgb, var(--ink) 70%, transparent); font-size: var(--fs-body-3); line-height: var(--lh-body-3); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ============ EQUIPO (mosaico bento, sin nombres) ============ */
/* Cuatro celdas: las dos fotos anchas van en diagonal (Sandra arriba-izq,
   Deissy abajo-der) y los dos placeholders en la otra diagonal. Rejilla de 12
   columnas para poder partir 7/5 arriba y 5/7 abajo. */
.equipo-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* alto de fila fijo: si cada celda trajera su propio aspect-ratio, las dos de
     una misma fila no cuadrarian de alto. Asi las fotos rellenan con cover. */
  grid-auto-rows: clamp(190px, 23vw, 300px);
  gap: var(--grid-gap);
  margin-top: var(--sp-48);
}
.em-cell {
  position: relative; margin: 0;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: var(--bg-lift);
}
.em-cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s ease;
}
.em-cell:hover img { transform: scale(1.05); filter: saturate(1.08); }
.em-a { grid-column: 1 / 8;  grid-row: 1; }
.em-b { grid-column: 8 / 13; grid-row: 1; }
.em-c { grid-column: 1 / 6;  grid-row: 2; }
.em-d { grid-column: 6 / 13; grid-row: 2; }
/* Deissy esta pegada a la derecha del cuadro. En pantallas donde la celda es
   mas alta que la foto (movil), cover recorta los lados: se sesga hacia ella
   para que no se pierda. En desktop la celda casi iguala la foto y no hay
   recorte, asi que esto no molesta. */
.em-c img { object-position: center 38%; }
.em-d img { object-position: 68% center; }
/* placeholder: un hueco intencional, no algo roto */
.em-ph {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%,
              color-mix(in srgb, var(--ink) 7%, var(--bg-lift)), var(--bg-lift));
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
}
.em-ph-inner { display: grid; place-items: center; gap: 10px; text-align: center; padding: 18px;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.em-ph:hover .em-ph-inner { transform: translateY(-3px); }
.em-ph-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.em-ph-icon svg { width: 22px; height: 22px; }
.em-ph-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
@media (max-width: 760px) {
  /* apilado: cada celda ocupa el ancho y define su alto por ratio */
  .equipo-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .em-cell { aspect-ratio: 3 / 2; grid-column: 1 / -1 !important; grid-row: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .em-cell img, .em-ph-inner { transition-duration: .01ms; }
  .em-cell:hover img { transform: none; }
}

/* los cargos, debajo del mosaico y sin nombre */
.lead-roles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--grid-gap);
}
.lead-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-lift);
  border-radius: var(--radius-default);
  padding: var(--sp-20) var(--sp-24);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.lead-card:hover { transform: translateY(-3px); }
.lead-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.lead-role { font-weight: var(--w-heading); }
@media (max-width: 600px) {
  .lead-roles { grid-template-columns: 1fr; }
  .lead-card { transition: none; }
}

/* ============ NIVEL (bloque grande por etapa) ============ */
.level-block {
  scroll-margin-top: 100px;
  padding-block: var(--section-m);
  border-top: 1px solid var(--border-subtle);
}
.level-block:first-of-type { border-top: 0; }
.level-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-80);
  align-items: center;
}
.level-visual {
  border-radius: var(--radius-large);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.level-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.level-visual .level-seal { width: 120px; height: 120px; }
.level-visual .level-seal svg { width: 100%; height: 100%; }
.level-content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-16); }
.level-content p { color: var(--tone-medium); max-width: 54ch; }
.level-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-8);
  margin-top: var(--sp-8);
}
.level-chip {
  font-size: var(--fs-body-3);
  padding: 6px 14px;
  border-radius: var(--radius-tag);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--tone-medium);
}
.level-facts {
  display: flex; flex-direction: column; gap: var(--sp-8);
  margin-top: var(--sp-8);
  width: 100%;
}
.level-fact {
  display: flex; gap: var(--sp-12); align-items: baseline;
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}
.level-fact strong { flex: none; min-width: 92px; }
.level-fact span { color: var(--tone-medium); font-size: var(--fs-body-3); }
@media (max-width: 900px) {
  .level-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
  .level-block { padding-block: var(--section-s); }
}
/* alterna el lado de la imagen */
/* La foto alterna de lado. OJO: apuntar a los hijos DIRECTOS de .level-grid
   (.level-duo / .level-solo). Antes decia .level-visual y al envolverla en
   .level-solo dejo de ser grid item: el order no aplicaba y las cinco fotos
   quedaron a la izquierda. */
.level-block:nth-of-type(even) .level-duo,
.level-block:nth-of-type(even) .level-solo { order: 2; }

/* ============ PASOS (proceso de admisión) ============ */
.steps-grid { display: flex; flex-direction: column; margin-top: var(--sp-48); }
.step-item {
  display: grid; grid-template-columns: 88px 1fr;
  gap: var(--sp-32);
  padding: var(--sp-32) 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.step-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.step-num {
  font-size: var(--fs-h3); line-height: 1;
  font-weight: var(--w-heading);
  color: var(--accent);
}
.step-body h3 { margin-bottom: var(--sp-8); }
.step-body p { color: var(--tone-medium); max-width: 62ch; }
@media (max-width: 767px) {
  .step-item { grid-template-columns: 56px 1fr; gap: var(--sp-16); }
  .step-num { font-size: var(--fs-h4); }
}

/* ============ CHECKLIST (documentos requeridos) ============ */
.checklist {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
}
.checklist li {
  display: flex; gap: var(--sp-12); align-items: flex-start;
  background: var(--bg-lift);
  border-radius: var(--radius-default);
  padding: var(--sp-16) var(--sp-20);
}
.checklist .check {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  color: var(--mint);
}
.checklist .check svg { width: 100%; height: 100%; }
@media (max-width: 767px) { .checklist { grid-template-columns: 1fr; } }

/* ============ CTA DE PÁGINA ============ */
.page-cta {
  background: var(--ink);
  isolation: isolate;
  color: var(--cream);
  border-radius: var(--radius-large);
  padding: var(--section-s) var(--sp-48);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-24);
  position: relative; overflow: hidden;
  margin: 0 var(--grid-gap) var(--grid-gap);
}
.page-cta .h2 { color: var(--cream); max-width: 18ch; position: relative; z-index: 1; }
.page-cta-actions { display: flex; gap: var(--sp-8); flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.page-cta .btn-primary { background: var(--cream); color: var(--ink); }
.page-cta .btn-secondary {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  color: var(--cream);
}
@media (max-width: 767px) { .page-cta { padding: var(--section-s) var(--sp-24); } }

/* ============ GRID DE NOTICIAS / DOCUMENTOS / GALERÍA ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--sp-48);
}
.doc-card {
  background: var(--bg-lift);
  border-radius: var(--radius-large);
  padding: var(--sp-24);
  display: flex; flex-direction: column; gap: var(--sp-12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.doc-card:hover { transform: translateY(-6px); }
.doc-card .label { color: var(--tone-medium); }
.doc-meta { display: flex; gap: var(--sp-12); color: var(--tone-subtle); font-size: var(--fs-body-3); margin-top: auto; }
.news-card-page { display: flex; flex-direction: column; gap: var(--sp-12); }
.news-card-page .news-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-default);
  overflow: hidden; position: relative;
}
.news-card-page .news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--sp-48);
}
.gallery-item {
  border-radius: var(--radius-large);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.gallery-item:nth-child(4n+1) { grid-row: span 2; aspect-ratio: 1 / 2.06; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gallery-item:hover img { transform: scale(1.05); }
.empty-state {
  text-align: center;
  padding: var(--section-s) var(--sp-24);
  color: var(--tone-medium);
  background: var(--bg-lift);
  border-radius: var(--radius-large);
  margin-top: var(--sp-32);
}
@media (max-width: 900px) {
  .cards-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(4n+1) { grid-row: auto; aspect-ratio: 1; }
}
@media (max-width: 560px) { .cards-grid, .gallery-grid { grid-template-columns: 1fr; } }
/* Variante de 4 columnas (la usa /documentos, que tiene 4 tarjetas). Va en un
   min-width A PROPOSITO: si fuera una regla base `.cards-grid.cols-4`, su
   especificidad (0,2,0) le ganaria a los breakpoints `.cards-grid` (0,1,0) y se
   quedaria en 4 columnas tambien en movil. Antes esto era un style="" inline en
   el HTML, que pisaba TODAS las media queries y desbordaba el movil. */
@media (min-width: 901px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-64);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-24); }
.contact-block .label { color: var(--tone-medium); margin-bottom: var(--sp-4); }
.contact-block .contact-line { font-size: var(--fs-h5); line-height: var(--lh-h5); font-weight: var(--w-medium); }
.contact-block .contact-note { color: var(--tone-medium); font-size: var(--fs-body-3); }
.contact-form {
  background: var(--bg-lift);
  border-radius: var(--radius-large);
  padding: var(--sp-32);
  display: flex; flex-direction: column; gap: var(--sp-16);
}
.field { display: flex; flex-direction: column; gap: var(--sp-8); }
.field label { font-size: var(--fs-body-3); font-weight: var(--w-medium); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: var(--fs-body-2);
  color: var(--tone-strong);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--tone-subtle); font-size: var(--fs-body-3); }
.map-embed {
  /* mismo caso que .joy-media: sin width, el min-height dispara el ancho */
  width: 100%;
  border-radius: var(--radius-large);
  overflow: hidden;
  margin-top: var(--sp-48);
  aspect-ratio: 21 / 8;
  min-height: 300px;
  background: var(--cream-deep);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ============ TEXTO LEGAL ============ */
.legal-body { max-width: 68ch; }
.legal-body h2 { margin-top: var(--sp-48); margin-bottom: var(--sp-16); }
.legal-body h3 { margin-top: var(--sp-32); margin-bottom: var(--sp-8); }
.legal-body p, .legal-body li { color: var(--tone-medium); margin-bottom: var(--sp-12); }
.legal-body ul { padding-left: var(--sp-20); list-style: disc; }
.legal-body li { padding-left: var(--sp-4); }
.legal-note {
  background: var(--cream-deep);
  border-radius: var(--radius-default);
  padding: var(--sp-24);
  margin-top: var(--sp-32);
}

/* proyectos institucionales: 5 columnas que colapsan bien */
@media (max-width: 1100px) {
}
@media (max-width: 700px) {
}

/* ============================================================
   PLACEHOLDERS DE FOTO
   Marcan dónde va cada foto y qué foto es. Se quitan solos
   cuando el <img> tiene src real (ver .photo-slot.has-photo).
   ============================================================ */
.photo-slot {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  display: grid; place-items: center;
  text-align: center;
  padding: var(--sp-24);
  min-height: 180px;
}
.photo-slot::after {
  content: "";
  position: absolute; inset: 10px;
  border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: calc(var(--radius-large) - 6px);
  pointer-events: none;
}
.photo-slot-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-8);
  max-width: 26ch;
}
.photo-slot-icon {
  width: 34px; height: 34px;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.photo-slot-icon svg { width: 100%; height: 100%; }
.photo-slot-label {
  font-size: var(--fs-body-3); line-height: var(--lh-body-3);
  font-weight: var(--w-heading);
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.photo-slot-ratio {
  font-size: 10px; letter-spacing: .75px; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 40%, transparent);
  background: color-mix(in srgb, white 55%, transparent);
  border-radius: var(--radius-tag);
  padding: 3px 10px;
}
/* cuando llegue la foto real: se pone el <img> dentro y se agrega .has-photo */
.photo-slot.has-photo::after { display: none; }
.photo-slot.has-photo .photo-slot-inner { display: none; }
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ============================================================
   FORMULARIO DE ADMISIÓN (interno, por pasos)
   ============================================================ */
.admission-form-section { scroll-margin-top: 100px; }
.form-card {
  background: var(--bg-lift);
  border-radius: var(--radius-large);
  padding: var(--sp-48);
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
/* progreso */
.form-progress { margin-bottom: var(--sp-32); }
.form-progress-track {
  height: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.form-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.3, .7, .2, 1);
}
.form-progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--sp-12);
}
.form-progress-label .label { color: var(--tone-medium); }
.form-progress-count { font-size: var(--fs-body-3); color: var(--tone-subtle); }

/* pasos */
.form-step { display: none; }
.form-step.is-current { display: flex; flex-direction: column; gap: var(--sp-20); }
@media (prefers-reduced-motion: no-preference) {
  .form-step.is-current { animation: stepIn .45s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.form-step-head h3 { margin-bottom: var(--sp-4); }
.form-step-head p { color: var(--tone-medium); font-size: var(--fs-body-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* campos: reusa .field de contacto y agrega estados */
.field .field-error {
  font-size: var(--fs-body-3);
  color: var(--ui-error);
  display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--ui-error);
}
.field.has-error .field-error { display: block; }
.field-hint { font-size: var(--fs-body-3); color: var(--tone-subtle); }
.field-required { color: var(--accent); }

/* navegación */
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--border-subtle);
}
.form-nav-right { display: flex; gap: var(--sp-8); margin-left: auto; }

/* estado de éxito */
.form-success { display: none; text-align: center; padding: var(--sp-32) 0; }
.form-success.is-visible { display: flex; flex-direction: column; align-items: center; gap: var(--sp-16); }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--mint-light);
  color: color-mix(in srgb, var(--mint) 78%, black);
  display: grid; place-items: center;
}
.form-success-icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--tone-medium); max-width: 44ch; }
.form-card.is-done .form-progress,
.form-card.is-done .form-step,
.form-card.is-done .form-nav { display: none; }

/* aviso de configuración pendiente (solo lo ve el equipo, se quita al conectar el backend) */
.form-setup-note {
  background: var(--mustard-light);
  border-radius: var(--radius-default);
  padding: var(--sp-16) var(--sp-20);
  margin-bottom: var(--sp-24);
  font-size: var(--fs-body-3);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
@media (max-width: 767px) { .form-card { padding: var(--sp-24); } }

/* ============================================================
   MÉTODO (sección rica, mismo patrón que la filosofía de la home)
   ============================================================ */
.method-section {
  background: var(--cream-deep);
  padding-block: var(--section-m);
  overflow: hidden;
}
.method-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-80);
  align-items: center;
}
.method-visual { position: relative; padding: var(--sp-48) var(--sp-24); }
.method-photo {
  border-radius: var(--radius-large);
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 14%, transparent);
  aspect-ratio: 4 / 3;
}
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
/* la foto pequeña superpuesta, como el dibujo en la home */
.method-photo-sm {
  position: absolute; bottom: -2%; right: -3%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: var(--radius-default);
  overflow: hidden;
  transform: rotate(4deg);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 20%, transparent);
  border: 5px solid var(--cream);
}
.method-photo-sm img { width: 100%; height: 100%; object-fit: cover; }
.method-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-16); }
.method-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-default);
  background: var(--white);
  display: grid; place-items: center;
  color: var(--accent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 10%, transparent);
}
.method-icon svg { width: 30px; height: 30px; }
.method-copy p { color: var(--tone-medium); max-width: 52ch; }
/* las dos escuelas del método */
.method-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  width: 100%;
  margin-top: var(--sp-16);
}
.method-card {
  background: var(--white);
  border-radius: var(--radius-default);
  padding: var(--sp-20);
  display: flex; flex-direction: column; gap: var(--sp-8);
}
.method-card .method-card-icon { width: 30px; height: 30px; }
.method-card .method-card-icon svg { width: 100%; height: 100%; }
.method-card p { font-size: var(--fs-body-3); line-height: var(--lh-body-3); }
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; gap: var(--sp-48); }
  .method-cards { grid-template-columns: 1fr; }
}

/* ============ PROYECTOS CON ICONO ============ */

/* doodles del método: posición propia (no heredan la de la home) */
.method-visual .doodle-half {
  left: -3%; top: 4%; width: 76px;
  rotate: -14deg;
}
.method-visual .doodle-dot {
  left: auto; right: 2%; top: 12%; width: 30px;
}
@media (max-width: 900px) {
  .method-visual .doodle { display: none; }
}

/* scroll-margin para que las anclas no queden bajo el navbar */
#historia, #horizonte, #metodo, #valores, #equipo { scroll-margin-top: 96px; }

/* ============================================================
   Aliados: marquesina horizontal automatica
   Fuente de los logos: Presentacion Admisiones, pag. 19 "Alliances".
   La pista se duplica en el HTML y se desplaza -50%: al terminar la
   primera copia, la segunda esta exactamente donde arranco -> loop sin salto.
   ============================================================ */
.allies { padding-block: var(--section-m); overflow: hidden; }
/* alineado a la izquierda, como el resto de los titulos de la pagina */
.allies-head { margin-bottom: 44px; }
.allies-eyebrow { color: var(--accent); margin-bottom: 12px; }
.allies-intro {
  max-width: 58ch; margin: 14px 0 0;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.allies-viewport {
  position: relative;
  /* se desvanece en los bordes: sugiere que la fila continua */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.allies-track {
  user-select: none; -webkit-user-select: none;
  --mg: 22px;
  display: flex; align-items: center; gap: var(--mg);
  width: max-content;
  animation: alliesScroll 46s linear infinite;
}

@keyframes alliesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ally {
  flex: none;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ink) 9%, transparent);
  transition: transform .4s cubic-bezier(.3,.7,.2,1), box-shadow .4s ease;
}
.ally img {
  width: 82%; height: 82%;
  object-fit: contain;
  /* atenuados en reposo para que la fila se lea como un conjunto,
     a color al pasar el mouse */
  filter: grayscale(1); opacity: .62;
  transition: filter .4s ease, opacity .4s ease;
}
.ally:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 18%, transparent); }
.ally:hover img { filter: none; opacity: 1; }

@media (max-width: 700px) {
  .ally { width: 84px; height: 84px; }
  .allies-track {
  user-select: none; -webkit-user-select: none;
  --mg: 22px; gap: 16px; animation-duration: 38s; }
}
/* accesibilidad: si el usuario pidio menos movimiento, la fila se detiene
   y se puede recorrer a mano */
@media (prefers-reduced-motion: reduce) {
  .allies-track {
  user-select: none; -webkit-user-select: none;
  --mg: 22px; animation: none; }
  .allies-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   Sedes: las cuatro edificaciones del colegio
   Fotos: Presentacion Admisiones, pag. 10 "Our Institution".
   ============================================================ */
.campus { background: var(--ink); color: var(--cream); padding-block: var(--section-m); overflow: hidden; }
.campus .section-head { margin-bottom: 52px; }
.campus-eyebrow { color: var(--gsna-red); margin-bottom: 12px; }
.campus h2 { color: var(--cream); }
.campus-intro { max-width: 56ch; margin-top: 14px; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.campus-grid {
  display: grid;
}
.campus-card {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
}
.campus-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(.9);
}
.campus-card:hover img { transform: scale(1.07); filter: saturate(1.1); }
.campus-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,11,33,.88) 0%, rgba(5,11,33,.35) 42%, transparent 70%);
  pointer-events: none;
}
.campus-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 18px;
  display: flex; align-items: center; gap: 10px;
}
.campus-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gsna-red); }
.campus-name { font-weight: var(--w-heading); font-size: 15px; line-height: 1.25; }
.campus-note {
  display: block; font-weight: 400; font-size: 12.5px;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
  margin-top: 2px;
}
.campus-foot {
  margin-top: 34px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: color-mix(in srgb, var(--cream) 66%, transparent); font-size: 14px;
}
.campus-foot svg { width: 17px; height: 17px; color: var(--gsna-red); flex: none; }

@media (max-width: 900px) { .campus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .campus-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .campus-caption { padding: 14px 12px; } }

/* ============================================================
   1. SEDES — tres sedes, placeholders disenados
   ============================================================ */
.campus-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.campus-card { aspect-ratio: 4/5; }

/* placeholder: no es un hueco roto, es una pieza disenada */
.campus-card.is-placeholder {
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cream) 16%, transparent), transparent 60%),
    color-mix(in srgb, var(--cream) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  display: grid; place-items: center;
}
.campus-card.is-placeholder::after { display: none; }
.campus-ph {
  display: grid; place-items: center; gap: 12px;
  text-align: center; padding: 20px;
  transition: transform .6s cubic-bezier(.3,.7,.2,1);
}
.campus-card.is-placeholder:hover .campus-ph { transform: translateY(-4px); }
.campus-ph-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--gsna-red) 16%, transparent);
  color: var(--gsna-red);
}
.campus-ph-icon svg { width: 24px; height: 24px; }
.campus-ph-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 48%, transparent);
}
/* la etiqueta de la sede vive fuera de la foto: se lee siempre */
.campus-card.is-placeholder .campus-caption { position: static; padding: 0; }
.campus-item { display: flex; flex-direction: column; gap: 14px; }
.campus-item .campus-card { flex: none; }
.campus-label { display: flex; align-items: baseline; gap: 9px; }
.campus-kicker {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gsna-red); flex: none;
}
.campus-building { font-weight: var(--w-heading); font-size: 17px; color: var(--cream); }
.campus-sub { font-size: 13.5px; color: color-mix(in srgb, var(--cream) 60%, transparent); margin-top: 3px; }
@media (max-width: 780px) { .campus-grid { grid-template-columns: 1fr; gap: 30px; } .campus-card { aspect-ratio: 16/10; } }

/* ============================================================
   2. PILARES — icono, color propio y movimiento
   ============================================================ */
.pillar-card {
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), box-shadow .5s ease;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px color-mix(in srgb, var(--ink) 16%, transparent); }
.pillar-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink);
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background .4s ease;
}
.pillar-icon svg { width: 23px; height: 23px; }
.pillar-card:hover .pillar-icon { transform: rotate(-8deg) scale(1.1); background: color-mix(in srgb, var(--ink) 16%, transparent); }
/* halo que crece desde el icono: da vida sin distraer */
.pillar-card::before {
  content: ""; position: absolute; z-index: 0;
  top: -30px; left: -30px; width: 120px; height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 42%, transparent);
  transform: scale(0); transform-origin: center;
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.pillar-card:hover::before { transform: scale(1.7); }
.pillar-card > * { position: relative; z-index: 1; }

/* ============================================================
   3. PROMESAS — timeline HORIZONTAL, centrado
   La linea se dibuja de izquierda a derecha con el scroll y cada punto
   se enciende cuando la linea lo alcanza.
   ============================================================ */
/* titulo centrado, como pidio Seb */
.promises > .container { text-align: center; }
.promises .timeline-promises { text-align: center; }

.timeline-promises {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* la linea vive a la altura del centro de los puntos */
.tp-line {
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 2px;
}
.tp-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--gsna-red), var(--ink));
  border-radius: 2px;
  transform: scaleX(var(--tp-progress, 0)); transform-origin: left;
  transition: transform .25s linear;
}
.tp-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
}
.tp-dot {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  background: var(--cream); color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
  transition: background .5s ease, color .5s ease, border-color .5s ease, transform .5s cubic-bezier(.3,.7,.2,1);
}
.tp-item.is-reached .tp-dot {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  transform: scale(1.08);
}
.tp-dot svg { width: 22px; height: 22px; }
.tp-body { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tp-title { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tp-num {
  font-size: 12px; letter-spacing: .1em;
  color: var(--gsna-red); font-weight: var(--w-heading);
}
.tp-text {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  max-width: 26ch;
}

@media (max-width: 820px) {
  .timeline-promises { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  /* con dos filas la linea recta ya no aplica */
  .tp-line { display: none; }
}
@media (max-width: 420px) {
  .timeline-promises { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   4. HORIZONTE — composicion editorial, sin aire muerto
   Con align-items:start la foto 3/4 imponia el alto de la fila y dejaba
   ~260px de vacio bajo el panel de texto. Ahora manda el texto y la foto
   se estira a su altura: las filas miden exactamente lo que ocupa el copy.
   ============================================================ */
.horizon { padding-block: var(--section-m); position: relative; overflow: hidden; }
.horizon-head { max-width: 60ch; margin-bottom: 44px; }
.horizon-eyebrow { color: var(--accent); margin-bottom: 12px; }
.horizon-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
}
.horizon-grid > * { display: flex; }
.horizon-grid > * > * { width: 100%; }

.hz-mision     { grid-column: span 7; }
.hz-foto-alta  { grid-column: span 5; }
.hz-foto-ancha { grid-column: span 5; }
.hz-vision     { grid-column: span 7; }
.hz-hito       { grid-column: span 7; }
.hz-calidad    { grid-column: span 5; }

.hz-panel {
  background: var(--white);
  border-radius: var(--radius-large);
  padding: 24px 28px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hz-panel.is-ink { background: var(--ink); color: var(--cream); }
.hz-panel.is-ink .hz-panel-title { color: var(--cream); }
.hz-panel.is-ink p { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.hz-panel-kicker {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gsna-red); margin-bottom: 8px;
}
.hz-panel-title { margin-bottom: 10px; }
.hz-panel p { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.hz-ghost {
  position: absolute; right: -6px; bottom: -30px; z-index: 0;
  font-size: 104px; line-height: 1; font-weight: var(--w-heading);
  color: color-mix(in srgb, var(--cream) 9%, transparent);
  pointer-events: none; user-select: none;
}
.hz-panel > *:not(.hz-ghost) { position: relative; z-index: 1; }

.hz-photo {
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 62%),
    var(--cream-deep);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden;
  min-height: 250px;
  transition: transform .6s cubic-bezier(.3,.7,.2,1), box-shadow .6s ease;
}
.hz-photo:hover { transform: translateY(-4px); box-shadow: 0 16px 38px color-mix(in srgb, var(--ink) 12%, transparent); }
.hz-ph-in { display: grid; place-items: center; gap: 9px; padding: 16px; }
/* cuando el hueco ya tiene foto real: cubre sin deformar */
.hz-photo img {
  /* absoluta a proposito: con height:100% el navegador no puede resolver el
     porcentaje y cae a los atributos width/height del <img>, con lo que la
     foto imponia el alto de la fila (706px) y dejaba 517px de aire en el
     panel de texto de al lado. Asi la foto ya no participa del layout. */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.hz-ph-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.hz-ph-icon svg { width: 21px; height: 21px; }
.hz-ph-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-subtle);
}
.hz-ph-dim { font-size: 11px; color: var(--ink-subtle); opacity: .8; }

/* hito y politica de calidad: bandas compactas, lado a lado */
.hz-hito .hz-panel,
.hz-calidad .hz-panel { flex-direction: row; align-items: center; gap: 16px; }
.hz-check {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--mint) 26%, transparent);
  color: var(--mint);
}
.hz-check svg { width: 22px; height: 22px; }
.hz-hito-body { flex: 1; }
.hz-hito-body p { margin-top: 3px; }

.hz-deco { position: absolute; z-index: 0; pointer-events: none; opacity: .5; }
.hz-deco-1 { top: 8%; right: -60px; width: 190px; height: 190px; border-radius: 50%; border: 22px solid color-mix(in srgb, var(--accent) 12%, transparent); }
.hz-deco-2 { bottom: 12%; left: -50px; width: 140px; height: 70px; border-radius: 140px 140px 0 0; background: color-mix(in srgb, var(--ink) 7%, transparent); }

@media (max-width: 900px) {
  .hz-mision, .hz-vision, .hz-foto-alta, .hz-foto-ancha, .hz-hito, .hz-calidad { grid-column: span 12; }
  .hz-photo { min-height: 200px; }
}



/* ---------- CTA de /nosotros con foto de fondo ----------
   Seb: "usa la foto que tiene ese nombre pero con un overlay al 80% que no
   se vea tanto, solo la imagen de fondo". El overlay va al 80% de opacidad
   sobre la foto: se intuye, no compite con el texto.
   -------------------------------------------------------- */
.page-cta.has-photo { background: var(--ink); }
.page-cta-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.page-cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.page-cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  opacity: .9;
}
.page-cta.has-photo > *:not(.page-cta-bg) { position: relative; z-index: 1; }

/* ============================================================
   Equipo: los cargos, sin nombres ni fotos
   Andrea (16 jul): el colegio decidio no exponer al personal por seguridad
   y porque rota. Estas tarjetas son la alternativa: solo el cargo.
   ============================================================ */
.roles {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.roles-head { margin-bottom: 24px; }
.roles-kicker { color: var(--accent); margin-bottom: 8px; }
.roles-note {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  max-width: 58ch; font-size: 14.5px;
}
.roles-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.role-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  background: var(--white);
  border-radius: var(--radius-default);
  transition: transform .4s cubic-bezier(.3,.7,.2,1), box-shadow .4s ease;
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 12%, transparent);
}
.role-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  transition: transform .4s cubic-bezier(.3,.7,.2,1), background .35s ease;
}
.role-icon svg { width: 17px; height: 17px; }
.role-card:hover .role-icon {
  transform: rotate(-8deg) scale(1.08);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.role-name { font-weight: var(--w-heading); font-size: 14px; line-height: 1.3; }

@media (max-width: 520px) {
  .roles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-card { padding: 12px; gap: 9px; }
  .role-name { font-size: 12.5px; }
}


/* ============================================================
   Resto del equipo: tarjetas simples, solo cargos, sin fotos.
   OJO: el prefijo es staff-, NO team-. `.team-roles` ya existe en este
   mismo archivo (linea ~206) como otro componente con display:flex, y
   reusar el nombre aplastaba la grilla a una columna de 260px en mitad
   de la pagina.
   ============================================================ */
.staff-roles { margin-top: 56px; }
.staff-roles-head { margin-bottom: 22px; }
.staff-roles-title { font-weight: var(--w-heading); font-size: 19px; }
.staff-roles-note { font-size: 14px; color: var(--ink-subtle); margin-top: 4px; }
.staff-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius-default);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .4s cubic-bezier(.3,.7,.2,1), box-shadow .4s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 12%, transparent); }
.role-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--gsna-red);
  transition: transform .4s cubic-bezier(.3,.7,.2,1);
}
.role-card:hover .role-dot { transform: scale(1.9); }
.role-name { font-size: 14.5px; font-weight: var(--w-heading); line-height: 1.3; }

@media (max-width: 900px) { .staff-roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .staff-roles-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ============================================================
   Niveles: composicion de dos fotos (grande + chica)
   Mismo lenguaje que .method-visual de /nosotros, que Seb ya aprobo.
   Solo Kinder y Primaria tienen dos fotos; el resto va con una.
   ============================================================ */
.level-duo { position: relative; padding: var(--sp-32) var(--sp-24); }
.level-duo-big {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transform: rotate(-3deg);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 14%, transparent);
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.level-duo:hover .level-duo-big { transform: rotate(-1deg) scale(1.02); }
.level-duo-sm {
  position: absolute; bottom: -1%; right: -2%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: var(--radius-default);
  overflow: hidden;
  transform: rotate(4deg);
  border: 5px solid var(--cream);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 18%, transparent);
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
  z-index: 2;
}
.level-duo:hover .level-duo-sm { transform: rotate(1deg) scale(1.05); }
.level-duo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* icono que ancla la composicion, como en /nosotros */
.level-duo-icon {
  position: absolute; z-index: 3;
  top: 4%; left: -2%;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 16%, transparent);
  transition: transform .6s cubic-bezier(.3,.7,.2,1);
}
.level-duo-icon svg { width: 25px; height: 25px; }
.level-duo:hover .level-duo-icon { transform: rotate(-10deg) scale(1.1); }

/* una sola foto: envuelta para que las formas puedan salirse del marco */
.level-solo { position: relative; padding: var(--sp-24); }
.level-solo .level-visual { position: relative; overflow: hidden; z-index: 1; }
.level-solo .level-visual img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.level-solo:hover .level-visual img { transform: scale(1.05); }
.level-solo .level-duo-icon { top: 2%; left: 0%; }

/* las formas viven detras de la foto y asoman por los bordes, como en el home */
.level-duo .doodle, .level-solo .doodle { z-index: 0; opacity: .9; }
.level-duo .doodle-half, .level-solo .doodle-half { left: -4%; top: -3%; width: 74px; rotate: -12deg; }
.level-duo .doodle-dot, .level-solo .doodle-dot { right: -3%; top: 14%; width: 34px; }
.level-duo .doodle-donut, .level-solo .doodle-donut { left: 2%; bottom: -4%; width: 62px; }
.level-duo-sm { z-index: 3; }

@media (max-width: 760px) {
  .level-duo { padding: var(--sp-24) var(--sp-16); }
  .level-duo-sm { width: 40%; }
  .level-duo-icon { width: 44px; height: 44px; }
  .level-duo-icon svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .level-duo-big, .level-duo-sm { transform: none; }
  .level-duo:hover .level-duo-big, .level-duo:hover .level-duo-sm { transform: none; }
}


/* ============================================================
   Proyectos institucionales ("Lo que ningun horario alcanza a contar")
   OJO: esta seccion usaba .promise-grid, cuya regla base borre al convertir
   las promesas de /nosotros en timeline: la di por muerta sin ver que se
   usaba aca. Sin display:grid las cinco tarjetas se apilaban en vertical.
   Ahora tiene grilla propia, .projects-grid, que no comparte con nadie.
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 46px;
}
.project-item {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 22px;
  border-radius: var(--radius-large);
  background: color-mix(in srgb, var(--cream) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 11%, transparent);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background .45s ease, border-color .45s ease;
}
.project-item:hover {
  transform: translateY(-8px);
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  border-color: color-mix(in srgb, currentColor 45%, transparent);
}
/* halo del color del proyecto, crece desde el icono */
.project-item::before {
  content: ""; position: absolute; z-index: 0;
  top: -40px; left: -40px; width: 130px; height: 130px;
  border-radius: 50%;
  background: currentColor; opacity: .16;
  transform: scale(0);
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.project-item:hover::before { transform: scale(1.9); }
.project-item > * { position: relative; z-index: 1; }
.project-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-default);
  display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 18%, transparent);
  flex: none;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background .45s ease;
}
.project-icon svg { width: 26px; height: 26px; }
.project-item:hover .project-icon { transform: rotate(-8deg) scale(1.12); background: color-mix(in srgb, currentColor 30%, transparent); }
/* numero de fondo: ancla y da ritmo */
.project-num {
  position: absolute; z-index: 0;
  right: 12px; bottom: 2px;
  font-size: 52px; line-height: 1; font-weight: var(--w-heading);
  color: color-mix(in srgb, var(--cream) 8%, transparent);
  pointer-events: none;
  transition: color .45s ease;
}
.project-item:hover .project-num { color: color-mix(in srgb, var(--cream) 14%, transparent); }

@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 420px)  { .projects-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .project-item:hover { transform: none; }
  .project-item::before { display: none; }
  .project-item:hover .project-icon { transform: none; }
}


/* ============================================================
   Character Counts: el logo oficial a la izquierda, en paralelo al titulo.
   ============================================================ */
.cc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
}
.cc-logo {
  flex: none;
  width: 118px;
  padding-top: 4px;
}
.cc-logo img {
  width: 100%;
  display: block;
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.cc-head:hover .cc-logo img { transform: scale(1.05) rotate(-2deg); }
/* la linea vertical ata el logo al titulo: son la misma idea */
.cc-logo { position: relative; }
.cc-logo::after {
  content: ""; position: absolute;
  top: 8px; bottom: 8px; right: -13px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gsna-red), transparent);
}
@media (max-width: 700px) {
  .cc-head { grid-template-columns: 1fr; gap: 16px; }
  .cc-logo { width: 92px; }
  .cc-logo::after { display: none; }
}

/* ============================================================
   Reels: prueba en video. Es lo que mas convence en un funnel:
   ver el colegio moviendose, no leerlo.
   ============================================================ */
.reels { padding-block: var(--section-m); background: var(--ink); color: var(--cream); overflow: hidden; }
.reels-head { text-align: center; max-width: 56ch; margin: 0 auto 44px; }
.reels-eyebrow { color: var(--gsna-red); margin-bottom: 12px; }
.reels h2 { color: var(--cream); }
.reels-intro { margin-top: 14px; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.reels-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 900px; margin: 0 auto;
}
.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: color-mix(in srgb, var(--cream) 8%, transparent);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), box-shadow .5s ease;
}
.reel-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 26px 60px rgba(5,11,33,.5); }
.reel-card video,
.reel-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.reel-card video { opacity: 0; transition: opacity .6s ease; }
.reel-card.is-playing video { opacity: 1; }
/* Si el navegador bloquea el autoplay, la tarjeta lo dice en vez de quedarse
   muda: el poster sigue y el punto rojo late para invitar al toque. */
.reel-card.needs-tap .reel-dot { animation: reelLate 1.6s ease-in-out infinite; }
@keyframes reelLate {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.22); }
}
.reel-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(5,11,33,.82) 0%, rgba(5,11,33,.15) 46%, transparent 72%);
  pointer-events: none;
}
.reel-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 16px 14px;
  display: flex; align-items: center; gap: 11px;
}
/* El punto rojo ES el boton de play. Antes era un adorno con cara de boton:
   quien le hacia clic terminaba en el formulario. */
.reel-dot {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: var(--gsna-red); color: #fff;
  box-shadow: 0 4px 16px rgba(231,49,62,.45);
  transition: transform .4s cubic-bezier(.3,.7,.2,1), background .3s ease;
}
.reel-dot svg { width: 14px; height: 14px; }
.reel-dot:hover { transform: scale(1.15); }
.reel-card:hover .reel-dot { transform: scale(1.08); }
.reel-dot:hover { background: color-mix(in srgb, var(--gsna-red) 84%, #000); }
.reel-dot .ico-pausa { display: none; }
.reel-card.is-sound .reel-dot .ico-play { display: none; }
.reel-card.is-sound .reel-dot .ico-pausa { display: block; }
/* mientras nadie lo toca, late para invitar */
.reel-card:not(.is-sound) .reel-dot::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--gsna-red);
  opacity: 0;
  animation: reelPulso 2.4s ease-out infinite;
}
.reel-dot { position: relative; }
@keyframes reelPulso {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
.reel-name { font-size: 13.5px; font-weight: var(--w-heading); line-height: 1.25; }
.reels-foot { margin-top: 30px; text-align: center; }

@media (max-width: 820px) { .reels-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 460px) { .reels-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .reel-name { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .reel-card:hover { transform: none; }
}

/* ============================================================
   FUNNEL DE ADMISIONES
   Lo que le faltaba a la pagina para vender: prueba, urgencia y un CTA
   que no se pierda de vista.
   ============================================================ */

/* --- 1. Banda de prueba: datos duros, arriba de todo --- */
.proof { background: var(--ink); color: var(--cream); padding: 30px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proof-item {
  display: flex; align-items: center; gap: 13px;
  /* min-width 0 es OBLIGATORIO: por defecto un item flex no se encoge por
     debajo de su contenido, y "Cambridge English School" desbordaba hasta
     106px en una pantalla de 360. */
  min-width: 0;
}
.proof-item > span:last-child { min-width: 0; }
.proof-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  color: var(--gsna-red);
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.proof-icon svg { width: 20px; height: 20px; }
.proof-item:hover .proof-icon { transform: rotate(-8deg) scale(1.12); }
.proof-n { font-size: 20px; font-weight: var(--w-heading); line-height: 1.15; display: block; overflow-wrap: anywhere; }
.proof-t { font-size: 12.5px; color: color-mix(in srgb, var(--cream) 66%, transparent); line-height: 1.35; display: block; overflow-wrap: anywhere; }

/* --- 2. Urgencia: la charla real, con fecha --- */
.urge { padding-block: var(--section-s); }
.urge-card {
  background: linear-gradient(120deg, var(--gsna-red), color-mix(in srgb, var(--gsna-red) 72%, var(--ink)));
  color: #fff;
  border-radius: var(--radius-large);
  padding: 34px 32px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.urge-card::after {
  content: ""; position: absolute; z-index: 0;
  right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%;
  border: 26px solid rgba(255,255,255,.10);
}
.urge-card > * { position: relative; z-index: 1; }
.urge-date {
  flex: none; text-align: center;
  background: rgba(255,255,255,.16);
  border-radius: 18px; padding: 14px 20px;
  backdrop-filter: blur(4px);
}
.urge-day { display: block; font-size: 32px; font-weight: var(--w-heading); line-height: 1; }
.urge-mon { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.urge-body { flex: 1 1 300px; }
.urge-body h3 {
  font-size: 21px; font-weight: var(--w-heading); margin-bottom: 5px;
  /* explicito: hay una regla global `h1..h5 { color: var(--tone-strong) }`
     que le gana a la herencia de la tarjeta, y el titulo salia azul oscuro
     sobre el fondo rojo. */
  color: #fff;
}
.urge-body p { font-size: 14.5px; opacity: .9; }
.urge-card .btn { flex: none; }

/* --- 3. CTA fijo: en movil te sigue, es donde se pierden los registros --- */
.cta-fijo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  backdrop-filter: blur(10px);
  display: none; gap: 10px;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.3,.7,.2,1);
}
.cta-fijo.is-on { transform: none; }
.cta-fijo a { flex: 1; text-align: center; justify-content: center; }
.cta-fijo-wa {
  flex: none !important; width: 46px;
  display: grid; place-items: center;
  background: #25D366; color: #fff; border-radius: 99px; text-decoration: none;
}
.cta-fijo-wa svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .cta-fijo { display: flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; gap: var(--mg) 14px; } }
@media (max-width: 520px) { .proof-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 460px) { .proof-n { font-size: 17px; } .urge-card { padding: 26px 22px; gap: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .cta-fijo { transition: none; }
}

/* ============================================================
   "Si el inglés preocupa": el acompañamiento, con estructura
   Antes era un parrafo largo, centrado en medio de secciones alineadas a la
   izquierda, sin un solo icono. Dentro habia DOS casos distintos (Elementary
   y High School por un lado, K5 y 1° por el otro) metidos en el mismo bloque.
   ============================================================ */
.ingles-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.ingles-card {
  position: relative;
  background: color-mix(in srgb, var(--cream) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 13%, transparent);
  border-radius: var(--radius-large);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background .45s ease, border-color .45s ease;
}
.ingles-card:hover {
  transform: translateY(-6px);
  background: color-mix(in srgb, var(--cream) 13%, transparent);
  border-color: color-mix(in srgb, currentColor 50%, transparent);
}
.ingles-card::before {
  content: ""; position: absolute; z-index: 0;
  top: -46px; right: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: currentColor; opacity: .14;
  transform: scale(0);
  transition: transform .75s cubic-bezier(.3,.7,.2,1);
}
.ingles-card:hover::before { transform: scale(1.7); }
.ingles-card > * { position: relative; z-index: 1; }
.ingles-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, currentColor 20%, transparent);
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.ingles-icon svg { width: 24px; height: 24px; }
.ingles-card:hover .ingles-icon { transform: rotate(-8deg) scale(1.12); }
.ingles-quien {
  display: inline-block;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: var(--w-heading);
  padding: 5px 11px; border-radius: 99px; margin-bottom: 10px;
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.ingles-card h3 { color: var(--cream); margin-bottom: 7px; }
.ingles-card p { color: color-mix(in srgb, var(--cream) 72%, transparent); font-size: 14.5px; line-height: 1.6; }
.ingles-cierre {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  color: var(--cream);
  font-weight: var(--w-heading); font-size: 17px;
}
.ingles-cierre span:first-child {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--mint) 30%, transparent);
  color: var(--mint);
}
.ingles-cierre svg { width: 17px; height: 17px; }

@media (max-width: 780px) { .ingles-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ingles-card:hover { transform: none; }
  .ingles-card::before { display: none; }
  .ingles-card:hover .ingles-icon { transform: none; }
}



/* ============================================================
   "Ten esto a la mano": los documentos, agrupados
   Antes: una lista plana de 8 items con el mismo check gris, sin jerarquia.
   Nadie sabia cuales conseguir primero ni de donde sale cada uno.
   Ahora: agrupados por DONDE se consiguen, que es como se juntan de verdad.
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.docs-group {
  background: var(--white);
  border-radius: var(--radius-large);
  padding: 26px 24px;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.3,.7,.2,1), box-shadow .5s ease;
}
.docs-group:hover { transform: translateY(-5px); box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 12%, transparent); }
.docs-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.docs-icon svg { width: 22px; height: 22px; }
.docs-group:hover .docs-icon { transform: rotate(-8deg) scale(1.1); }
.docs-de {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: var(--w-heading); display: block; margin-bottom: 4px;
}
.docs-group h3 { color: var(--ink); margin-bottom: 14px; }
.docs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.docs-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
}
.docs-list li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%; margin-top: 7px;
  background: currentColor; opacity: .5;
}
.docs-nota {
  margin-top: 26px;
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; color: color-mix(in srgb, var(--ink) 66%, transparent);
}
.docs-nota span:first-child {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sky) 22%, transparent);
  color: var(--sky);
}
.docs-nota svg { width: 16px; height: 16px; }

@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .docs-group:hover { transform: none; }
  .docs-group:hover .docs-icon { transform: none; }
}

/* ============================================================
   FAQ: era .faq-head sin una sola regla CSS, asi que el titulo quedaba
   pegado a la lista. Ese era el espaciado que Seb veia mal.
   ============================================================ */
.faq-head { margin-bottom: 40px; }
.faq-head .h2 { margin-top: 12px; }
.faq-intro { margin-top: 14px; max-width: 56ch; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-default);
  padding: 4px 22px;
  transition: box-shadow .4s ease;
}
.faq-item[open] { box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 9%, transparent); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 0;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; margin-left: auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 11px 1.8px, 1.8px 11px;
  background-position: center, center;
  background-repeat: no-repeat;
  color: var(--gsna-red);
  transition: transform .4s cubic-bezier(.3,.7,.2,1), background-size .4s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-num {
  flex: none;
  font-size: 11px; font-weight: var(--w-heading);
  color: var(--gsna-red); letter-spacing: .08em;
  min-width: 22px;
}
.faq-item p {
  padding: 0 0 22px 36px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.65;
  animation: faqIn .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.faq-foot {
  margin-top: 34px;
  background: var(--white);
  border-radius: var(--radius-large);
  padding: 26px 28px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.faq-foot-body { flex: 1 1 260px; }
.faq-foot-body b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.faq-foot-body span { font-size: 14px; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.faq-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 99px;
  transition: transform .35s cubic-bezier(.3,.7,.2,1);
}
.faq-wa:hover { transform: translateY(-3px) scale(1.03); }
.faq-wa svg { width: 17px; height: 17px; }

@media (max-width: 620px) {
  .faq-item { padding: 2px 16px; }
  .faq-item summary { padding: 16px 0; gap: 10px; font-size: 15px; }
  .faq-item p { padding-left: 32px; padding-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item p { animation: none; }
}

/* el que suena se destaca del resto */
.reel-card.is-sound { outline: 2px solid var(--gsna-red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .reel-card:not(.is-sound) .reel-dot::after { animation: none; }
}

/* ============================================================
   SERVICIOS: lo que el colegio ofrece mas alla del aula.
   Sale de las paginas 25 y 27 del PDF de admisiones. Es lo que Andrea pidio
   en la reunion ("los servicios atraen mucho") y lo que Seb pidio ahora.
   Tres tarjetas llevan foto real; el resto, icono. La mezcla es a proposito:
   las de foto anclan la mirada y las de icono dejan leer el resto de un
   vistazo, sin que la seccion se vuelva un muro de fotos.
   ============================================================ */
.srv { padding-block: var(--section-m); position: relative; overflow: hidden; }
.srv-head { max-width: 58ch; margin-bottom: 44px; }
.srv-eyebrow { color: var(--accent); margin-bottom: 12px; }
.srv-intro { margin-top: 14px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.srv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.srv-card {
  position: relative;
  border-radius: var(--radius-large);
  padding: 26px 24px;
  min-height: 172px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  overflow: hidden;
  background: var(--white);
  transition: transform .55s cubic-bezier(.3,.7,.2,1), box-shadow .55s ease;
}
.srv-card:hover { transform: translateY(-8px); box-shadow: 0 24px 52px color-mix(in srgb, var(--ink) 16%, transparent); }

/* halo del color propio, crece desde el icono */
.srv-card::before {
  content: ""; position: absolute; z-index: 0;
  top: -50px; left: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: currentColor; opacity: .13;
  transform: scale(0);
  transition: transform .8s cubic-bezier(.3,.7,.2,1);
}
.srv-card:hover::before { transform: scale(2); }
.srv-card > * { position: relative; z-index: 2; }

.srv-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: auto;
  background: color-mix(in srgb, currentColor 18%, transparent);
  transition: transform .5s cubic-bezier(.3,.7,.2,1), background .4s ease;
}
.srv-icon svg { width: 23px; height: 23px; }
.srv-card:hover .srv-icon { transform: rotate(-8deg) scale(1.14); background: color-mix(in srgb, currentColor 30%, transparent); }
.srv-name { font-weight: var(--w-heading); font-size: 16px; line-height: 1.3; color: var(--ink); }
.srv-desc { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 62%, transparent); }


.srv-foot {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: color-mix(in srgb, var(--ink) 64%, transparent);
}
.srv-foot span:first-child {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sky) 22%, transparent);
  color: var(--sky);
}
.srv-foot svg { width: 16px; height: 16px; }

@media (max-width: 900px) { .srv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .srv-grid { grid-template-columns: 1fr; gap: 12px; } .srv-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .srv-card:hover { transform: none; }
  .srv-card::before { display: none; }
  .srv-card:hover .srv-icon { transform: none; }
}

/* ============================================================
   BIENVENIDA: la portada con un card de cristal encima (/admisiones)
   ============================================================ */
.bienv-section { padding-bottom: 0; }
.bienv {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  /* La foto es 2.33 apaisada. En movil ese ratio deja una tira de 150px de alto
     donde no se ve nada, asi que alli se recorta a 4/3 con object-fit. */
  aspect-ratio: 2.33 / 1;
  background: var(--ink);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.bienv-foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* cover SIEMPRE al rellenar una caja de alto definido: sin esto la foto se
     estira y deforma a las familias */
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.bienv:hover .bienv-foto { transform: scale(1); }
/* un velo suave: sin el, el cristal sobre una foto clara no se lee */
.bienv::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 55%, transparent), transparent 65%);
  pointer-events: none;
}
.bienv-glass {
  position: relative; z-index: 2;
  padding: var(--sp-32) var(--sp-48);
  border-radius: var(--radius-large);
  text-align: center;
  /* el cristal */
  background: color-mix(in srgb, #fff 14%, transparent);
  border: 1px solid color-mix(in srgb, #fff 30%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
          backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--ink) 30%, transparent);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1),
              background .6s ease, border-color .6s ease;
}
.bienv:hover .bienv-glass {
  transform: translateY(-4px);
  background: color-mix(in srgb, #fff 18%, transparent);
  border-color: color-mix(in srgb, #fff 45%, transparent);
}
/* Si el navegador no hace backdrop-filter (Firefox viejo), el cristal seria un
   rectangulo casi transparente y el texto no se leeria: se compensa con un
   fondo mas solido. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bienv-glass { background: color-mix(in srgb, var(--ink) 55%, transparent); }
}
.bienv-eyebrow {
  /* el resto se queda blanco, como pidio Seb: solo el titular cambia */
  color: #fff;
  font-size: var(--fs-body-3);
  font-weight: var(--w-medium);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
  opacity: .9;
}
.bienv-titulo {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: var(--w-heading);
  color: #fff;
  margin: 0;
}
.bienv-word { white-space: nowrap; }
/* .bienv-l y no `span` a secas: las palabras tambien van envueltas en un span y
   ese no tiene --c ni --i. Cogerlo aqui dejaba un calc() con una variable
   indefinida, que invalida la declaracion entera sin avisar. */
.bienv-l {
  display: inline-block;
  color: #fff;
  /* el retraso encadenado hace que los colores entren en cascada y no de golpe */
  transition: color .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 22ms);
}
.bienv:hover .bienv-l {
  color: var(--c);
  transform: translateY(-3px);
}
/* En tactil no existe el hover: si se dejara solo en :hover, media web no veria
   nunca los colores. Alli van puestos de entrada. */
@media (hover: none) {
  .bienv-l { color: var(--c); }
  .bienv-foto { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bienv-foto, .bienv-glass, .bienv-l { transition-duration: .01ms; }
  .bienv:hover .bienv-glass, .bienv:hover .bienv-l { transform: none; }
}
@media (max-width: 860px) {
  .bienv { aspect-ratio: 4 / 3; }
  .bienv-glass { padding: var(--sp-24) var(--sp-20); }
}

/* ============ Categorías de nivel (ronda jul-2026) ============ */
.level-cat { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.level-cat-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.level-cat-ico svg { width: 100%; height: 100%; }
.level-cat-name { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.level-soon {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 10px 18px; border-radius: 99px; cursor: default;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  font-size: 13px; font-weight: 700;
}
.level-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mustard); animation: soonPulse 2s ease-in-out infinite; }
@keyframes soonPulse { 0%,100% { opacity: .4 } 50% { opacity: 1 } }

/* hero nosotros: la foto un poco a la izquierda y arriba (ronda jul-2026) */
@media (min-width: 901px) {
  .page-hero.has-figure .hero-figure { transform: translate(-28px, -24px); }
}

/* ============ Nuestra proyección (ronda jul-2026) ============ */
.proy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proy-card { background: #fff; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 34px color-mix(in srgb, var(--ink) 7%, transparent); }
.proy-visual { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 6px; }
.proy-visual.is-os { display: grid; place-items: center; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--ink), #1c3a8f 60%, #2f5596); color: var(--cream); }
.proy-visual.is-os svg { width: 34%; height: auto; opacity: .95; }
.proy-flag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 99px; }
.proy-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: color-mix(in srgb, var(--sky) 24%, transparent); color: #2f5596; padding: 6px 12px; border-radius: 99px; }
.proy-tag.is-soon { background: color-mix(in srgb, var(--mustard) 30%, transparent); color: #8a6100; }
@media (max-width: 860px) { .proy-grid { grid-template-columns: 1fr; } }

/* ============ Cobertura de rutas (ronda jul-2026) ============ */
.rutas-box { background: color-mix(in srgb, var(--sky) 14%, #fff); border-radius: 22px; padding: 28px; }
.rutas-box h3 { color: var(--ink); margin-bottom: 8px; }
.rutas-box > p { color: color-mix(in srgb, var(--ink) 66%, transparent); max-width: 62ch; }
.rutas-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; margin-top: 18px; align-items: end; }
.rutas-form .field { margin: 0; }
@media (max-width: 860px) { .rutas-form { grid-template-columns: 1fr; } }

/* ============ Documentos en cards (ronda jul-2026) ============ */
.docs-app { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.docs-cat { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 6%, transparent); }
.docs-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.docs-cat-ico { font-size: 20px; }
.docs-cat-head h3 { color: var(--ink); }
.docs-cat-n { margin-left: auto; font-size: 11.5px; font-weight: 800; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); padding: 3px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.docs-empty { border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 14px; padding: 16px; text-align: center; }
.docs-empty p { font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.docs-empty span { font-size: 12px; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.docs-item { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 14px; text-decoration: none; transition: background .2s; }
.docs-item:hover { background: color-mix(in srgb, var(--sky) 16%, #fff); }
.docs-item-fmt { grid-row: span 2; font-size: 10px; font-weight: 800; letter-spacing: .05em; background: var(--ink); color: var(--cream); padding: 6px 8px; border-radius: 8px; }
.docs-item-nombre { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.docs-item-fecha { grid-column: 2; font-size: 11px; color: color-mix(in srgb, var(--ink) 50%, transparent); }
.docs-item-go { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--gsna-red); white-space: nowrap; }

/* ============ Galería masonry (ronda jul-2026) ============ */
.gal-masonry { columns: 3 300px; column-gap: 16px; margin-top: 36px; clear: both; }
.gal-item { margin: 0 0 16px; break-inside: avoid; border-radius: 16px; overflow: hidden; }
.gal-item img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform .4s cubic-bezier(.3,.7,.2,1); }
.gal-item img:hover { transform: scale(1.03); }
.gal-lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(4px); cursor: zoom-out; }
.gal-lightbox img { max-width: min(1100px, 100%); max-height: 90vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gal-lb-x { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.gal-lightbox[hidden] { display: none; }

/* proyección: tipografía de tarjeta, no de sección (feedback 24 jul) */
.proy-card h3 { font-size: 22px; line-height: 1.2; }
.proy-card .proy-tag { font-size: 10.5px; }
.proy-card p { font-size: 14.5px; line-height: 1.6; }

/* ============ Timeline HORIZONTAL (pedido de Sandra, 24 jul) ============ */
/* Una sola línea recta: los hitos avanzan hacia la derecha sobre un riel.
   En pantallas angostas se scrollea de lado con snap. */
.timeline.is-h {
  display: flex; gap: 0; position: relative;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 26px 4px 8px;
  -webkit-overflow-scrolling: touch;
}
.timeline.is-h::before {
  content: ""; position: absolute; top: 31px; left: 0; right: 0;
  height: 2px; min-width: 100%;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}
.timeline.is-h .timeline-item {
  flex: 1 0 240px; max-width: 320px; scroll-snap-align: start;
  display: block; padding: 0 22px 0 0; position: relative;
}
.timeline.is-h .timeline-item::before {
  content: ""; position: absolute; top: -1px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gsna-red); border: 3px solid var(--bg-base, #F6F3F0);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gsna-red) 40%, transparent);
}
.timeline.is-h .timeline-year {
  display: block; margin: 22px 0 8px;
  font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1;
}
.timeline.is-h .timeline-body h3 { font-size: 16px; margin-bottom: 6px; }
.timeline.is-h .timeline-body p { font-size: 13.5px; line-height: 1.55; }
/* el hito cumplido conserva su sello */
.timeline.is-h .timeline-milestone { margin-top: 6px; }

/* ============ Contenido dinámico del CMS (ronda 24 jul) ============ */
.news-media.has-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 14px; }
.news-media.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item { position: relative; }
.gal-album {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 99px; pointer-events: none;
}

/* ============ Timeline horizontal v2 (rediseño 24 jul) ============ */
.tlh { position: relative; margin-top: 34px; }
.tlh-line {
  position: absolute; top: 7px; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gsna-red), var(--mustard) 45%, var(--sky) 100%);
  transform-origin: left center;
}
.js .tlh-line.reveal { opacity: 1 !important; transform: scaleX(0); transition: none; }
.js .tlh-line.reveal.is-visible { transform: scaleX(1); transition: transform 1.6s cubic-bezier(.25,.7,.2,1) .15s; }
.tlh-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr);
  gap: 30px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 2px 10px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tlh-item { position: relative; scroll-snap-align: start; padding-top: 34px; }
.tlh-dot {
  position: absolute; top: 0; left: 0;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg-base, #F6F3F0); border: 4px solid var(--gsna-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gsna-red) 15%, transparent);
}
.tlh-year { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 10px; letter-spacing: -0.01em; }
.tlh-badge {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--mint); color: #1d4a35; font-size: 12px; font-weight: 800;
}
.tlh-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 7px; }
.tlh-text { font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 62%, transparent); }
@media (max-width: 700px) {
  .tlh-track { grid-auto-columns: 78%; }
}

/* ============ Timeline v2.1 — pulido (24 jul) ============ */
/* un color de marca por época */
.tlh-item:nth-child(1) { --tc: var(--gsna-red); }
.tlh-item:nth-child(2) { --tc: var(--mustard); }
.tlh-item:nth-child(3) { --tc: var(--sky); }
.tlh-item:nth-child(4) { --tc: var(--mint); }
.tlh-item:nth-child(5) { --tc: var(--lilac, #B48CD9); }
.tlh-dot { border-color: var(--tc, var(--gsna-red)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc, var(--gsna-red)) 16%, transparent); }

/* los puntos hacen "pop" después de que la línea se dibuja */
.js .tlh-item.reveal .tlh-dot { scale: 0; }
.js .tlh-item.reveal.is-visible .tlh-dot {
  scale: 1;
  transition: scale .5s cubic-bezier(.34,1.5,.3,1);
  transition-delay: calc(.5s + var(--reveal-delay, 0s));
}

/* "Hoy" late: es el presente */
.tlh-item:last-child .tlh-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--tc); opacity: 0;
  animation: tlhPulso 2.4s ease-out infinite .8s;
}
@keyframes tlhPulso { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tlh-item:last-child .tlh-dot::after { animation: none; } }

/* hover: la época se levanta y su año toma el color */
.tlh-item { transition: translate .35s cubic-bezier(.3,.7,.2,1); border-radius: 12px; }
.tlh-item:hover { translate: 0 -5px; }
.tlh-item:hover .tlh-year { color: color-mix(in srgb, var(--tc) 60%, var(--ink)); }
.tlh-year { transition: color .3s; }

/* arrastre en desktop + pista de que hay más contenido */
.tlh-track { cursor: grab; user-select: none; -webkit-user-select: none; }
.tlh-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tlh { --fadew: 44px; }
.tlh::after {
  content: ""; position: absolute; top: 0; right: -2px; bottom: 10px; width: var(--fadew);
  background: linear-gradient(90deg, transparent, var(--bg-base, #F6F3F0));
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.tlh.has-mas::after { opacity: 1; }

/* proyección con imágenes reales + sello Cambridge responsive (24 jul) */
.proy-visual.is-os.has-img { position: relative; }
.proy-visual.is-os.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proy-visual.is-os.has-img svg { display: none; }
@media (max-width: 767px) {
  .footer-logo-cambridge { width: 62px; }
}
