/*
 * Páginas que cuentan qué es la red. Cada una tiene su propia personalidad:
 *   .vj  Portada, el viaje de la Escuela de 1895 a la EINA, con fotos que cambian de época al bajar.
 *   .rp  Portada, bloque «La red son las personas»: un muro de caras que se desliza y las historias
 *        en un carrusel.
 *   .rm  Mentoría: una mentoría contada en un hilo de correos y una carta a quien quiere ser mentor.
 *   .ra  Qué puedes aportar: seis verbos en rejilla, cada uno con su icono.
 *   .rx  Alumni por el mundo: el mapa como protagonista.
 * Lo común es mínimo: el contenedor, el botón principal y la aparición al entrar en pantalla.
 * Las animaciones reciben su avance en --p desde assets/js/escenas.js.
 */
.rd, .rp { overflow-x: clip; }
.rd-cont { max-width: calc(var(--pagina-ancho) + 2 * var(--pagina-borde)); margin: 0 auto; padding-left: var(--pagina-borde); padding-right: var(--pagina-borde); }
.rd-fija { position: relative; }
.rd-fija > .rd-pegado { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.rd-boton { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-family: var(--font-near); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.rd-boton--oro { background: var(--naranja); color: #000; box-shadow: 0 14px 30px -14px rgba(var(--naranja-rgb), .8); }
.rd-boton--oro:hover { transform: translateY(-2px); }
.rd-boton:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.rd-boton .arw { transition: transform .2s; }
.rd-boton:hover .arw { transform: translateX(4px); }
[data-aparece] { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .75, .2, 1), transform .8s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-aparece].es-visible { opacity: 1; transform: none; }

/* PORTADA: La red son las personas */
.rp { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); background: var(--bg); scroll-margin-top: 64px; }
.rp-intro { text-align: center; }
.rp-intro h2 { font-family: var(--font-inst); font-size: clamp(38px, 6vw, 80px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--tinta); }
.rp-intro p { margin: 18px auto 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--gris); }

/* Muro de caras: cada fila se desplaza en un sentido según el avance de la escena. */
.rp-muro { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rp-fila { overflow: hidden; padding: 4px 0; }
.rp-pista { display: flex; gap: 14px; width: max-content; will-change: transform; }
.rp-fila--0 .rp-pista { transform: translateX(calc(var(--p, .5) * -30%)); }
.rp-fila--1 .rp-pista { transform: translateX(calc(-34% + var(--p, .5) * 26%)); }
.rp-fila--2 .rp-pista { transform: translateX(calc(-6% - var(--p, .5) * 22%)); }
.rp-cara { display: flex; align-items: center; gap: 12px; padding: 9px 22px 9px 9px; border-radius: 999px; background: var(--bgcard); border: 1px solid var(--linea); text-decoration: none; color: var(--tinta); white-space: nowrap; transition: border-color .25s, box-shadow .25s; }
.rp-cara:hover { border-color: var(--naranja); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.rp-cara b { display: block; font-family: var(--font-inst); font-size: 15px; font-weight: 700; }
.rp-cara small { display: block; font-size: 12.5px; color: var(--gris); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }
.rp-foto { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--papel-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-inst); color: var(--azul); overflow: hidden; }
.rp-foto img { width: 100%; height: 100%; object-fit: cover; }

/* LA HISTORIA: línea del tiempo que se recorre con clic. Texto oscuro sobre fondo claro; a la
   derecha, un álbum en el que cada foto entra girando y se apila sobre las anteriores; abajo, la línea
   del tiempo, proporcional a los años: sus años son botones y se rellena al avanzar. */
.viaje { padding: clamp(70px, 9vw, 120px) 0; background: var(--papel); overflow-x: clip; }
.vj-in { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); }
.vj-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.vj-cabecera > div:first-child { display: grid; gap: 10px; }
.vj-controles { flex: none; display: flex; align-items: center; gap: 12px; }
.vj-controles button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--linea-2); background: var(--bgcard); color: var(--tinta); font-size: 20px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.vj-controles button:hover:not(:disabled) { background: var(--negro); color: var(--naranja); border-color: var(--negro); }
.vj-controles button:disabled { opacity: .35; cursor: default; }
.vj-controles button:focus-visible, .vj-hito:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.vj-contador { min-width: 52px; text-align: center; font-size: 14px; font-weight: 700; color: var(--gris); font-variant-numeric: tabular-nums; }
.vj-cabecera h2 { font-family: var(--font-inst); font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tinta); }
.vj-cabecera p { max-width: 50ch; font-size: 16px; line-height: 1.55; color: var(--gris); }
.vj-escena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 80px); align-items: center; min-height: 460px; }
/* Todas las épocas ocupan la misma celda: el bloque mide lo que la más larga y ningún texto se corta */
.vj-textos { display: grid; align-items: center; }
.vj-cap { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.vj-cap.es-activo { opacity: 1; visibility: visible; }
.vj-anio { display: flex; font-family: var(--font-inst); font-size: clamp(76px, 10vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: .85; color: var(--naranja); overflow: hidden; padding-bottom: .04em; }
.vj-anio i { font-style: normal; display: inline-block; transform: translateY(105%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 70ms); }
.vj-cap.es-activo .vj-anio i { transform: none; }
.vj-cap h3 { margin-top: 16px; font-family: var(--font-inst); font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--tinta); opacity: 0; transform: translateY(20px); transition: opacity .6s .15s, transform .7s .15s cubic-bezier(.2, .75, .2, 1); }
.vj-largo { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--azul); opacity: 0; transition: opacity .6s .25s; }
.vj-texto { margin-top: 16px; max-width: 44ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--gris); opacity: 0; transform: translateY(20px); transition: opacity .6s .3s, transform .7s .3s cubic-bezier(.2, .75, .2, 1); }
.vj-cap.es-activo h3, .vj-cap.es-activo .vj-largo, .vj-cap.es-activo .vj-texto { opacity: 1; transform: none; }
.vj-cap .rd-boton { align-self: flex-start; margin-top: 24px; opacity: 0; transition: opacity .6s .45s; }
.vj-cap.es-activo .rd-boton { opacity: 1; }

