/* Fuentes alojadas en la página (media/fuentes/): los mismos .woff2 que servía Google Fonts. Licencia SIL OFL 1.1 (ver media/fuentes/). */
/* latin */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("media/fuentes/mulish-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("media/fuentes/mulish-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 500;
  font-stretch: 125%;
  font-display: swap;
  src: url("media/fuentes/saira-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 700;
  font-stretch: 125%;
  font-display: swap;
  src: url("media/fuentes/saira-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 800;
  font-stretch: 125%;
  font-display: swap;
  src: url("media/fuentes/saira-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cal: secundaria privada ficticia. Una línea blanca sobre verde: cal en lo deportivo, tiza en lo académico.
   Base estática (sin JS y con movimiento reducido se lee entera). Todo lo atado al scroll va bajo html.vivo. */
:root {
  --verde: #0D3526; --noche: #08261B; --cal: #F4F6F1; --gris: #B7C7BC; --bandera: #FFD21F;
  --verde-2: #3C5A4C; --linea-c: rgb(244 246 241 / .22); --linea-o: rgb(13 53 38 / .2);
  --titulo: "Saira", "Arial Narrow", sans-serif; --texto: "Mulish", system-ui, sans-serif;
  --barra: 68px; --lateral: clamp(20px, 3.4vw, 52px); --aire: clamp(96px, 13vw, 200px);
  --tx-res: #D9E7B4; --foco: var(--bandera);
  --sale: cubic-bezier(.16, 1, .3, 1); --curva: var(--sale);
}
@media (max-width: 767px) { :root { --barra: 60px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barra) + 16px); scrollbar-color: var(--gris) var(--verde); }
body { margin: 0; background: var(--verde); color: var(--cal); font: 400 1.0625rem/1.6 var(--texto); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; font-stretch: 125%; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--bandera); color: var(--verde); }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.tramo-claro { background: var(--cal); color: var(--verde); --foco: var(--verde); --tx-res: #4F5C14; }
.envoltura { width: 100%; padding-inline: var(--lateral); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.js .sin-js, html:not(.js) .solo-js { display: none !important; }
.saltar { position: fixed; top: -80px; left: 16px; z-index: 60; padding: 10px 16px; background: var(--bandera); color: var(--verde); font-weight: 600; }
.saltar:focus { top: 12px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--bandera); border-radius: 2px; background: var(--bandera); color: var(--verde); font: 700 .9375rem/1 var(--titulo); font-stretch: 125%; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.boton:hover { background: var(--cal); border-color: var(--cal); }
.tramo-claro .boton:hover { background: var(--verde); border-color: var(--verde); color: var(--cal); }
.flecha { width: 15px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: translate .25s var(--sale); }
.enlace { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-weight: 600; text-decoration: none; cursor: pointer; }
.enlace:hover .flecha { translate: 5px 0; }

.pendiente { display: inline-block; white-space: nowrap; padding-top: 4px; border-top: 1px dashed currentColor; color: var(--tx-res); font-size: .9375rem; font-weight: 600; }
.dato { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding-block: 10px; border-bottom: 1px solid var(--linea-c); }
.tramo-claro .dato { border-color: var(--linea-o); }
.reservado { color: var(--tx-res); border-top: 1px dashed currentColor; padding-top: 14px; }
.reservado .rotulo { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nota-sinjs { display: none; margin: 18px auto 0; padding: 14px 16px; border: 1px dashed currentColor; max-width: 52ch; text-align: left; }
.nota-sinjs:target { display: block; }
.etiqueta-ejemplo { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 8px; background: var(--noche); color: var(--cal); font-size: .75rem; line-height: 1.3; pointer-events: none; }

.texto-grande { font-family: var(--titulo); font-weight: 500; font-stretch: 125%; font-size: clamp(1.5rem, 2.9vw, 2.625rem); line-height: 1.18; text-wrap: balance; }
.declaracion { max-width: 34ch; margin: clamp(28px, 4vw, 56px) auto 0; text-align: center; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); text-wrap: balance; }

/* Titulares de sección: centrados, con el espacio normal entre palabras */
.titular { text-align: center; font-size: clamp(2.125rem, 6.6vw, 7.5rem); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
@media (max-width: 699px) { .titular { font-size: clamp(2.25rem, 11.4vw, 4rem); } }

/* Barra */
.barra { position: fixed; inset: 0 0 auto; z-index: 30; height: calc(var(--barra) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--lateral) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--cal); transition: background .25s linear, color .25s linear; }
html:not(.js) .barra { position: absolute; }
html.asentada .barra { background: var(--verde); }
html.asentada .barra::after { content: ""; position: absolute; inset: auto 0 0; border-bottom: 1px solid var(--linea-c); }
html.barra-clara .barra { background: var(--cal); color: var(--verde); --foco: var(--verde); }
html.barra-clara .barra::after { border-color: var(--linea-o); }
.barra-marca { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.logo { display: inline-flex; gap: .16em; font: 800 1.75rem/1 var(--titulo); font-stretch: 125%; text-decoration: none; }
html.vivo:not(.logo-listo) .logo { visibility: hidden; }
.aviso-barra { font-size: .75rem; font-weight: 600; line-height: 1.25; }
.aviso-corto { display: none; }
.barra-acciones { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); flex: none; }
.barra-menu { min-height: 44px; padding: 0 6px; border: 0; background: none; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.barra-menu:hover { text-decoration-color: currentColor; }
.barra .boton { min-height: 42px; padding: 0 16px; font-size: .875rem; }
html.barra-clara .barra .boton { background: var(--verde); border-color: var(--verde); color: var(--cal); }
.solo-angosto { display: none; }
@media (max-width: 559px) { .aviso-largo { display: none; } .aviso-corto { display: inline; } .solo-ancho { display: none; } .solo-angosto { display: inline; } .aviso-barra { max-width: 11ch; } }

/* Motivo: los carriles de la pista, por código */
.carriles { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; fill: none; stroke: var(--cal); stroke-width: 2; pointer-events: none; }
.carriles path { vector-effect: non-scaling-stroke; }
html.vivo .carriles path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }

/* 1. Portada */
.portada { position: relative; background: var(--verde); }
.portada-fija { position: relative; min-height: 100svh; padding: calc(var(--barra) + clamp(20px, 5vh, 56px)) var(--lateral) 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }
.carriles-portada { opacity: .5; }
html.vivo .carriles-portada path { stroke-dashoffset: 0; animation: trazo 1.4s var(--sale) both; }
@keyframes trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.portada-frase { position: relative; max-width: 22ch; font: 500 clamp(1.5rem, 3vw, 2.75rem)/1.14 var(--titulo); font-stretch: 125%; text-wrap: balance; padding: 6px 14px; background: var(--verde); }
.portada-sub { position: relative; max-width: 38ch; margin-top: 8px; padding: 2px 12px; color: var(--gris); background: var(--verde); text-wrap: balance; }
.portada-foto { position: relative; width: 100vw; margin: 32px calc(-1 * var(--lateral)) 0; }
.portada-foto img { width: 100%; }
.logo-gigante { display: flex; justify-content: space-between; padding: 0 var(--lateral); margin-top: 24px; font-size: 30vw; font-weight: 800; line-height: .78; }
.logo-gigante span { display: block; }
html.vivo .portada { height: 230svh; }
html.vivo .portada-fija { position: sticky; top: 0; height: 100svh; }
html.vivo .portada-foto { position: absolute; inset: 0; width: auto; margin: 0; overflow: hidden; translate: 0 calc((1 - var(--foto, 0)) * 101%); }
html.vivo .portada-foto img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.14 - var(--foto, 0) * .14); }
html.vivo .logo-gigante { position: fixed; inset: auto 0 0; z-index: 31; margin: 0; padding-bottom: clamp(8px, 3vh, 36px); pointer-events: none; color: var(--cal); }
html.vivo .logo-gigante span { transform-origin: 0 0; will-change: transform; transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1)); }
html.vivo.logo-listo .logo-gigante { visibility: hidden; }
@media (max-width: 767px) {
  .logo-gigante { font-size: 38vw; }
  .carriles-portada { inset: 14% 0 auto auto; width: 190vw; height: 58%; }   /* vertical: se ve la curva completa, no solo las rectas */
}

