@font-face {
  font-family: Space Grotesk;
  src: url("assets/space-grotesk-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Space Grotesk;
  src: url("assets/space-grotesk-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Space Grotesk;
  src: url("assets/space-grotesk-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --white: #fff;
  --ink: #151615;
  --muted: #545b5d;
  --line: #ccceca;
  --blue: #1640d3;
  --blue-dark: #1132a7;
  --yellow: #ffe04b;
  --film: #151921;
  --frame: 1392px;
  --gutter: clamp(24px, 4.15vw, 72px);
  --chapter: clamp(60px, 7.15vw, 110px);
  --type: "Space Grotesk", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--type);
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
body:has(.deck[open], .plan-dialog[open], .maqueta-pantalla[open]) { overflow: hidden; }
section[id] { scroll-margin-top: 96px; }
img, video, canvas { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

.frame {
  width: min(calc(100% - 2 * var(--gutter)), var(--frame));
  margin-inline: auto;
}

.display {
  font: 700 clamp(2.85rem, 5.35vw, 6rem)/.97 var(--type);
  letter-spacing: -.056em;
  text-wrap: balance;
}

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font: 700 .72rem/1.32 var(--type);
  letter-spacing: .045em;
}

.signal {
  flex: none;
  inline-size: .6rem;
  block-size: .6rem;
  background: var(--yellow);
}

.kicker__divider { color: var(--muted); }
.arrow { flex: none; line-height: 1; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue);
}

.masthead {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 15px;
  text-decoration: none;
}

.brand img { width: 106px; height: auto; filter: brightness(0); }
.brand span {
  padding-inline-start: 15px;
  border-inline-start: 1px solid var(--line);
  font: 700 .75rem/1.3 var(--type);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.navigation { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 42px); }
.navigation a {
  padding: 12px 3px;
  font: 700 .82rem/1.3 var(--type);
  text-decoration: none;
  white-space: nowrap;
}

.navigation a:hover, .source-link:hover, .link-arrow:hover { color: var(--blue); }

.action {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  padding: 11px 16px;
  border: 1px solid transparent;
  color: var(--white);
  background: var(--blue);
  font: 700 .9rem/1.25 var(--type);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.action:hover { background: var(--blue-dark); }
.action .arrow { font-size: 1.12em; }
.action--small { justify-self: end; min-height: 41px; }
.action--yellow { background: var(--yellow); color: var(--ink); }
.action--yellow:hover { background: var(--white); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
  font: 700 .88rem/1.3 var(--type);
}

.hero__layout {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(505px, 42.5vw, 640px);
  padding-block: 39px 43px;
}

.hero__copy { position: relative; z-index: 2; width: fit-content; }
.hero__copy .kicker { margin-bottom: clamp(17px, 2vw, 28px); }
.hero h1 {
  font-size: clamp(4.7rem, 8.85vw, 9.85rem);
  line-height: .92;
  letter-spacing: -.06em;
  text-wrap: initial;
}

.hero h1 span { display: block; }
.hero__lead {
  width: min(31vw, 365px);
  margin-top: clamp(24px, 3.25vw, 47px);
  line-height: 1.52;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.hero__figure {
  position: absolute;
  z-index: 1;
  inset: clamp(28px, 3.1vw, 51px) 0 31px 35%;
  margin: 0;
}

.hero__plane {
  position: absolute;
  inset: 2.5% 0 12% 24%;
  background: var(--blue);
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%);
}

.hero__grid {
  position: absolute;
  inset: 0 0 0 22%;
  border-block: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  pointer-events: none;
}

.hero__grid::before, .hero__grid::after {
  position: absolute;
  right: 0;
  width: 16px;
  height: 16px;
  content: "";
}

.hero__grid::before { top: -1px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.hero__grid::after { bottom: -1px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.hero__model {
  position: absolute;
  width: 100%;
  height: 87%;
  inset: auto 0 8% auto;
  object-fit: contain;
  object-position: right bottom;
  filter: contrast(1.07);
}

.hero__caption {
  position: absolute;
  align-items: end;
  display: flex;
  gap: 10px 16px;
  justify-content: end;
  flex-wrap: wrap;
  left: 5%;
  right: 0;
  bottom: 0;
}

.hero__caption a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 11px;
  min-height: 40px;
  background: var(--yellow);
  font: 700 .82rem/1.2 var(--type);
  text-decoration: none;
}

.hero__caption a:hover { color: var(--blue-dark); }
.plate-credit {
  padding: 0 11px 8px 0;
  color: var(--muted);
  font: 400 .78rem/1.35 var(--type);
}

.metrics {
  display: grid;
  grid-template-columns: minmax(145px, .84fr) minmax(0, 4fr);
  border-block: 1px solid var(--line);
}

.metrics__source {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 19px 12px 16px 0;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 .78rem/1.3 var(--type);
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

.metrics__numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics__numbers > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px clamp(11px, 1.45vw, 24px) 17px;
  border-inline-start: 1px solid var(--line);
}

.metrics__numbers dd, .closing__facts dd {
  font: 400 clamp(2.4rem, 4.45vw, 5.2rem)/.98 var(--type);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.metrics__numbers dd > span:not([data-contador]), .closing__facts dd > span:not([data-contador]) {
  font-size: .43em;
  letter-spacing: -.03em;
}

.metrics__numbers dd .metrics__approx {
  margin-inline-end: .16em;
  color: var(--blue-dark);
  font-size: .55em;
  vertical-align: .12em;
}

.metrics__numbers dt { font: 600 .84rem/1.3 var(--type); }

[data-contador] {
  position: relative;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
[data-contando] > .contador__final { opacity: 0; }
.contador__paso {
  position: absolute;
  inset: 0;
  text-align: right;
  pointer-events: none;
  user-select: none;
}

.chapter { margin-block: var(--chapter); }
.chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 2.32fr) minmax(235px, 1fr);
  align-items: end;
  gap: 18px clamp(20px, 4vw, 66px);
  padding-top: 20px;
  padding-bottom: clamp(24px, 3vw, 43px);
  border-top: 1px solid var(--line);
}

.chapter__head .kicker { margin-bottom: 16px; }
.chapter__head > p { max-width: 44ch; }
.chapter__head .display { text-wrap: initial; }

.route-layout, .deposit-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 2.18fr) minmax(240px, 1fr);
  gap: clamp(17px, 2vw, 33px);
}

.map-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1728 / 1056;
  background: #253c4d;
}

.map-base, #mapa-trazado, .map-markers {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.map-base { filter: grayscale(.65) brightness(.88); }
.map-markers, .map-north { pointer-events: none; }
.map-markers button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ink);
  pointer-events: auto;
  font: 700 .79rem/1 var(--type);
  color: var(--ink);
  background: var(--white);
}