/* El álbum: cada foto llega desde la derecha girando; las anteriores quedan debajo, algo más pequeñas */
.vj-derecha { position: relative; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.vj-album { position: relative; width: min(100%, 560px); aspect-ratio: 4 / 3; transition: transform .9s cubic-bezier(.2, .75, .2, 1), opacity .6s; }
.vj-foto { position: absolute; inset: 0; z-index: var(--z); margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 14px 14px 0; background: #FFFFFF; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(26,25,22,.5), 0 2px 6px rgba(26,25,22,.08);
  opacity: 0; transform: translate(70%, 12%) rotate(18deg) scale(.9); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .8s; }
/* La foto llena el marco; el encuadre se centra algo arriba, donde suelen estar las caras */
.vj-foto img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: 50% 30%; background: #F1EFEA; border-radius: 2px; }
.vj-foto figcaption { padding: 12px 4px 14px; font-size: 13.5px; font-weight: 600; color: #4A4740; text-align: center; }
.vj-foto.es-activo { opacity: 1; transform: rotate(var(--giro)); }
.vj-foto.es-pasado { opacity: 1; transform: translate(-7%, -5%) rotate(calc(var(--giro) - 5deg)) scale(.9); filter: brightness(.88) saturate(.8); }
.vj-foto:first-child img { filter: sepia(.35); }
/* Fichas de archivo: cuando no hay foto, el dato escrito como en una ficha antigua */
.vj-ficha { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; background: repeating-linear-gradient(180deg, #FBF7EC 0 31px, #E9E1CC 31px 32px); border-radius: 2px; color: #3B3428; }
.vj-ficha b { font-family: var(--font-inst); font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #8A5A00; }
.vj-ficha span { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(17px, 1.6vw, 22px); font-style: italic; line-height: 1.4; }

/* La línea del tiempo: las épocas a la misma distancia, con el año y su nombre debajo, bien separados */
.vj-linea { padding: 30px 0 0; }
.vj-pista { position: relative; height: 4px; margin: 0 clamp(30px, 5vw, 70px) 104px; border-radius: 2px; background: var(--linea-2); }
.vj-relleno { position: absolute; left: 0; top: 0; bottom: 0; width: var(--avance, 0%); border-radius: 2px; background: var(--naranja); transition: width .9s cubic-bezier(.6, 0, .2, 1); }
.vj-hito { position: absolute; left: var(--x); top: 50%; translate: -50% -14px; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 130px; padding: 6px 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.vj-hito i { width: 16px; height: 16px; border-radius: 4px; background: var(--papel); border: 2px solid var(--linea-2); transition: background .4s .3s, border-color .4s .3s, transform .4s .3s cubic-bezier(.3, 1.6, .5, 1); }
.vj-hito em { font-style: normal; font-family: var(--font-inst); font-size: 15px; font-weight: 700; line-height: 1; color: var(--gris); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .3s, transform .3s; }
.vj-hito small { max-width: 100%; margin-top: -4px; font-size: 12.5px; line-height: 1.3; color: var(--gris); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .7; transition: opacity .3s, color .3s; }
.vj-hito:hover i { border-color: var(--naranja); transform: scale(1.2); }
.vj-hito:hover em, .vj-hito:hover small { color: var(--tinta); opacity: 1; }
.vj-hito.es-pasado i { background: var(--naranja); border-color: var(--naranja); }
.vj-hito.es-activo i { background: var(--naranja); border-color: var(--naranja); transform: scale(1.4); box-shadow: 0 0 0 6px rgba(237, 171, 0, .18); }
.vj-hito.es-activo em { color: var(--tinta); transform: translateY(2px) scale(1.12); }
.vj-hito.es-activo small { color: var(--tinta); opacity: 1; font-weight: 600; }
.vj-album[data-paso] { cursor: pointer; }
@media (max-width: 900px) {
  .vj-cabecera { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vj-cabecera p { display: none; }
  .vj-cabecera h2 { font-size: 24px; }
  .vj-escena { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; min-height: 0; }
  .vj-derecha { order: -1; min-height: 0; height: 36vh; }
  .vj-album { width: min(100%, calc(34vh * 4 / 3)); }
  .vj-textos { min-height: 0; }
  .vj-anio { font-size: clamp(56px, 16vw, 90px); }
  .vj-cap h3 { font-size: clamp(26px, 7vw, 36px); margin-top: 8px; }
  .vj-texto { margin-top: 10px; font-size: 15.5px; }
  .vj-pista { margin: 0 18px 46px; }
  .vj-hito { width: 48px; gap: 10px; }
  .vj-hito em { font-size: 12.5px; }
  .vj-hito.es-activo em { transform: translateY(2px) scale(1.08); }
  .vj-hito small { display: none; }
}

/* POR QUÉ UNIRTE: un bloque por motivo que se recorre bajando con normalidad, foto a un lado y texto
   al otro (alternando). Al entrar, la foto se descubre de abajo arriba y el texto sube; mientras bajas,
   la imagen se desplaza dentro de su marco y el número grande va en sentido contrario (--p). */
.pq { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); background: var(--bg); }
.pq-cab { max-width: 720px; margin-bottom: clamp(40px, 6vw, 80px); }
.pq-cab h2 { font-family: var(--font-inst); font-size: var(--titulo-pagina); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--tinta); }
.pq-cab p { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--gris); }
.pq-bloque { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 6vw, 96px); align-items: center; padding: clamp(36px, 6vw, 80px) 0; }
.pq-bloque--inv .pq-foto { order: 2; }
.pq-foto { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; transition: box-shadow 1s .3s; }
.pq-foto.es-visible { box-shadow: 0 40px 80px -50px rgba(26,25,22,.55); }
/* El recorte va en la imagen y no en el marco: un elemento recortado a cero no cuenta como visible y
   nunca llegaría a aparecer. */
.pq-foto[data-aparece] { opacity: 1; transform: none; }
.pq-foto[data-aparece] img { clip-path: inset(45% 0 0 0); opacity: .4; transition: clip-path .6s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.pq-foto.es-visible img { opacity: 1; }
.pq-foto.es-visible img { clip-path: inset(0 0 0 0); }
.pq-foto img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; transform: translateY(calc((.5 - var(--p, .5)) * 14%)) scale(1.04); will-change: transform; }
.pq-dato { position: absolute; left: 20px; bottom: 20px; padding: 11px 17px; border-radius: 999px; background: rgba(255,255,255,.95); color: #1A1916; font-weight: 700; font-size: 14.5px; box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px); transition: opacity .4s .35s, transform .5s .35s cubic-bezier(.3, 1.4, .5, 1); }
.pq-dato::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 2px; background: var(--naranja); }
.pq-foto.es-visible .pq-dato { opacity: 1; transform: none; }
.pq-txt { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pq-num { font-family: var(--font-inst); font-size: clamp(80px, 10vw, 150px); font-weight: 800; letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--naranja); transform: translateY(calc((var(--p, .5) - .5) * -80px)); }
.pq-txt small { font-size: 14.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gris); }
.pq-txt h3 { font-family: var(--font-inst); font-size: clamp(32px, 3.8vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--tinta); }
.pq-txt p { max-width: 44ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--gris); }
.pq-txt a { align-self: flex-start; margin-top: 4px; font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--naranja); padding-bottom: 2px; }
.pq-txt a span { display: inline-block; transition: transform .25s; }
.pq-txt a:hover span { transform: translateX(4px); }
.pq-final { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding-top: clamp(30px, 5vw, 60px); text-align: center; }
.pq-final p { font-family: var(--font-inst); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--tinta); }
@media (max-width: 860px) {
  .pq-bloque { grid-template-columns: 1fr; gap: 22px; }
  .pq-bloque--inv .pq-foto { order: 0; }
  .pq-num { font-size: 64px; transform: none; }
}
.rd-reducido .pq-foto[data-aparece] img { clip-path: none; }
.rd-reducido .pq-foto img, .rd-reducido .pq-num { transform: none; }
.rd-reducido .pq-dato { opacity: 1; transform: none; }