/* 2. Quiénes somos */
.quienes { position: relative; z-index: 1; padding-block: clamp(72px, 9vw, 130px) var(--aire); }
.quienes-grilla { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vw, 120px); }
.quienes-texto { display: grid; gap: 24px; align-content: start; justify-items: start; position: sticky; top: calc(var(--barra) + 40px); align-self: start; }
.quienes-texto p:not(.texto-grande) { max-width: 46ch; }
.pila { display: grid; gap: 40px; }
.pila-foto { position: sticky; top: calc(var(--barra) + 24px); box-shadow: 0 -18px 50px rgb(0 0 0 / .14); }
.pila-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 899px) { .quienes-grilla { grid-template-columns: 1fr; } .quienes-texto { position: static; } }

/* Tiza: lienzos pintados por código */
.tiza { position: absolute; pointer-events: none; }
.tiza-linea { position: relative; width: 100%; height: 120px; }

/* 3. Propuesta académica */
.academia { position: relative; padding-bottom: clamp(48px, 8vw, 120px); }
.crece { margin-top: clamp(40px, 6vw, 88px); }
.crece-foto { position: relative; }
.crece-foto img { width: 100%; }
html.vivo .crece { height: 240svh; }
html.vivo .crece-fija { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html.vivo .crece-foto { height: 100%; clip-path: inset(calc(var(--c, 1) * 16%) calc(var(--c, 1) * 22%)); }
html.vivo .crece-foto img { height: 100%; object-fit: cover; }
html.vivo .crece-foto .etiqueta-ejemplo { right: calc(var(--c, 1) * 22% + 10px); bottom: calc(var(--c, 1) * 16% + 10px); }
.academia-curva { position: relative; min-height: min(92vh, 760px); margin-top: clamp(48px, 7vw, 96px); display: flex; }
.tiza-curva { inset: 0; width: 100%; height: 100%; }
.academia-textos { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); align-items: start; }
.academia-a { grid-column: 1; }
.academia-b { grid-column: 3; align-self: end; display: grid; gap: 14px; }
.academia-a p, .academia-b { background: var(--verde); outline: 14px solid var(--verde); }
@media (max-width: 899px) {
  .academia-curva { min-height: 0; display: block; }
  .tiza-curva { position: relative; height: 300px; }
  .academia-textos { grid-template-columns: 1fr; gap: 32px; margin-top: 12px; }
  .academia-a, .academia-b { grid-column: 1; }
  .academia-a p, .academia-b { outline: 0; }
}