.map-markers button[aria-pressed="true"], .map-markers button:hover { background: var(--yellow); }
.map-markers button:focus-visible { outline-color: var(--yellow); }
.map-north {
  position: absolute;
  top: 11px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: var(--white);
  background: var(--film);
  font: 700 .7rem/1 var(--type);
}

.map-north span { color: var(--yellow); font-size: 1rem; }
.figure-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 .8rem/1.35 var(--type);
}

.figure-bar a { text-underline-offset: 3px; }
.figure-bar--map { align-items: start; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; color: var(--ink); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 16px; height: 5px; border: 1px solid #494014; background: var(--yellow); }
.map-legend span:nth-child(2) i { background: #fff2b8; }
.map-legend span:nth-child(3) i { background: #85d6ff; border-color: #244f62; }

.route-aside, .deposit-aside { min-width: 0; }
.route__tabs, .model-tabs { display: grid; border-top: 1px solid var(--line); }
.route__tabs button, .model-tabs button {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  gap: 12px;
  padding: 10px 12px;
  min-height: 51px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: 700 clamp(.9rem, 1.55vw, 1.14rem)/1.24 var(--type);
  text-align: left;
}

.model-tabs button { grid-template-columns: 1fr min-content; }
.tab-order {
  min-width: 1.5em;
  color: var(--blue-dark);
  font: 700 .75rem/1 var(--type);
}

.tab-arrow { color: var(--blue-dark); }
.route__tabs button:hover, .model-tabs button:hover { background: #e9edfc; }
.route__tabs button[aria-pressed="true"], .model-tabs button[aria-pressed="true"] { background: var(--yellow); }
.route__story, .model-story { padding: 20px 12px 0; }
.route__story { min-height: 161px; }
.route__story .kicker { color: var(--blue-dark); margin-bottom: 6px; }
.route__story h3 {
  font: 700 clamp(1.31rem, 1.9vw, 1.8rem)/1.07 var(--type);
  letter-spacing: -.038em;
  margin-bottom: 8px;
}

.route__story p:last-child, .model-story p { max-width: 37ch; }
.deposit-layout { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.18fr); }
.model-figure { grid-area: 1 / 2; }
.deposit-aside { grid-area: 1 / 1; }
.model-stat { display: grid; gap: 5px; padding: 17px 16px 19px; color: var(--white); background: var(--blue); }
.model-stat strong { font: 400 clamp(2.4rem, 4.4vw, 4.9rem)/1 var(--type); letter-spacing: -.075em; }
.model-stat strong > span:not([data-contador]) { font-size: .5em; letter-spacing: -.04em; }
.model-stat > span { font-size: .88rem; max-width: 34ch; }
.model-status { margin: 14px 12px 0; font-weight: 700; }
.model-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  background: #d9e6e6;
}

.model-frame img, .model-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-frame canvas { touch-action: none; cursor: grab; }
.model-frame canvas:active { cursor: grabbing; }
.model-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px 9px;
  color: var(--ink);
  background: var(--paper);
  pointer-events: none;
}

.model-controls { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 1px; }
.model-controls button, .deck__navigation button {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 4px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  font: 700 1.12rem/1 var(--type);
}

.model-controls button:hover, .deck__navigation button:hover:not(:disabled) { background: var(--blue-dark); }
.action--model { min-height: 39px; padding: 7px 11px; font-size: .81rem; }
.maqueta-acciones { display: none; }
.maqueta-acciones:has(> :not([hidden])) { display: flex; flex-wrap: wrap; gap: 6px; }
.action--expand { color: var(--blue-dark); background: transparent; border-color: var(--line); }
.action--expand:hover { color: var(--white); border-color: var(--blue-dark); }

.maqueta-pantalla {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}
.maqueta-pantalla::backdrop { background: var(--ink); }
.maqueta-pantalla__superficie {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  color: var(--ink);
  background: var(--paper);
}
.maqueta-pantalla__cabecera, .maqueta-pantalla__pie {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  padding: 8px clamp(12px, 2.4vw, 34px);
}
.maqueta-pantalla__cabecera {
  flex-wrap: wrap;
  justify-content: space-between;
  padding-block-start: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}
.maqueta-pantalla h2 {
  font: 700 clamp(1.06rem, 2.1vw, 1.7rem)/1.15 var(--type);
  letter-spacing: -.035em;
}
.maqueta-pantalla__pie {
  flex-wrap: wrap;
  min-height: 38px;
  padding-block-end: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 .82rem/1.35 var(--type);
}
.maqueta-pantalla__escena > :is(.model-frame, .deck__image) { height: 100%; aspect-ratio: auto; }
.maqueta-pantalla__escena img { object-fit: contain; }
.maqueta-pantalla__escena .model-controls {
  right: max(10px, env(safe-area-inset-right));
  bottom: 10px;
}
.maqueta-pantalla__escena .model-controls button { min-width: 44px; min-height: 44px; }

.film { padding-block: clamp(31px, 5.2vw, 74px) clamp(30px, 5vw, 66px); color: var(--white); background: var(--film); }
.film :focus-visible, .closing :focus-visible { outline-color: var(--yellow); }
.chapter__head--film { padding-top: 0; border-top: 0; }
.film .figure-bar { color: #d3d7e0; border-color: #ffffff45; }
.film__frame { position: relative; aspect-ratio: 16 / 9; background: #0e1519; }
.film__frame video { width: 100%; height: 100%; }
.film__play {
  position: absolute;
  inset: auto auto max(18%, 50px) clamp(12px, 4%, 40px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 14px;
  border: none;
  color: var(--ink);
  background: var(--yellow);
  font: 700 .91rem/1.1 var(--type);
}

.film__play:hover { background: var(--white); }
.play-icon { border-left: 11px solid currentColor; border-block: 7px solid transparent; }

.closing { padding-block: clamp(46px, 6.7vw, 108px); color: var(--white); background: var(--blue); }
.closing__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); align-items: end; gap: 30px 70px; }
.closing .kicker { margin-bottom: 15px; }
.closing h2 { text-wrap: initial; }
.closing h2 + p { max-width: 44ch; margin-top: 20px; }
.closing .action { margin-top: 23px; }
.closing__facts > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding-block: 14px;
  border-top: 1px solid #fff8;
}

.closing__facts > div:last-child { border-bottom: 1px solid #fff8; }
.closing__facts dd { font-size: clamp(3rem, 5.6vw, 6.5rem); color: var(--yellow); }
.closing__facts dt { font: 700 .94rem/1.35 var(--type); }
.footer__inner { display: flex; gap: 16px 27px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 28px; }
.footer__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 23px 34px; }
.footer__marks img { height: auto; filter: brightness(0); }

.deck {
  width: min(calc(100% - 40px), 1440px);
  height: min(calc(100dvh - 40px), 890px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

.deck::backdrop { background: #0c1223e8; }
.deck:fullscreen, .deck--expanded { width: 100%; height: 100dvh; }
.deck__shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.deck__bar, .deck__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px clamp(13px, 2.8vw, 40px);
  border-bottom: 1px solid var(--line);
}

.deck__bar-actions, .deck__navigation { justify-self: end; display: flex; align-items: center; gap: 3px; }
.deck__bar-actions button, .deck__index button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font: 700 .84rem/1.1 var(--type);
}

.deck__bar-actions button:hover, .deck__index button:hover { color: var(--blue); }
.deck__bar-actions span[aria-hidden] { margin-inline-start: 2px; font-size: 1.14em; }
.deck__body {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(19px, 3.4vw, 57px);
  padding: clamp(24px, 4vw, 64px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.deck__copy .kicker { margin-bottom: 19px; }
.deck__copy .display { font-size: clamp(2.6rem, 5vw, 6.1rem); text-wrap: initial; }
.deck__text { max-width: 38ch; margin-top: 21px; }
.deck__copy .action { margin-top: 18px; }
.deck__image {
  position: relative;
  aspect-ratio: 16 / 10;
  isolation: isolate;
  background: #e1e8e9;
}

.deck__image img { width: 100%; height: 100%; object-fit: cover; }
.deck__image canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.deck__image [data-maqueta-lienzo] {
  touch-action: none;
  cursor: grab;
}
.deck__image [data-maqueta-lienzo]:active { cursor: grabbing; }
.deck__route {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #253c4d;
}
#presentacion .deck__image:has(> .deck__route:not([hidden])) > img { visibility: hidden; }
.deck__image:has(> [data-maqueta-lienzo]:not([hidden])) > .deck__route,
.maqueta-pantalla__escena .deck__route { display: none; }
.deck__route-stops { position: absolute; inset: 0; pointer-events: none; }
.deck__stop { position: absolute; }
.deck__stop::before {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  inset: -4px auto auto -4px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}
.deck__stop > span {
  position: absolute;
  inset: auto auto 8px 5px;
  padding: 4px 6px;
  color: var(--ink);
  background: var(--paper);
  font: 700 clamp(.65rem, 1vw, .78rem)/1.1 var(--type);
  white-space: nowrap;
}
.deck__stop[data-deck-stop="fontoria"] > span { inset: 8px 0 auto auto; }
.deck__stop[data-deck-stop="fornes"]::before { background: #fff2b8; }
.deck__maqueta-select {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 8px;
  font: 600 .85rem/1.35 var(--type);
}
.deck__maqueta-select select {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.maqueta-estado { margin-top: 7px; color: var(--muted); font: 400 .81rem/1.4 var(--type); }
.deck__body[data-slide="0"] .deck__image { background: transparent; }
.deck__body[data-slide="0"] .deck__image::before {
  position: absolute;
  z-index: -1;
  inset: 8% 0 10% 24%;
  content: "";
  background: var(--blue);
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%);
}

.deck__body[data-slide="0"] .deck__image img { object-fit: contain; }
.deck__bottom { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 0; }
.deck__count { justify-content: center; white-space: nowrap; }
.deck__index { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); width: min(100%, 374px); }
.deck__index button { min-width: 0; padding-inline: 2px; border-bottom: 2px solid var(--line); }
.deck__index button[aria-current="step"] { border-color: var(--blue); color: var(--blue-dark); background: var(--yellow); }
.deck__navigation button:disabled { color: var(--muted); background: #e4e5df; cursor: default; }

.deck__copy .link-arrow { margin-left: 11px; }

.study-index {
  display: grid;
  grid-template-columns: minmax(145px, .8fr) minmax(0, 4fr);
  align-items: baseline;
  gap: 10px 18px;
  margin-top: 17px;
}

.study-index > div { display: flex; flex-wrap: wrap; gap: 0 clamp(10px, 1.9vw, 28px); }
.study-index a {
  padding-block: 7px;
  color: var(--blue-dark);
  font: 600 .89rem/1.35 var(--type);
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.study-index a:hover { text-decoration-color: currentColor; }

.route-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-bottom: 13px;
}

.map-presets, .scene-choices, .scene-states { display: flex; flex-wrap: wrap; gap: 3px; }
.map-presets button, .scene-choices button, .scene-states button {
  min-height: 43px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: transparent;
  font: 600 .87rem/1.2 var(--type);
}
.map-presets button:hover, .scene-choices button:hover, .scene-states button:hover { border-color: var(--blue); }
.map-presets button[aria-pressed="true"], .scene-choices button[aria-pressed="true"],
.scene-states button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.scene-states { padding-top: 8px; }
.scene-states button { min-height: 36px; font-size: .81rem; }
.scene-choices { margin-bottom: 16px; }
.map-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; }
.map-actions label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.map-actions input { margin: 0; accent-color: var(--blue); width: 16px; height: 16px; }
#mapa-trazado { touch-action: none; cursor: grab; }
#mapa-trazado:active { cursor: grabbing; }
.map-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 1px; }
.map-tools button {
  display: grid;
  place-items: center;
  min-width: 39px;
  min-height: 39px;
  padding: 4px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  font: 700 1rem/1 var(--type);
}
.map-tools button:hover { background: var(--blue-dark); }
.map-point-select {
  display: grid;
  gap: 6px;
  margin-block: 13px 0;
  font: 600 .84rem/1.36 var(--type);
}
.map-point-select select {
  width: 100%;
  min-height: 43px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: 400 .94rem/1.35 var(--type);
}
.route__story { padding: 16px 0 0; }
.route__detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 13px; margin-top: 8px; }

.technical-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(240px, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 33px);
}
.technical-frame, .technical-grid--tank img { background: #e0e7e6; }
.technical-grid--tank { padding-top: 18px; }
.technical-grid--tank img { width: 100%; height: auto; }
.topic-list { min-width: 0; border-top: 1px solid var(--line); }
.topic, .technical-appendix { border-bottom: 1px solid var(--line); }
.topic summary, .technical-appendix > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  min-height: 47px;
  list-style: none;
  font: 600 1rem/1.28 var(--type);
  cursor: pointer;
}
.topic summary::-webkit-details-marker, .technical-appendix > summary::-webkit-details-marker { display: none; }
.topic summary::after, .technical-appendix > summary::after { content: "+"; color: var(--blue-dark); font-weight: 700; }
.topic[open] summary::after, .technical-appendix[open] > summary::after { content: "−"; }
.topic[open] > summary { background: var(--yellow); }
.topic:not([open]) summary:hover, .technical-appendix > summary:hover { background: #e9edfc; }
.topic__body {
  display: grid;
  gap: 9px;
  padding: 12px;
  font: 400 .95rem/1.48 var(--type);
}
.topic { scroll-margin-top: 125px; }
.technical-appendix { margin-top: 22px; border-top: 1px solid var(--line); }
.technical-appendix > summary { padding-inline: 0; font-size: 1.11rem; }
.technical-appendix > .technical-grid { margin-block: 8px 20px; }
.technical-appendix > p { max-width: 74ch; margin: 4px 0 16px; }
.footnote {
  max-width: 85ch;
  margin-top: 13px;
  color: var(--muted);
  font: 400 .85rem/1.48 var(--type);
}
.technical-more { margin-top: 9px; color: var(--blue-dark); }
.technical-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; padding-block: 8px 1px; }
.technical-sources .source-link { min-height: 32px; }
.plan-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: transparent;
  font: 600 .81rem/1.25 var(--type);
  text-decoration: none;
}
.plan-link:hover { border-color: var(--blue); }

