/* dFleetix · sitio comercial. Dirección: "The product performs" (tasteskill, seed 880093418).
   Paleta y tipografía de la marca (las mismas del dashboard). Un solo radio de página: 0.
   Dentro de [data-ui] rigen las convenciones del producto (bordes de 1px, radio 8px). */

:root {
  --bg: oklch(0.985 0.002 247);
  --surface: oklch(0.955 0.005 247);
  --surface-2: oklch(0.925 0.007 247);
  --ink: oklch(0.21 0.014 255);
  --muted: oklch(0.45 0.018 255);
  --accent: oklch(0.46 0.085 205);
  --accent-strong: oklch(0.39 0.08 205);
  --accent-ink: oklch(0.985 0.005 200);
  --accent-tint: oklch(0.945 0.02 205);
  --night: oklch(0.17 0.01 255);
  --night-row: oklch(0.225 0.012 255);
  --night-ink: oklch(0.94 0.006 247);
  --night-muted: oklch(0.72 0.012 255);

  --st-moving: oklch(0.72 0.15 155);
  --st-idle: oklch(0.82 0.14 80);
  --st-offline: oklch(0.66 0.015 255);
  --st-alert: oklch(0.6 0.2 25);
  --st-shop: oklch(0.72 0.13 55);

  --ui-line: oklch(0.91 0.006 247);
  --ui-card: oklch(1 0 0);

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.05vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.1vw, 4.25rem);
  --step-display: clamp(3.25rem, 0.9rem + 5.6vw, 6.25rem);

  --margin: clamp(1rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 13rem);
  --col: calc((100vw - 2 * var(--margin) - 11 * var(--gutter)) / 12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.04em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.lead-type { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--margin); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: var(--step-small); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; letter-spacing: -0.02em; font-size: var(--step-body); text-decoration: none; }
.logo-mark { width: 1.6rem; height: 1.6rem; }
.lm-bg { fill: var(--accent); }
.lm-path { stroke: color-mix(in oklch, var(--accent-ink) 70%, transparent); }
.lm-dot { fill: var(--accent-ink); }
.nav nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav nav a { text-decoration-color: transparent; }

/* ---------- hero: fragmento sobre un escenario recortado ---------- */
.hero { position: relative; min-height: max(100svh, 46rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(7.5rem, 16vh, 9.5rem); }
.hero h1 { max-width: 62vw; }
.hero-lead { margin-top: 2rem; max-width: 40ch; line-height: 1.5; }
.hero .button { margin-top: 1.75rem; }

.stage {
  --cut: calc(2 * var(--col) + var(--gutter));
  position: absolute; z-index: 1;
  left: calc(var(--margin) + 4 * (var(--col) + var(--gutter)));
  right: 0; top: 42%; bottom: 0;
  background: var(--accent);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 3.5rem, var(--cut) 3.5rem);
}
.frag-hero { position: absolute; left: 3.5rem; top: 3.5rem; width: min(40rem, calc(100% - 3.5rem)); }