/* 3b. Trayecto */
.trayecto { padding-block: clamp(40px, 6vw, 80px) var(--aire); }
.trayecto-lista { display: grid; gap: 28px; margin-top: clamp(48px, 7vw, 96px); }
.etapa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--noche); border: 1px solid var(--linea-c); min-height: min(78svh, 720px); }
/* Se apilan solo si la tarjeta entra en la pantalla: una tarjeta fija más alta que la pantalla dejaría su botón sin alcanzar */
@media (min-width: 900px) and (min-height: 860px) {
  /* La segunda frena más abajo: de la primera queda una solapa con su botón, así nunca queda tapado */
  .etapa { position: sticky; top: calc(var(--barra) + 16px); min-height: min(70svh, 680px); --solapa: calc(clamp(24px, 3vw, 40px) + 56px); }
  .etapa:nth-child(2) { top: calc(var(--barra) + 16px + var(--solapa)); }
  .etapa-texto { padding-top: clamp(24px, 3vw, 40px); }
  .etapa-texto > .enlace { order: -1; margin: 0 0 auto; }
}
.etapa-foto { position: relative; min-height: 100%; }
.etapa-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.etapa-texto { position: relative; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; }
.etapa-texto > .enlace { align-self: flex-start; margin-top: 14px; }
.etapa-grados { font: 800 clamp(2.5rem, 7vw, 6.5rem)/1 var(--titulo); font-stretch: 125%; }
.etapa h3 { font-size: clamp(1.375rem, 2.4vw, 2rem); margin-bottom: 8px; }
.etapa-texto > p:not(.etapa-grados, .dato) { max-width: 46ch; margin-bottom: 8px; }
.tiza-figura { top: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); width: clamp(120px, 15vw, 210px); height: clamp(120px, 15vw, 210px); }
@media (max-width: 899px) { .etapa { grid-template-columns: 1fr; min-height: 0; } .etapa-foto { aspect-ratio: 4 / 3; min-height: 0; } .tiza-figura { display: none; } }