.investment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(22px, 3.5vw, 56px);
}
.investment__amount { padding: clamp(15px, 2.15vw, 30px); border: 1px solid var(--line); }
.investment__amount > .kicker { color: var(--blue-dark); }
.investment__value {
  margin-block: 10px 17px;
  color: var(--blue-dark);
  font: 600 clamp(1.95rem, 3.8vw, 4.45rem)/1.04 var(--type);
  letter-spacing: -.062em;
  white-space: nowrap;
}
.investment__value > span:not([data-contador]) { font-size: .6em; }
.investment__facts { border-top: 1px solid var(--line); }
.investment__facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: .91rem;
}
.investment__facts dd { font-weight: 700; text-align: right; white-space: nowrap; }
.investment__timeline h3, .contract-details h3 { font: 700 1.47rem/1.13 var(--type); letter-spacing: -.04em; }
.timeline { margin: 14px 0 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: minmax(94px, .29fr) minmax(0, 1fr);
  gap: 5px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { color: var(--blue-dark); font: 700 .84rem/1.35 var(--type); }
.timeline h4 { margin: 0; font: 700 1rem/1.27 var(--type); }
.timeline p, .contract-details p { margin-block: 4px; font-size: .91rem; line-height: 1.44; }
.contract-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 32px; padding-block: 10px 19px; }

