/* ==========================================================================
   MÁSTER EN PSICOLOGÍA DEL DEPORTE · UAM
   Editorial deportivo — Inter, 3 colores, esquinas vivas, botones pill.
   ========================================================================== */

:root {
  --ink: #12191c;
  --ink-soft: #1b2a2f;      /* mismo fondo que los retratos */
  --bone: #f0ede6;
  --volt: #c8f550;

  --ink-15: rgb(18 25 28 / .15);
  --ink-60: rgb(18 25 28 / .66);
  --bone-15: rgb(240 237 230 / .15);
  --bone-60: rgb(240 237 230 / .66);

  --font: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --fast: .16s;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--volt); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .page-head :focus-visible, .cta :focus-visible,
.section--ink :focus-visible, .header :focus-visible, .footer :focus-visible,
.marquee--ink :focus-visible { outline-color: var(--volt); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografía editorial
   -------------------------------------------------------------------------- */

.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kicker .idx { font-weight: 800; opacity: .55; letter-spacing: 0; }

.display {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .96;
  text-wrap: balance;
}

.title {
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.on-dark { color: var(--bone); }
.txt-volt { color: var(--volt); }

.outline-num {
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}

/* --------------------------------------------------------------------------
   Botones — SIEMPRE pill
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 15px 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: scale(.98); }

.btn--volt { background: var(--volt); color: var(--ink); position: relative; overflow: hidden; }
.btn--volt::before {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: rgb(240 237 230 / .55);
  transform: skewX(-22deg);
  transition: left .5s var(--ease);
  pointer-events: none;
}
.btn--volt:hover { background: var(--bone); }
.btn--volt:hover::before { left: 135%; }

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--volt); color: var(--ink); }

.btn--ghost { border-color: var(--bone-60); color: var(--bone); }
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); }

.btn--ghost-ink { border-color: var(--ink-60); color: var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Barra de progreso de scroll
   -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--volt);
  z-index: 200;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.header.scrolled {
  background: rgb(18 25 28 / .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
}
.logo__psi {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--volt);
}
.logo__text {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.25;
}
.logo__text small {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--bone-60);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bone);
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--volt); }
.nav .btn { padding: 11px 24px; font-size: .85rem; }

.burger {
  border-radius: 999px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: var(--bone);
  transition: transform .2s var(--ease), opacity .2s;
}

@media (max-width: 1020px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ink);
    padding: 18px var(--gutter) 34px;
    border-bottom: 1px solid var(--bone-15);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
    max-height: calc(100vh - 76px); /* fallback para navegadores sin dvh */
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  body.menu-open .nav { transform: translateY(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s 0s; }
  body.menu-open .header { background: var(--ink); }
  .nav__link { font-size: 1.25rem; font-weight: 700; padding-block: 10px; }
  .nav .btn { margin-top: 14px; font-size: 1rem; padding: 14px 30px; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero — fullscreen, imagen atleta, máscara oscura
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  background: var(--ink);   /* fondo oscuro mientras carga el vídeo (sin flash blanco) */
  will-change: transform;
}
/* En escritorio se reproduce el vídeo: ocultamos la imagen estática para que
   no aparezca antes. En móvil el vídeo se retira por JS y queda esta imagen. */
@media (min-width: 861px) {
  .hero__poster { display: none; }
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  filter: grayscale(1) contrast(1.06) brightness(.9);
  animation: hero-zoom 16s var(--ease) forwards;
}
.hero__media video {
  position: absolute;
  inset: 0;
  object-position: 60% 25%;
  filter: grayscale(1) contrast(1.08) brightness(.62);
  animation: none;
}
@keyframes hero-zoom {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(18 25 28 / .96) 0%, rgb(18 25 28 / .55) 38%, rgb(18 25 28 / .18) 70%),
    linear-gradient(100deg, rgb(18 25 28 / .88) 0%, rgb(18 25 28 / .25) 55%, transparent 80%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 150px;
}
.hero .kicker { color: var(--volt); margin-bottom: 26px; }
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  max-width: 12ch;
  margin-bottom: 30px;
}
.hero__title .thin {
  display: block;
  font-size: .32em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--bone-60);
  margin-bottom: .6em;
  max-width: none;
}
.hero__sub {
  max-width: 34rem;
  color: var(--bone-60);
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 8vh, 90px); }

.hero__edition {
  position: absolute;
  right: clamp(6px, 1vw, 18px);
  top: 16vh;
  z-index: 1;
  font-size: clamp(7rem, 18vw, 17rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(240 237 230 / .28);
  pointer-events: none;
  user-select: none;
}
.hero__edition sup { font-size: .3em; -webkit-text-stroke: 1px rgb(240 237 230 / .28); }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 150px;
  z-index: 2;
  width: 1px;
  height: 72px;
  background: var(--bone-15);
  overflow: hidden;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: -1px; top: -40%;
  width: 3px;
  height: 40%;
  background: var(--volt);
  animation: hint-drop 2.2s var(--ease) infinite;
}
@keyframes hint-drop {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}
@media (max-width: 860px) { .scroll-hint { display: none; } }