/* 4. Apertura de deportes */
.apertura { position: relative; }
.apertura-fija { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end; padding: calc(var(--barra) + 24px) var(--lateral) clamp(24px, 6vh, 64px); }
.apertura-fija .etiqueta-ejemplo { right: auto; left: 10px; }
.apertura-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vidrio { position: relative; width: min(100%, 430px); padding: clamp(24px, 3vw, 36px); background: rgb(13 53 38 / .66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--linea-c); display: grid; gap: 14px; }
.vidrio h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pelota { width: clamp(84px, 9vw, 120px); fill: none; stroke: var(--cal); stroke-width: 1.5; overflow: visible; }
html.vivo .apertura { height: 210svh; }
html.vivo .apertura-fija { position: sticky; top: 0; height: 100svh; }
html.vivo .vidrio { translate: 0 calc((1 - var(--v, 1)) * 34vh); }
html.vivo .pelota > * { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--v, 1)); }

/* 5. Los cuatro centros */
.centros { position: relative; z-index: 1; background: var(--noche); padding-block: clamp(72px, 9vw, 130px) var(--aire); }
.centros-foto { position: relative; margin-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.centros-foto img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
html.vivo .centros-foto { clip-path: inset(0 calc((1 - var(--r, 1)) * 14%)); }
html.vivo .centros-foto .etiqueta-ejemplo { right: calc((1 - var(--r, 1)) * 14% + 10px); }
.centros-lista { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(48px, 7vw, 96px); }
.carriles-centros { opacity: .28; }
.centro { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: clamp(420px, 42vw, 560px); padding: clamp(18px, 2vw, 28px); background: rgb(13 53 38 / .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--linea-c); }
.cancha { width: 100%; fill: none; stroke: var(--cal); stroke-width: 1.4; margin-bottom: 8px; }
.cancha > * { vector-effect: non-scaling-stroke; }
html.vivo .cancha > * { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--l, 1)); }
.centro h3 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.centro > p:not(.dato) { color: var(--gris); flex: 1; }
.centro .enlace { align-self: flex-start; margin-top: 8px; }
@media (max-width: 1099px) { .centros-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } .centro { min-height: 0; } }
@media (max-width: 559px) { .centros-lista { grid-template-columns: 1fr; } .centros-foto img { aspect-ratio: 3 / 2; } }

