/* ==========================================================================
   Varela Hijo — hoja de estilos
   Concepto: carta de porte (CMR) + señalética de carretera.
   ========================================================================== */

:root {
  --ink: #131313;
  --ink-2: #1d1d1b;
  --ink-3: #2a2926;
  --bone: #ede8dd;
  --bone-2: #e2dccf;
  --paper: #f6f3ec;
  --muted: #58544c;
  --muted-d: #a8a296;
  --line: rgba(19, 19, 19, .16);
  --line-d: rgba(237, 232, 221, .16);
  --amber: #f2b01e;
  --amber-2: #ffc53d;
  --rust: #b5401d;
  --blue: #6fa3c9;
  --err: #a8290f;
  --ok: #2f6b3a;

  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-sig: 'Mrs Saint Delafield', 'Brush Script MT', cursive;

  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  --sec: clamp(80px, 12vw, 176px);
  --hdr-h: 96px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 700ms;

  --z-hdr: 40;
  --z-menu: 50;
  --z-pk: 30;
  --z-notice: 60;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sec--company :focus-visible, .sec--services :focus-visible, .sec--method :focus-visible,
.sec--letter :focus-visible, .sec--contact :focus-visible, .legal :focus-visible { outline-color: var(--rust); }
::selection { background: var(--amber); color: var(--ink); }

/* papel con grano */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid var(--bg);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--t-mid) var(--ease-out), border-color var(--t-mid);
  touch-action: manipulation;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform var(--t-mid) var(--ease-out);
}
.btn:hover { color: var(--bg); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform var(--t-mid) var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }
.btn--amber { --bg: var(--amber); --fg: var(--ink); }
.btn--amber:hover { border-color: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--amber); }
.btn--ghost { --bg: transparent; --fg: var(--bone); border-color: rgba(237,232,221,.5); }
.btn--ghost::after { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }
.btn--lg { min-height: 60px; padding: 16px 30px; font-size: 16px; }

/* ---------- Cabecera ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-hdr);
  color: var(--bone);
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid) var(--ease-out);
}
.hdr__strip {
  display: flex; gap: 28px; justify-content: space-between;
  padding: 7px var(--gut);
  font-size: 11px;
  border-bottom: 1px solid var(--line-d);
  color: var(--muted-d);
}
.hdr__clock time { color: var(--amber); font-variant-numeric: tabular-nums; }
.hdr__bar {
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut);
}
.hdr.is-solid { background: rgba(237, 232, 221, .94); color: var(--ink); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.hdr.is-solid .hdr__strip { border-color: var(--line); color: var(--muted); }
.hdr.is-solid .hdr__clock time { color: var(--rust); }
.hdr.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 32px; height: 32px; }
.brand__word {
  font-weight: 800; font-stretch: 70%; font-size: 26px; line-height: 1;
  text-transform: uppercase; letter-spacing: -.01em;
}
.brand__word b { font-weight: 300; margin-left: .18em; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 10px 12px; text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.lang { display: flex; border: 1px solid currentColor; }
.lang button {
  min-width: 40px; min-height: 36px; padding: 0 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang button + button { border-left: 1px solid currentColor; }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { background: rgba(242,176,30,.18); }

.burger { display: none; width: 48px; height: 48px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform var(--t-mid) var(--ease-out); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--ink); color: var(--bone);
  padding: 150px var(--gut) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-d);
  font-size: clamp(40px, 11vw, 72px); font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; line-height: 1; text-decoration: none;
}
.menu nav a i { font-style: normal; color: var(--amber); }
.menu__foot { color: var(--muted-d); font-size: 11px; }
body.menu-open .hdr { background: var(--ink); color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--bone); background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.8) contrast(1.05); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19,19,19,.55) 0%, rgba(19,19,19,0) 30%, rgba(19,19,19,.15) 55%, rgba(19,19,19,.92) 100%),
    linear-gradient(90deg, rgba(19,19,19,.55), rgba(19,19,19,0) 60%);
}
.hero__inner { position: relative; padding-top: 180px; padding-bottom: 40px; }
.kicker { color: var(--amber); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 36px; height: 2px; background: currentColor; }
.hero__title {
  font-weight: 900;
  font-stretch: var(--wdth, 62%);
  font-size: clamp(54px, 12.2vw, 210px);
  line-height: .84;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-left: -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--indent { padding-left: .9em; color: var(--amber); }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero__lead { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: #d9d3c6; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.waybill {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-d);
  margin-bottom: 0;
}
.waybill > div { padding: 16px 0 22px; border-right: 1px solid var(--line-d); padding-left: 16px; }
.waybill > div:first-child { padding-left: 0; }
.waybill > div:last-child { border-right: 0; }
.waybill dt { display: flex; gap: 10px; color: var(--muted-d); font-size: 11px; margin-bottom: 6px; }
.waybill dt i { font-style: normal; color: var(--amber); }
.waybill dd { font-weight: 700; font-stretch: 85%; font-size: clamp(16px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Marquesina ---------- */
.ticker {
  background: var(--amber); color: var(--ink);
  overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--ink);
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 16px 0;
  animation: ticker 60s linear infinite;
  font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 52px); line-height: 1;
}
.ticker__track b { font-weight: 300; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones / casillas ---------- */
.sec { padding-block: var(--sec); position: relative; }
.box-head {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--ink);
  margin-bottom: clamp(48px, 7vw, 96px);
  max-width: max-content;
}
.box-head span { padding: 8px 14px; }
.box-head__n { background: var(--ink); color: var(--bone); }
.box-head__l { color: var(--ink); }
.box-head--dark { border-color: var(--bone); }
.box-head--dark .box-head__n { background: var(--bone); color: var(--ink); }
.box-head--dark .box-head__l { color: var(--bone); }