.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bone-15);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__stat {
  min-width: 0; /* permite encoger en móviles estrechos sin desbordar */
  padding: 26px 26px 34px 0;
  border-left: 1px solid var(--bone-15);
  padding-left: 26px;
}
.hero__stat:first-child { border-left: none; padding-left: 0; }
.hero__stat b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--volt);
}
.hero__stat > span {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--bone-60);
}
.hero__stat > span + span { margin-top: 3px; }
.hero__stat a { color: var(--volt); text-decoration: underline; text-underline-offset: 2px; }
.hero__stat a:hover { color: var(--bone); }
/* Cuadro con dos apartados (clases presenciales + prácticas externas) */
.hero__stat--dual b { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.15; }
.hero__stat--dual b:nth-of-type(2) { margin-top: 16px; }

@media (max-width: 860px) {
  .hero__stats-grid { grid-template-columns: 1fr 1fr; }
  .hero__stat { border-left: none; padding-left: 0; border-top: 1px solid var(--bone-15); }
  .hero__stat:nth-child(-n+2) { border-top: none; }
  .hero__stat:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--bone-15); }
  .hero__edition { display: none; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--volt);
  color: var(--ink);
  overflow: hidden;
  padding-block: 16px;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee span {
  display: inline-block;
  font-family: "Anton", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 2.2em;
  transform: skewX(-8deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Variante gigante sobre tinta (cinta editorial de cierre) */
.marquee--ink {
  background: var(--ink);
  color: var(--bone);
  border-block: 1px solid var(--bone-15);
  padding-block: clamp(18px, 3vw, 34px);
}
.marquee--ink .marquee__track { animation-duration: 38s; }
.marquee--ink span {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(240 237 230 / .35);
  transition: color .3s var(--ease);
}
.marquee--ink:hover span { color: rgb(240 237 230 / .12); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section { position: relative; padding-block: clamp(90px, 12vw, 160px); }
.section--ink { background: var(--ink); color: var(--bone); }

/* --- split editorial asimétrico --- */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 clamp(20px, 3vw, 48px);
  align-items: start;
}
.split__text { grid-column: 1 / 6; }
.split__text .kicker { margin-bottom: 26px; }
.split__text .title { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 28px; }
.split__text p { color: var(--ink-60); margin-bottom: 18px; max-width: 34em; }
.section--ink .split__text p { color: var(--bone-60); }

.split__text--right { grid-column: 7 / 13; }

.split__media {
  grid-column: 6 / 13;
  position: relative;
  margin-top: 60px;
}
.split__media .img-main {
  width: 88%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media .img-over {
  position: absolute;
  left: 0;
  bottom: -70px;
  width: 44%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--bone);
}
.split__media .stat-over {
  position: absolute;
  right: 6%;
  top: -46px;
  background: var(--volt);
  color: var(--ink);
  padding: 26px 30px;
  max-width: 240px;
}
.stat-over b {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-over > span { font-size: .82rem; font-weight: 600; line-height: 1.4; display: block; margin-top: 6px; }
.stat-over__nota { font-size: .66rem !important; font-weight: 500 !important; font-style: italic; opacity: .72; margin-top: 8px !important; }

@media (max-width: 900px) {
  .split__text, .split__text--right { grid-column: 1 / -1; }
  .split__media { grid-column: 1 / -1; margin-top: 48px; }
  .split__media .img-over { bottom: -40px; }
  .split__media .stat-over { top: auto; bottom: -40px; right: 0; }
}
@media (max-width: 480px) {
  .split__media .img-over { display: none; }
  .split__media .stat-over { position: static; margin-top: 16px; }
}

/* --- lista editorial numerada (diferenciales) --- */

.feature-list { border-top: 1px solid var(--bone-15); }
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 clamp(20px, 3vw, 48px);
  padding-block: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--bone-15);
  transition: background var(--fast) var(--ease);
}
.feature:hover { background: rgb(240 237 230 / .04); }
.feature__num {
  grid-column: 1 / 3;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-60);
  transition: color var(--fast) var(--ease), -webkit-text-stroke var(--fast) var(--ease);
}
.feature:hover .feature__num { color: var(--volt); -webkit-text-stroke: 1.5px var(--volt); }
/* Rebote continuo sincronizado: arranca con la carga de la página,
   así todas las pantallas botan al unísono. La entrada usa `scale`
   (propiedad independiente) para no desincronizar el bote. */
@keyframes num-bob {
  from { translate: 0 3px; }
  to { translate: 0 -7px; }
}
.feature__num, .step::before {
  animation: num-bob 2.6s ease-in-out infinite alternate;
  scale: .4;
  transition: scale .55s cubic-bezier(.3, 1.4, .5, 1);
}
.feature.reveal.in .feature__num, .step.reveal.in::before { scale: 1; }
.feature__name {
  grid-column: 3 / 7;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.feature__desc {
  grid-column: 7 / 12;
  color: var(--bone-60);
  font-size: .98rem;
  max-width: 34em;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 72px 1fr; row-gap: 8px; }
  .feature__num { grid-column: 1; grid-row: 1 / 3; }
  .feature__name { grid-column: 2; }
  .feature__desc { grid-column: 2; }
}

/* --- columnas con regla superior (horarios / info) --- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.col-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.section--ink .col-item { border-top-color: var(--bone); }
.col-item .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.col-item h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.col-item p { color: var(--ink-60); font-size: .97rem; }
.section--ink .col-item p { color: var(--bone-60); }

/* --------------------------------------------------------------------------
   Banda de foto a sangre completa
   -------------------------------------------------------------------------- */