/* 6. Recorrer el campus */
.campus { position: relative; z-index: 1; background: var(--noche); padding-bottom: var(--aire); }
.campus-grilla { display: grid; grid-template-columns: minmax(0, 7fr) minmax(220px, 2fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 5vw, 64px); }
.plano { position: relative; overflow: hidden; align-self: start; }
.plano-lienzo { position: relative; }
.plano-lienzo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.plano-velo { position: absolute; inset: 0; background: rgb(6 22 16 / .6); -webkit-mask: var(--silueta, none) 0 0 / 100% 100% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: var(--silueta, none) 0 0 / 100% 100% no-repeat exclude, linear-gradient(#000 0 0); }
.plano-zonas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.plano-zonas path { fill: transparent; cursor: pointer; pointer-events: auto; }
.plano-zonas path:hover { fill: rgb(244 246 241 / .1); }
.lugares { display: grid; gap: 18px; align-content: start; }
.lugares-grupo h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.lugar { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--linea-c); background: none; font: 500 1.125rem/1.2 var(--titulo); font-stretch: 125%; text-align: left; text-decoration: none; cursor: pointer; transition: padding .25s var(--sale), color .2s; }
.lugar:hover { padding-left: 8px; }
.lugar[aria-pressed="true"] { color: var(--bandera); border-bottom-color: var(--bandera); padding-left: 8px; }
.fichas { grid-column: 1 / -1; display: grid; gap: 24px; }
.ficha { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; scroll-margin-top: calc(var(--barra) + 16px); }
.ficha[hidden] { display: none; }
.ficha figure { position: relative; }
.ficha img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ficha-texto { display: grid; gap: 10px; justify-items: start; }
.ficha-texto h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.ficha-texto > p:not(.dato) { max-width: 52ch; color: var(--gris); }
.ficha-texto .dato { width: 100%; max-width: 52ch; }
@media (max-width: 899px) {
  .campus-grilla { grid-template-columns: 1fr; }
  .plano { margin-inline: calc(-1 * var(--lateral)); }
  .lugares { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .ficha { grid-template-columns: 1fr; }
}

/* 7. Actividades */
.actividades-foto { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; padding: calc(var(--barra) + 24px) var(--lateral) clamp(28px, 6vh, 64px); }
.actividades-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actividades-foto::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(8 38 27 / .82)); }
.actividades-foto h2 { position: relative; z-index: 1; max-width: 16ch; font-size: clamp(2.25rem, 6.4vw, 6.5rem); font-weight: 800; text-transform: uppercase; }
.actividades-foto .etiqueta-ejemplo { bottom: auto; top: calc(var(--barra) + 12px); }
.actividades > .tramo-claro { padding-block: clamp(72px, 9vw, 130px) var(--aire); }
.actividades-texto { max-width: 26em; margin-left: auto; }

.carrusel { position: relative; margin-top: clamp(48px, 7vw, 96px); }
.carrusel-lista { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-inline: var(--lateral); }
.carrusel-lista figure { position: relative; }
.carrusel-lista img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carrusel-lista figcaption { padding-top: 8px; font-weight: 600; }
.carrusel-lista .etiqueta-ejemplo { bottom: auto; top: 8px; right: 8px; }
.carrusel-escena { position: relative; height: clamp(320px, 58vh, 560px); overflow: hidden; perspective: var(--pers, 1400px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.carrusel-escena:active { cursor: grabbing; }
.carrusel-aro { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.carrusel-aro.suave { transition: transform .55s var(--sale); }
.tira { position: absolute; top: calc(var(--alto) / -2); height: var(--alto); backface-visibility: hidden; background-repeat: no-repeat; }
.carrusel-pie { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 16px; padding-inline: var(--lateral); }
.carrusel-nombre { font: 500 1.125rem/1.2 var(--titulo); font-stretch: 125%; }
.carrusel-contador { justify-self: center; font-variant-numeric: tabular-nums; }
.carrusel-flechas { justify-self: end; display: flex; gap: 8px; }
.carrusel-flechas button { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid currentColor; border-radius: 2px; cursor: pointer; }
.carrusel-flechas button:hover:not(:disabled) { background: var(--verde); color: var(--cal); }
.carrusel-flechas button:disabled { opacity: .35; cursor: default; }
.carrusel-flechas .atras .flecha { rotate: 180deg; }
.carrusel.curvo .carrusel-lista { display: none; }
.carrusel .etiqueta-escena { right: var(--lateral); top: 8px; bottom: auto; }
@media (max-width: 859px) {
  .carrusel-lista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scroll-padding-inline: var(--lateral); }
  .carrusel-lista li { flex: 0 0 min(80vw, 420px); scroll-snap-align: start; }
}

.tablero-titulo { margin-top: clamp(72px, 9vw, 130px); font-size: clamp(1.75rem, 3.6vw, 3rem); }
.tablero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; align-items: start; }
.tablero details { background: var(--verde); color: var(--cal); --tx-res: #D9E7B4; --foco: var(--bandera); }
.tablero summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 18px 20px; font: 500 1.125rem/1.2 var(--titulo); font-stretch: 125%; cursor: pointer; list-style: none; }
.tablero summary::-webkit-details-marker { display: none; }
.mas { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--bandera); stroke-width: 1.6; transition: rotate .3s var(--sale); }
details[open] .mas { rotate: 45deg; }
.tablero details > p { padding-inline: 20px; }
.tablero details > .dato { margin-inline: 20px; padding-inline: 0; margin-bottom: 16px; border-color: var(--linea-c); }
.tablero details > p:not(.dato) { color: var(--gris); }
@media (max-width: 899px) { .tablero { grid-template-columns: 1fr; } .tablero summary { min-height: 72px; } }