/* Historias: carrusel que se arrastra, alineado con la retícula y que sale por la derecha */
.rp-historias { margin-top: clamp(80px, 10vw, 130px); }
.rp-hist-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.rp-hist-cab h3 { font-family: var(--font-inst); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; color: var(--tinta); }
.rp-hist-flechas { display: flex; gap: 8px; }
.rp-hist-flechas button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea-2); background: var(--bgcard); color: var(--tinta); font-size: 18px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.rp-hist-flechas button:hover { background: var(--negro); color: var(--naranja); border-color: var(--negro); }
.rp-hist-flechas button:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.rp-hist-pista { display: flex; gap: 20px; margin-top: 26px; padding: 6px max(var(--pagina-borde), calc((100% - var(--pagina-ancho)) / 2)) 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--pagina-borde), calc((100% - var(--pagina-ancho)) / 2)); scrollbar-width: none; cursor: grab; }
.rp-hist-pista::-webkit-scrollbar { display: none; }
.rp-hist-pista.arrastrando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rp-hist-pista:focus-visible { outline: 3px solid var(--naranja); outline-offset: -3px; }
.rp-hist { flex: none; width: min(78vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--bgcard); border: 1px solid var(--linea); text-decoration: none; color: var(--tinta); transition: transform .4s cubic-bezier(.2, .75, .2, 1), box-shadow .4s; -webkit-user-drag: none; }
.rp-hist:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(26,25,22,.5); }
.rp-hist-img { display: block; aspect-ratio: 16 / 10; background: var(--papel-2) center / cover no-repeat; transition: transform .8s cubic-bezier(.2, .75, .2, 1); }
.rp-hist-img.sin-imagen { background: linear-gradient(135deg, var(--azulSolid), #2B4A85); }
.rp-hist:hover .rp-hist-img { transform: scale(1.04); }
.rp-hist-txt { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; }
.rp-hist-txt b { font-family: var(--font-inst); font-size: 20px; font-weight: 700; line-height: 1.25; }
.rp-hist-txt small { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gris); }
.rp-hist-txt .rp-foto { width: 30px; height: 30px; font-size: 11px; }
@media (max-width: 760px) {
}
@media (max-width: 760px) {
}

/* MENTORÍA: una conversación */
.rm-hero { padding-top: clamp(14px, 2.4vw, 28px); padding-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.rm-hero h1 { font-family: var(--font-inst); font-size: var(--titulo-pagina); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--tinta); max-width: 16ch; margin: 0 auto; }
.rm-hero h1 em { font-style: normal; color: var(--azul); }
.rm-hero > p { margin: 14px auto 0; max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--gris); }
.rm-pareja { margin-top: 30px; display: flex; align-items: center; justify-content: center; }
.rm-pareja .rm-foto { width: 84px; height: 84px; animation: rm-acercar 1.4s cubic-bezier(.2, .75, .2, 1) both; }
.rm-pareja .rm-foto:last-child { animation-name: rm-acercar-2; }
.rm-hilo { width: clamp(80px, 16vw, 200px); height: 3px; background: repeating-linear-gradient(90deg, var(--naranja) 0 10px, transparent 10px 18px); animation: rm-hilo 1.2s .5s both; transform-origin: left; }
@keyframes rm-acercar { from { transform: translateX(-60px); opacity: 0; } }
@keyframes rm-acercar-2 { from { transform: translateX(60px); opacity: 0; } }
@keyframes rm-hilo { from { transform: scaleX(0); } }
.rm-acciones { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.rm-enlace, .rm-dudas a { font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--azul); }
.rm-foto { border-radius: 50%; flex: none; background: var(--papel-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font: 800 20px/1 var(--font-inst); color: var(--azul); box-shadow: 0 0 0 5px var(--bg); overflow: hidden; }
.rm-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Cómo funciona: tres pasos unidos por una línea que se dibuja al aparecer */
.rm-pasos { padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(60px, 7vw, 90px); }
.rm-pasos h2 { font-family: var(--font-inst); font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tinta); }
.rm-pasos ol { position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.rm-pasos ol::before { content: ""; position: absolute; left: 28px; right: 16%; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--naranja) 0 8px, transparent 8px 14px); transform-origin: left; transform: scaleX(0); transition: transform 1.4s .3s cubic-bezier(.6, 0, .2, 1); }
.rm-pasos ol.es-visible::before { transform: scaleX(1); }
.rm-pasos li { position: relative; }
.rm-pasos li b { display: block; margin-top: 20px; font-family: var(--font-inst); font-size: 21px; font-weight: 800; color: var(--tinta); }
.rm-pasos li p { margin-top: 8px; color: var(--gris); font-size: 16px; line-height: 1.6; max-width: 34ch; }
.rm-paso-ico { position: relative; z-index: 1; flex: none; width: 56px; height: 56px; border-radius: 18px; background: var(--azulSolid); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--bg); }
.rm-paso-ico svg { width: 24px; height: 24px; }
.rm-pasos ol.es-visible .rm-paso-ico { animation: rm-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i, 0) * .35s + .2s); }
.rm-ventajas .rm-paso-ico { background: rgba(var(--naranja-rgb), .16); color: var(--naranja); box-shadow: none; width: 48px; height: 48px; border-radius: 15px; }
@keyframes rm-pop { from { transform: scale(.3); opacity: 0; } }