.photo-band {
  height: clamp(300px, 42vw, 540px);
  overflow: hidden;
  position: relative;
}
.photo-band img {
  width: 100%; height: 118%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.75);
}

/* --------------------------------------------------------------------------
   Banda CTA con imagen
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  color: var(--bone);
  overflow: hidden;
  background: var(--ink);
}
.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.55) contrast(1.1);
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(18 25 28 / .92) 10%, rgb(18 25 28 / .45) 70%);
}
.cta__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(90px, 12vw, 150px);
}
.cta .display { font-size: clamp(1.9rem, 5.4vw, 4.6rem); max-width: 14ch; margin-bottom: 24px; }
.cta p { color: var(--bone-60); max-width: 36rem; margin-bottom: 38px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Página interior — cabecera
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  padding-top: 76px;
  overflow: hidden;
}
.page-head__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(70px, 10vw, 130px) clamp(50px, 7vw, 90px);
}
.page-head .kicker { color: var(--volt); margin-bottom: 22px; }
.page-head .display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); margin-bottom: 26px; }
.page-head p { color: var(--bone-60); max-width: 40rem; font-size: 1.1rem; }
.page-head__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-head__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.5);
}
.page-head__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(18 25 28 / .95) 30%, rgb(18 25 28 / .55) 100%);
}
.page-head__ghost {
  position: absolute;
  right: calc(var(--gutter) * .5);
  bottom: -.18em;
  z-index: 0;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(240 237 230 / .16);
  pointer-events: none;
  user-select: none;
}
.page-head__ghost .ghost-unit {
  font-size: .16em;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: .9em;
  margin-left: .08em;
  -webkit-text-stroke: 0;
  color: rgb(240 237 230 / .22);
}

/* --------------------------------------------------------------------------
   Plan de estudios — tabla editorial
   -------------------------------------------------------------------------- */

.syllabus { border-top: 2px solid var(--ink); }
.syllabus__item { border-bottom: 1px solid var(--ink-15); }
.syllabus__item > summary { list-style: none; }
.syllabus__item > summary::-webkit-details-marker { display: none; }
.syllabus__row {
  display: grid;
  grid-template-columns: 90px 1fr auto 34px;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}
.syllabus__row:hover { background: rgb(18 25 28 / .04); padding-left: 10px; }

.syllabus__plus {
  position: relative;
  width: 28px; height: 28px;
  background: var(--volt);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.syllabus__plus::before, .syllabus__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background .25s var(--ease);
}
.syllabus__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.syllabus__row:hover .syllabus__plus { border-color: var(--ink); }
.syllabus__item[open] .syllabus__plus {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
}
.syllabus__item[open] .syllabus__plus::before,
.syllabus__item[open] .syllabus__plus::after { background: var(--volt); }

.syllabus__body {
  padding: 4px 0 38px 90px;
  display: grid;
  gap: 24px;
  max-width: 72ch;
  animation: body-in .35s var(--ease);
}
@keyframes body-in {
  from { opacity: 0; transform: translateY(-8px); }
}
.syllabus__sec h3 {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.syllabus__sec p { color: var(--ink-60); font-size: .98rem; }
.syllabus__sec .dash-list li { padding-block: 8px; font-size: .95rem; }
.syllabus__sec .dash-list li:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .syllabus__body { padding-left: 0; }
}
.syllabus__idx { font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: var(--ink); background: var(--volt); padding: 3px 10px; justify-self: start; }
.syllabus__name {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.015em;
}
.syllabus__ects {
  text-align: right;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.syllabus__ects small { font-size: .6em; font-weight: 700; color: var(--ink-60); margin-left: 4px; }
.syllabus__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -.02em;
}
@media (max-width: 640px) {
  .syllabus__row { grid-template-columns: 1fr auto; }
  .syllabus__idx { display: none; }
}

/* --------------------------------------------------------------------------
   Profesores
   -------------------------------------------------------------------------- */

.direction {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}
.direction__intro { grid-column: 1 / 5; padding-bottom: 20px; }
.direction__intro .title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 18px; }
.direction__intro p { color: var(--bone-60); max-width: 30em; }
.direction .prof-card--lg { width: min(185px, 100%); justify-self: center; }
.direction .prof-card--lg:nth-of-type(1) { grid-column: 5 / 9; }
.direction .prof-card--lg:nth-of-type(2) { grid-column: 9 / 13; }
@media (max-width: 900px) {
  .direction__intro { grid-column: 1 / -1; }
  .direction .prof-card--lg:nth-of-type(1) { grid-column: 1 / 7; }
  .direction .prof-card--lg:nth-of-type(2) { grid-column: 7 / 13; margin-bottom: 0; }
}
@media (max-width: 560px) {
  .direction .prof-card--lg:nth-of-type(1),
  .direction .prof-card--lg:nth-of-type(2) { grid-column: 1 / -1; }
}

.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(24px, 3vw, 44px) clamp(18px, 2vw, 28px);
}
/* En móvil: 2 fotos por fila (más pequeñas) */
@media (max-width: 560px) {
  .prof-grid { grid-template-columns: 1fr 1fr; }
}
.prof-card { position: relative; text-align: center; transition: transform .22s var(--ease); }
.prof-card.reveal.in { transition: transform .22s var(--ease); }
.prof-card:hover { transform: translateY(-6px); }