/* 8. Un día en el colegio */
.dia { position: relative; padding-top: clamp(72px, 9vw, 130px); }
.dia-tramo { margin-top: clamp(32px, 5vw, 64px); }
.parada { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.parada-foto { position: relative; }
.parada-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.parada-texto { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(24px, 4vw, 56px); }
.parada-momento { font: 800 clamp(2.5rem, 5.4vw, 5.5rem)/1 var(--titulo); font-stretch: 125%; text-transform: uppercase; }
.dia-barras { position: absolute; display: none; }
html.vivo .dia-tramo { height: 320svh; }
html.vivo .dia-fija { position: sticky; top: var(--barra); height: calc(100svh - var(--barra)); overflow: hidden; }
html.vivo .parada { position: absolute; inset: 0; height: 100%; background: var(--verde); }
html.vivo .parada:nth-child(1) { z-index: 1; }
html.vivo .parada:nth-child(2) { z-index: 2; clip-path: inset(calc((1 - var(--t1, 0)) * 100%) 0 0); }
html.vivo .parada:nth-child(3) { z-index: 3; clip-path: inset(calc((1 - var(--t2, 0)) * 100%) 0 0); }
html.vivo .parada-foto img { aspect-ratio: auto; }
html.vivo .parada-texto { padding-bottom: clamp(72px, 12vh, 112px); }
html.vivo .dia-barras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; z-index: 4; right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 5vh, 48px); width: calc(5 / 13 * 100% - 2 * clamp(24px, 4vw, 56px)); }
.dia-barra { height: 3px; background: var(--linea-c); overflow: hidden; }
.dia-barra i { display: block; height: 100%; background: var(--cal); transform-origin: 0 50%; transform: scaleX(var(--b, 0)); }
@media (max-width: 899px) {
  .parada { grid-template-columns: 1fr; }
  html.vivo .parada { grid-template-rows: minmax(0, 1fr) auto; }
  html.vivo .parada-foto { min-height: 0; }
  html.vivo .parada-texto { padding: 18px var(--lateral) 56px; gap: 8px; }
  .parada-momento { font-size: clamp(2rem, 10vw, 3.5rem); }
  html.vivo .dia-barras { left: var(--lateral); right: var(--lateral); bottom: 20px; width: auto; }
}

/* Admisión */
.admision { position: relative; z-index: 1; padding-block: clamp(72px, 9vw, 130px) var(--aire); }
.admision-grilla { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(48px, 7vw, 96px); }
.pasos { counter-reset: paso; display: grid; gap: 0; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: clamp(52px, 7vw, 96px) minmax(0, 1fr); padding-block: 22px; border-top: 1px solid var(--linea-o); }
.pasos li::before { content: counter(paso); grid-row: span 2; font: 800 clamp(2rem, 4vw, 3.25rem)/1 var(--titulo); font-stretch: 125%; }
.pasos h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin-bottom: 6px; }
.pasos p { color: var(--verde-2); max-width: 46ch; }
.admision-datos { display: grid; align-content: start; gap: 4px; }
.admision-datos .reservado { margin-top: 28px; }
@media (max-width: 899px) { .admision-grilla { grid-template-columns: 1fr; } }

