/* Venelogistics
   Concepto: la pared de un contenedor. Acero galvanizado, azul de la marca
   pintado con stencil y amarillo de grúa portuaria como único acento. */

:root {
  --bg: #e8ebed;
  --surface: #f5f6f7;
  --ink: #14263f;
  --ink-2: #4a5a6e;
  --line: #c6cdd4;
  --navy: #1c355c;
  --navy-deep: #12253f;
  --night: #0b1a2e;
  --yellow: #f2b21b;
  --yellow-hover: #e3a206;
  --on-yellow: #14263f;
  --error: #b42318;
  --r: 2px;
  --nav-h: 68px;

  --display: "Big Shoulders Stencil", "Archivo", sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 10;
  --z-grain: 15;
  --z-skip: 20;

  --steel:
    repeating-linear-gradient(90deg,
      rgb(255 255 255 / 0.07) 0 2px,
      rgb(255 255 255 / 0) 2px 24px,
      rgb(0 0 0 / 0.26) 24px 28px,
      rgb(0 0 0 / 0.1) 28px 34px,
      rgb(255 255 255 / 0) 34px 58px,
      rgb(255 255 255 / 0.035) 58px 64px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1826;
    --surface: #152238;
    --ink: #e7ebef;
    --ink-2: #a3afbd;
    --line: #2a3a55;
    --error: #ff8f84;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grano fijo sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: var(--noise);
  mix-blend-mode: overlay;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  border-radius: var(--r);
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Tipografía de sección ---------- */

.h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 18ch;
}

/* ---------- Botones y enlaces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--r);
  background: var(--yellow);
  color: var(--on-yellow);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgb(20 38 63 / 0.18);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 18px; font-size: 0.9375rem; }
.btn i { font-size: 1.3em; }
.btn--ink { background: var(--on-yellow); color: #fff; padding: 18px 28px; font-size: 1.0625rem; }
.btn--ink:hover { background: var(--navy); }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--yellow);
  cursor: pointer;
  transition: text-underline-offset 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.link:hover { text-underline-offset: 3px; text-decoration-color: currentColor; }
.link--light { color: #fff; }

/* ---------- Navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}
.nav__brand img { width: 170px; height: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9688rem;
  font-weight: 550;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- Hero: puertas del contenedor ---------- */

.doors { position: relative; background: var(--night); }

.doors__stage {
  position: relative;
  overflow: hidden;
  height: calc(100svh - var(--nav-h));
  min-height: 600px;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  color: #f3f5f7;
}

/* lo que hay dentro: el puerto */
.doors__inside {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.doors__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.doors__inside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 60%, rgb(11 26 46 / 0.86), rgb(11 26 46 / 0.35) 70%),
    linear-gradient(180deg, rgb(11 26 46 / 0.2), rgb(11 26 46 / 0.6));
}
.doors__big {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
  font-weight: 850;
  font-variation-settings: "wdth" 66;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* las dos hojas */
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, var(--navy-deep) 0 22px, transparent 22px calc(100% - 30px), var(--navy-deep) calc(100% - 30px)),
    linear-gradient(180deg, rgb(0 0 0 / 0.28), transparent 14%, transparent 82%, rgb(0 0 0 / 0.35)),
    var(--steel);
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: var(--noise);
}
.door--l {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -2px 0 0 rgb(0 0 0 / 0.55);
}
.door--r {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 2px 0 0 rgb(255 255 255 / 0.08), inset 5px 0 0 rgb(0 0 0 / 0.35);
}

/* el rótulo ocupa las dos hojas: cada una muestra su mitad */
.door__art {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200%;
}
.door--l .door__art { left: 0; }
.door--r .door__art { left: -100%; }
.door__wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-top: clamp(48px, 7vh, 80px);
  padding-bottom: clamp(150px, 22vh, 210px);
}

.wall__code {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgb(243 245 247 / 0.92);
}
.wall__check {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  padding: 2px 4px 0;
  border: 3px solid currentColor;
}
.wall__type {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.72em;
  letter-spacing: 0.08em;
}

.wall__title {
  align-self: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 12.5vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #f3f5f7;
}
.paint { display: block; }

/* barras de cierre: pasan por encima de la pintura, como en un contenedor real */
.bar {
  position: absolute;
  top: 34px;
  bottom: 44px;
  left: var(--x);
  width: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #56616d, #c9d0d6 38%, #9aa4ae 62%, #4d5762);
  box-shadow: 3px 0 6px rgb(0 0 0 / 0.35);
}
.bar::before,
.bar::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: linear-gradient(180deg, #9aa4ae, #4d5762);
}
/* manilla */
.bar::after {
  top: 60%;
  left: -26px;
  width: 30px;
  height: 12px;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.35);
}
.door--r .bar::after { left: 8px; }
/* guía superior */
.bar::before {
  top: 14%;
  left: -6px;
  width: 24px;
  height: 16px;
}