/* Silueta recortada con el nombre en capas: el letrero queda detrás
   del cuerpo y asoma por delante a los lados */
.cutout {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  container-type: inline-size;
  border-bottom: 1px solid rgb(240 237 230 / .22);
}
/* Nombre en letras volt desfilando en horizontal por detrás de la silueta */
.cutout__name {
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  transform: translateY(-50%);
  z-index: 0;
  overflow: hidden;
  font-family: "Anton", "Inter", sans-serif;
  font-size: 2.6rem; /* fallback para navegadores sin container queries (iOS 15) */
  font-size: 19cqw;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--volt);
}
.cutout__name-track {
  display: inline-block;
  transform: translateX(2600px); /* fuera de plano hasta que arranca la ronda */
}
.cutout img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.85);
  transform-origin: center;
  /* Encuadre fino por foto (lo controla el editor de encuadre) */
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--z, 1));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.prof-card:hover .cutout img { transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(calc(var(--z, 1) * 1.05)); filter: saturate(1.05); }
.prof-card:hover .cutout__name { color: var(--bone); }
.prof-card figcaption { padding-top: 16px; }
.prof-card b {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.prof-card .role {
  display: inline-block;
  margin-top: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--volt);
  padding: 3px 10px;
}
.section--ink .prof-card b { color: var(--bone); }

/* --------------------------------------------------------------------------
   Matrícula
   -------------------------------------------------------------------------- */

.price-block { text-align: left; }
.price-block .price {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}
.price-block .price small { font-size: .35em; font-weight: 700; color: var(--ink-60); letter-spacing: 0; }

.dash-list { list-style: none; }
.dash-list li {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--ink-15);
  font-size: 1rem;
  color: var(--ink-60);
}
.dash-list li::before {
  content: "—";
  color: var(--volt);
  -webkit-text-stroke: .5px var(--ink);
  font-weight: 800;
  flex: none;
}
.section--ink .dash-list li { color: var(--bone-60); border-color: var(--bone-15); }
.section--ink .dash-list li::before { content: "—"; color: var(--volt); }

.steps {
  --steps-gap: clamp(18px, 2.5vw, 34px);
  --num-size: clamp(1.8rem, 3vw, 2.6rem);
  --dot-x: calc(0.645 * var(--num-size)); /* centro del punto = centro del número (cifras tabulares) */
  counter-reset: paso;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--steps-gap);
  padding-top: 52px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 10px; left: var(--dot-x); right: auto;
  width: calc(80% + 0.8 * var(--steps-gap)); /* del primer punto al último */
  height: 2px;
  background: rgb(240 237 230 / .16);
}
.steps::after {
  content: "";
  position: absolute;
  top: 10px; left: var(--dot-x); right: auto;
  width: calc(80% + 0.8 * var(--steps-gap));
  height: 2px;
  background: var(--volt);
  transform: scaleX(var(--linea, 0));
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.step {
  counter-increment: paso;
  position: relative;
}
.step::after {
  content: "";
  position: absolute;
  top: -48px; left: calc(var(--dot-x) - 6px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgb(240 237 230 / .28);
  transition: background .4s var(--ease);
}
.step.iluminado::after {
  background: var(--volt);
  animation: dot-pulse 2.6s ease-out infinite;
}
.step.iluminado::before {
  color: var(--volt);
  -webkit-text-stroke: 1.5px var(--volt);
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgb(200 245 80 / .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgb(200 245 80 / 0); }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 30px; gap: 30px; }
  .steps::before, .steps::after { top: 6px; bottom: auto; left: 6px; right: auto; width: 2px; height: var(--steps-fin, calc(100% - 12px)); }
  .steps::after { transform: scaleY(var(--linea, 0)); transform-origin: top; }
  .step::after { top: 6px; left: -29px; }
}
.step::before {
  content: "0" counter(paso);
  display: block;
  width: max-content;
  margin-bottom: 10px;
  font-size: var(--num-size);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-60);
}
.step:hover::before { color: var(--volt); -webkit-text-stroke: 1.5px var(--volt); }
.step h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.step p { color: var(--bone-60); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Contacto — formulario editorial
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.contact-grid .form-side { grid-column: 1 / 8; }
.contact-grid .info-side { grid-column: 8 / 13; }
@media (max-width: 900px) {
  /* una sola columna real: las 12 columnas con sus 11 huecos de gap
     desbordaban en pantallas de 320px */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .form-side, .contact-grid .info-side { grid-column: 1 / -1; }
}

.field { margin-bottom: 34px; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgb(18 25 28 / .35);
  padding: 10px 0 14px;
  transition: border-color var(--fast) var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgb(18 25 28 / .45); }

.info-item {
  border-top: 2px solid var(--ink);
  padding: 22px 0 34px;
}
.info-item .tag {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 12px;
}
.info-item a.big-link {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.015em;
  word-break: break-all;
  background-image: linear-gradient(var(--volt), var(--volt));
  background-size: 100% 0;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--fast) var(--ease);
}
.info-item a.big-link:hover { background-size: 100% 45%; }
.info-item p { color: var(--ink-60); font-size: .98rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--bone-60);
  padding-block: clamp(60px, 8vw, 90px) 36px;
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: 54px;
  border-bottom: 1px solid var(--bone-15);
  margin-bottom: 26px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { transition: color var(--fast) var(--ease); }