.sec-title {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px;
  align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-title h2, .routes h2, .contact h2 {
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: .96; letter-spacing: -.015em; text-transform: uppercase;
}
.sec-title p { max-width: 44ch; color: var(--muted); font-size: 18px; }

/* ---------- 01 Empresa ---------- */
.company {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px);
}
.company__statement {
  grid-column: 1 / -1;
  font-weight: 500; font-stretch: 100%;
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.025em;
  max-width: 20ch;
  text-wrap: balance;
}
.company__statement em { font-style: normal; font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--rust); letter-spacing: -.01em; }
.company__fig { grid-column: 1 / 8; }
.imgbox { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bone-2); }
.imgbox img { width: 100%; height: 115%; object-fit: cover; }
.company__fig figcaption { margin-top: 12px; color: var(--muted); display: flex; gap: 8px; }
.company__fig figcaption::before { content: 'FIG. 1'; color: var(--rust); }
.company__text { grid-column: 9 / -1; align-self: end; display: grid; gap: 20px; font-size: 18px; }
.company__text strong { font-weight: 700; }
.facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}
.facts li { padding: 24px 24px 8px 0; border-right: 1px solid var(--line); }
.facts li + li { padding-left: 24px; }
.facts li:last-child { border-right: 0; }
.facts__k {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--ink); border-radius: 50%; margin-bottom: 18px;
}
.facts h3 { font-size: 22px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 6px; }
.facts p { color: var(--muted); }

/* ---------- 02 Servicios ---------- */
.sec--services { background: var(--paper); border-block: 1.5px solid var(--ink); }
.svc { border-top: 1.5px solid var(--ink); counter-reset: s; }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 48px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  transition: padding var(--t-mid) var(--ease-out), color var(--t-fast);
}
.svc__n { color: var(--muted); }
.svc__t {
  font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 84px); line-height: .95; letter-spacing: -.005em;
  transition: font-stretch var(--t-slow) var(--ease-out), color var(--t-fast);
}
.svc__tag { color: var(--muted); border: 1px solid var(--line); padding: 5px 9px; white-space: nowrap; }
.svc__plus { position: relative; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; justify-self: end; transition: background var(--t-fast), transform var(--t-mid) var(--ease-out); }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.svc__plus::after { transform: rotate(90deg); transition: transform var(--t-mid) var(--ease-out); }
.svc__head[aria-expanded="true"] .svc__plus { background: var(--amber); transform: rotate(180deg); }
.svc__head[aria-expanded="true"] .svc__plus::after { transform: rotate(0); }
@media (hover: hover) {
  .svc__head:hover .svc__t { font-stretch: 100%; }
  .svc__head:hover .svc__n { color: var(--rust); }
}
.svc__head[aria-expanded="true"] .svc__t { color: var(--rust); }
.svc__body > div {
  display: grid; grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px;
  padding: 0 0 32px;
}
.svc__body p { grid-column: 2; font-size: 19px; max-width: 48ch; }
.svc__body ul { grid-column: 3; display: grid; gap: 8px; align-content: start; }
.svc__body li { display: flex; gap: 10px; }
.svc__body li::before { content: '→'; color: var(--rust); }