.doors__front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  padding-bottom: clamp(48px, 8vh, 76px);
  background: linear-gradient(0deg, rgb(11 26 46 / 0.82), rgb(11 26 46 / 0.35) 22%, transparent 40%);
}
.doors__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px 48px;
  pointer-events: auto;
}
.wall__lead {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: rgb(243 245 247 / 0.9);
  text-shadow: 0 1px 16px rgb(11 26 46 / 0.6);
}
.wall__actions { display: flex; align-items: center; gap: 28px; }
.doors :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .paint {
    clip-path: inset(0 100% 0 0);
    animation: paint 1s cubic-bezier(0.7, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--d) * 0.38s + 0.2s);
  }
  .wall__code {
    opacity: 0;
    animation: settle 0.8s var(--ease) 1.1s forwards;
  }
  .js .doors__reveal { opacity: 0; }
}
@keyframes paint { to { clip-path: inset(0 -2% 0 0); } }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios: pila de contenedores ---------- */

.services { padding-block: clamp(96px, 12vw, 160px) clamp(48px, 8vw, 96px); }
.services__head { margin-bottom: clamp(40px, 6vw, 72px); }
.services__head p {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.stack {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(8px, 2vw, 24px);
}

.scard {
  --dim: 0;
  position: sticky;
  top: calc(var(--nav-h) + 14px + var(--i) * 12px);
  height: calc(100svh - var(--nav-h) - 40px);
  min-height: 560px;
  margin-bottom: 9vh;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  color: #fff;
  transform-origin: 50% 0;
  box-shadow: 0 -18px 40px -24px rgb(11 26 46 / 0.6);
}
.scard:last-child { margin-bottom: 0; }
.scard__img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06);
}
.scard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 80% at 100% 100%, rgb(11 26 46 / 0.75), transparent 70%),
    linear-gradient(90deg, rgb(11 26 46 / 0.9) 0%, rgb(11 26 46 / 0.55) 48%, rgb(11 26 46 / 0.15) 100%),
    linear-gradient(0deg, rgb(11 26 46 / 0.8) 0%, transparent 60%);
}
/* oscurece la tarjeta cuando la siguiente se le pone encima */
.scard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--night);
  opacity: var(--dim);
}

.scard__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  padding: clamp(24px, 4vw, 56px);
}
.scard__tag {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--r);
  background: rgb(11 26 46 / 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 650;
  font-size: 0.9375rem;
}
.scard__tag i { font-size: 1.3rem; color: var(--yellow); }
.scard__title {
  align-self: end;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.4rem, 12.5vw, 12.5rem);
  line-height: 0.8;
  text-transform: uppercase;
  margin-bottom: -0.04em;
  text-wrap: nowrap;
}
.scard__body {
  align-self: end;
  display: grid;
  gap: 14px;
}
.scard__body p { color: rgb(255 255 255 / 0.86); text-shadow: 0 1px 10px rgb(11 26 46 / 0.7); }
.scard__body .scard__lead {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 1.05;
  color: #fff;
}
.scard .specs li { border-color: rgb(255 255 255 / 0.38); }
.scard .link { justify-self: start; margin-top: 6px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.specs li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 550;
}

/* ---------- Recorrido ---------- */