.plan-dialog {
  width: min(1275px, calc(100% - 30px));
  height: min(820px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}
.plan-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.plan-dialog::backdrop { background: #0c1223e8; }
.plan-dialog header, .plan-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
}
.plan-dialog footer { min-height: 42px; border-block-start: 1px solid var(--line); border-block-end: 0; }
.plan-dialog h2 { font: 700 clamp(1.05rem, 2.1vw, 1.7rem)/1.15 var(--type); }
.plan-dialog button { min-height: 40px; padding: 5px 10px; border: 0; background: transparent; white-space: nowrap; }
.plan-dialog button:hover { color: var(--blue); }
.plan-dialog img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }

@media (max-width: 1080px) {
  .hero__layout { min-height: 510px; }
  .hero__model { height: 80%; }
  .hero__figure { left: 34%; }
  .hero__plane { inset-block-start: 10%; }
}

@media (max-width: 830px) {
  .masthead__inner { gap: 14px; }
  .brand { gap: 10px; }
  .brand span { padding-inline-start: 10px; }
  .brand img { width: 92px; }
  .hero__layout { min-height: 480px; }
  .hero__figure { left: 38%; }
  .hero h1 { font-size: clamp(4.3rem, 9.7vw, 6rem); }
  .hero__lead { width: 36vw; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics__source { flex-direction: row; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .metrics__numbers > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .chapter__head, .closing__inner { gap: 18px 26px; }
  .route-layout, .deposit-layout { grid-template-columns: minmax(0, 1fr) minmax(190px, .6fr); }
  .deposit-layout { grid-template-columns: minmax(190px, .6fr) minmax(0, 1fr); }
  .technical-grid { grid-template-columns: minmax(0, 1.4fr) minmax(210px, 1fr); }
  .plate-credit { display: none; }
}

@media (max-width: 760px) {
  .masthead__inner { grid-template-columns: 1fr auto; gap: 3px 8px; min-height: 0; padding-top: 8px; }
  .navigation { grid-area: 2 / 1 / 3 / 3; gap: clamp(9px, 3vw, 25px); }
  .navigation a { padding: 8px 0; min-height: 36px; }
  section[id] { scroll-margin-top: 114px; }
  .study-index { grid-template-columns: 1fr; }
  .investment { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 17px; --chapter: 57px; }
  section[id] { scroll-margin-top: 114px; }
  .masthead__inner { grid-template-columns: 1fr auto; gap: 3px 8px; min-height: 0; padding-top: 8px; }
  .brand img { width: 88px; }
  .brand span { font-size: .69rem; }
  .action--small { padding: 6px 9px; min-height: 38px; font-size: .79rem; gap: 8px; }
  .hero__layout { display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-height: 0; padding-block: 28px 17px; }
  .hero__copy .kicker { margin-bottom: 16px; font-size: clamp(.61rem, 2.65vw, .7rem); gap: 6px; }
  .hero h1 { font-size: clamp(3.4rem, 16.25vw, 6rem); }
  .hero__lead { width: auto; max-width: 37ch; margin-top: 22px; }
  .hero__actions { margin-top: 15px; gap: 9px 15px; }
  .action { min-height: 45px; }
  .action--small { min-height: 38px; }
  .hero__figure { position: relative; inset: auto; min-height: 215px; height: min(58vw, 330px); }
  .hero__plane { inset: 2.5% 0 15% 23%; }
  .hero__grid { inset-inline-start: 12%; }
  .hero__model { height: 88%; inset: auto 0 11% auto; }
  .hero__caption a { min-height: 34px; padding: 6px 8px; }
  .metrics__numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics__numbers > div { padding: 14px 11px; }
  .metrics__numbers > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .metrics__numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics__numbers dd { font-size: clamp(2.55rem, 11vw, 4.4rem); }
  .chapter__head, .closing__inner { grid-template-columns: 1fr; align-items: start; }
  .chapter__head { padding-top: 13px; gap: 13px; }
  .chapter__head .kicker { margin-bottom: 10px; }
  .chapter__head > p { max-width: 47ch; }
  .chapter__head .display { font-size: clamp(2.62rem, 10.7vw, 4.45rem); }
  .route-layout, .deposit-layout, .technical-grid { grid-template-columns: 1fr; }
  .contract-details { grid-template-columns: 1fr; }
  .model-figure, .deposit-aside { grid-area: auto; }
  .map-markers button { width: 32px; height: 32px; }
  .route__tabs button, .model-tabs button { min-height: 48px; }
  .route__story { min-height: 0; }
  .model-stat { padding: 16px 12px; }
  .model-stat > span { max-width: 40ch; }
  .model-label { top: 6px; left: 6px; font-size: .62rem; }
  .model-controls { right: 6px; bottom: 6px; }
  .model-controls button { min-width: 37px; min-height: 37px; }
  .film__play { font-size: .8rem; min-height: 41px; padding: 8px 10px; }
  .closing__inner { gap: 27px; }
  .closing h2 { font-size: clamp(2.9rem, 11.6vw, 5.25rem); }
  .closing__facts { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #fff8; }
  .closing__facts > div, .closing__facts > div:last-child { border-block: 0; }
  .closing__facts > div + div { border-inline-start: 1px solid #fff8; padding-inline-start: 12px; }
  .closing__facts dt { font-size: .81rem; }
  .closing__facts dd { font-size: clamp(2.55rem, 10.5vw, 4.5rem); }
  .footer__marks { gap: 15px 17px; }
  .footer__marks img:first-child { width: 93px; }
  .footer__marks img:last-child { width: min(41vw, 180px); }
  .footer__inner { padding-block: 19px; gap: 2px 24px; }
  .deck { width: 100%; height: 100dvh; }
  .deck__bar { grid-template-columns: 1fr auto; }
  .deck__mode, .deck__fullscreen-label { display: none; }
  .deck__body { grid-template-columns: 1fr; align-content: center; gap: 22px; padding: 23px 17px; }
  .deck__copy .display { font-size: clamp(2.55rem, 11.3vw, 4.4rem); }
  .deck__copy .kicker { margin-bottom: 10px; }
  .deck__text { margin-top: 12px; }
  .deck__bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .deck__count { justify-content: flex-end; }
  .deck__navigation { grid-area: 2 / 1 / 3 / 3; justify-self: stretch; justify-content: space-between; }
  .deck__navigation button { width: 46px; }
  .deck__index button { padding: 5px 2px; }
}

@media (max-height: 650px) and (max-width: 640px) {
  .deck__body { align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
