/* PADEL for PLAYERS — padelforplayers.com
   Dirección: página de producto estilo Apple. Fotografía grande, frases cortas, mucho aire,
   bandas oscuras (azul profundo) y claras (hielo) alternadas. Lima solo como acento.
   Movimiento según Emil Kowalski: ease-out fuerte, transform/opacity, nada por debajo de scale(.95),
   animaciones ligadas al scroll cuando el navegador lo soporta y reducidas con prefers-reduced-motion.
   Paleta y logos: kit de marca v4. */

:root {
  /* Color */
  --night: #0B2545;      /* azul profundo */
  --night-2: #08182F;    /* sombra del profundo para fondos de foto */
  --azul: #123E73;
  --medio: #235788;
  --lima: #D4EC31;
  --hielo: #F3F6FA;
  --platino: #E5E9ED;
  --ink: #0B2545;
  --ink-2: #566878;
  --white: #FFFFFF;
  --on-night-2: rgba(255, 255, 255, .66);
  --hair: rgba(11, 37, 69, .12);
  --hair-night: rgba(255, 255, 255, .14);

  /* Type */
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --max: 1240px;
  --gutter: clamp(16px, 5vw, 64px);
  --r-lg: clamp(20px, 2.4vw, 32px);
  --r-md: 18px;

  color-scheme: light;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hielo);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--medio); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--night); color: var(--white); }
.light { background: var(--hielo); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }

/* ---------- Tipografía ---------- */
.display, h1, h2 {
  font-family: var(--f);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.4vw, 7rem); }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h3 { font: 600 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--f); letter-spacing: -.02em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); max-width: 46ch; }