.svc-cursor {
  position: fixed; left: 0; top: 0; z-index: 20;
  width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-out);
  overflow: hidden; border: 1.5px solid var(--ink);
  will-change: transform;
}
.svc-cursor img { width: 100%; height: 100%; object-fit: cover; }
.svc-cursor.is-on { opacity: 1; }

/* ---------- 03 Rutas ---------- */
.sec--routes { background: var(--ink); color: var(--bone); overflow: hidden; }
.routes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.routes h2 { margin-bottom: 24px; }
.routes__side > p { color: var(--muted-d); max-width: 40ch; font-size: 18px; margin-bottom: 36px; }
.routes__tabs { display: grid; border-top: 1px solid var(--line-d); }
.routes__tabs button {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 8px 12px 0; text-align: left;
  border-bottom: 1px solid var(--line-d);
  font-weight: 800; font-stretch: 75%; font-size: 26px; text-transform: uppercase;
  transition: padding var(--t-mid) var(--ease-out), background var(--t-fast);
}
.routes__tabs button em { font-style: normal; color: var(--muted-d); }
.routes__tabs button:hover, .routes__tabs button[aria-pressed="true"] { padding-left: 12px; background: rgba(237,232,221,.05); }
.routes__tabs button[aria-pressed="true"] em { color: var(--amber); }
.routes__note { margin-top: 20px; color: var(--muted-d); font-size: 11px; text-transform: none; letter-spacing: .02em; }
.sw { display: inline-block; width: 28px; height: 6px; }
.sw--it { background: var(--amber); }
.sw--fr { background: var(--blue); }
.sw--pt { background: var(--rust); }
.sw--es { background: var(--bone); }

.routes__map { position: relative; border: 1px solid var(--line-d); padding: clamp(12px, 2vw, 28px); color: var(--bone); }
.map { width: 100%; height: auto; overflow: visible; }
.ln { fill: none; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; transition: opacity var(--t-mid), stroke-width var(--t-mid); }
.ln--it { stroke: var(--amber); }
.ln--fr { stroke: var(--blue); }
.ln--pt { stroke: var(--rust); }
.ln--es { stroke: var(--bone); stroke-dasharray: 2 16; stroke-width: 7; }
.map.has-focus .ln { opacity: .15; }
.map.has-focus .ln.is-on { opacity: 1; stroke-width: 12; }
.st circle { fill: var(--ink); stroke: var(--bone); stroke-width: 3; }
.st--x circle { stroke-width: 4; }
.st--hub circle { fill: var(--amber); stroke: var(--bone); stroke-width: 4; }
.st text { fill: var(--bone); font-family: var(--f-mono); font-size: 17px; letter-spacing: .02em; }
.st--hub text { font-family: var(--f-sans); font-weight: 900; font-stretch: 62%; font-size: 40px; fill: var(--amber); }
.truck { fill: var(--bone); stroke: var(--ink); stroke-width: 3; }
.map__legend { display: flex; gap: 20px; margin-top: 12px; color: var(--muted-d); }
.map__legend span { display: flex; align-items: center; gap: 8px; }
.map__legend .sw { width: 18px; }