/* La conversación: los mensajes aparecen uno a uno mientras la escena está fija. */
.rm-charla { height: 240vh; }
.rm-charla .rd-pegado { background: var(--papel); }
.rm-charla-in { width: 100%; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.rm-charla-txt h2 { font-family: var(--font-inst); font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tinta); }
.rm-charla-txt p { margin-top: 16px; color: var(--gris); font-size: 17px; line-height: 1.6; max-width: 36ch; }
.rm-buzon { background: var(--bgcard); border-radius: 22px; border: 1px solid var(--linea); box-shadow: 0 40px 80px -40px rgba(26,25,22,.45); width: 100%; max-width: 500px; height: min(68vh, 600px); display: flex; flex-direction: column; overflow: hidden; }
.rm-buzon-cab { padding: 16px 22px; border-bottom: 1px solid var(--linea); font-weight: 700; font-size: 14px; color: var(--tinta); background: var(--papel); }
.rm-hilo-msjs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px; overflow: hidden; }
.rm-correo, .rm-aviso { display: none; }
.rm-correo.es-pasado, .rm-correo.es-activo, .rm-aviso.es-pasado, .rm-aviso.es-activo { display: block; }
.rm-correo.es-activo, .rm-aviso.es-activo { animation: rm-llega .5s cubic-bezier(.2, .75, .2, 1); }
@keyframes rm-llega { from { opacity: 0; transform: translateY(16px); } }
.rm-correo { border: 1px solid var(--linea); border-left: 3px solid var(--azul); border-radius: 6px 14px 14px 6px; padding: 12px 16px; background: var(--bg); }
.rm-correo--ella { border-left-color: var(--naranja); }
.rm-correo--solicitud { border-left-color: var(--linea-2); border-style: dashed; border-left-style: solid; }
.rm-correo header { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--gris); }
.rm-correo header b { color: var(--tinta); font-weight: 700; }
.rm-correo p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--tinta); }
.rm-correo.es-pasado p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--gris); }
.rm-aviso { align-self: center; max-width: 92%; color: var(--gris); font-size: 13px; text-align: center; padding: 2px 8px; }