.dark .lead { color: var(--on-night-2); }
.soft { color: var(--ink-2); }
.dark .soft { color: var(--on-night-2); }
.eyebrow { font: 400 .74rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.dark .eyebrow { color: var(--on-night-2); }
.lima { color: var(--lima); }
.light .lima, .white .lima { color: var(--medio); }
.grad {
  background: linear-gradient(100deg, var(--lima) 0%, #9FE0C9 55%, #7EB6F2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.light .grad, .white .grad { background-image: linear-gradient(100deg, var(--medio), #2F7DCC 60%, #5AA39A); }
.center { text-align: center; margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

.section { padding-block: clamp(96px, 13vw, 180px); }
.section--s { padding-block: clamp(64px, 8vw, 112px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 0;
  font: 500 .98rem/1 var(--f); letter-spacing: -.005em; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.btn--lima { background: var(--lima); color: var(--night); }
.btn--ink { background: var(--night); color: var(--white); }
.btn--glass { background: rgba(255, 255, 255, .12); color: var(--white); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.light .btn--glass, .white .btn--glass { background: rgba(11, 37, 69, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .btn--lima:hover { box-shadow: 0 8px 28px rgba(212, 236, 49, .35); }
  .btn--ink:hover { background: var(--azul); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center .actions, .actions.center { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: .35em; font-weight: 500; color: var(--medio); }
.dark .more { color: var(--lima); }
.more svg { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(3px); } }

/* ---------- Navegación: cromo flotante translúcido ---------- */
.nav {
  position: fixed; z-index: 60;
  top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 980px);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(11, 37, 69, .62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(6, 18, 36, .22);
  color: var(--white);
  transition: background-color 300ms ease;
}
.nav.is-scrolled { background: rgba(11, 37, 69, .8); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { width: 38px; height: auto; }
.brand span { font: 400 .78rem/1 var(--f); letter-spacing: .12em; text-transform: uppercase; }
.brand b { font-weight: 600; }
.nav__links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 10px 14px; border-radius: 999px; font-size: .9rem; color: rgba(255, 255, 255, .78); transition: color 150ms ease, background-color 150ms ease; }
.nav__links a:hover { color: var(--white); }
.nav__links a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .12); }
.nav .btn { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.nav__toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; transition: transform 160ms var(--ease-out); }
.nav__toggle:active { transform: scale(.94); }
.nav__toggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
}
.sheet {
  position: fixed; z-index: 59; inset: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) 40px;
  background: rgba(8, 24, 47, .9);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet a:not(.btn) { font: 600 2.2rem/1.2 var(--f); letter-spacing: -.03em; padding-block: 10px; border-bottom: 1px solid var(--hair-night); }
.sheet .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Revelado al hacer scroll (CSS scroll-driven; sin soporte = estático) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .reveal-img img {
      animation: imgIn both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes imgIn { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- Hero con imagen que se encoge al hacer scroll ---------- */
.hero { position: relative; height: 185vh; background: var(--night); color: var(--white); view-timeline: --hero block; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .phero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroLoad 1600ms var(--ease-out) both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 47, .55) 0%, rgba(8, 24, 47, .15) 35%, rgba(8, 24, 47, .75) 100%); }
.hero__text { position: relative; z-index: 1; text-align: center; display: grid; gap: 22px; justify-items: center; padding-inline: var(--gutter); }
.hero__text h1 { max-width: 15ch; }
.hero__text h1 span { display: block; }
.hero__text > * { animation: rise 900ms var(--ease-out) both; }
.hero__text > *:nth-child(2) { animation-delay: 80ms; }
.hero__text > *:nth-child(3) { animation-delay: 160ms; }
.hero__text > *:nth-child(4) { animation-delay: 240ms; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); display: grid; justify-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--lima), transparent); animation: drip 1800ms var(--ease-io) infinite; transform-origin: top; }
@keyframes heroLoad { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media {
      animation: heroInset both linear;
      animation-timeline: --hero;
      animation-range: contain 0% contain 85%;
    }
    .hero__text {
      animation: heroText both linear;
      animation-timeline: --hero;
      animation-range: contain 0% contain 55%;
    }
  }
}
@keyframes heroInset { from { clip-path: inset(0 0 round 0); } to { clip-path: inset(9vh var(--gutter) round var(--r-lg)); } }
@keyframes heroText { to { opacity: 0; transform: translateY(-40px) scale(.96); } }
@media (max-width: 760px) { .hero { height: 150vh; } }
@media (max-height: 640px) { .hero__scroll { display: none; } }

/* Hero corto de páginas interiores */
.phero { position: relative; min-height: 88vh; min-height: 88svh; display: grid; align-items: end; color: var(--white); background: var(--night); overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroLoad 1600ms var(--ease-out) both; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 47, .45) 0%, rgba(8, 24, 47, 0) 30%, rgba(8, 24, 47, .85) 100%); }
.phero__text { position: relative; z-index: 1; display: grid; gap: 20px; padding-block: 140px clamp(56px, 8vw, 104px); }
.phero__text > * { animation: rise 900ms var(--ease-out) both; }
.phero__text > *:nth-child(2) { animation-delay: 80ms; }
.phero__text > *:nth-child(3) { animation-delay: 160ms; }
.phero__text h1 { font-size: clamp(2.8rem, 7.4vw, 6.6rem); max-width: 13ch; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .phero__media img { animation: parallax both linear; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes parallax { to { transform: translateY(18%) scale(1.06); } }

/* ---------- Frase que se ilumina palabra a palabra ---------- */
.statement { font: 600 clamp(2rem, 4.6vw, 4rem)/1.12 var(--f); letter-spacing: -.035em; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement .w { transition: color 300ms ease; }
.js .statement .w { color: rgba(255, 255, 255, .18); }
.js .light .statement .w, .js .white .statement .w { color: rgba(11, 37, 69, .16); }
.js .statement .w.on { color: inherit; }
.js .statement .w.on.lima { color: var(--lima); }
.js .light .statement .w.on.lima { color: var(--medio); }

/* ---------- Dos puertas ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.door { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; color: var(--white); background: var(--night-2); isolation: isolate; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); z-index: -1; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 47, .5) 0%, rgba(8, 24, 47, 0) 35%, rgba(8, 24, 47, .8) 100%); }
.door__top { position: absolute; top: clamp(22px, 3vw, 36px); left: clamp(22px, 3vw, 36px); right: clamp(22px, 3vw, 36px); display: grid; gap: 10px; }
.door__top h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; max-width: 14ch; }
.door__bottom { position: absolute; bottom: clamp(22px, 3vw, 36px); left: clamp(22px, 3vw, 36px); display: flex; align-items: center; gap: 12px; }
.door__plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.door__plus svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .door:hover img { transform: scale(1.04); }
  .door:hover .door__plus { transform: rotate(90deg); background: var(--lima); color: var(--night); }
}
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 4 / 4.6; } }

/* ---------- Tarjetas apiladas (sticky stack) ---------- */
.stack { display: grid; gap: 20px; }
.scard {
  position: sticky; top: calc(96px + var(--i, 0) * 18px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: min(68vh, 560px);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -30px rgba(11, 37, 69, .35);
  transform-origin: top center;
}
.scard__text { padding: clamp(28px, 4vw, 56px); display: grid; align-content: space-between; gap: 32px; }
.scard__text > div { display: grid; gap: 14px; }
.scard__k { font: 500 .8rem/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--medio); }
.scard__n { font: 600 clamp(4rem, 9vw, 8rem)/.9 var(--f); letter-spacing: -.05em; color: var(--night); font-variant-numeric: tabular-nums; }
.scard__n small { font-size: .32em; letter-spacing: -.01em; color: var(--ink-2); margin-left: .2em; font-weight: 500; }
.scard h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; }
.scard__img { position: relative; overflow: hidden; }
.scard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard--dark { background: var(--azul); color: var(--white); }
.scard--dark .scard__k { color: var(--lima); }
.scard--dark .scard__n { color: var(--white); }
.scard--dark .soft { color: var(--on-night-2); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scard { animation: sink both linear; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
  }
}
@keyframes sink { to { transform: scale(.94); filter: brightness(.82); } }
@media (max-width: 760px) {
  .scard { grid-template-columns: 1fr; min-height: 0; top: calc(84px + var(--i, 0) * 12px); }
  .scard__img { aspect-ratio: 16 / 10; order: -1; }
}

/* ---------- Cifras ---------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.fig { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--hair-night); }
.fig__n { font: 600 clamp(3.4rem, 7.4vw, 6.4rem)/.95 var(--f); letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig__l { color: var(--on-night-2); font-size: 1rem; max-width: 24ch; }
.src { font-size: .75rem; color: var(--on-night-2); margin-top: 40px; }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr; } }

/* ---------- Marquesina de destinos ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 600 clamp(2.6rem, 7vw, 6rem)/1.1 var(--f); letter-spacing: -.045em; padding-inline: .45em; white-space: nowrap; display: inline-flex; align-items: center; gap: .9em; }
.marquee__track span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--lima); flex: none; }
.light .marquee__track span::after { background: var(--medio); box-shadow: 0 0 0 4px var(--lima); }
.marquee__track span.out { -webkit-text-stroke: 1px currentColor; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bloque foto + texto ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.duo__text { display: grid; gap: 22px; }
.duo__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--night-2); }
.duo__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Sticky con imágenes que se funden (Jugadores) ---------- */
.scrolly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.scrolly__steps { display: grid; }
.scrolly__step { min-height: 78vh; display: grid; align-content: center; gap: 16px; padding-block: 40px; }
.scrolly__step h3 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -.04em; line-height: 1.04; transition: color 300ms ease; }
.scrolly__step p { max-width: 36ch; transition: opacity 300ms ease; }
.js .scrolly__step:not(.is-active) h3 { color: rgba(255, 255, 255, .25); }
.js .scrolly__step:not(.is-active) p { opacity: .3; }
.scrolly__step .scard__k { color: var(--lima); }
.scrolly__media { position: sticky; top: 12vh; height: 76vh; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); }
.scrolly__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); filter: blur(4px); transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out), filter 500ms var(--ease-out); }
.scrolly__media img.is-active { opacity: 1; transform: none; filter: none; }
.scrolly__media img:first-child { opacity: 1; transform: none; filter: none; }
.js .scrolly__media img:first-child:not(.is-active) { opacity: 0; transform: scale(1.04); filter: blur(4px); }
.scrolly__dots { position: absolute; z-index: 1; left: 20px; bottom: 20px; display: flex; gap: 6px; }
.scrolly__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.scrolly__dots i.is-active { width: 22px; background: var(--lima); }
@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly__media { top: 76px; height: 46vh; order: -1; z-index: 1; }
  .scrolly__step { min-height: 60vh; }
}