/* ---------- 04 Método (carretera) ---------- */
.road { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 120px; }
.road__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 56px; margin-left: -28px;
  background: var(--ink);
}
.road__line span {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px;
  background: repeating-linear-gradient(to bottom, var(--amber) 0 28px, transparent 28px 52px);
  transform-origin: top; transform: scaleY(var(--p, 1));
}
.road__step { padding: 24px 0 72px; max-width: 460px; position: relative; }
.road__step:nth-child(even) { grid-column: 1; justify-self: end; text-align: right; }
.road__step:nth-child(odd) { grid-column: 2; margin-top: 140px; }
.road__step::before {
  content: ''; position: absolute; top: 34px; width: 60px; height: 1.5px; background: var(--ink);
}
.road__step:nth-child(even)::before { right: -88px; }
.road__step:nth-child(odd)::before { left: -88px; }
.road__km {
  display: inline-block; background: var(--paper); border: 1.5px solid var(--ink);
  padding: 6px 10px; margin-bottom: 18px; position: relative;
}
.road__km::before { content: ''; position: absolute; inset: -1.5px -1.5px auto; height: 5px; background: var(--rust); }
.road__step h3 { font-weight: 900; font-stretch: 62%; font-size: clamp(40px, 5vw, 72px); line-height: .96; text-transform: uppercase; margin-bottom: 14px; }
.road__step p { color: var(--muted); font-size: 18px; }

/* ---------- Banda vídeo ---------- */
.band { position: relative; min-height: 90vh; display: flex; align-items: flex-end; color: var(--bone); background: var(--ink); overflow: hidden; }
.band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.1); }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19,19,19,.9), rgba(19,19,19,.2) 70%); }
.band__inner { position: relative; z-index: 1; padding-block: 64px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.band__title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(52px, 9vw, 150px); line-height: .95; letter-spacing: -.01em; }
.band__list { display: grid; border-top: 1px solid var(--line-d); }
.band__list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-d); font-weight: 600; font-size: 18px; }
.band__list .mono { color: var(--amber); }