/* Mentoras y mentores reales */
.rm-gente { padding-top: clamp(70px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.rm-gente.sin-mentores { grid-template-columns: 1fr; }
.rm-temas { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rm-temas li { padding: 10px 16px; border-radius: 999px; background: var(--bgcard); border: 1px solid var(--linea); font-size: 15px; font-weight: 600; color: var(--tinta); animation: rm-tema .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i, 0) * 50ms + .1s); animation-play-state: paused; transition: border-color .25s, background .25s; }
.rm-temas-col:has(.es-visible) .rm-temas li { animation-play-state: running; }
.rm-temas li:nth-child(-n+3) { background: rgba(34, 61, 113, .08); border-color: transparent; color: var(--azul); }
.rm-temas li:hover { border-color: var(--azul); }
@keyframes rm-tema { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.rm-gente h2, .rm-dudas h2 { font-family: var(--font-inst); font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tinta); }
.rm-sub { margin-top: 14px; color: var(--gris); font-size: 17px; }
.rm-mentores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rm-mentor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 18px 24px; border-radius: 24px; text-decoration: none; color: var(--tinta); background: var(--bgcard); border: 1px solid var(--linea); transition: transform .3s, border-color .3s, opacity .8s; }
.rm-mentor:hover { transform: translateY(-4px); border-color: var(--azul); }
.rm-mentor .rm-foto { width: 88px; height: 88px; margin-bottom: 10px; }
.rm-mentor b { font-family: var(--font-inst); font-size: 18px; }
.rm-mentor small { color: var(--gris); font-size: 13.5px; line-height: 1.45; }
.rm-areas { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rm-areas i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 61, 113, .08); color: var(--azul); }
@media (max-width: 1000px) { .rm-gente, .rm-carta-in { grid-template-columns: 1fr; } }

