/* SimpleShipping. Mundo: tablero de salidas en el azul marino del logo.
   Radios: botones en píldora, tableros y paneles 14px, campos 10px, paletas 2px. */

@font-face { font-family: "Saira"; src: url("fonts/saira.woff2") format("woff2"); font-weight: 100 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url("fonts/saira-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 75% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050c1a;
  --bg-2: #071122;
  --panel: #091429;
  --panel-2: #0b1832;
  --cell-t: #13213b;
  --cell-b: #0f1b32;
  --cell-lt: #172b4f;
  --cell-lb: #132544;
  --line: rgba(150, 180, 235, 0.12);
  --line-2: rgba(150, 180, 235, 0.22);
  --ink: #e9eff9;
  --ink-2: #b3c0d6;
  --ink-3: #8191ad;
  --ink-dim: #56668a;
  --blue: #3879e2;
  --lit: #82adf6;
  --btn: #2b63c6;
  --btn-h: #2457b2;
  --err: #ff9c9c;

  --f-d: "Saira", "Arial Narrow", sans-serif;
  --f-b: "Saira", system-ui, sans-serif;
  --f-m: "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-sig: cubic-bezier(0.14, 1, 0.34, 1);
  --spring: cubic-bezier(0.34, 1.5, 0.64, 1);

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  --z-nav: 20;
  --z-grain: 30;
  --z-skip: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: #1d2c49 var(--bg); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-b);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--lit);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(56, 121, 226, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.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 { position: fixed; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 52px; padding: 0 1.45rem 0 1.2rem;
  border: 0; border-radius: 999px;
  background: var(--btn); color: #fff;
  font: 600 1rem/1 var(--f-b); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(43, 99, 198, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.35s var(--ease-sig), background-color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.btn .ico { width: 1.3em; height: 1.3em; }
.btn:hover { background: var(--btn-h); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(43, 99, 198, 1), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.btn--sm { height: 42px; padding: 0 1.1rem 0 0.95rem; font-size: 0.94rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.link .ico { transition: transform 0.4s var(--ease-sig); }
.link:hover { color: var(--lit); }
.link:hover .ico { transform: translateX(3px); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(5, 12, 26, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand__plane { width: 46px; fill: var(--blue); transition: transform 0.5s var(--spring); }
.brand:hover .brand__plane { transform: translate(3px, -3px) rotate(-4deg); }
.brand__word { width: 172px; fill: var(--ink); }
.nav__links { display: flex; gap: 1.75rem; font-size: 0.94rem; }
.nav__links a { color: var(--ink-2); text-decoration: none; padding: 6px 0; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Paletas del tablero ---------- */
.board { container-type: inline-size; position: relative; }
.flap { display: flex; }
.c {
  position: relative; flex: none;
  width: var(--cw); height: calc(var(--cw) * 1.48);
  padding: 1px;
  perspective: calc(var(--cw) * 7);
}
.c b {
  position: relative; display: grid; place-items: center;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(var(--cell-t) 50%, var(--cell-b) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 1px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font: 600 calc(var(--cw) * 0.98) / 1 var(--f-m);
  transition: color 0.25s, background 0.25s;
}
.c b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.6); }
.c .leaf {
  position: absolute; left: 1px; right: 1px; top: 1px; height: calc(50% - 1px);
  overflow: hidden; border-radius: 2px 2px 0 0;
  background: var(--cell-t);
  transform-origin: 50% 100%;
  animation: leaf 64ms ease-in forwards;
  z-index: 1;
}
.c .leaf span { display: grid; place-items: center; height: calc(var(--cw) * 1.48 - 2px); color: var(--ink); font: 600 calc(var(--cw) * 0.98) / 1 var(--f-m); }
@keyframes leaf { to { transform: rotateX(-90deg); } }

.lit .c b, .flap.lit .c b { color: var(--lit); background: linear-gradient(var(--cell-lt) 50%, var(--cell-lb) 50%); }
.lit .c .leaf, .flap.lit .c .leaf { background: var(--cell-lt); }
.lit .c .leaf span { color: var(--lit); }
.js .flap[data-pending] .c b { color: transparent; }

.lbl { display: block; margin-bottom: 0.55rem; font: 500 0.72rem/1 var(--f-m); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(2.5rem, 5vh, 4rem); display: flex; flex-direction: column; gap: clamp(2.5rem, 7vh, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(1.5rem, 3vh, 2.25rem); align-items: end; }
.hero__t {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; z-index: 1;
  font: italic 800 clamp(2.6rem, 5.9vw, 5.4rem) / 0.96 var(--f-d);
  font-stretch: 108%;
  letter-spacing: -0.02em;
}
.hero__t .ln { display: block; white-space: nowrap; overflow: hidden; padding: 0 0.1em 0.06em 0; margin-bottom: -0.06em; }
.hero__t .ln > span { display: inline-block; }
.hero__t em { font-style: italic; color: var(--lit); }
.hero__mark {
  grid-column: 7 / 13; grid-row: 2; align-self: start; justify-self: end; width: min(100%, 470px); margin-top: -2rem;
  position: relative;
}
.hero__mark::before {
  content: ""; position: absolute; inset: -18% 0;
  background: radial-gradient(closest-side, rgba(56, 121, 226, 0.22), transparent 72%);
  pointer-events: none;
}
.mark { position: relative; width: 100%; fill: var(--blue); transition: transform 0.7s var(--spring); }
.hero__mark:hover .mark { transform: translate(10px, -12px) rotate(-3deg); }
.hero__sub { grid-column: 1 / 7; grid-row: 2; align-self: start; display: grid; gap: 1.6rem; }
.hero__sub p { max-width: 34ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.75rem; }

.board--strip {
  padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2vw, 26px) clamp(12px, 1.4vw, 16px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.strip { --cw: calc(100cqi / 41); display: flex; justify-content: space-between; gap: calc(var(--cw) * 2); }
.seg--lit .flap .c b { color: var(--lit); background: linear-gradient(var(--cell-lt) 50%, var(--cell-lb) 50%); }
.seg--lit .flap .c .leaf { background: var(--cell-lt); }
.seg--lit .flap .c .leaf span { color: var(--lit); }
.seg--lit .lbl { color: var(--lit); }
.strip__foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font: 400 0.8rem/1.4 var(--f-m); color: var(--ink-3); }
.strip__foot [data-miami-now] { font-variant-numeric: tabular-nums; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(5rem, 11vw, 9rem) 0; }
.sec__t {
  font: italic 750 clamp(2.3rem, 5.2vw, 4.2rem) / 1 var(--f-d);
  font-stretch: 106%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.sec__lead { margin-top: 1rem; max-width: 52ch; color: var(--ink-2); }

/* Servicios: el tablero completo */
.board--srv {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(14px, 2vw, 28px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.board--srv { --units: 74.6; }
.board__head, .row {
  --cw: calc(100cqi / var(--units));
  display: grid;
  grid-template-columns: calc(var(--cw) * 20) calc(var(--cw) * 18) calc(var(--cw) * 14) calc(var(--cw) * 15) 1fr;
  column-gap: calc(var(--cw) * 1.4);
  align-items: center;
}
.board__head { padding-bottom: 0.7rem; font: 500 0.72rem/1 var(--f-m); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rowi + .rowi { border-top: 1px solid var(--line); }
.row {
  width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 6px;
}
.row__tog { justify-self: end; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); transition: transform 0.45s var(--ease-sig), background 0.25s, color 0.25s, border-color 0.25s; }
.row__tog .ico { width: 16px; height: 16px; }
.row:hover .c b, .row[aria-expanded="true"] .c b, .row:focus-visible .c b { color: var(--lit); background: linear-gradient(var(--cell-lt) 50%, var(--cell-lb) 50%); }
.row:hover .c .leaf, .row[aria-expanded="true"] .c .leaf { background: var(--cell-lt); }
.row:hover .c .leaf span, .row[aria-expanded="true"] .c .leaf span { color: var(--lit); }
.row:hover .row__tog { border-color: var(--lit); color: var(--lit); }
.row[aria-expanded="true"] .row__tog { transform: rotate(45deg); background: var(--btn); border-color: var(--btn); color: #fff; }
.row:focus-visible { outline-offset: 4px; }
.detail { padding: 0.4rem 0 1.4rem; }
.detail p { max-width: 62ch; color: var(--ink-2); font-size: 1.02rem; }
.detail.is-open { animation: open 0.55s var(--ease) both; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Ruta */
.sec--route { background: var(--bg-2); border-block: 1px solid var(--line); }
.route { --p: 0; margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.route__line { position: relative; height: 2px; background: var(--line-2); margin: 0 0 2.4rem; }
.route__line i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.route__plane { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 72px; transform: translate(-62%, -78%); }
.route__plane svg { width: 100%; fill: var(--blue); }
.route__stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.route__stops li { position: relative; padding-top: 0.25rem; }
.route__stops li::before { content: ""; position: absolute; left: 0; top: calc(-2.4rem - 6px); width: 14px; height: 14px; border-radius: 999px; background: var(--bg-2); border: 2px solid var(--line-2); transition: background 0.3s, border-color 0.3s; }
.route__stops li.on::before { background: var(--blue); border-color: var(--blue); }
.route__stops h3 { font: italic 700 clamp(1.5rem, 2.4vw, 2rem) / 1.1 var(--f-d); font-stretch: 106%; color: var(--ink-3); transition: color 0.4s; }
.route__stops li.on h3 { color: var(--ink); }
.route__stops p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.98rem; max-width: 30ch; }

/* Integración */
.api { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.api__copy p { margin-top: 1.25rem; max-width: 46ch; color: var(--ink-2); }
.board--status {
  --cw: calc(100cqi / 20);
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.board--status .flap { --cw: calc((100cqi) / 20); }
.board--status .lbl { color: var(--lit); }
.api__demo figcaption { margin-top: 1rem; font: 400 0.8rem/1.6 var(--f-m); color: var(--ink-3); }
.states { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin-top: 0.35rem; color: var(--ink-2); }
.states li:not(:last-child)::after { content: "›"; margin-left: 0.5rem; color: var(--ink-3); }

/* Almacenaje: lista grande, se enciende al pasar por el centro */
.big { margin-top: clamp(2rem, 4vw, 3rem); }
.big li {
  position: relative; display: flex; align-items: center; gap: 1.5rem;
  padding: 0.2em 0;
  font: italic 800 clamp(2.1rem, 6.4vw, 5.4rem) / 1.08 var(--f-d);
  font-stretch: 104%;
  letter-spacing: -0.02em;
  color: var(--ink-dim);
  transition: color 0.5s var(--ease);
}
.big li + li { border-top: 1px solid var(--line); }
.big__plane { width: clamp(48px, 6vw, 84px); fill: var(--blue); opacity: 0; transform: translateX(-24px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-sig); }
.big li.is-lit, .big li:hover { color: var(--ink); }
.big li.is-lit .big__plane, .big li:hover .big__plane { opacity: 1; transform: none; }

/* Reglas */
.rules { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); }
.rule { grid-column: span 2; padding-top: 1.6rem; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 0.8rem; }
.rule:nth-child(-n+2) { grid-column: span 3; }
.board--val { --cw: min(calc(100cqi / 7), 34px); margin-bottom: 0.4rem; }
.board--val .c b { color: var(--lit); }
.rule h3 { font: 600 1.15rem/1.3 var(--f-b); }
.rule p { color: var(--ink-2); font-size: 0.98rem; max-width: 52ch; }
.rule .link { align-self: flex-start; font-size: 0.94rem; }

/* Contacto */
.sec--contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__copy p { margin-top: 1.1rem; max-width: 40ch; color: var(--ink-2); }
.contact__alt { display: flex; gap: 0.6rem; align-items: center; font-size: 0.96rem; }
.contact__alt a { color: var(--ink); }
.contact__alt a:hover { color: var(--lit); }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.field { display: grid; gap: 0.5rem; align-content: start; }
.field:first-child, .field:last-of-type { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  background: #060e1e; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23b3c0d6'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { background: #0b1832; color: var(--ink); }
.field input:hover, .field select:hover { border-color: rgba(150, 180, 235, 0.36); }
.field input:focus, .field select:focus { outline: none; border-color: var(--lit); box-shadow: 0 0 0 3px rgba(56, 121, 226, 0.35); }
.field.is-err input, .field.is-err select { border-color: var(--err); }
.err { color: var(--err); font-size: 0.88rem; }
.hint { color: var(--ink-3); font-size: 0.86rem; }
.ok { grid-column: 1 / -1; color: var(--lit); font-size: 0.92rem; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.board--err { --cw: 15px; container-type: normal; }
.board--err .c b { color: var(--err); }
.board--err .c:last-child .stuck { position: absolute; left: 1px; right: 1px; top: 1px; height: calc(50% - 1px); background: var(--cell-t); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; transform: rotateX(-58deg); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06); }

/* Pie */
.foot { padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; border-top: 1px solid var(--line); }
.foot__word { width: 100%; fill: #13213b; }
.foot__row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; font-size: 0.9rem; color: var(--ink-3); }
.foot__row ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.foot__row a { color: var(--ink-2); text-decoration: none; }
.foot__row a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Entrada (solo con movimiento permitido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__t .ln > span { animation: rise 1.1s var(--ease) both; }
  .hero__t .ln:nth-child(2) > span { animation-delay: 0.09s; }
  .hero__sub { animation: fade 1s var(--ease) 0.35s both; }
  .mark path { animation: trail 1.25s var(--ease) 0.3s both; }
  .mark { animation: hop 0.85s var(--spring) 1.25s both; }
  .board--strip { animation: fade 1s var(--ease) 0.5s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes trail { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hop { 0% { transform: none; } 40% { transform: translate(14px, -18px) rotate(-3deg); } 100% { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 1.25rem; }
  .board--srv { --units: 55; }
  .board__head, .row { grid-template-columns: calc(var(--cw) * 20) calc(var(--cw) * 14) calc(var(--cw) * 15) 1fr; }
  .board__head span:nth-child(2), .row .col2 { display: none; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__t, .hero__sub { grid-column: 1; }
  .hero__t { grid-row: 2; }
  .hero__sub { grid-row: 3; }
  .hero__mark { grid-column: 1; grid-row: 1; width: min(62%, 300px); justify-self: end; margin: 0 0 -1rem; }
  .hero__t .ln { white-space: normal; }
  .strip { --cw: calc(100cqi / 18); }
  .strip { flex-wrap: wrap; row-gap: 14px; }
  .seg--route { flex-basis: 100%; }
  .seg--route .flap { --cw: calc(100cqi / 21); }
  .api, .contact { grid-template-columns: 1fr; }
  .route__stops { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .route__stops li:nth-child(n+3)::before { display: none; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule, .rule:nth-child(-n+2) { grid-column: span 1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .brand__word { width: 118px; }
  .brand__plane { width: 38px; }
  .brand { gap: 0.55rem; }
  .board--srv { --units: 24; }
  .board__head { display: none; }
  .board__head, .row { grid-template-columns: calc(var(--cw) * 20) 1fr; row-gap: 6px; }
  .row .col3 { grid-column: 1; grid-row: 2; }
  .row .col4 { display: none; }
  .row__tog { grid-column: 2; grid-row: 1 / 3; width: 30px; height: 30px; }
  .row { padding: 12px 0; }
  .route { display: grid; grid-template-columns: 24px 1fr; gap: 0 1rem; }
  .route__line { width: 2px; height: auto; margin: 0 0 0 11px; }
  .route__line i { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .route__plane { top: calc(var(--p) * 100%); left: 50%; width: 46px; transform: translate(-50%, -50%) rotate(90deg); }
  .route__stops { grid-template-columns: 1fr; gap: 2.25rem; }
  .route__stops li::before, .route__stops li:nth-child(n+3)::before { display: block; left: calc(-1rem - 19px); top: 0.5rem; }
  .rules { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .strip__foot { flex-direction: column; gap: 0.25rem; }
  .btn { height: 50px; }
}
#servicios { padding-top: clamp(3rem, 6vw, 5rem); }