.footer a:hover { color: var(--volt); }
.footer .logo { margin-bottom: 20px; }
.footer__uam {
  display: inline-block;
  margin-top: 22px;
}
.footer__uam img {
  height: 48px;
  width: auto;
  opacity: .9;
  transition: opacity .15s;
}
.footer__uam:hover img { opacity: 1; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   Animaciones de entrada + parallax
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .kicker { margin-bottom: 24px; }
.section-head .title { font-size: clamp(2rem, 4vw, 3.4rem); }
.section-head .lead { margin-top: 22px; color: var(--ink-60); max-width: 40rem; }
.section--ink .section-head .lead { color: var(--bone-60); }

/* Enlace para saltar al contenido */
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 300;
  background: var(--ink);
  color: var(--bone);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: 999px;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Fallback para navegadores sin -webkit-text-stroke */
@supports not (-webkit-text-stroke: 1px black) {
  .outline-num, .feature__num, .step::before, .hero__edition, .page-head__ghost, .marquee--ink span {
    color: rgb(240 237 230 / .22);
  }
}

/* --------------------------------------------------------------------------
   Capa de vida: rebotes, resaltados, pops
   -------------------------------------------------------------------------- */

/* Pelota volt que rebota */
/* Punto-pelota: el punto final de los titulares es una pelota que
   cae al aparecer y rueda con el scroll */
.dot-ball {
  display: inline-block;
  width: .44em; height: .44em;
  margin-left: .14em;
  flex: none;
}
.dot-ball svg {
  display: block;
  width: 100%; height: 100%;
  transform: rotate(var(--roll, 0deg));
}
/* Bici de Profesorado: cruza la cabecera en horizontal dibujando una onda
   suave (avance lineal + vaivén vertical); ruedas y pedales giran en el SVG */
.bici-viajera {
  position: absolute;
  left: 0;
  bottom: 12%;
  width: 56px; height: 40px;
  z-index: 5;               /* por encima del texto para que se pueda pulsar */
  pointer-events: auto;     /* clicable: lleva a la ficha de Inés Ruiz */
  cursor: pointer;
  animation: bici-x 15s linear infinite;
  /* la primera pasada arranca ya junto al pie del 4 (56% del recorrido);
     las siguientes vueltas entran desde la izquierda con el ciclo completo */
  animation-delay: -7.5s;
}
/* área clicable más amplia (blanco pequeño y en movimiento) */
.bici-viajera::after { content: ""; position: absolute; inset: -16px; }
/* al pasar el ratón se detiene, así es fácil pulsarla */
.bici-viajera:hover,
.bici-viajera:hover .bici-viajera__onda,
.bici-viajera:hover svg { animation-play-state: paused; }
.bici-viajera__onda {
  display: block;
  width: 100%; height: 100%;
  /* Ruta que bordea el contenido (sincronizada con bici-x, misma duración):
     entra a la altura del párrafo → baja y pasa POR DEBAJO del texto de
     "Fórmate…" → al acercarse al 45 gigante sube y lo pasa POR ENCIMA. */
  animation: bici-ruta 15s ease-in-out infinite;
  animation-delay: -7.5s; /* sincronizada con bici-x: primera pasada junto al 4 */
}
.bici-viajera svg {
  display: block;
  width: 100%; height: 100%;
  /* pedaleo con ondulación ligera para que no vaya "planchada" */
  animation: bici-bob 1.2s ease-in-out infinite alternate;
}
/* El avance decelera PROGRESIVAMENTE al encarar el 4, escala despacio y
   vuelve a acelerar de forma gradual al coronar (sin cambios bruscos) */
@keyframes bici-x {
  0%   { transform: translateX(-70px); }
  56%  { transform: translateX(calc(65vw - 12px)); }   /* crucero */
  61%  { transform: translateX(calc(69vw - 8px)); }    /* decelera al pie del 4 */
  83%  { transform: translateX(calc(76.2vw - 2px)); }  /* escalada lenta */
  87%  { transform: translateX(calc(79vw + 1px)); }    /* corona, empieza a lanzar */
  92%  { transform: translateX(calc(85vw + 6px)); }    /* acelera gradualmente */
  100% { transform: translateX(calc(100vw + 20px)); }  /* llano rápido */
}
@keyframes bici-ruta {
  0%   { transform: translateY(0) rotate(0deg); }        /* entra a la altura del párrafo */
  5%   { transform: translateY(60px) rotate(0deg); }     /* baja: esquiva el párrafo por debajo */
  56%  { transform: translateY(60px) rotate(0deg); }     /* llano hasta el pie del 4 */
  59%  { transform: translateY(44px) rotate(-10deg); }   /* se va empinando poco a poco */
  63%  { transform: translateY(18px) rotate(-20deg); }   /* pendiente plena */
  83%  { transform: translateY(-114px) rotate(-18deg); } /* llegando arriba, aún inclinada */
  87%  { transform: translateY(-134px) rotate(-8deg); }  /* se endereza progresivamente */
  90%  { transform: translateY(-141px) rotate(0deg); }   /* nivelada en la cima, sin caballito */
  100% { transform: translateY(-141px) rotate(0deg); }   /* rueda por la línea superior del 4 y del 5 */
}
@keyframes bici-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}
/* Pantallas medias (portátiles pequeños/tablets apaisadas): la cabecera es
   más compacta, así que la ruta usa alturas recalibradas para que la bajada
   siga librando el párrafo y la escalada acabe justo en lo alto del 45. */