.route {
  padding-block: clamp(96px, 12vw, 152px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.route__intro {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 550;
  line-height: 1.28;
  letter-spacing: -0.005em;
}

.route__rail {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 56px;
}
.route__line {
  position: absolute;
  top: calc(56px + 27px);
  left: 28px;
  right: 28px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 22px);
}
.route__fill {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform-origin: left;
}
.route__box {
  position: absolute;
  top: 4px;
  left: 28px;
  width: 72px;
  height: 36px;
  margin-left: -36px;
  display: grid;
  place-items: center;
  border-radius: 1px;
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(90deg, rgb(0 0 0 / 0.12) 0 2px, transparent 2px 8px);
  box-shadow: inset 0 3px 0 rgb(0 0 0 / 0.15), inset 0 -3px 0 rgb(0 0 0 / 0.2), 0 6px 14px -6px rgb(20 38 63 / 0.6);
  color: var(--on-yellow);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  will-change: transform;
}

.route__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stop__n {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: var(--r);
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.stop.is-on .stop__n {
  background: var(--yellow);
  color: var(--on-yellow);
  transform: translateY(-3px);
}
.stop h3 {
  font-size: 1.3rem;
  font-weight: 750;
  font-variation-settings: "wdth" 80;
  margin-bottom: 6px;
}
.stop p { color: var(--ink-2); font-size: 0.98rem; max-width: 24ch; }

/* ---------- Lo que recibes ---------- */

.extras { padding-block: clamp(96px, 12vw, 152px); }
.extras .h2 { margin-bottom: clamp(36px, 5vw, 56px); }

.extras__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: minmax(280px, auto) minmax(260px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r);
}
.tile p { max-width: 40ch; }
.tile__title {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 1;
  max-width: 16ch;
}
.tile__icon { font-size: 2.4rem; margin-bottom: auto; }

.tile--yellow {
  grid-row: span 2;
  background: var(--yellow);
  color: var(--on-yellow);
}
.tile--yellow .tile__title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.tile--yellow p { font-size: 1.125rem; }

.tracker {
  width: 100%;
  max-width: 460px;
  margin-bottom: auto;
  overflow: visible;
}
.tracker__path {
  fill: none;
  stroke: var(--on-yellow);
  stroke-width: 3;
  stroke-dasharray: 8 8;
  opacity: 0.35;
}
.tracker__done {
  fill: none;
  stroke: var(--on-yellow);
  stroke-width: 4;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.tracker__end { fill: var(--on-yellow); }
.tracker__dot {
  fill: var(--navy);
  stroke: var(--yellow);
  stroke-width: 2;
  transform-box: view-box;
  offset-path: path("M24 150 C 110 150, 120 40, 200 60 S 300 150, 376 30");
  offset-rotate: auto;
  offset-distance: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .tracker__done { animation: draw 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .tracker__dot { animation: travel-dot 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
}
@keyframes draw {
  0% { stroke-dashoffset: 1; }
  80%, 100% { stroke-dashoffset: 0; }
}
@keyframes travel-dot {
  0% { offset-distance: 0%; }
  80%, 100% { offset-distance: 100%; }
}

.tile--photo { color: #fff; min-height: 280px; }
.tile--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(12 26 46 / 0.1) 0%, rgb(12 26 46 / 0.55) 40%, rgb(12 26 46 / 0.94) 100%);
}
.tile--photo:hover img { transform: scale(1.06); }
.tile__over { display: grid; gap: 8px; text-shadow: 0 1px 12px rgb(12 26 46 / 0.5); }
.tile--photo .tile__title { font-size: clamp(1.5rem, 2.2vw, 2rem); }

.tile--navy {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0.15), transparent 30%), var(--steel);
  color: #fff;
}
.tile--navy .tile__icon { color: var(--yellow); }
.tile--navy p { color: rgb(255 255 255 / 0.82); }

/* ---------- Cotizador ---------- */

.quote {
  padding-block: clamp(96px, 12vw, 152px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.quote__intro {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 20px;
}
.field {
  grid-column: span 3;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field--full { grid-column: 1 / -1; }
.field--third { grid-column: span 2; }
.form:not(.is-mar) .field--third { grid-column: span 3; }
.form:not(.is-mar) [data-for="mar"] { display: none; }

.field label,
.field legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 650;
}
.opt { font-weight: 450; color: var(--ink-2); }

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: color-mix(in srgb, var(--ink-2) 92%, transparent); }
.field input:hover,
.field select:hover { border-bottom-color: var(--ink); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  border-bottom-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 70%, transparent);
}

.field__err {
  display: none;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--error);
}
.field.is-invalid input { border-color: var(--error); border-bottom-color: var(--error); }
.field.is-invalid .field__err { display: block; }

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.seg label { position: relative; cursor: pointer; }
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.9688rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.seg label:hover span { border-color: var(--ink-2); }
.seg input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* La guía */
.ticket {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: 0 24px 48px -28px rgb(20 38 63 / 0.35);
}
.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 2px dashed var(--line);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-2);
}
.ticket__head img { width: 132px; }
.ticket__head span { text-align: right; line-height: 1.3; }

.ticket__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 26px 24px 22px;
}
.ticket__route > i { font-size: 1.6rem; padding-bottom: 4px; color: var(--ink-2); }
.ticket__route strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.ticket__k {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.ticket__rows { margin: 0; padding: 4px 24px 8px; }
.ticket__rows div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-block: 11px;
}
.ticket__rows div + div { border-top: 1px solid var(--line); }
.ticket__rows dt { font-size: 0.875rem; color: var(--ink-2); }
.ticket__rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

[data-out] { border-radius: 2px; }
[data-out].is-empty { color: var(--ink-2); font-weight: 450; }
.ticket__route strong.is-empty { font-weight: 700; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  [data-out].flash { animation: flash 0.9s var(--ease); }
}
@keyframes flash {
  0% { background: color-mix(in srgb, var(--yellow) 65%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 65%, transparent); }
  100% { background: transparent; box-shadow: 0 0 0 4px transparent; }
}

