@font-face {
  font-family: "Kantumruy Pro";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/kantumruy-pro-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;
}
@font-face {
  font-family: "Kantumruy Pro";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/kantumruy-pro-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/ubuntu-sans-mono-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;
}
@font-face {
  font-family: "Ubuntu Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/ubuntu-sans-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens. Desktop sizes are in vw so the first viewport keeps the approved
   composition (measured on a 2752 px wide comp) at every desktop width. */
:root {
  --ground: #181818;
  --ink: #f6f6f6;
  --ink-soft: #c4c4c4;
  --ink-mute: #929292;
  --ink-quiet: #8f8f8f;
  --rule: #333333;
  --sans: "Kantumruy Pro", system-ui, sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, monospace;
  --gutter: 4.18vw;
  --hairline: max(1px, 0.0727vw);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --display: clamp(40px, 5.4vw, 136px);
  --headline: clamp(30px, 3.2vw, 84px);
  --title: clamp(20px, 1.6vw, 36px);
  --body: clamp(17px, 1.2vw, 25px);
  --label: clamp(13px, 0.9vw, 19px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #4a4a4a var(--ground);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--ground); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: max(2px, 0.08vw) solid var(--ink);
  outline-offset: max(3px, 0.12vw);
}
img { display: block; max-width: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h2 { text-wrap: balance; }
input { caret-color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: #141414;
  font-size: 16px;
}
.skip-link:focus { top: 16px; }

/* ---------- The film: one camera flight behind the whole page ---------- */
.film { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.film-canvas, .spark-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* --shade dims the whole film; --scrim darkens the corner where the text sits */
.film-shade {
  position: absolute;
  inset: 0;
  background-color: rgba(24, 24, 24, var(--shade, 0));
  background-image: linear-gradient(to top, rgba(24, 24, 24, var(--scrim, 0)) 0%, rgba(24, 24, 24, calc(var(--scrim, 0) * 0.55)) 34%, rgba(24, 24, 24, 0) 64%);
}
.film-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.film-still.is-on { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 4.4695vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.653vw 0 2.69vw;
  border-bottom: var(--hairline) solid var(--rule);
  transition: transform 520ms var(--ease-out), border-color 300ms ease-out;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -70% 0;
  z-index: -1;
  background: linear-gradient(rgba(24, 24, 24, 0.9), rgba(24, 24, 24, 0));
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}
.nav.is-floating { border-bottom-color: transparent; }
.nav.is-floating::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-101%); }
/* Logo: the drawn "El corte" mark, inline so it takes the text color */
.wordmark, .footer-logo { display: block; line-height: 0; color: var(--ink); }
.logo { display: block; width: auto; height: 1.42vw; overflow: visible; }
.footer-logo { display: inline-block; margin-bottom: 1.2em; }
.footer-logo .logo { height: clamp(22px, 1.4vw, 32px); }
/* On load the points rise from the valley floor to the ridges, then the name appears */
.js .nav .logo .dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: dot-rise 640ms var(--ease-out) both;
  animation-delay: var(--d);
}
.js .nav .logo-type { animation: type-in 520ms ease-out 420ms both; }
@keyframes dot-rise { from { transform: translateY(18px) scale(0.4); } }
@keyframes type-in { from { opacity: 0.2; } }
.nav-menu { display: flex; align-items: center; }
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.945vw;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #a8a8a8;
}
.nav-links li:nth-child(1) { width: 9.23vw; }
.nav-links li:nth-child(2) { width: 6.47vw; }
.nav-links li:nth-child(3) { width: 5.27vw; }
.nav-links li:nth-child(4) { width: 6.21vw; }
.nav-links a { transition: color 160ms ease-out; }
.nav-links a:hover { color: var(--ink); }

/* Buttons: white fill; on hover a brighter white sweeps in from the left */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #141414;
  font-family: var(--sans);
  line-height: 1;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); }