/* ---------- Carrusel horizontal con scroll-snap (Clubes) ---------- */
.rail { --edge: max(var(--gutter), calc((100% - var(--max)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 32%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--edge); scroll-padding-inline: var(--edge); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; color: var(--white); background: var(--night-2); }
.rail__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.rail__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 47, 0) 40%, rgba(8, 24, 47, .88) 100%); }
.rail__body { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 8px; }
.rail__body p { color: var(--on-night-2); font-size: .98rem; }
@media (hover: hover) and (pointer: fine) { .rail__item:hover img { transform: scale(1.04); } }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(11, 37, 69, .07); color: var(--ink); display: grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.rail-nav button:active { transform: scale(.94); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .rail { grid-auto-columns: 82%; } }

/* Pasos */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps3 li { counter-increment: s; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--hair); }
.steps3 li::before { content: "0" counter(s); font: 600 .9rem/1 var(--f); color: var(--medio); letter-spacing: .04em; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* Dato grande */
.big-num { font: 600 clamp(4.4rem, 15vw, 13rem)/.9 var(--f); letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Equipo (estructura Kinso) ---------- */
.team-hero { padding-block: clamp(150px, 16vw, 210px) clamp(48px, 6vw, 80px); text-align: center; display: grid; gap: 28px; justify-items: center; }
.team-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 14ch; }
.founders { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.founders__text { display: grid; gap: 18px; }
.founders__text h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -.035em; line-height: 1.08; }
.founders__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--platino); box-shadow: 0 40px 80px -40px rgba(11, 37, 69, .45); }
.founders__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
.divider { display: flex; align-items: center; gap: 20px; justify-content: center; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 0 1 220px; background: var(--hair); }
.divider span { font: 500 .74rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 10px 16px; border: 1px solid var(--hair); border-radius: 999px; background: var(--white); }
.humans { font: 600 clamp(1.8rem, 3.6vw, 3rem)/1.1 var(--f); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.people { display: grid; gap: 28px; }
.avatars { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--platino); transition: transform 300ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(.4); transition: filter 300ms ease; }
.avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--lima); opacity: 0; transform: scale(.94); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.avatar[aria-selected="true"] { transform: scale(1.32); margin-inline: 12px; }
.avatar[aria-selected="true"] img { filter: none; }
.avatar[aria-selected="true"]::after { opacity: 1; transform: none; }
.avatar:active { transform: scale(.95); }
.avatar[aria-selected="true"]:active { transform: scale(1.28); }
@media (hover: hover) and (pointer: fine) { .avatar:hover img { filter: none; } }
.person { display: grid; gap: 6px; max-width: 62ch; min-height: 9.5em; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.person.is-swapping { opacity: 0; filter: blur(2px); transform: translateY(6px); }
.person__name { font: 600 1.35rem/1.2 var(--f); letter-spacing: -.02em; }
.person__role { font-weight: 500; color: var(--medio); }
.person__bio { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- CTA final ---------- */
.final { text-align: center; display: grid; gap: 28px; justify-items: center; }
.final h2 { max-width: 14ch; }

/* ---------- Pie ---------- */
.footer { background: var(--night-2); color: var(--white); padding-block: clamp(72px, 9vw, 120px) 32px; }
.footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social .mail { white-space: nowrap; }
.footer__logo { width: min(200px, 100%); }
.footer__lema { margin-top: 24px; font: 600 1.5rem/1.2 var(--f); letter-spacing: -.03em; max-width: 18ch; }
.footer h4 { margin: 0 0 16px; font: 400 .74rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .82); transition: color 150ms ease; }
.footer a:hover { color: var(--white); }
.footer button.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--lima); font-size: 1rem; }
.footer__base { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--hair-night); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--on-night-2); }
@media (max-width: 1100px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Popup de lista de espera (al empezar a deslizar) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear 180ms; }
.modal.is-open { visibility: visible; transition-delay: 0s; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8, 24, 47, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 180ms ease; }
.modal.is-open .modal__scrim { opacity: 1; transition-duration: 260ms; }
.modal__card {
  position: relative; width: min(100%, 460px);
  background: var(--platino); color: var(--ink);
  border-radius: 6px; padding: 44px clamp(24px, 5vw, 44px) 36px;
  box-shadow: 0 40px 100px -20px rgba(8, 24, 47, .5);
  display: grid; gap: 18px; text-align: center;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.modal.is-open .modal__card { opacity: 1; transform: none; transition-duration: 260ms, 320ms; }
.modal__close { position: absolute; top: 14px; right: 14px; border: 0; background: none; cursor: pointer; font: 500 .7rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 10px; border-radius: 6px; transition: color 150ms ease; }
.modal__close:hover { color: var(--ink); }
.modal__logo { width: 170px; margin: 0 auto 4px; }
.modal h2 { font: 600 1.9rem/1.1 var(--f); letter-spacing: -.03em; }
.modal__sub { color: var(--ink-2); font-size: .95rem; }
.wl { display: grid; gap: 14px; margin-top: 8px; text-align: left; }
.wl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; border-bottom: 1px solid rgba(11, 37, 69, .35); transition: border-color 160ms ease; }
.wl__row:focus-within { border-color: var(--ink); }
.wl input, .wl select { width: 100%; border: 0; background: transparent; font: 400 1rem/1.4 var(--f); color: var(--ink); padding: 12px 0; outline: none; }
.wl input::placeholder { color: var(--ink-2); }
.wl select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230B2545' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 16px; }
.wl select:invalid { color: var(--ink-2); }
.wl__field { border-bottom: 1px solid rgba(11, 37, 69, .35); transition: border-color 160ms ease; }
.wl__field:focus-within { border-color: var(--ink); }
.wl__otro { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms var(--ease-out), opacity 180ms ease; }
.wl__otro > div { overflow: hidden; }
.wl__otro.is-open { grid-template-rows: 1fr; opacity: 1; }
.wl__submit { border: 0; background: none; cursor: pointer; font: 600 .74rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 14px 0 14px 8px; transition: color 150ms ease, transform 140ms var(--ease-out); white-space: nowrap; }
.wl__submit:hover { color: var(--medio); }
.wl__submit:active { transform: scale(.97); }
.wl__submit:disabled { opacity: .5; cursor: default; }
.wl__msg { font-size: .88rem; min-height: 1.3em; color: var(--ink-2); text-align: center; }
.wl__msg.is-error { color: #A3261B; }
.wl__msg.is-ok { color: var(--azul); font-weight: 500; }
.wl__legal { font-size: .72rem; color: var(--ink-2); text-align: center; }

/* utilidades */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--lima); color: var(--night); padding: 8px 12px; border-radius: 8px; }
.gap-l { margin-top: clamp(48px, 6vw, 88px); }
.gap-m { margin-top: clamp(28px, 3vw, 44px); }
.head { display: grid; gap: 20px; max-width: 860px; }
.head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > *, .phero__text > *, .hero__media img, .phero__media img { animation: none; }
  .hero__scroll i { animation: none; }
  .marquee__track { animation: none; }
  .scrolly__media img { transform: none !important; filter: none !important; transition: opacity 200ms ease; }
  .modal__card { transform: none !important; }
  .door img, .rail__item img { transition: none; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet, .btn--glass, .door__plus { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav, .sheet { background: var(--night); }
}