/* 9. Cierre: la línea de llegada */
.cc { position: relative; z-index: 1; }
.cc-zona { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; background: var(--verde); text-align: center; }
.cc-zona:has(.cc-accion:hover), .cc-zona:has(.cc-accion:focus-visible) { background: var(--noche); }
.carriles-cierre { stroke-width: 2; opacity: .9; }
.tiza-cierre { inset: 0; width: 100%; height: 100%; }
.cc-contenido { position: relative; display: grid; justify-items: center; gap: 16px; padding-block: calc(var(--barra) + 16px) 40svh; }
.cc-llegada { position: relative; z-index: 1; }
.cc-pista { position: absolute; top: calc(100% + 6px); left: 50%; width: 100vw; height: 60svh; translate: -50% 0; pointer-events: none; }
.cc-titulo { font: 800 clamp(2.25rem, 6.2vw, 6.25rem)/1.02 var(--titulo); font-stretch: 125%; max-width: 15ch; text-wrap: balance; }
.cc-texto { max-width: 44ch; color: var(--gris); text-wrap: balance; }
.cc-accion { margin-top: 16px; min-height: 56px; padding-inline: 28px; font-size: 1rem; }

/* 10. Pie */
.pie { position: relative; z-index: 1; background: var(--noche); padding: clamp(40px, 5vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.pie-nombre { display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(12px, 2vw, 32px); padding-inline: var(--lateral); }
.pie-letra { font: 800 clamp(5rem, 21vw, 22rem)/.76 var(--titulo); font-stretch: 125%; }
.pie-entre { flex: 1; min-width: 0; max-width: 260px; font-size: .9375rem; }
.pie-entre ul { display: grid; gap: 2px; }
.pie-entre a { display: inline-flex; align-items: center; min-height: 32px; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; margin-top: clamp(28px, 4vw, 48px); padding-inline: var(--lateral); color: var(--gris); font-size: .875rem; }
@media (max-width: 859px) {
  .pie-nombre { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 28px 12px; }
  .pie-letra { font-size: 30vw; grid-row: 1; }
  .pie-entre { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  nav.pie-entre { grid-row: 3; }
  .pie-entre ul { grid-template-columns: 1fr 1fr; }
  .pie-entre a { min-height: 44px; }
}

/* Menú */
.menu { position: fixed; inset: 0; margin: auto; width: min(960px, 100% - 24px); max-width: none; max-height: min(92dvh, 640px); padding: 0; border: 0; background: var(--cal); color: var(--verde); --foco: var(--verde); box-shadow: 0 24px 60px rgb(4 18 13 / .5); }
.menu::backdrop { background: rgb(4 18 13 / .72); }
.menu-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--linea-o); }
.menu-cabeza h2 { font-size: 1rem; }
.menu-cabeza h2:focus { outline: none; }
.menu-cuerpo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.menu-enlaces { padding: clamp(16px, 2.4vw, 28px) clamp(20px, 3vw, 36px); display: grid; }
.menu-enlaces a { display: flex; align-items: center; min-height: 48px; font: 700 clamp(1.25rem, 2.6vw, 1.875rem)/1.1 var(--titulo); font-stretch: 125%; text-decoration: none; }
.menu-enlaces a:hover { text-decoration: underline; }
.menu-accion { background: var(--verde); color: var(--cal); --foco: var(--bandera); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; }
.menu-accion p { font: 500 1.25rem/1.2 var(--titulo); font-stretch: 125%; }
@media (max-width: 639px) { .menu-cuerpo { grid-template-columns: 1fr; overflow-y: auto; } .menu { overflow-y: auto; } }

/* Aviso de demo */
.aviso-demo { width: min(520px, calc(100% - 32px)); padding: 32px; border: 0; background: var(--cal); color: var(--verde); box-shadow: 0 24px 60px rgb(4 18 13 / .4); --foco: var(--verde); }
.aviso-demo::backdrop { background: rgb(4 18 13 / .6); }
.aviso-demo h2 { font-size: 2rem; margin-bottom: 12px; }
.aviso-demo h2:focus { outline: none; }
.aviso-demo p { color: var(--verde-2); }
.aviso-demo .boton { margin-top: 24px; }

/* Panel de consulta (panel de contacto lateral, como hoja centrada; base de Monte Tibio) */
.pc { --error: #a3271b; --linea: var(--linea-o); --foco: var(--verde); position: fixed; inset: 0; margin: auto; width: min(760px, 100% - 32px); max-width: none; height: min(92dvh, 940px); max-height: none; padding: 0; border: 0;
  background: var(--cal); color: var(--verde); overflow: hidden; box-shadow: 0 30px 80px rgb(8 14 10 / .45); opacity: 1; translate: 0 0; transition: translate .5s var(--curva), opacity .25s linear; }
.pc::backdrop { background: rgb(4 18 13 / .72); opacity: 1; transition: opacity .25s linear; }
@starting-style { .pc[open] { opacity: 0; translate: 0 24px; } .pc[open]::backdrop { opacity: 0; } }
.pc.pc-cerrando { opacity: 0; translate: 0 16px; transition: translate .3s cubic-bezier(0.7, 0, 0.84, 0), opacity .2s linear .05s; }
.pc.pc-cerrando::backdrop { opacity: 0; transition: opacity .2s linear .1s; }
.pc-caja { height: 100%; display: flex; flex-direction: column; }
.pc-cabeza { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 20px 16px; border-bottom: 1px solid var(--linea); }
.pc-cabeza h2 { grid-column: 2; font-size: clamp(1.75rem, 3vw, 2.25rem); text-align: center; }
.pc-cabeza h2:focus { outline: none; }
.pc-cabeza h2:focus-visible { outline: 2px solid var(--foco); outline-offset: 6px; }
.pc-cerrar { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 4px 0 12px; background: none; border: 0; color: var(--verde); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.pc-cerrar svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.pc-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 5vw, 48px) max(36px, calc(24px + env(safe-area-inset-bottom))); scroll-padding-block: 24px 96px; }
.pc-resumen:not(:empty) { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--error); }
.pc-resumen p:first-child { font-weight: 600; color: var(--error); display: flex; gap: 8px; align-items: center; }
.pc-resumen p + p { margin-top: 4px; }
.pc-resumen ul { margin: 8px 0 0; padding-left: 28px; list-style: disc; }
.pc-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.pc-form > .pc-resumen, .pc-form > .casilla, .pc-form > .pc-enviar, .pc-fila--ancha { grid-column: 1 / -1; }
.pc-fila { display: grid; align-content: start; gap: 6px; padding: 18px 0 8px; border-bottom: 1px solid var(--linea); }
.pc-fila:focus-within { box-shadow: inset 0 -2px 0 var(--verde); }
.pc-fila label, .pc-etiqueta { font-size: .875rem; font-weight: 600; color: var(--verde-2); }
.pc-fila label .opcional { font-weight: 400; }
.pc-fechas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.campo { min-width: 0; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 44px; padding: 6px 0; background: transparent; border: 0; border-radius: 0; color: var(--verde); font: 400 1.0625rem/1.5 var(--texto); accent-color: var(--verde); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.campo ::placeholder { color: var(--verde-2); opacity: 1; }
.campo select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3526' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 20px; }
.campo select:has(option[value=""]:checked) { color: var(--verde-2); }
.campo textarea { resize: vertical; min-height: calc(3lh + 12px); }
@supports (field-sizing: content) { .campo textarea { field-sizing: content; max-height: 40vh; resize: none; } }
.error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; color: var(--error); font-size: 1rem; line-height: 1.4; font-weight: 600; }
.error[hidden] { display: none; }
.error svg, .pc-resumen svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pc-fila:has([aria-invalid="true"]) { box-shadow: inset 0 -2px 0 var(--error); }
.casilla { padding: 20px 0 4px; }
.casilla label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 44px; }
.casilla input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--verde); cursor: pointer; }
.casilla .error { margin-left: 36px; }
.pc-enviar { margin-top: 24px; display: flex; justify-content: center; }
.pc-enviar .boton { min-width: 240px; min-height: 52px; }
.pc-resultado { padding-top: 40px; max-width: 34em; margin-inline: auto; text-align: center; }
.pc-resultado h3 { margin-bottom: 14px; font-size: 1.75rem; }
.pc-resultado h3:focus { outline: none; }
.pc-resultado p + p { margin-top: 12px; }
.pc-resultado .boton { margin-top: 28px; }
.pc .boton:hover { background: var(--verde); border-color: var(--verde); color: var(--cal); }
.pc { background: var(--cal); color: var(--verde); }
@media (max-width: 559px) { .pc-form { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