/* La carta */
.rm-carta-sec { margin-top: clamp(70px, 8vw, 110px); padding: clamp(60px, 7vw, 100px) 0; background: linear-gradient(var(--bg), var(--papel-2)); }
.rm-carta-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.rm-ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.rm-ventajas li { display: flex; gap: 16px; align-items: flex-start; }
.rm-ventajas b { display: block; font-family: var(--font-inst); font-size: 19px; font-weight: 800; color: var(--tinta); }
.rm-ventajas p { margin-top: 4px; color: var(--gris); font-size: 15.5px; line-height: 1.55; }
.rm-carta { background: var(--bgcard); padding: clamp(30px, 5vw, 60px); border-radius: 4px; box-shadow: 0 50px 90px -50px rgba(26,25,22,.45); }
.rm-carta.es-visible { transform: rotate(-.6deg); }
.rm-carta p { font-size: 18px; line-height: 1.8; color: var(--tinta); margin-top: 18px; }
.rm-carta .rm-saludo { font-family: var(--font-inst); font-size: 26px; font-weight: 700; margin-top: 0; }
.rm-carta .rm-firma { margin-bottom: 28px; color: var(--gris); }

/* Dudas: preguntas y respuestas en dos columnas, sin acordeón */
.rm-dudas { padding-top: clamp(70px, 8vw, 110px); padding-bottom: clamp(70px, 8vw, 110px); }
.rm-dudas dl { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 60px; }
.rm-dudas dt { font-family: var(--font-inst); font-size: 21px; font-weight: 800; color: var(--tinta); }
.rm-dudas dd { margin: 8px 0 0; color: var(--gris); font-size: 16.5px; line-height: 1.65; }
@media (max-width: 760px) {
  .rm-charla-in { grid-template-columns: 1fr; gap: 18px; }
  .rm-charla-txt p { display: none; }
  .rm-buzon { height: 62vh; margin: 0 auto; }
  .rm-dudas dl { grid-template-columns: 1fr; }
  .rm-pasos ol { grid-template-columns: 1fr; }
  .rm-pasos ol::before { display: none; }
}
@media (max-width: 520px) { .rm-mentores { grid-template-columns: 1fr; } }

/* QUÉ PUEDES APORTAR: seis tarjetas en rejilla, cada una con su icono */
.ra-hero { padding-top: clamp(14px, 2.4vw, 28px); padding-bottom: clamp(28px, 4vw, 44px); }
.ra-hero h1 { font-family: var(--font-inst); font-size: var(--titulo-pagina); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--tinta); display: flex; }
.ra-hero h1 span { display: inline-block; animation: ra-letra .9s cubic-bezier(.2, .75, .2, 1) both; }
.ra-hero h1 span:nth-child(2) { animation-delay: .1s; color: var(--naranja); }
@keyframes ra-letra { from { opacity: 0; transform: translateY(.4em); } }
.ra-hero p { margin-top: 14px; max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--gris); }