@media (min-width: 861px) and (max-width: 1120px) {
  @keyframes bici-ruta {
    0%   { transform: translateY(0) rotate(0deg); }
    5%   { transform: translateY(43px) rotate(0deg); }
    56%  { transform: translateY(43px) rotate(0deg); }
    59%  { transform: translateY(31px) rotate(-10deg); }
    63%  { transform: translateY(12px) rotate(-20deg); }
    83%  { transform: translateY(-104px) rotate(-18deg); }
    87%  { transform: translateY(-122px) rotate(-8deg); }
    90%  { transform: translateY(-129px) rotate(0deg); }
    100% { transform: translateY(-129px) rotate(0deg); }
  }
}
/* En pantallas estrechas no hay hueco para bordear (el párrafo ocupa todo el
   ancho y el 45 queda detrás): la bici cruza en llano por la franja libre
   entre el menú y el título, con su ondulación ligera. */
@media (max-width: 860px) {
  .bici-viajera { top: 88px; bottom: auto; width: 44px; height: 31px; }
  .bici-viajera__onda { animation: none; }
}
/* Zoom sobre la ficha de Inés al pulsar la ciclista */
.prof-card--zoom { transform: scale(1.8) !important; z-index: 60; }
.prof-card--zoom .cutout { box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.reveal.in .dot-ball {
  animation:
    dot-drop .85s cubic-bezier(.3, 1.2, .6, 1) both,
    dot-idle 2.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) + .4s), calc(var(--d, 0s) + 1.35s);
}
@keyframes dot-idle {
  from { transform: translateY(0); }
  to { transform: translateY(-.22em); }
}
@keyframes dot-drop {
  0% { transform: translateY(-1.6em); opacity: 0; }
  40% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(-.38em); }
  76% { transform: translateY(0); }
  87% { transform: translateY(-.12em); }
  100% { transform: translateY(0); }
}

/* Resaltado tipo rotulador que se pinta al aparecer */
mark.hl {
  background: linear-gradient(var(--volt), var(--volt)) no-repeat 0 74% / 0% 36%;
  color: inherit;
  transition: background-size .7s var(--ease) .35s;
}
.reveal.in mark.hl, .in mark.hl { background-size: 100% 36%; }

/* En fondos oscuros el rotulador parcial pierde legibilidad:
   bloque volt completo y texto en tinta */
.hero mark.hl, .cta mark.hl, .section--ink mark.hl {
  background-position: 0 50%;
  background-size: 0% 92%;
  padding: 0 .14em;
  margin: 0 -.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .55s var(--ease) .35s, color .18s var(--ease) .6s;
}
.hero .reveal.in mark.hl, .cta .reveal.in mark.hl, .section--ink .reveal.in mark.hl {
  background-size: 100% 92%;
  color: var(--ink);
}

/* Barra que se rellena hasta el 93% por detrás del dato */
.hero__stat { position: relative; }
.stat-over::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgb(200 245 80 / .14);
  border-right: 2px solid rgb(200 245 80 / .55);
  transition: width 1.6s cubic-bezier(.22, .61, .36, 1) .4s;
  pointer-events: none;
}
.stat-over { overflow: hidden; position: relative; }
.stat-over::before {
  background: rgb(18 25 28 / .12);
  border-right: 2px solid rgb(18 25 28 / .45);
}
.reveal.in .stat-over::before { width: 93%; }
.stat-over > * { position: relative; }

/* Pop con rebote para números y contadores al aparecer */
@keyframes pop {
  0% { transform: scale(.4); }
  62% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.reveal.in [data-count] { display: inline-block; animation: pop .5s var(--ease) both; animation-delay: var(--d, 0s); }

/* La regla del kicker se dibuja */
.reveal.in .kicker::before, .kicker.reveal.in::before {
  transform-origin: left;
  animation: grow-line .7s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + .15s);
}
@keyframes grow-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* La flecha del CTA principal empuja de vez en cuando */
.hero__cta .btn--volt .arrow { animation: nudge 2.8s ease-in-out 2s infinite; }
@keyframes nudge {
  0%, 18%, 100% { transform: translateX(0); }
  9% { transform: translateX(6px); }
}

/* La Psi saluda al pasar por el logo */
.logo:hover .logo__psi { animation: wiggle .55s var(--ease); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-14deg); }
  65% { transform: rotate(10deg); }
}

/* --------------------------------------------------------------------------
   Instagram — previsualización del perfil
   -------------------------------------------------------------------------- */

.ig-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(30px, 4vw, 48px);
}
.ig-split .ig-text { max-width: 44rem; }
.ig-split .ig-text .kicker { justify-content: center; }
.kicker { justify-content: flex-start; }

.ig-embed {
  margin-inline: auto;
  width: min(100%, 440px);
}