.ticket__foot {
  padding: 16px 24px;
  border-top: 2px dashed var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ticket__stamp {
  position: absolute;
  right: 20px;
  bottom: 64px;
  padding: 6px 16px 2px;
  border: 4px solid currentColor;
  border-radius: 3px;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-9deg) scale(1.8);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ticket.is-sent .ticket__stamp { animation: stamp 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) forwards; }
@keyframes stamp {
  to { opacity: 0.88; transform: rotate(-9deg) scale(1); }
}

/* ---------- Nosotros ---------- */

.about { padding-block: clamp(96px, 12vw, 160px); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.about__text { display: grid; gap: 20px; }
.about__text .h2 { margin-bottom: 8px; }
.about__text p { color: var(--ink-2); max-width: 56ch; }

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin: 16px 0 0;
}
.about__facts dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.about__facts dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

.about__media {
  margin: 0 calc(-1 * clamp(0px, 4vw, 48px)) 0 0;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contacto ---------- */

.foot {
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 136px);
  background: var(--yellow);
  color: var(--on-yellow);
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.foot__title {
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  font-weight: 850;
  font-variation-settings: "wdth" 66;
  line-height: 0.9;
  letter-spacing: -0.015em;
  max-width: 13ch;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 2px solid var(--on-yellow);
}
.foot__item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-content: start;
  padding: 24px 24px 28px 0;
  text-decoration: none;
}
.foot__item i { grid-row: 1 / 3; font-size: 1.6rem; padding-top: 2px; }
.foot__k { font-size: 0.875rem; font-weight: 550; opacity: 0.82; }
.foot__v { font-weight: 700; font-size: 1.0625rem; overflow-wrap: anywhere; }
.foot__item--static .foot__v { font-weight: 550; font-size: 0.98rem; }
a.foot__item .foot__v {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s var(--ease);
}
a.foot__item:hover .foot__v { text-decoration-color: currentColor; }
.foot :focus-visible { outline-color: var(--on-yellow); }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgb(20 38 63 / 0.25);
  font-size: 0.875rem;
}
.foot__base img { width: 150px; }

.foot__giant {
  margin: clamp(32px, 5vw, 64px) 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15.4vw;
  line-height: 0.74;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--navy);
  translate: 0 0.06em;
}
.foot__giant .ch { display: inline-block; }
.js .foot__giant { width: max-content; margin-inline: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scard__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .scard__title { margin-bottom: 24px; }
  .scard__body { max-width: 520px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }

  .scard { height: auto; min-height: calc(100svh - var(--nav-h) - 40px); }
  .scard::before {
    background: linear-gradient(0deg, rgb(11 26 46 / 0.95) 0%, rgb(11 26 46 / 0.7) 55%, rgb(11 26 46 / 0.25) 100%);
  }

  .route__track { grid-template-columns: 1fr; gap: 28px; }
  .route__rail { padding-top: 0; }
  .route__box { display: none; }
  .route__line {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 14px, transparent 14px 22px);
  }
  .route__fill { transform-origin: top; }
  .stop {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 20px;
  }
  .stop__n { grid-row: span 2; margin: 0; }
  .stop h3 { align-self: end; }
  .stop p { max-width: none; }

  .extras__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile--yellow { grid-row: auto; min-height: 380px; }

  .quote__grid { grid-template-columns: 1fr; }
  .ticket { position: relative; top: auto; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { margin-right: 0; order: -1; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .wall__code { font-size: 1.2rem; column-gap: 8px; }
  .wall__actions { width: 100%; justify-content: space-between; }
  .door__wrap { padding-bottom: 230px; }
  .bar::after { display: none; }
  .door--l .bar { left: auto; right: 10%; }
  .door--r .bar { left: 10%; }
  .door--l .bar + .bar,
  .door--r .bar:first-of-type { display: none; }
  .scard__title { font-size: clamp(3.2rem, 16vw, 4.4rem); }
  .form { grid-template-columns: 1fr; }
  .field, .field--third, .form:not(.is-mar) .field--third { grid-column: 1 / -1; }
  .form__actions .btn { width: 100%; justify-content: center; }
  .foot__grid { grid-template-columns: 1fr; }
  .ticket__route { grid-template-columns: 1fr; }
  .ticket__route > i { transform: rotate(90deg); justify-self: start; padding: 0; }
}

@media (prefers-color-scheme: dark) {
  .field input:focus, .field select:focus { border-color: var(--yellow); }
  .seg input:checked + span {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--on-yellow);
  }
  .about__facts dt { color: var(--yellow); }
  .tile--navy { background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .ticket__stamp { color: var(--yellow); mix-blend-mode: normal; }
}

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