.btn-nav { gap: 0.28em; width: 11.34vw; height: 2.616vw; font-size: 0.98vw; }

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed;
  right: 1.5vw;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  transition: opacity 400ms ease-out;
}
.rail ol { display: flex; flex-direction: column; gap: 0.35vw; margin: 0; padding: 0; list-style: none; }
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9em;
  min-height: 1.9vw;
  font-family: var(--mono);
  font-size: max(11px, 0.72vw);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a8;
}
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity 240ms ease-out, transform 240ms var(--ease-out); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a::after {
  content: "";
  flex: none;
  width: max(5px, 0.36vw);
  height: max(5px, 0.36vw);
  border-radius: 50%;
  background: #5c5c5c;
  transition: background-color 300ms ease-out, transform 400ms var(--ease-out);
}
.rail a[aria-current="step"]::after { background: var(--ink); transform: scale(1.6); }
.rail.is-away { opacity: 0; pointer-events: none; }

/* ---------- Hero: the valley from Las Palmas ---------- */
.hero { position: relative; height: max(100vh, 52.9vw); height: max(100svh, 52.9vw); }
.hero-valley {
  position: absolute;
  left: 0;
  top: 4.7965vw;
  width: 100%;
  height: 28.888vw;
  overflow: hidden;
}
.hero-valley img {
  position: absolute;
  left: -1.795vw;
  top: -1.374vw;
  width: 103.59vw;
  height: auto;
}
.hero-copy { position: absolute; left: var(--gutter); top: 34.62vw; }
.hero h1 {
  font-size: 3.924vw;
  line-height: 1;
  letter-spacing: -0.012em;
  word-spacing: -0.08em;
}
.hero h1 span { display: block; }
.hero h1 .h1-lead { color: var(--ink-mute); }
.hero h1 .h1-turn { color: var(--ink); }
.lede {
  margin-top: 0.98vw;
  font-size: 1.3627vw;
  line-height: 1.2;
  color: var(--ink-quiet);
  white-space: nowrap;
}
.hero-actions { display: flex; align-items: center; gap: 1.53vw; margin-top: 1.45vw; }
.btn-hero { width: 12.1vw; height: 2.798vw; font-size: 1.09vw; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 1.036vw;
  line-height: 1;
  color: #8c8c8c;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}
.link-arrow:hover { color: var(--ink); text-decoration-color: currentColor; }
.icon-arrow { width: 0.9em; height: 0.9em; flex: none; transition: transform 300ms var(--ease-out); }
.link-arrow:hover .icon-arrow { transform: translateX(0.25em); }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(20px, 2vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9vw;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: max(11px, 0.78vw);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a8;
  transition: color 160ms ease-out;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue i {
  display: block;
  width: 1px;
  height: max(36px, 3.2vw);
  background: linear-gradient(var(--ink), rgba(246, 246, 246, 0));
  transform-origin: top;
  animation: cue 2.6s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Scroll scenes ---------- */
.scene { position: relative; }
.vuelo { height: 420vh; }
.ciudad { height: 230vh; }
.cierre { height: 300vh; }
.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* The flight: four lines, one at a time, gray setup and white turn */
.line {
  position: absolute;
  left: var(--gutter);
  bottom: 17vh;
  max-width: 13em;
  padding-bottom: 0.14em;
  overflow: hidden;
  font-size: var(--display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  word-spacing: -0.06em;
  color: var(--ink-mute);
  opacity: calc(1 - var(--out, 0));
  visibility: hidden;
}
.line > span {
  display: block;
  transform: translate3d(0, calc((1 - var(--in, 0)) * 108% - var(--out, 0) * 24%), 0);
  will-change: transform;
}
.line em { font-style: normal; color: var(--ink); }
.line.is-live { visibility: visible; }
.line-final { max-width: 16em; font-size: clamp(30px, 3.5vw, 90px); line-height: 1.08; text-wrap: balance; }
.progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 7vh;
  height: 1px;
  background: rgba(246, 246, 246, 0.16);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* The city up close: tap a sector and its words rise out of the lights */
.ciudad-panel {
  position: absolute;
  left: var(--gutter);
  bottom: 11vh;
  width: min(30vw, 620px);
}
.ciudad h2 { font-size: var(--headline); line-height: 1.08; letter-spacing: -0.012em; word-spacing: -0.06em; }
.sectores { margin-top: clamp(20px, 2vw, 44px); border-top: var(--hairline) solid rgba(246, 246, 246, 0.22); }
.sector {
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: 100%;
  padding: clamp(13px, 1.05vw, 24px) 0;
  border: 0;
  border-bottom: var(--hairline) solid rgba(246, 246, 246, 0.22);
  background: none;
  color: #a8a8a8;
  font: inherit;
  font-size: clamp(18px, 1.35vw, 30px);
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease-out, padding-left 420ms var(--ease-out);
}
.sector::before {
  content: "";
  flex: none;
  width: 0.36em;
  height: 0.36em;
  border: max(1px, 0.0727vw) solid currentColor;
  border-radius: 50%;
  transition: background-color 200ms ease-out, transform 420ms var(--ease-out);
}
.sector:hover { color: var(--ink); padding-left: 0.3em; }
.sector[aria-pressed="true"] { color: var(--ink); padding-left: 0.3em; }
.sector[aria-pressed="true"]::before { background: var(--ink); transform: scale(1.35); }
.sector-texto {
  min-height: 3.1em;
  margin-top: clamp(14px, 1.2vw, 28px);
  font-size: var(--body);
  line-height: 1.5;
  color: #b5b5b5;
}
/* Where the words form; shown as plain text when there are no particles */
.ciudad-words {
  position: absolute;
  left: 40vw;
  right: calc(var(--gutter) + 2vw);
  top: 15vh;
  bottom: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  font-size: clamp(40px, 6.2vw, 160px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  pointer-events: none;
}
.ciudad-words span { display: block; animation: word-in 700ms var(--ease-out) both; }
.ciudad-words span:nth-child(2) { animation-delay: 90ms; }
.ciudad-words span:nth-child(3) { animation-delay: 180ms; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.3em); } }
.has-sparks .ciudad-words { visibility: hidden; }

/* Reading chapters: they ride on the darkened film, no bands of color */
.prueba, .servicios {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 18vh 4.2vw 18vh var(--gutter);
}
.section-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--label);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
}

/* La prueba: drag from day 0 to day 22 */
.prueba {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 6vw;
  align-items: center;
}
.prueba h2 {
  margin-top: clamp(12px, 1vw, 24px);
  max-width: 14em;
  font-size: var(--headline);
  line-height: 1.12;
  letter-spacing: -0.012em;
  word-spacing: -0.06em;
}
.count { display: flex; align-items: baseline; gap: 0.5vw; margin-top: clamp(28px, 3vw, 72px); }
.count-num {
  font-family: var(--mono);
  font-size: clamp(96px, 11vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.count-unit { max-width: 7em; font-size: var(--title); line-height: 1.2; color: var(--ink-soft); }
.count-note { margin-top: clamp(18px, 1.6vw, 38px); font-size: var(--body); line-height: 1.5; color: var(--ink-quiet); }
.proof-chart { position: relative; margin: 0; }
.plot { position: relative; padding-top: max(34px, 2.4vw); --thumb: max(18px, 1.15vw); }
.cases { margin: 0; padding: 0; list-style: none; }
.case + .case { margin-top: clamp(24px, 2.3vw, 56px); }
.case-track { position: relative; height: max(20px, 1.4vw); }
.case-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(var(--now, 0) * 100%);
  height: max(1px, 0.0727vw);
  background: var(--ink);
}
.case-line::before, .case-end {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.case-line::before { content: ""; left: 0; width: max(5px, 0.36vw); height: max(5px, 0.36vw); background: var(--ink); }
.case-end {
  left: calc(var(--span) * 100%);
  width: max(9px, 0.62vw);
  height: max(9px, 0.62vw);
  border: max(1px, 0.0727vw) solid var(--ink);
  background: var(--ground);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transition: opacity 240ms ease-out, transform 520ms var(--ease-out);
}
.case-days {
  position: absolute;
  left: calc(var(--span) * 100% + max(14px, 1.1vw));
  top: 50%;
  font-family: var(--mono);
  font-size: max(14px, 1vw);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translate(-0.4em, -50%);
  transition: opacity 300ms ease-out, transform 520ms var(--ease-out);
}
.case.is-reached .case-end { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.case.is-reached .case-days { opacity: 1; transform: translate(0, -50%); }
.case-topic { margin-top: clamp(8px, 0.7vw, 16px); font-size: max(15px, 1.05vw); line-height: 1.35; color: #a8a8a8; transition: color 300ms ease-out; }
.case.is-reached .case-topic { color: var(--ink); }
.case-dates {
  margin-top: 0.3em;
  font-family: var(--mono);
  font-size: max(13px, 0.85vw);
  line-height: 1.4;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}
.days-axis {
  position: relative;
  height: max(30px, 1.9vw);
  margin-top: clamp(26px, 2.4vw, 56px);
  border-top: var(--hairline) solid #4a4a4a;
}
.tick { position: absolute; top: 0; width: max(1px, 0.0727vw); height: max(4px, 0.36vw); background: #5a5a5a; }
.tick-major { height: max(7px, 0.62vw); background: #8a8a8a; }
.tick-label {
  position: absolute;
  top: max(12px, 0.85vw);
  left: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: max(12px, 0.8vw);
  line-height: 1;
  color: #8a8a8a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tick:first-child .tick-label { transform: none; }
/* The playhead crosses every row at the dragged day */
.playhead {
  position: absolute;
  top: calc(max(34px, 2.4vw) - 8px);
  bottom: max(30px, 1.9vw);
  left: calc(var(--day-x, 0) * 100%);
  width: 1px;
  background: linear-gradient(rgba(246, 246, 246, 0.7), rgba(246, 246, 246, 0.18));
  pointer-events: none;
}
.playhead-label {
  position: absolute;
  bottom: 100%;
  left: 0;
  padding-bottom: 0.5em;
  font-family: var(--mono);
  font-size: max(12px, 0.8vw);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.scrub {
  position: absolute;
  left: calc(var(--thumb) / -2);
  bottom: calc(max(30px, 1.9vw) - max(22px, 1.6vw) / 2);
  width: calc(100% + var(--thumb));
  height: max(22px, 1.6vw);
  margin: 0;
  background: none;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.scrub::-webkit-slider-runnable-track { height: 100%; background: none; }
.scrub::-moz-range-track { height: 100%; background: none; }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((max(22px, 1.6vw) - var(--thumb)) / 2);
  border: max(1px, 0.0727vw) solid var(--ground);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 max(4px, 0.3vw) rgba(246, 246, 246, 0.16);
  transition: box-shadow 200ms ease-out;
}
.scrub::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: max(1px, 0.0727vw) solid var(--ground);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 max(4px, 0.3vw) rgba(246, 246, 246, 0.16);
}
.scrub:hover::-webkit-slider-thumb, .scrub:active::-webkit-slider-thumb { box-shadow: 0 0 0 max(7px, 0.5vw) rgba(246, 246, 246, 0.22); }
.scrub:focus-visible { outline-offset: 4px; }
.proof-chart .note {
  margin-top: clamp(26px, 2.2vw, 52px);
  max-width: 40em;
  font-size: max(14px, 0.9vw);
  line-height: 1.5;
  color: #8c8c8c;
}

/* Lo que puede contratar: one tab per line of service */
.servicios h2 { font-size: var(--headline); line-height: 1.12; letter-spacing: -0.012em; word-spacing: -0.06em; }
.tabs {
  position: relative;
  display: flex;
  gap: 3vw;
  margin-top: clamp(28px, 3vw, 72px);
  border-bottom: var(--hairline) solid #3a3a3a;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 1.15em 0;
  border: 0;
  background: none;
  color: #a8a8a8;
  font-family: var(--mono);
  font-size: var(--label);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease-out;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline-offset: -2px; }
.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--w, 0);
  height: 2px;
  background: var(--ink);
  transform: translateX(var(--x, 0));
  transition: transform 560ms var(--ease-out), width 560ms var(--ease-out);
}
.panel { padding-top: clamp(28px, 3vw, 72px); }
.panel[hidden] { display: none; }
.panel.is-entering > * { animation: panel-in 640ms var(--ease-out) both; }
.panel.is-entering > :nth-child(2) { animation-delay: 70ms; }
.panel.is-entering > :nth-child(3) { animation-delay: 140ms; }
.panel.is-entering > :nth-child(4) { animation-delay: 210ms; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } }
.panel-lead { max-width: 26em; font-size: clamp(22px, 2vw, 48px); line-height: 1.25; letter-spacing: -0.01em; }
.panel-status { margin-top: clamp(16px, 1.4vw, 32px); }
.btn-panel { height: clamp(50px, 2.9vw, 76px); margin-top: clamp(24px, 2.2vw, 52px); padding: 0 1.4em; font-size: clamp(16px, 1.05vw, 22px); }
.status {
  font-family: var(--mono);
  font-size: clamp(12px, 0.85vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.is-soon-status { color: #8f8f8f; }
.soon-link { margin-left: 1.2em; font-size: var(--body); text-decoration: underline; text-underline-offset: 0.25em; color: var(--ink-soft); }
.soon-link:hover { color: var(--ink); }
.reports { margin: clamp(28px, 2.6vw, 60px) 0 0; padding: 0; list-style: none; max-width: 70vw; }
.report {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1.3fr) minmax(0, 0.5fr);
  gap: 2vw;
  align-items: baseline;
  padding: clamp(16px, 1.4vw, 30px) 0;
  border-top: var(--hairline) solid #3a3a3a;
}
.report:last-child { border-bottom: var(--hairline) solid #3a3a3a; }
.report .status { justify-self: end; text-align: right; }
.report-when {
  font-family: var(--mono);
  font-size: clamp(12px, 0.85vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8a8a8;
  font-variant-numeric: tabular-nums;
}
.report h3 { font-size: clamp(19px, 1.45vw, 32px); line-height: 1.25; }
.report-detail { grid-column: 2 / -1; }
.report-detail p { max-width: 38em; font-size: var(--body); line-height: 1.55; color: #b9b9b9; }
.report-detail .form { margin-top: clamp(18px, 1.6vw, 36px); max-width: 40vw; }
.is-soon h3 { color: #a0a0a0; }
.is-soon .status { color: #8f8f8f; }
.reports-ask { margin-top: clamp(20px, 1.8vw, 40px); font-size: var(--body); color: var(--ink-quiet); }
.reports-ask a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* Closing: the camera rises and the form settles inside the valley */
.cierre-copy {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(64vw, 1180px);
  text-align: center;
  opacity: var(--show, 0);
  transform: translate(-50%, calc(-50% + (1 - var(--show, 0)) * 28px));
}
.cierre h2 { font-size: var(--headline); line-height: 1.12; letter-spacing: -0.012em; word-spacing: -0.06em; }
.cierre-copy > p { margin-top: clamp(12px, 1.1vw, 26px); font-size: clamp(18px, 1.35vw, 28px); color: #b5b5b5; }
.cierre-copy .form { margin: clamp(24px, 2.2vw, 52px) auto 0; max-width: min(46vw, 860px); }
.cierre-copy .form-status { text-align: center; }

/* ---------- Forms ---------- */
.field-row { display: flex; }
.form input[type="email"], .form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: clamp(50px, 2.9vw, 76px);
  padding: 0 1.1em;
  border: var(--hairline) solid #5c5c5c;
  border-right: 0;
  border-radius: 0;
  background: rgba(24, 24, 24, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, 1.1vw, 23px);
  transition: border-color 160ms ease-out;
}
.form input::placeholder { color: #949494; opacity: 1; }
.form input:hover { border-color: #8a8a8a; }
.form input[aria-invalid="true"] { border-color: var(--ink); }
.btn-form {
  flex: none;
  height: clamp(50px, 2.9vw, 76px);
  padding: 0 1.4em;
  border: 0;
  border-radius: 0;
  font-size: clamp(16px, 1.05vw, 22px);
  cursor: pointer;
}
.btn-form:disabled { background: #9a9a9a; cursor: progress; }
.consent {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin-top: 1em;
  text-align: left;
  font-size: clamp(14px, 0.9vw, 18px);
  line-height: 1.45;
  color: #9d9d9d;
  cursor: pointer;
}
.consent input { flex: none; width: 1.1em; height: 1.1em; margin: 0.2em 0 0; accent-color: var(--ink); }
.form-status {
  min-height: 1.45em;
  margin-top: 0.8em;
  text-align: left;
  font-size: clamp(14px, 0.9vw, 18px);
  line-height: 1.45;
  color: #d0d0d0;
}
.form-status.is-error { color: var(--ink); }
.form-status.is-error::before { content: "— "; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(80px, 8vw, 200px) 4.2vw clamp(32px, 3vw, 64px) var(--gutter);
  background: var(--ground);
  border-top: var(--hairline) solid var(--rule);
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.6;
  color: #a8a8a8;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  padding-bottom: clamp(64px, 6vw, 150px);
}
.footer-top h2 { font-size: clamp(28px, 2.4vw, 64px); line-height: 1.1; letter-spacing: -0.012em; color: var(--ink); }
.boletin > p { margin-top: 0.8em; max-width: 30em; font-size: var(--body); line-height: 1.5; color: #a9a9a9; }
.boletin .form { margin-top: clamp(20px, 1.8vw, 40px); }
.reglas ul { margin: clamp(20px, 1.8vw, 40px) 0 0; padding: 0; list-style: none; }
.reglas li {
  display: flex;
  gap: 0.9em;
  align-items: baseline;
  padding: clamp(10px, 0.8vw, 18px) 0;
  border-top: var(--hairline) solid #333333;
  font-size: var(--body);
  line-height: 1.4;
  color: var(--ink-soft);
}
.reglas li::before {
  content: "";
  flex: none;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-0.15em);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5vw;
  padding-top: clamp(40px, 3.6vw, 90px);
  border-top: var(--hairline) solid var(--rule);
}
.footer-label {
  margin-bottom: 1em;
  font-family: var(--mono);
  font-size: var(--label);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li + li { margin-top: 0.35em; }
.footer a { transition: color 160ms ease-out; }
.footer a:hover { color: var(--ink); }
.soon { color: #8c8c8c; }
.footer-base {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 3vw, 64px);
  padding-top: 1.2em;
  border-top: var(--hairline) solid #2a2a2a;
  font-size: clamp(13px, 0.85vw, 16px);
  color: #8c8c8c;
}

/* ---------- Still version: no JavaScript, reduced motion or saving data ---------- */
html:not(.js) .scene, .still .scene { height: auto; }
html:not(.js) .scene-sticky, .still .scene-sticky {
  position: relative;
  height: auto;
  overflow: visible;
  padding: 16vh 4.2vw 16vh var(--gutter);
}
html:not(.js) .line, .still .line {
  position: relative;
  left: auto;
  bottom: auto;
  visibility: visible;
  opacity: 1;
}
html:not(.js) .line > span, .still .line > span { transform: none; }
html:not(.js) .line + .line, .still .line + .line { margin-top: 0.4em; }
html:not(.js) .progress, .still .progress { display: none; }
html:not(.js) .ciudad-panel, .still .ciudad-panel { position: relative; left: auto; bottom: auto; }
html:not(.js) .ciudad-words, .still .ciudad-words { position: relative; inset: auto; min-height: 3.4em; margin-top: 8vh; align-items: flex-start; text-align: left; }
html:not(.js) .cierre-copy, .still .cierre-copy {
  position: relative;
  left: auto;
  top: auto;
  margin: 0 auto;
  opacity: 1;
  transform: none;
}
html:not(.js) .rail { display: none; }
.still .film-shade { --shade: 0.62; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 20px; --display: clamp(36px, 9.6vw, 72px); }
  .nav { height: 64px; padding: 0 16px; border-bottom-width: 1px; }
  .wordmark .logo { height: 19px; }
  .nav-links { display: none; }
  .btn-nav { width: auto; height: 42px; padding: 0 16px; font-size: 15px; }
  .rail { display: none; }
  .hero { height: auto; min-height: 100svh; padding-top: 64px; }
  .hero-valley { position: relative; top: auto; height: 62vw; }
  .hero-valley img { left: 50%; top: 0; width: auto; height: 100%; transform: translateX(-50%); }
  .hero-copy { position: static; padding: 28px 20px 120px; }
  .hero h1 { font-size: clamp(32px, 8.2vw, 60px); line-height: 1.04; }
  .lede { margin-top: 18px; font-size: 18px; line-height: 1.5; white-space: normal; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 30px; }
  .btn-hero { width: 100%; height: 56px; font-size: 17px; }
  .link-arrow { justify-content: center; font-size: 17px; }
  .scroll-cue { gap: 10px; font-size: 12px; }
  .vuelo { height: 380vh; }
  .line { right: var(--gutter); bottom: 16vh; max-width: none; }
  .line-final { font-size: clamp(28px, 7.4vw, 52px); }
  .progress { bottom: 6vh; }
  .ciudad { height: 210vh; }
  .ciudad-panel { left: 20px; right: 20px; bottom: 5vh; width: auto; }
  .ciudad h2 { font-size: clamp(28px, 7.6vw, 48px); }
  .sectores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; border-top: 0; }
  .sector {
    justify-content: flex-start;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(246, 246, 246, 0.26);
    background: rgba(24, 24, 24, 0.55);
    font-size: 15px;
  }
  .sector:hover, .sector[aria-pressed="true"] { padding-left: 12px; }
  .sector[aria-pressed="true"] { border-color: var(--ink); }
  .sector-texto { min-height: 4.6em; margin-top: 12px; font-size: 16px; }
  .ciudad-words { left: 20px; right: 20px; top: calc(64px + 4vh); bottom: auto; height: 32vh; font-size: clamp(32px, 9vw, 64px); }
  .prueba, .servicios { padding: 14vh 20px; }
  .prueba { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .prueba h2 { font-size: clamp(28px, 7.4vw, 44px); }
  .count { gap: 12px; margin-top: 28px; }
  .count-num { font-size: clamp(88px, 28vw, 160px); }
  .count-unit { font-size: 19px; }
  .count-note { font-size: 16px; }
  .case-track { height: auto; padding-top: 28px; }
  .case-line { top: auto; bottom: 0; height: 1px; }
  .case-end { top: auto; bottom: 0; transform: translate(-50%, 50%) scale(0.2); }
  .case.is-reached .case-end { transform: translate(-50%, 50%) scale(1); }
  .case-days { left: 0; top: 0; transform: none; font-size: 15px; }
  .case.is-reached .case-days { transform: none; }
  .servicios h2 { font-size: clamp(28px, 7.4vw, 44px); }
  .tabs { gap: 22px; margin-right: -20px; padding-right: 20px; }
  .panel-lead { font-size: clamp(21px, 5.6vw, 30px); }
  .reports { max-width: none; }
  .report { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .report .status { justify-self: start; text-align: left; }
  .report-detail { grid-column: auto; margin-top: 8px; }
  .report-detail .form { max-width: none; }
  .cierre-copy { top: 42%; width: calc(100% - 40px); }
  .cierre h2 { font-size: clamp(28px, 7.4vw, 44px); }
  .cierre-copy .form { max-width: none; }
  .field-row { flex-direction: column; gap: 10px; }
  .form input[type="email"], .form input[type="text"] { flex: none; width: 100%; height: 52px; border-right: var(--hairline) solid #5c5c5c; }
  .btn-form, .btn-panel { width: 100%; }
  .footer { padding: 80px 20px 32px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .footer-top h2 { font-size: 30px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  html:not(.js) .scene-sticky, .still .scene-sticky { padding: 14vh 20px; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .btn-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::after, .link-arrow, .icon-arrow, .nav, .nav-links a, .footer a, .form input, .sector, .sector::before,
  .tab, .tab-indicator, .case-end, .case-days, .case-topic, .film-still, .rail a span, .rail a::after { transition: none; }
  .js .nav .logo .dot, .js .nav .logo-type, .scroll-cue i, .ciudad-words span, .panel.is-entering > * { animation: none; }
}