.ig-car { position: relative; }
.ig-car__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ig-car__track::-webkit-scrollbar { display: none; }
.ig-car__track { padding-block: 14px; }
.ig-car__slide {
  flex: 0 0 62%;
  aspect-ratio: 4 / 5;
  background: #0d1215;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(.82);
  opacity: .45;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.ig-car__slide.activa { transform: scale(1); opacity: 1; }
.ig-car__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.ig-car__slide--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  text-align: center;
  padding: 24px;
}
.ig-car__psi {
  font-family: "Anton", sans-serif;
  font-size: 3.4rem;
  color: var(--volt);
  line-height: 1;
}
.ig-car__slide--cta b { color: var(--bone); font-size: 1.15rem; letter-spacing: -.01em; }
.ig-car__cta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--volt);
}
.ig-car__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  border: none;
  border-radius: 999px;
  background: rgb(18 25 28 / .72);
  color: var(--bone);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.ig-car__btn:hover { background: var(--volt); color: var(--ink); transform: translateY(-50%) scale(1.06); }
.ig-car__btn--prev { left: 10px; }
.ig-car__btn--next { right: 10px; }

/* --------------------------------------------------------------------------
   Pelotas ambientales: cada deporte con su física
   -------------------------------------------------------------------------- */

/* Bote de baloncesto realista en los puntos-pelota de básket:
   cae acelerando, se aplasta al botar y sube frenando */
@keyframes dribble {
  0% { transform: translateY(-.62em) scale(1, 1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  42% { transform: translateY(0) scale(1, 1); animation-timing-function: linear; }
  48% { transform: translateY(0) scale(1.24, .78); animation-timing-function: linear; }
  54% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  100% { transform: translateY(-.62em) scale(1, 1); }
}
.reveal.in .dot-ball--basket {
  animation:
    dot-drop .85s cubic-bezier(.3, 1.2, .6, 1) both,
    dribble 1s infinite;
  animation-delay: calc(var(--d, 0s) + .4s), calc(var(--d, 0s) + 1.4s);
}

/* Balón de fútbol que cruza la pantalla rodando (suelo de las bandas CTA) */
.roller {
  position: absolute;
  left: 0;
  bottom: 14px;
  cursor: pointer;
  width: 40px; height: 40px;
  z-index: 1;
  pointer-events: none;
  animation: roll-cross 15s linear infinite;
}
.roller svg {
  display: block;
  width: 100%; height: 100%;
  animation: spin-cw 1.4s linear infinite;
}
@keyframes roll-cross {
  from { transform: translateX(-70px); }
  to { transform: translateX(calc(100vw + 70px)); }
}
@keyframes spin-cw { to { transform: rotate(360deg); } }

/* Pelota de tenis: va y viene entre campos dibujando una parábola */
.flyball {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 34px; height: 34px;
  z-index: 0;
  pointer-events: none;
  animation: flyball-x 5.6s linear infinite alternate;
}
.flyball__arc {
  display: block;
  width: 100%; height: 100%;
  animation: flyball-y 5.6s infinite;
}
.flyball svg {
  display: block;
  width: 100%; height: 100%;
  animation: spin-cw .9s linear infinite;
}
/* Parábola de la pelota de tenis: alta y dentro de la mitad derecha */
@keyframes flyball-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(45vw - 50px)); }
}
@keyframes flyball-y {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .5, 1); }
  50% { transform: translateY(-35vh); animation-timing-function: cubic-bezier(.5, 0, .8, .3); }
  100% { transform: translateY(0); }
}
@keyframes rally-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(94vw - 60px)); }
}
@keyframes rally-y {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .5, 1); }
  50% { transform: translateY(-22vh); animation-timing-function: cubic-bezier(.5, 0, .8, .3); }
  100% { transform: translateY(0); }
}