/* ---------- 05 Carta ---------- */
.letter {
  position: relative;
  max-width: 1080px; margin-inline: auto;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: clamp(32px, 6vw, 88px);
  box-shadow: 10px 10px 0 var(--ink);
}
.letter blockquote p {
  font-weight: 500; font-size: clamp(26px, 3.3vw, 48px); line-height: 1.18; letter-spacing: -.02em;
  text-wrap: pretty;
}
.letter__sign { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--ink); }
.sig { font-family: var(--f-sig); font-size: clamp(56px, 7vw, 92px); line-height: .8; color: #1d3a8f; transform: rotate(-4deg); padding: 0 12px 10px 0; }
.letter__who { display: grid; gap: 4px; padding-bottom: 8px; }
.letter__who strong { font-weight: 700; font-size: 18px; }
.letter__who .mono { color: var(--muted); }
.stamp {
  position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(20px, 4vw, 48px);
  border: 2.5px solid var(--rust); color: var(--rust);
  padding: 10px 14px; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.5;
  transform: rotate(-8deg); opacity: .8;
  mix-blend-mode: multiply;
}

/* ---------- 06 Contacto ---------- */
.sec--contact { border-top: 1.5px solid var(--ink); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { margin-bottom: 20px; font-size: clamp(44px, 6.4vw, 100px); }
.contact__side > p { color: var(--muted); font-size: 18px; max-width: 40ch; margin-bottom: 36px; }
.card { border-top: 1.5px solid var(--ink); }
.card > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card dt { color: var(--muted); padding-top: 3px; }
.card dd { font-weight: 600; overflow-wrap: anywhere; }
.card a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.maplink { display: inline-flex; gap: 10px; align-items: center; margin-top: 20px; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }

.form { display: grid; gap: 22px; align-content: start; background: var(--paper); border: 1.5px solid var(--ink); padding: clamp(20px, 3.5vw, 48px); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field abbr { text-decoration: none; color: var(--rust); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bone); border: 1.5px solid var(--ink); border-radius: 0;
  font-size: 16px; transition: background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--amber); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #8a857b; }
.help { font-size: 14px; color: var(--muted); }
.err { display: none; font-size: 14px; color: var(--err); font-weight: 600; }
.err::before { content: '! '; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); background: #fbeee9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); transition: background var(--t-fast); }
.chips input:checked + span { background: var(--ink); color: var(--amber); }
.chips input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }
.chips label:hover span { background: var(--bone-2); }
.chips input:checked:hover + span { background: var(--ink); }
.check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; }
.check label a { font-weight: 600; }
.check .err { grid-column: 2; }
.form__summary { border: 2px solid var(--err); background: #fbeee9; padding: 14px 16px; color: var(--err); }
.form__summary ul { list-style: square; padding-left: 20px; margin-top: 6px; }
.form__summary a { color: var(--err); font-weight: 600; }
.form__status { font-weight: 600; min-height: 1.6em; }
.form__status.is-ok { color: var(--ok); }
.form .btn { justify-self: start; }
.gdpr { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.gdpr caption { text-align: left; padding-bottom: 8px; color: var(--muted); font-size: 11px; }
.gdpr th, .gdpr td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-top: 1px solid var(--line); }
.gdpr th { width: 32%; font-weight: 600; }
.gdpr td { color: var(--muted); }

/* ---------- Pie ---------- */
.ftr { background: var(--ink); color: var(--bone); padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.ftr__claim { font-weight: 900; font-stretch: 62%; font-size: clamp(40px, 6vw, 96px); line-height: .96; text-transform: uppercase; max-width: 14ch; }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
.ftr__cols h2 { color: var(--amber); margin-bottom: 14px; font-weight: 500; }
.ftr__cols p, .ftr__cols li { color: #cfc9bc; font-size: 15px; line-height: 1.8; }
.ftr__cols a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--t-mid) var(--ease-out); }
.ftr__cols a:hover { background-size: 100% 1px; }
.lang--ftr { flex-direction: column; border: 0; }
.lang--ftr button { text-align: left; border: 0 !important; min-height: 32px; padding: 0; font-family: var(--f-sans); font-size: 15px; letter-spacing: 0; color: #cfc9bc; }
.lang--ftr button[aria-pressed="true"] { background: none; color: var(--amber); }
.lang--ftr button[aria-pressed="true"]::before { content: '● '; }
.lang--ftr button:hover:not([aria-pressed="true"]) { background: none; color: var(--bone); }
.ftr__word {
  font-weight: 900; font-stretch: var(--wdth, 62%);
  font-size: 17.2vw; line-height: .78; text-transform: uppercase; white-space: nowrap;
  text-align: center; color: var(--bone); letter-spacing: -.02em;
  padding-top: 12px;
  -webkit-text-stroke: 0;
}
.ftr__word span { display: inline-block; }
.ftr__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; color: var(--muted-d); font-size: 11px; border-top: 1px solid var(--line-d); margin-top: 12px; }
.ftr__base a { text-decoration: none; min-height: 24px; }

/* ---------- Hito kilométrico ---------- */
.pk {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-pk);
  width: 84px; background: #fbfaf6; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 12px 12px 3px 3px;
  display: grid; justify-items: center; padding: 0 0 8px; overflow: hidden;
  box-shadow: 4px 4px 0 rgba(19,19,19,.9);
  transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-out);
}
.pk__cap { width: 100%; height: 18px; background: var(--rust); margin-bottom: 6px; }
.pk__label { font-size: 10px; }
.pk__num { font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.pk__dest { font-size: 8.5px; margin-top: 2px; color: var(--muted); letter-spacing: .04em; }
.pk.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ---------- Aviso ---------- */
.notice {
  position: fixed; left: 20px; bottom: 20px; z-index: var(--z-notice);
  max-width: 420px; background: var(--ink); color: var(--bone);
  padding: 20px; border: 1.5px solid var(--amber);
  display: grid; gap: 16px; font-size: 15px;
}
.notice[hidden] { display: none; }
.notice__btns { display: flex; gap: 16px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.notice__btns a { color: var(--bone); min-height: 44px; display: inline-flex; align-items: center; }
.notice .btn--ink { --bg: var(--amber); --fg: var(--ink); }
.notice .btn--ink:hover { color: var(--amber); border-color: var(--amber); }
.notice :focus-visible { outline-color: var(--amber); }

/* ---------- Páginas legales ---------- */
.page-legal .hdr { background: var(--bone); color: var(--ink); }
.page-legal .hdr__strip { border-color: var(--line); color: var(--muted); }
.page-legal .hdr__clock time { color: var(--rust); }
.legal-hero { padding: 200px 0 56px; border-bottom: 1.5px solid var(--ink); }
.legal-hero h1 { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(56px, 10vw, 160px); line-height: .95; letter-spacing: -.015em; }
.legal-hero p { margin-top: 20px; color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: 64px 120px; }
.legal-toc { position: sticky; top: 140px; align-self: start; }
.legal-toc h2 { margin-bottom: 12px; color: var(--muted); }
.legal-toc a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.legal-toc a:hover { color: var(--rust); }
.legal-toc a[aria-current="page"] { font-weight: 800; }
.legal-toc a[aria-current="page"]::before { content: '→ '; color: var(--rust); }
.legal { max-width: 76ch; font-size: 17px; }
.legal h2 { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 26px; letter-spacing: .005em; margin: 48px 0 14px; padding-top: 16px; border-top: 1.5px solid var(--ink); display: flex; gap: 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-weight: 700; font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal ul, .legal table { margin-bottom: 14px; }
.legal ul { list-style: square; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bone-2); font-weight: 700; }
.legal .datos { background: var(--paper); border: 1.5px solid var(--ink); padding: 20px 24px; list-style: none; }
.legal .datos li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.legal .datos b { font-weight: 600; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------- Revelado ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero__title .line > span { transform: translateY(105%); }
.js.no-anim [data-reveal], .js.no-anim .hero__title .line > span { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__bar { gap: 12px; }
}
@media (max-width: 1024px) {
  .routes, .contact { grid-template-columns: 1fr; }
  .company__fig { grid-column: 1 / -1; }
  .company__text { grid-column: 1 / -1; max-width: 60ch; }
  .sec-title { grid-template-columns: 1fr; }
  .band__inner { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --hdr-h: 84px; }
  .hide-s { display: none; }
  .hdr__cta { display: none; }
  .lang button { min-width: 36px; }
  .hdr .lang { order: 2; }
  .burger { order: 3; }
  .brand__word { font-size: 22px; }
  .hero__inner { padding-top: 150px; }
  .hero__title .line--indent { padding-left: .5em; }
  .hero__foot { grid-template-columns: 1fr; }
  .waybill { grid-template-columns: 1fr 1fr; }
  .waybill > div { padding-left: 0 !important; }
  .waybill > div:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .waybill > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .svc__head { grid-template-columns: 36px minmax(0, 1fr) 44px; }
  .svc__tag { display: none; }
  .svc__body > div { grid-template-columns: 1fr; padding-left: 52px; }
  .svc__body p, .svc__body ul { grid-column: 1; }
  .road { grid-template-columns: 1fr; padding-left: 64px; }
  .road__line { left: 0; margin-left: 0; width: 36px; }
  .road__line span { width: 3px; margin-left: -1.5px; background: repeating-linear-gradient(to bottom, var(--amber) 0 18px, transparent 18px 34px); }
  .road__step, .road__step:nth-child(even), .road__step:nth-child(odd) { grid-column: 1; justify-self: start; text-align: left; margin-top: 0; padding-bottom: 48px; }
  .road__step::before, .road__step:nth-child(even)::before, .road__step:nth-child(odd)::before { left: -28px; right: auto; width: 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .card > div { grid-template-columns: 1fr; gap: 2px; }
  .stamp { position: static; display: inline-block; margin-top: 28px; }
  .ftr__cols { grid-template-columns: 1fr; }
  .pk { display: none; }
  .notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .legal .datos li { grid-template-columns: 1fr; gap: 0; }
  .st text { font-size: 34px; }
  .st--hub text { font-size: 52px; }
  .st:not(.st--x):not(.st--hub):not(.st--end) text { display: none; }
  .ln { stroke-width: 12; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
  .truck { display: none; }
}

@media print {
  .hdr, .pk, .notice, .ticker, .hero__media, .band__video, body::before { display: none !important; }
  body { background: #fff; }
}