.ra-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 16px; }
.ra-carta { display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 24px; background: var(--bgcard); border: 1px solid var(--linea); transition: transform .35s cubic-bezier(.2, .75, .2, 1), box-shadow .35s, border-color .35s, opacity .8s calc(var(--i, 0) * 110ms); }
.ra-carta.es-visible:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(26,25,22,.45); border-color: rgba(var(--naranja-rgb), .55); }
.ra-ico { width: 56px; height: 56px; border-radius: 18px; background: rgba(var(--naranja-rgb), .14); color: var(--naranja); display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.ra-ico svg { width: 26px; height: 26px; }
.ra-carta:hover .ra-ico { background: var(--naranja); color: #000; }
.ra-carta:hover .ra-ico svg { animation: ra-gesto .6s ease; }
@keyframes ra-gesto { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }
.ra-carta h2 { margin-top: 22px; font-family: var(--font-inst); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--tinta); }
.ra-carta p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--gris); }
.ra-carta a { margin-top: auto; padding-top: 20px; align-self: flex-start; color: var(--tinta); font-weight: 700; font-size: 15px; text-decoration: none; }
.ra-carta a span { display: inline-block; color: var(--naranja); transition: transform .25s; }
.ra-carta a:hover span { transform: translateX(4px); }
@media (max-width: 1000px) { .ra-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ra-rejilla { grid-template-columns: 1fr; } }
.ra-cierre { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(70px, 9vw, 120px); text-align: center; }
.ra-cierre p { font-family: var(--font-inst); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--tinta); }
.ra-cierre em { font-style: normal; color: var(--naranja); }
.ra-cierre-b { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.ra-enlace { font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--linea-2); }
.ra-enlace:hover { border-color: var(--tinta); }

/* ALUMNI POR EL MUNDO: el mapa como protagonista */
.rx-hero { padding-top: clamp(14px, 2.4vw, 28px); padding-bottom: clamp(28px, 4vw, 44px); }
.rx-hero h1 { font-family: var(--font-inst); font-size: var(--titulo-pagina); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--tinta); }
.rx-hero p { margin-top: 14px; max-width: 56ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--gris); }
.rx-hero #mapa-resumen { color: var(--tinta); font-weight: 700; }
.rx-mapa-caja { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--linea); box-shadow: var(--elev); transform: scale(calc(.95 + var(--p, 1) * .05)); }
#mapa-alumni { height: min(72vh, 640px); background: var(--papel-2); }
#mapa-alumni .leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(.92) brightness(1.04); }
[data-theme="dark"] #mapa-alumni .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.82) brightness(.92); }
#mapa-alumni .leaflet-control-zoom a { color: #1A1916; }
.rx-mapa-aviso { position: absolute; left: 18px; bottom: 18px; z-index: 500; background: var(--bgcard); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: var(--gris); max-width: 320px; box-shadow: var(--elev); }
.rx-mapa-aviso:empty { display: none; }
.rd-pin { width: var(--t, 18px); height: var(--t, 18px); border-radius: 50%; background: var(--naranja); border: 3px solid #FFFFFF; box-shadow: 0 6px 16px -4px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #000; font: 800 12px/1 var(--font-near); position: relative; }
.rd-pin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--naranja); opacity: 0; animation: rx-onda 2.6s infinite; }
@keyframes rx-onda { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--elev); font-family: var(--font-near); }
.leaflet-popup-content { margin: 16px 18px; min-width: 200px; }
.rd-pop h4 { font-family: var(--font-inst); font-size: 18px; font-weight: 800; margin: 0; }
.rd-pop small { color: #6F6B62; }
.rd-pop ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.rd-pop a { color: #1A1916; text-decoration: none; font-weight: 600; }
.rd-pop a:hover { color: #B98300; }
.rx-sec { padding: clamp(60px, 8vw, 110px) 0; }
.rx-t { font-family: var(--font-inst); font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tinta); }
.rx-s { margin-top: 14px; color: var(--gris); font-size: 17px; line-height: 1.6; max-width: 60ch; }
.rx-dir { margin-top: 36px; }
.rx-destacados { padding-bottom: 0; }
.rx-destacados-grid { margin-top: 30px; }
.rx-dir .filters-bar { margin-bottom: 18px; }
.rx-empresas { margin-top: 64px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; border-top: 1px solid var(--linea); padding-top: 34px; }
.rx-sello { width: 54px; height: 54px; border-radius: 16px; background: var(--azulSolid); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.rx-sello svg { width: 26px; height: 26px; }
.rx-empresas h3 { font-family: var(--font-inst); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--tinta); }
.rx-empresas p { margin-top: 8px; color: var(--gris); line-height: 1.6; max-width: 72ch; }
.rx-final { text-align: center; padding-bottom: clamp(90px, 12vw, 150px); }
.rx-pin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--naranja); border: 4px solid #FFFFFF; box-shadow: 0 0 0 1px var(--linea), 0 10px 20px -8px rgba(0,0,0,.4); margin-bottom: 18px; animation: rx-caer 1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes rx-caer { from { transform: translateY(-40px); opacity: 0; } }
.rx-final h2 { font-family: var(--font-inst); font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.rx-final p { margin: 12px auto 26px; max-width: 54ch; color: var(--gris); line-height: 1.6; }
.rx-enlace { margin-left: 18px; font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--naranja); }
@media (max-width: 600px) { .rx-empresas { grid-template-columns: 1fr; } }

/* Movimiento reducido: todo en su estado final, sin escenas fijas */
.rd-reducido [data-aparece] { opacity: 1; transform: none; transition: none; }
.rd-reducido .rd-fija { height: auto !important; }
.rd-reducido .rd-fija > .rd-pegado { position: static; height: auto; padding: 80px 0; }
.rd-reducido .rm-correo, .rd-reducido .rm-aviso { display: block; animation: none; }
.rd-reducido .rm-correo p { display: block; -webkit-line-clamp: none; }
.rd-reducido .rm-temas li, .rd-reducido .rm-paso-ico { animation: none !important; }
.rd-reducido .rm-pasos ol::before { transform: scaleX(1); transition: none; }
.rd-reducido .rp-pista { transform: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
.rd-reducido .rp-cara[aria-hidden] { display: none; }
.rd-reducido .vj-cap, .rd-reducido .vj-cap *, .rd-reducido .vj-anio i, .rd-reducido .vj-foto, .rd-reducido .vj-relleno, .rd-reducido .vj-hito i { transition: none !important; }
.rd-reducido .ra-hero h1 span, .rd-reducido .rm-pareja .rm-foto, .rd-reducido .rm-hilo, .rd-reducido .rd-pin::before, .rd-reducido .rx-pin { animation: none; }
/* Título de Nuestros alumni: «Alumni» en el amarillo del logotipo EINA, que se ajusta a la altura de las letras */
.rx-marca { color: #EDAB00; white-space: nowrap; }
.rx-hero .eina-marca { height: .72em; top: -.02em; }

/* Por qué unirte: los motivos que no van en grande, en una fila compacta */
.pq-mas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 2.6vw, 30px); padding: clamp(20px, 4vw, 50px) 0 0; }
.pq-mini { display: flex; flex-direction: column; gap: 8px; }
.pq-mini-foto { position: relative; margin: 0 0 8px; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--papel-2); }
.pq-mini-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .75, .2, 1); }
.pq-mini:hover .pq-mini-foto img { transform: scale(1.04); }
.pq-mini-foto .pq-dato { left: 12px; bottom: 12px; padding: 8px 13px; font-size: 13px; opacity: 1; transform: none; }
.pq-mini small { font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gris); }
.pq-mini h3 { font-family: var(--font-inst); font-size: clamp(22px, 2vw, 27px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--tinta); }
.pq-mini p { font-size: 15.5px; line-height: 1.55; color: var(--gris); }
.pq-mini a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--tinta); text-decoration: none; border-bottom: 2px solid var(--naranja); }