/* ---------- fragmentos de interfaz (convenciones del producto) ---------- */
.frag { background: var(--ui-card); color: var(--ink); border: 1px solid var(--ui-line); border-radius: 10px; font-size: 0.875rem; line-height: 1.4; overflow: hidden; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fr-head, .fl-head { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ui-line); font-weight: 600; font-size: 0.875rem; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.pill { display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.pill.ok { background: color-mix(in oklch, var(--st-moving) 18%, transparent); color: oklch(0.42 0.11 155); }
.pill.flag, .pill.alert { background: color-mix(in oklch, var(--st-alert) 14%, transparent); color: oklch(0.48 0.19 25); }
.pill.warn { background: color-mix(in oklch, var(--st-idle) 22%, transparent); color: oklch(0.45 0.1 75); }

.fh-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fh-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--st-moving); box-shadow: 0 0 0 4px color-mix(in oklch, var(--st-moving) 22%, transparent); flex: none; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fh-title { display: grid; min-width: 0; }
.fh-title strong { font-size: 0.9375rem; }
.fh-title span { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-status { margin-left: auto; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.fh-body { display: grid; grid-template-columns: 15rem 1fr; }
.fh-map { position: relative; height: 21rem; background: oklch(0.965 0.006 220); border-right: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fh-map .maplibregl-map { position: absolute; inset: 0; }
.fh-map.has-map .corridor-svg { opacity: 0; }
.corridor-svg { width: 100%; height: 100%; transition: opacity 400ms ease; }
.c-route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-border { fill: none; stroke: oklch(0.7 0.05 230); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-dot { fill: var(--ui-card); stroke: var(--accent); stroke-width: 2; }
.c-label { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.fh-stats { display: grid; align-content: start; }
.fh-stat { display: grid; gap: 0.1rem; padding: 0.62rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fh-stat dt { color: var(--muted); font-size: 0.8125rem; }
.fh-stat dd { font-weight: 500; font-variant-numeric: tabular-nums; transition: color 300ms ease; }
.fh-stat dd.is-flip { color: var(--accent); }
.fh-drive { padding: 0.85rem 1.1rem 1rem; border-bottom: 1px solid var(--ui-line); background: oklch(0.975 0.008 205); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.fh-drive label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.fh-drive input[type="range"] { width: 100%; accent-color: var(--accent); height: 1.75rem; cursor: grab; }
.fh-drive input[type="range"]:active { cursor: grabbing; }
.fh-marks { position: relative; height: 1.1rem; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; }
.fh-marks span { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); white-space: nowrap; }
.fh-marks span:first-child { transform: none; }
.fh-marks span:last-child { transform: translateX(-100%); }
.fh-marks .fh-border { color: var(--accent); font-weight: 600; }
.truck-marker { width: 30px; height: 30px; border-radius: 50%; background: var(--st-moving); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 2px 6px oklch(0 0 0 / 0.25); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.truck-marker svg { width: 12px; height: 12px; transition: transform 200ms ease; }

/* ---------- tablero ---------- */
.board-section { background: var(--night); color: var(--night-ink); padding-top: calc(var(--section) * 0.7); }
.board-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-bottom: 3.5rem; }
.board-head h2 { grid-column: 1 / span 7; }
.board-lead { grid-column: 9 / span 4; color: var(--night-muted); }
.board-clip { overflow: hidden; padding-inline: 12px; }
.board { display: grid; gap: 4px; padding-bottom: 4px; }
.board-row { background: var(--night-row); transition: background-color 240ms ease; }
.board-row button { width: 100%; min-height: 72px; display: grid; grid-template-columns: 1.05fr 2.2fr 0.95fr 1.5fr 1.35fr; align-items: center; column-gap: var(--gutter); padding: 0 1.1rem; text-align: left; font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.1; }
.board-row button > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-unit { font-weight: 500; }
.br-speed { font-variant-numeric: tabular-nums; }
.br-driver { color: var(--night-muted); }
.br-status { justify-self: stretch; padding: 0.35rem 0.8rem; color: var(--night); font-weight: 500; font-size: var(--step-body); }
.st-moving { background: var(--st-moving); }
.st-idle { background: var(--st-idle); }
.st-offline { background: var(--st-offline); }
.st-shop { background: var(--st-shop); }
.br-detail { display: none; padding: 0 1.1rem 1.6rem; gap: 0.35rem; }
.board-row.is-open { background: var(--accent); color: var(--accent-ink); }
.board-row.is-open button { min-height: 120px; }
.board-row.is-open button { grid-template-columns: 1.6fr 2.2fr 0.95fr 1.5fr 1.35fr; }
.board-row.is-open .br-unit { font-size: var(--step-head); letter-spacing: -0.03em; overflow: visible; }
.board-row.is-open .br-driver { color: inherit; }
.board-row.is-open .br-detail { display: grid; }
@media (hover: hover) and (pointer: fine) {
  .board-row:not(.is-open):hover { background: oklch(0.26 0.014 255); }
}

/* ---------- foto del puente (shutter) ---------- */
.bridge { background: var(--night); color: var(--night-muted); padding-top: 4px; padding-bottom: calc(var(--section) * 0.5); }
.bridge .shutter { height: min(78vh, 52rem); overflow: hidden; }
.bridge img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.bridge figcaption { padding-top: 1rem; font-size: var(--step-small); }

/* ---------- una flota, dos países (fragmento fijo) ---------- */
.pinned { padding-top: var(--section); }
.pinned-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.pinned-intro h2 { grid-column: 1 / span 6; }
.pinned-intro p { grid-column: 8 / span 5; }
.pinned-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 4rem; }
.pinned-hold { grid-column: 1 / span 6; }
.frag-ledger { position: sticky; top: 14vh; }
.frag-ledger table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.frag-ledger th, .frag-ledger td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ui-line); vertical-align: top; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.frag-ledger thead th { color: var(--muted); font-weight: 500; font-size: 0.8125rem; }
.frag-ledger tbody th { font-weight: 400; color: var(--muted); width: 36%; }
.frag-ledger td { font-weight: 500; font-variant-numeric: tabular-nums; }
.frag-ledger tbody tr { transition: background-color 300ms ease, opacity 300ms ease; }
.js .frag-ledger tbody tr { opacity: 0.42; }
.js .frag-ledger[data-step="1"] tr[data-group="1"], .js .frag-ledger[data-step="2"] tr[data-group="2"], .js .frag-ledger[data-step="3"] tr[data-group="3"] { opacity: 1; background: var(--accent-tint); }
.pinned-steps { grid-column: 8 / span 5; display: grid; gap: 7rem; padding-bottom: 6rem; }
.pstep { min-height: 72vh; display: grid; align-content: start; gap: 1rem; padding-top: 10vh; }
.pstep:first-child { padding-top: 0; }
.pphoto { overflow: hidden; margin-top: 1rem; aspect-ratio: 4 / 3; }
.pphoto img { width: 100%; height: 100%; object-fit: cover; }
.ppair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 1rem; }
.ppair .pphoto { margin-top: 0; aspect-ratio: 3 / 4; }
.crop-low { object-position: 50% 78%; }
.crop-river { object-position: 82% 40%; }

/* ---------- módulos ---------- */
.features { padding-top: var(--section); }
.statement { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; max-width: 34ch; }
.slot { display: inline-block; vertical-align: -0.14em; height: 1em; width: 1.9em; margin-inline: 0.14em; border-radius: 0.18em; overflow: hidden; background: var(--surface-2); }
.slot-photo img { width: 100%; height: 100%; object-fit: cover; }
.slot-ui { display: inline-grid; place-items: center; background: var(--ui-card); border: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.slot-sq { width: 1.25em; }
.s-chip { font-size: 0.4em; font-weight: 600; color: var(--accent); white-space: nowrap; }
.s-check { display: grid; gap: 0.08em; width: 60%; }
.s-check i { display: block; height: 0.11em; border-radius: 2px; background: var(--st-moving); }
.s-check i:nth-child(2) { background: var(--st-idle); width: 70%; }
.s-bars { display: flex; align-items: flex-end; gap: 0.08em; height: 62%; }
.s-bars i { display: block; width: 0.18em; height: calc(var(--h) * 100%); background: var(--accent); border-radius: 1px; }
.features-after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 4.5rem; }
.features-after p { grid-column: 7 / span 5; }
.features-after a { grid-column: 7 / span 5; margin-top: 1rem; justify-self: start; }

.caps { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(5rem, 9vw, 9rem); margin-top: calc(var(--section) * 0.8); }
.cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.cap-copy { grid-column: 1 / span 4; display: grid; gap: 1rem; padding-top: 1.5rem; }
.cap-frag { grid-column: 6 / span 7; min-width: 0; }
.cap-maint .cap-frag { grid-column: 6 / span 6; }
.cap-dvir .cap-frag { grid-column: 7 / span 4; }
.cap-docs .cap-frag { grid-column: 6 / span 5; }

.frag-maint ul, .frag-docs ul, .frag-tco ul, .frag-dvir ul { display: grid; }
.frag-maint li { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.frag-maint li:last-child { border-bottom: 0; }
.frag-maint li div:first-child { display: grid; }
.frag-maint li div:first-child span { color: var(--muted); font-size: 0.8125rem; }
.meter { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter i.is-soon { background: var(--st-idle); }
.due { font-weight: 500; white-space: nowrap; }
.due.is-soon { color: oklch(0.5 0.12 70); }

.fr-scroll { overflow-x: auto; }
.frag-fuel table { width: 100%; min-width: 30rem; border-collapse: collapse; }
.frag-fuel th, .frag-fuel td { text-align: left; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.frag-fuel th { color: var(--muted); font-weight: 500; font-size: 0.8125rem; }
.frag-fuel tr.is-flag td { background: color-mix(in oklch, var(--st-alert) 6%, transparent); }
.fr-note { padding: 0.7rem 1.1rem; color: oklch(0.48 0.19 25); font-size: 0.8125rem; }

.frag-dvir li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.frag-dvir .box { width: 1.25rem; height: 1.25rem; border-radius: 5px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700; color: #fff; background: var(--st-moving); flex: none; }
.frag-dvir .box svg { width: 0.75rem; height: 0.75rem; }
.frag-dvir li.defect .box { background: var(--st-alert); }
.frag-dvir .defect { padding: 0.75rem 1.1rem 0; color: oklch(0.48 0.19 25); font-weight: 500; }
.frag-dvir .sign { padding: 0.4rem 1.1rem 1rem; color: var(--muted); font-size: 0.8125rem; }

.frag-docs li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.frag-docs li:last-child { border-bottom: 0; }

.frag-tco li { display: grid; grid-template-columns: 11rem 1fr 9.5rem; align-items: center; gap: 1rem; padding: 0.7rem 1.1rem; }
.frag-tco li span { color: var(--muted); }
.frag-tco li b { text-align: right; font-weight: 500; }
.bar { height: 10px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tco-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.1rem; border-top: 1px solid var(--ui-line); font-weight: 500; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.tco-total b { font-size: var(--step-lead); letter-spacing: -0.02em; }

/* ---------- tres pasos (llamada y respuesta) ---------- */
.steps { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.steps h2 { grid-column: 4 / span 7; margin-bottom: 3.5rem; }
.exchanges { grid-column: 4 / span 6; display: grid; gap: 5.5rem; }
.say { font-weight: 500; }
.call { margin-top: 1rem; display: grid; gap: 0.75rem; background: var(--surface); padding: 1.25rem; border-radius: 8px; }
.call label { display: grid; gap: 0.3rem; font-size: 0.8125rem; color: var(--muted); }
.call input { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--ui-card); color: var(--ink); font-size: 0.9375rem; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.answer { margin-top: 1rem; margin-left: 3.5rem; }
.ans-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.ans-line { display: block; padding: 0.55rem 1.1rem; color: var(--muted); }
.ans-line + .ans-line { padding-top: 0; padding-bottom: 0.85rem; }
.exchange.is-final .answer { margin-left: 3.5rem; width: calc(100% + 3 * (var(--col) + var(--gutter)) - 3.5rem); }
.live-list li { display: grid; grid-template-columns: auto 6rem 1fr auto; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--ui-line); font-size: 0.9375rem; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.live-list li:last-child { border-bottom: 0; }
.ll-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; }

/* ---------- confianza ---------- */
.trust { padding-block: max(22vh, calc(var(--section) * 0.9)); }
.trust-statement { max-width: 66vw; margin-inline: auto; text-align: center; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.trust .slot { height: 0.85em; vertical-align: -0.1em; }
.t-toggle { width: 70%; height: 55%; border-radius: 999px; background: var(--accent); position: relative; }
.t-toggle i { position: absolute; right: 8%; top: 50%; width: 0.32em; height: 0.32em; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.t-chip { font-size: 0.42em; font-weight: 600; color: var(--accent); }
.t-eye { width: 0.42em; height: 0.42em; border-radius: 50%; border: 0.07em solid var(--accent); }

/* ---------- precios ---------- */
.pricing { padding-top: calc(var(--section) * 0.4); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.pricing-names { grid-column: 1 / span 6; }
.pricing-names h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 2rem; }
.plan-list { display: grid; justify-items: start; }
.plan-name { position: relative; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; color: color-mix(in oklch, var(--ink) 38%, var(--bg)); padding-left: 0.55em; transition: color var(--t-hover) ease; }
.plan-name::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--accent); transform: translateY(-50%) scale(0.6); opacity: 0; transition: transform 240ms var(--ease-out), opacity 240ms ease; }
.plan-name[aria-pressed="true"] { color: var(--ink); }
.plan-name[aria-pressed="true"]::before { transform: translateY(-50%) scale(1); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .plan-name:hover { color: var(--ink); } }
.pricing-note { margin-top: 2rem; max-width: 40ch; color: var(--muted); }
.plan-stage { grid-column: 8 / span 5; position: sticky; top: 10vh; display: grid; gap: 1.25rem; justify-items: start; }
.currency { display: inline-flex; background: var(--surface); padding: 4px; }
.currency button { padding: 0.35rem 0.9rem; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.currency button[aria-checked="true"] { background: var(--ui-card); color: var(--ink); }
.price { display: grid; gap: 0.35rem; }
.price-figure { font-weight: 500; font-variant-numeric: tabular-nums; transition: opacity 200ms ease; }
.price-period { color: var(--muted); }
.plan-body { transition: opacity 200ms ease; }
.plan-stage.is-swapping .price-figure, .plan-stage.is-swapping .plan-body { opacity: 0; }
.price-tax { color: var(--muted); font-size: var(--step-small); }

/* ---------- preguntas ---------- */
.faq { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 6rem; }
.faq-list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { background: var(--surface); transition: background-color 240ms ease, color 240ms ease; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; padding: 1.1rem 1.5rem; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 3px; background: currentColor; transform: translateY(-50%); transition: transform 240ms var(--ease-out); }
.faq summary i::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary i::after { transform: translateY(-50%) rotate(0deg); }
.faq details p { padding: 0 1.5rem 1.5rem; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { background: var(--surface-2); } }

/* ---------- cierre ---------- */
.cta { margin-top: calc(var(--section) * 0.7); background: var(--accent); color: var(--accent-ink); }
.cta-inner { min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: 2.5rem; }
.cta-copy { grid-column: 1 / span 5; align-self: end; display: grid; gap: 1.25rem; }
.cta-copy h2 { line-height: 0.95; }
.dialog { grid-column: 7 / span 5; justify-self: start; width: min(27.5rem, 100%); background: var(--ui-card); color: var(--ink); border-radius: 12px; padding: 1.5rem; display: grid; gap: 1.1rem; box-shadow: 0 24px 60px oklch(0.15 0.04 220 / 0.35); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.dlg-title { font-size: var(--step-body); font-weight: 600; }
.dlg-field { display: grid; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.dlg-field input { padding: 0.75rem 0.85rem; border: 1px solid var(--ui-line); border-radius: 8px; color: var(--ink); font-size: 1rem; } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.dlg-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dlg-seg legend { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.35rem; }
.dlg-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); padding: 4px; border-radius: 10px; }
.dlg-seg legend { grid-column: 1 / -1; }
.dlg-seg label { position: relative; cursor: pointer; }
.dlg-seg input { position: absolute; opacity: 0; inset: 0; }
.dlg-seg label span { display: grid; gap: 0.1rem; padding: 0.6rem 0.75rem; border-radius: 7px; transition: background-color 180ms ease; }
.dlg-seg small { color: var(--muted); font-size: 0.8125rem; }
.dlg-seg input:checked + span { background: var(--ui-card); box-shadow: 0 1px 3px oklch(0 0 0 / 0.12); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
.dlg-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.dlg-submit { min-height: 3rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.dlg-submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .dlg-submit:hover { background: var(--accent-strong); } }

/* ---------- footer de mosaicos ---------- */
.footer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 8px clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px); }
.tile { background: var(--surface); padding: 1.5rem; min-height: 13.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; text-decoration: none; }
.tile-label { color: var(--muted); font-size: var(--step-small); }
.t-statement { grid-column: 1 / span 4; }
.t-statement p { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.t-statement small { color: var(--muted); font-size: var(--step-small); }
.t-nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 0.35rem; }
.t-time { grid-column: 8 / span 2; }
.t-time p { display: grid; gap: 0.25rem; }
.t-time p span { white-space: nowrap; }
.t-time b { font-weight: 500; }
.t-mail { grid-column: 10 / span 3; }
.t-mail a { font-size: var(--step-body); }
.t-word { grid-column: 1 / span 8; min-height: 20rem; background: var(--ink); color: var(--bg); justify-content: center; align-items: center; overflow: hidden; }
.t-word span { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.t-invite { grid-column: 9 / span 4; min-height: 20rem; background: var(--accent); color: var(--accent-ink); }
.t-invite span { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.t-invite svg { width: 3rem; height: 3rem; align-self: flex-end; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .t-invite:hover svg { transform: translate(4px, -4px); } .t-invite:hover { background: var(--accent-strong); } }
.t-credits { grid-column: 1 / -1; min-height: 0; justify-content: flex-start; }
.t-credits ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- movimiento (el contenido queda visible sin JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .stage { clip-path: polygon(var(--cut) 100%, 100% 100%, 100% 100%, 0 100%, 0 100%, var(--cut) 100%); animation: stage-in 1100ms var(--ease-in-out) 260ms forwards; }
  .js .frag-hero { opacity: 0; transform: translateY(32px); animation: rise 900ms var(--ease-out) 700ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1600ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .drift img { animation: drift 24s var(--ease-soft) infinite alternate; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes stage-in { to { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 3.5rem, var(--cut) 3.5rem); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .hero h1 { max-width: 80vw; }
  .stage { left: var(--margin); --cut: calc(3 * var(--col) + 2 * var(--gutter)); }
  .board-row button { grid-template-columns: 1fr 2fr 1fr 1.4fr; }
  .br-driver { display: none; }
  .cap-copy { grid-column: 1 / span 5; }
  .cap-frag, .cap-maint .cap-frag, .cap-docs .cap-frag { grid-column: 6 / span 7; min-width: 0; }
  .cap-dvir .cap-frag { grid-column: 6 / span 6; }
  .frag-tco li { grid-template-columns: 8.5rem 1fr 8rem; }
  .steps h2, .exchanges { grid-column: 2 / span 10; }
  .exchange.is-final .answer { width: auto; }
  .cta-copy { grid-column: 1 / span 6; }
  .dialog { grid-column: 7 / span 6; }
}

/* ---------- teléfono ---------- */
@media (max-width: 47.99em) {
  :root { --step-display: 2.4375rem; --step-head: 2rem; --step-lead: 1.375rem; --step-body: 1rem; }
  .nav { padding-top: 1.1rem; }
  .nav nav a:not(.lang) { display: none; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-copy { padding-top: 6rem; }
  .hero h1 { max-width: none; }
  .hero-lead { margin-top: 1.25rem; }
  .stage { position: relative; left: 0; top: 0; margin-top: 2.5rem; --cut: 4.5rem; height: 41rem; }
  .frag-hero { left: 1rem; top: 4.5rem; width: calc(100% - 1rem); }
  .fh-body { grid-template-columns: 1fr; }
  .fh-map { height: 13rem; border-right: 0; border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
  .fh-stats { grid-template-columns: 1fr 1fr; }
  .fh-stat { padding: 0.55rem 0.9rem; }
  .fh-mid { display: none; }
  .fh-stat:nth-child(odd) { border-right: 1px solid var(--ui-line); } /* taste-skill-ignore: convención del producto dentro de [data-ui] */
  .board-head, .pinned-intro, .features-after, .cap, .pricing, .faq, .cta-inner { display: block; }
  .board-lead { margin-top: 1rem; }
  .board-clip { padding-inline: 8px; }
  .board-row button { grid-template-columns: 1fr auto; min-height: 64px; }
  .br-where, .br-speed, .br-driver { display: none; }
  .board-row.is-open button { grid-template-columns: 1fr auto; }
  .board-row.is-open .br-unit { font-size: var(--step-head); }
  .bridge .shutter { height: 60vh; }
  .pinned-intro p { margin-top: 1rem; }
  .pinned-grid { display: block; margin-top: 2.5rem; }
  .frag-ledger { position: relative; top: 0; margin-bottom: 3rem; }
  .frag-ledger th, .frag-ledger td { padding: 0.65rem 0.7rem; }
  .js .frag-ledger tbody tr { opacity: 1; }
  .pstep { min-height: 0; padding-top: 0; }
  .pinned-steps { gap: 4rem; }
  .statement { font-size: var(--step-lead); }
  .statement .nowrap:nth-of-type(4) .slot { display: none; }
  .features-after p, .features-after a { margin-top: 1rem; }
  .cap-copy { padding-top: 0; margin-bottom: 1.5rem; }
  .frag-tco li { grid-template-columns: 1fr auto; }
  .frag-tco .bar { grid-column: 1 / -1; grid-row: 2; }
  .frag-maint li { grid-template-columns: 1fr auto; }
  .frag-maint .meter { grid-column: 1 / -1; grid-row: 2; }
  .steps { display: block; }
  .exchanges { gap: 4rem; }
  .answer, .exchange.is-final .answer { margin-left: 0; margin-top: 1.5rem; width: auto; }
  .live-list li { grid-template-columns: auto 4.5rem 1fr; }
  .live-list li .nums { display: none; }
  .trust { padding-block: 6rem; }
  .trust-statement { max-width: none; text-align: left; }
  .pricing-names h2 { margin-bottom: 1.25rem; }
  .plan-name { font-size: var(--step-display); }
  .plan-stage { position: relative; top: 0; margin-top: 2rem; }
  .price-figure { font-size: calc(var(--step-display) * 2); }
  .faq h2 { position: static; margin-bottom: 1.5rem; }
  .faq summary { min-height: 64px; padding: 1rem 1.25rem; }
  .faq details p { padding: 0 1.25rem 1.25rem; }
  .cta-inner { min-height: 84svh; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-block: 3rem 1rem; }
  .cta-copy h2 { font-size: calc(var(--step-display) * 1.3); }
  .dialog { width: 100%; }
  .dlg-submit { min-height: 52px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { padding: 1.25rem; min-height: 9rem; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 10rem; }
  .t-word span { font-size: calc(var(--step-display) * 1.6); }
  .t-invite { grid-column: 1 / -1; order: -1; min-height: 10rem; }
  .t-nav, .t-mail, .t-time, .t-statement { grid-column: span 1; }
  .t-statement { grid-column: 1 / -1; }
  .t-statement p { font-size: var(--step-lead); }
  .t-mail a { word-break: break-all; }
}

/* ---------- intro cinemática: el corredor de noche y la elección de idioma ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 100; background: #070a0d; color: oklch(0.95 0.006 247); overflow: hidden; }
.intro-on .intro { display: block; }
.intro-on body { overflow: hidden; }
/* El hero espera a que se cierre la intro para hacer su entrada. */
.intro-on [data-rise], .intro-on .stage, .intro-on .frag-hero { animation-play-state: paused; }

.intro-map { position: absolute; inset: 0; }
.intro-map .maplibregl-map { position: absolute; inset: 0; }
.intro-map .corridor-svg { position: absolute; inset: 12vh 0; width: 100%; height: 76vh; }
.intro-map.has-map .corridor-svg { display: none; }
.intro .c-route { stroke: oklch(0.8 0.11 195); }
.intro .c-border { stroke: oklch(0.45 0.03 230); }
.intro .c-dot { fill: #070a0d; stroke: oklch(0.8 0.11 195); }
.intro .c-label { fill: oklch(0.75 0.012 255); }
.intro .maplibregl-ctrl-attrib { background: transparent; }
.intro .maplibregl-ctrl-attrib a { color: oklch(0.6 0.01 255); }

.intro-bar { position: absolute; left: 0; right: 0; z-index: 2; background: #000; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-inline: var(--margin); }
.intro-top { top: 0; height: 12vh; }
.intro-bottom { bottom: 0; min-height: 12vh; padding-block: 1rem; }
.intro-mark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; letter-spacing: -0.02em; }
.intro-skip { color: oklch(0.72 0.012 255); font-size: var(--step-small); padding: 0.5rem 0.25rem; transition: color var(--t-hover) ease; }
.intro-skip:hover, .intro-skip:focus-visible { color: #fff; }

.intro-sub { display: grid; gap: 0.15rem; min-width: 0; max-width: none; }
.sub-place { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.sub-meta { color: oklch(0.72 0.012 255); font-size: var(--step-small); }
.intro-sub.is-change .sub-place, .intro-sub.is-change .sub-meta { animation: sub-in 600ms var(--ease-out); }
@keyframes sub-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.intro-langs { display: flex; gap: 8px; flex: none; }
.intro-langs a { display: grid; gap: 0.1rem; min-width: 11.5rem; padding: 0.8rem 1.1rem; background: oklch(0.2 0.012 255); color: #fff; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.intro-langs a b { font-weight: 500; font-size: var(--step-body); }
.intro-langs a small { color: oklch(0.75 0.012 255); font-size: var(--step-small); }
.intro-langs a:active { transform: scale(0.98); }
.intro-langs a:hover, .intro-langs a:focus-visible { background: var(--accent); }
.intro-langs a:hover small, .intro-langs a:focus-visible small { color: var(--accent-ink); }
.intro.is-final .intro-langs a { background: var(--accent); }
.intro.is-final .intro-langs a small { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .intro.is-final .intro-langs a:hover { background: var(--accent-strong); } }

.intro-center { position: absolute; inset: 12vh 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 0.75rem; text-align: center; pointer-events: none; opacity: 0; }
.intro-title { font-size: calc(var(--step-display) * 1.5); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.intro-tag { display: grid; gap: 0.2rem; font-size: var(--step-lead); letter-spacing: -0.02em; color: oklch(0.85 0.008 247); max-width: none; }
.intro-tag span:last-child { color: oklch(0.65 0.012 255); }
/* El título se separa del mapa con un velo plano (sin degradado) solo al final. */
.intro.is-final .intro-center { opacity: 1; background: oklch(0.07 0.01 255 / 0.74); transition: opacity 900ms var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  .intro-top { animation: bar-top 1100ms var(--ease-in-out) both; }
  .intro-bottom { animation: bar-bottom 1100ms var(--ease-in-out) both; }
  .intro-bottom > * { animation: rise 800ms var(--ease-out) 900ms both; }
  .intro-mark, .intro-skip { animation: rise 800ms var(--ease-out) 700ms both; }
  .intro-map { animation: map-in 1800ms var(--ease-soft) 200ms both; }
  .intro.is-final .intro-title { animation: title-in 1200ms var(--ease-out) both; }
  .intro.is-final .intro-tag { animation: rise 900ms var(--ease-out) 350ms both; }
  /* Salida: las franjas se cierran como un telón y la escena se desvanece. */
  .intro.is-closing .intro-top { animation: close-top 650ms var(--ease-in-out) forwards; }
  .intro.is-closing .intro-bottom { animation: close-bottom 650ms var(--ease-in-out) forwards; }
  .intro.is-leaving { opacity: 0; transition: opacity 500ms ease; }
}
@keyframes bar-top { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes bar-bottom { from { transform: translateY(100%); } to { transform: none; } }
@keyframes map-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes title-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes close-top { to { height: 50.5vh; } }
@keyframes close-bottom { to { min-height: 50.5vh; } }

@media (max-width: 47.99em) {
  .intro-top { height: 10vh; }
  .intro-bottom { flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 1.25rem; }
  .intro-langs { display: grid; grid-template-columns: 1fr 1fr; }
  .intro-langs a { min-width: 0; }
  .sub-place { white-space: normal; }
  .intro-center { inset: 0; align-content: start; padding-top: 22vh; }
  .intro-title { font-size: calc(var(--step-display) * 1.4); }
}