@keyframes cross-rtl {
  from { transform: translateX(calc(100vw + 80px)); }
  to { transform: translateX(-80px); }
}
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes hop {
  0% { transform: translateY(-110px) scale(1, 1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  44% { transform: translateY(0) scale(1, 1); animation-timing-function: linear; }
  50% { transform: translateY(0) scale(1.2, .8); animation-timing-function: linear; }
  56% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  100% { transform: translateY(-110px) scale(1, 1); }
}

.roller--head { bottom: 10px; width: 34px; height: 34px; }
.page-head--roller .page-head__inner { padding-bottom: clamp(80px, 10vw, 130px); }

/* Pelota de cada página repitiendo su movimiento sobre la banda de cierre */
.band-ball {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px; height: 38px;
  z-index: 0;
  pointer-events: none;
}
.band-ball svg { display: block; width: 100%; height: 100%; }
.band-ball--roll { animation: roll-cross 16s linear infinite; }
/* La ciclista sobre la cinta de cierre: cruce horizontal simple, sin ruta */
.band-ball--bici { width: 54px; height: 38px; animation: roll-cross 18s linear infinite; }
.band-ball--bici svg { display: block; width: 100%; height: 100%; }
.band-ball--roll svg { animation: spin-cw 1.5s linear infinite; }
.band-ball--lento { animation-duration: 22s; }
.band-ball--bounce { width: 44px; height: 44px; animation: cross-rtl 15s linear infinite; }
.band-ball__hop { display: block; width: 100%; height: 100%; animation: hop .85s infinite; }
.band-ball--bounce svg { animation: spin-ccw 1.1s linear infinite; }
.band-ball--rally { width: 34px; height: 34px; animation: rally-x 5.6s linear infinite alternate; }
.band-ball__arc { display: block; width: 100%; height: 100%; animation: rally-y 5.6s infinite; }
.band-ball--rally svg { animation: spin-cw .9s linear infinite; }

/* Las pelotas responden al clic: se invierte su trayectoria */
.roller, .flyball, .band-ball, .dot-ball {
  pointer-events: auto;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Cajas de "Compatible con tu vida"
   -------------------------------------------------------------------------- */

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.box {
  background: var(--ink);
  color: var(--tx-inv, #edf3ec);
  padding: clamp(26px, 3vw, 38px);
  position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.box:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgb(18 25 28 / .6); }
.box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 4px;
  background: var(--volt);
}
.box__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 16px;
}
.box__big {
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #f0ede6;
  margin-bottom: 14px;
}
.box > p:last-child { color: rgb(240 237 230 / .62); font-size: .95rem; }
.box--volt { background: var(--volt); }
.box--volt::before { background: var(--ink); }
.box--volt .box__tag { color: var(--ink); }
.box--volt .box__big { color: var(--ink); }
.box--volt > p:last-child { color: rgb(18 25 28 / .72); }
.box a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.box--volt a { color: var(--ink); }

/* --------------------------------------------------------------------------
   Preinscripción: pasos del proceso y área de descargas
   -------------------------------------------------------------------------- */

.proc-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: 30px 0;
  border-top: 1px solid var(--ink-15);
}
.proc-step:first-of-type { border-top: none; padding-top: 8px; }
.proc-step__n {
  flex: none;
  width: clamp(46px, 6vw, 62px);
  height: clamp(46px, 6vw, 62px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}
.proc-step__body h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.proc-step__body p { color: var(--ink-60); }
.proc-step__body .dash-list { margin-top: 6px; }
.proc-step a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.proc-step a:hover { opacity: .6; }

.doc-list { list-style: none; display: grid; gap: 12px; margin-top: 34px; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  background: var(--bone-15);
  border: 1px solid var(--bone-15);
  border-radius: 14px;
  color: var(--bone);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.doc-list a:hover { background: rgb(240 237 230 / .12); border-color: var(--volt); transform: translateY(-2px); }
.doc-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}
.doc-tx { display: flex; flex-direction: column; min-width: 0; }
.doc-tx b { font-size: 1.02rem; font-weight: 700; }
.doc-tx small { color: var(--bone-60); font-size: .84rem; margin-top: 2px; }
.doc-fmt {
  margin-left: auto;
  flex: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--volt);
  border: 1px solid var(--bone-15);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Preinscripción: banner de fechas junto a "Preinscripción online" */
.preins-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.preins-intro .split__text { grid-column: auto; max-width: 46rem; }
.plazo-card {
  position: relative;
  align-self: center;
  min-width: 262px;
  max-width: 322px;
  background: var(--ink);
  color: var(--bone);
  padding: 30px 32px 24px;
  border-top: 6px solid var(--volt);
  transform: rotate(-2deg);
  filter: drop-shadow(0 18px 34px rgb(18 25 28 / .42));
  animation: plazo-float 4s var(--ease) infinite;
}
/* pequeño triángulo volt en la esquina, como un sello */
.plazo-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  border-width: 0 20px 20px 0;
  border-style: solid;
  border-color: transparent var(--volt) transparent transparent;
  opacity: .9;
}
@keyframes plazo-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-9px); }
}
.plazo-card__cap {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 14px;
}
.plazo-card__line {
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.plazo-card__line em {
  font-style: normal;
  font-weight: 600;
  font-size: .6em;
  color: var(--bone-60);
  margin-right: .2em;
}
.plazo-card__note {
  display: block;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--bone-60);
}
@media (max-width: 820px) {
  .preins-intro { grid-template-columns: 1fr; }
  .plazo-card { justify-self: start; margin-top: 10px; }
}

/* Botón de ayuda flotante (siempre visible) */
.help-fab {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgb(18 25 28 / .55);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgb(18 25 28 / .65); }
.help-fab svg { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------------------
   Diferenciales como viñetas deslizantes con foto
   -------------------------------------------------------------------------- */

.feat-car { position: relative; margin-top: 44px; }
.feat-track {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.feat-track::-webkit-scrollbar { display: none; }
.feat-slide {
  position: relative;
  flex: 0 0 min(540px, 82%);
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  scroll-snap-align: start;
}
.feat-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.85);
}
.feat-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(18 25 28 / .94) 12%, rgb(18 25 28 / .45) 55%, rgb(18 25 28 / .15));
}
.feat-slide__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 30px);
}
.feat-slide__num {
  position: absolute;
  top: 14px; right: 18px;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--volt);
  animation: num-bob-strong 2s ease-in-out infinite alternate;
}
@keyframes num-bob-strong {
  from { translate: 0 6px; }
  to { translate: 0 -14px; }
}
.feat-slide h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #f0ede6;
  margin-bottom: 8px;
}
.feat-slide p { color: rgb(240 237 230 / .72); font-size: .95rem; max-width: 40em; }
.feat-car .ig-car__btn--prev { left: -8px; }
.feat-car .ig-car__btn--next { right: -8px; }