/* Directorio: búsquedas rápidas por empresa y ciudad */
.rx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.rx-chips > span { font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gris); margin-right: 4px; }
.rx-chips .chip { min-height: 36px; }
.rx-chips .chip.on { background: var(--tinta); color: var(--bg); border-color: var(--tinta); }

/* Zonas táctiles de al menos 44 px en el móvil */
@media (max-width: 760px) {
  .pq-txt a { display: inline-flex; align-items: center; min-height: 44px; }
  .vj-hito { min-height: 44px; min-width: 44px; }
  .rx-chips .chip { min-height: 44px; }
}

/* Final de un título en amarillo */
.rd-oro { color: var(--naranja); }

/* Sin cabecera (título y entradilla vacíos): ni hueco ni margen de más */
.pq--sin-cabecera { padding-top: clamp(40px, 6vw, 80px); }
.vj-cabecera--sola { justify-content: flex-end; }
.pq-cab :is(h2, p):empty, .vj-cabecera :is(h2, p):empty { display: none; }

/* Qué puedes aportar: lo que aún no está disponible (la mentoría, las ofertas) */
.ra-carta { position: relative; }
.ra-carta--pronto { border-style: dashed; background: transparent; }
.ra-carta--pronto.es-visible:hover { transform: none; box-shadow: none; border-color: var(--linea); }
.ra-carta--pronto .ra-ico { background: var(--papel-2); color: var(--gris); }
.ra-carta--pronto:hover .ra-ico { background: var(--papel-2); color: var(--gris); }
.ra-carta--pronto h2, .ra-carta--pronto p { opacity: .72; }
.ra-pronto { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--naranja-rgb), .16); color: var(--tinta); font-size: 13px; font-weight: 700; }
