/* ==========================================================================
   Logística Bertako — main.css
   Paleta: papel · tinta · naranja señal (alta visibilidad)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* colores primitivos */
  --paper: #eeeae2;
  --paper-2: #e3ded3;
  --paper-3: #d8d2c5;
  --ink: #131518;
  --ink-soft: #34373c;
  --muted: #595c61;
  --signal: #ff5419;
  --signal-deep: #e64508;
  --signal-ink: #b23a0a;
  --night: #0f1214;
  --night-2: #171b1f;
  --night-3: #1f2429;
  --on-night: #eeeae2;
  --on-night-muted: #a9acaf;
  --danger: #b3261e;
  --danger-night: #ff8a80;

  /* semánticos (tema claro por defecto) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --line: rgba(19, 21, 24, 0.16);
  --line-strong: rgba(19, 21, 24, 0.9);
  --accent-text: var(--signal-ink);

  /* tipografía */
  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* espaciado */
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 150px);
  --maxw: 1480px;
  --header-h: 76px;

  /* movimiento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 320ms;

  /* capas */
  --z-grain: 1;
  --z-float: 30;
  --z-cookie: 80;
  --z-menu: 90;
  --z-header: 100;

  color-scheme: light;
}

.theme-night {
  --bg: var(--night);
  --fg: var(--on-night);
  --fg-muted: var(--on-night-muted);
  --line: rgba(238, 234, 226, 0.14);
  --line-strong: rgba(238, 234, 226, 0.85);
  --accent-text: var(--signal);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 600;
  transform: translateY(-160%); transition: transform var(--t-fast);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em; }

/* ---------- botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--h); padding: 0 24px;
  font-weight: 600; font-size: 0.95rem; font-stretch: 100%; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  position: relative; isolation: isolate; overflow: hidden;
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn .icon { transition: transform var(--t-med) var(--ease-out); flex: none; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 0.875rem; gap: 10px; }
.btn-lg { --h: 60px; padding: 0 28px; font-size: 1rem; }

.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal::before { background: var(--ink); }
.btn-signal:hover { color: var(--paper); }
.theme-night .btn-signal::before, .hero .btn-signal::before, .site-footer .btn-signal::before { background: var(--paper); }
.theme-night .btn-signal:hover, .hero .btn-signal:hover, .site-footer .btn-signal:hover { color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::before { background: var(--signal); }
.btn-ink:hover { color: var(--ink); }

.btn-outline-light { border-color: rgba(238, 234, 226, 0.6); color: var(--paper); }
.btn-outline-light::before { background: var(--paper); }
.btn-outline-light:hover { color: var(--ink); border-color: var(--paper); }

.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); }

.link-button { text-decoration: underline; text-underline-offset: 0.2em; text-align: left; }

/* ---------- etiquetas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow-light { color: var(--on-night); }
.dot-live { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 84, 25, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 84, 25, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(255, 84, 25, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 84, 25, 0); } }

.section { padding-block: var(--section-y); position: relative; }
.section-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted);
}
.section-label span {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  background: var(--fg); color: var(--bg); font-weight: 500;
}
.section-title {
  font-size: clamp(2.5rem, 6vw, 5.75rem);
  font-weight: 750; font-stretch: 70%; line-height: 0.92; letter-spacing: -0.005em; text-transform: uppercase;
}
.section-title em { font-size: 1.08em; color: var(--accent-text); line-height: 0.8; }
.split-line em { display: inline-block; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.section-lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--fg-muted); max-width: 46ch; line-height: 1.55; }
.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head-split { align-items: end; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head-split { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .services .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 64px; }
  .services .section-head .section-label { grid-column: 1 / -1; margin-bottom: 0; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h); color: var(--paper);
  transition: transform 420ms var(--ease-out), background-color var(--t-med), color var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(238, 234, 226, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink); border-bottom-color: rgba(19, 21, 24, 0.12);
}
.site-header.is-hidden { transform: translateY(-100%); }
.page-legal .site-header:not(.menu-open) { background: rgba(238, 234, 226, 0.92); color: var(--ink); border-bottom-color: rgba(19, 21, 24, 0.12); }
.site-header.menu-open { color: var(--paper); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.header-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.logo-mark { width: 36px; height: 36px; --logo-lines: var(--ink); }
.logo-accent { fill: var(--signal); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-weight: 800; font-stretch: 112%; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-top: 4px; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 0.93rem; font-weight: 500; text-decoration: none; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; }
.lang-link {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 4px;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-decoration: none; opacity: 0.62;
  transition: opacity var(--t-fast);
}
.lang-link:hover { opacity: 1; }
.lang-link[aria-current="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--signal); }

.menu-toggle { display: none; width: 48px; height: 48px; place-items: center; }
.menu-toggle-lines { width: 26px; height: 12px; position: relative; display: block; }
.menu-toggle-lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out); }
.menu-toggle-lines i:first-child { top: 0; }
.menu-toggle-lines i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 720px) {
  .header-actions .lang-switch, .header-cta { display: none; }
  .brand-sub { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--night); color: var(--on-night);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-links li { border-top: 1px solid rgba(238, 234, 226, 0.14); }
.mobile-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none;
  font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 750; font-stretch: 78%; text-transform: uppercase; line-height: 1;
}
.mobile-links a span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal); font-weight: 400; }
.mobile-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.lang-switch-lg .lang-link { min-width: 48px; min-height: 48px; font-size: 0.9rem; }
.mobile-phone { font-family: var(--f-mono); font-size: 1rem; text-decoration: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--on-night); background: var(--night);
  display: flex; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 20, 0.7) 0%, rgba(15, 18, 20, 0.05) 30%, rgba(15, 18, 20, 0.2) 55%, rgba(15, 18, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 18, 20, 0.55) 0%, rgba(15, 18, 20, 0) 60%);
}
.hero-inner {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 28px; min-height: inherit;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(3.4rem, min(13vw, 18.5vh), 14rem);
  font-weight: 800; font-stretch: 64%; line-height: 0.9; letter-spacing: -0.015em; text-transform: uppercase;
  margin-left: -0.04em;
}
.hero-title .line { display: block; }
.hero-title em { color: var(--signal); font-size: 1.12em; line-height: 0.7; letter-spacing: -0.03em; padding-right: 0.05em; }

.hero-bottom {
  display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 44px);
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 50ch; color: rgba(238, 234, 226, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .hero-bottom { grid-template-columns: 1fr auto; align-items: end; }
}

.hero-manifest {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(238, 234, 226, 0.28);
}
.hero-manifest > div { padding: 14px 16px 0 0; }
.hero-manifest dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 234, 226, 0.66); }
.hero-manifest dd { font-family: var(--f-mono); font-size: 0.85rem; margin-top: 4px; }
@media (min-width: 720px) {
  .hero-manifest { grid-template-columns: repeat(4, 1fr); }
  .hero-manifest > div + div { border-left: 1px solid rgba(238, 234, 226, 0.18); padding-left: 16px; }
}
@media (max-width: 719px) {
  .hero-manifest > div:nth-child(n + 3) { padding-top: 10px; }
}

.video-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 16px);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(238, 234, 226, 0.4); color: var(--paper); background: rgba(15, 18, 20, 0.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color var(--t-fast);
}
.video-toggle:hover { background: rgba(15, 18, 20, 0.6); }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* hero: ocultación previa solo si hay animación */
.motion-ok .hero-title, .motion-ok .hero [data-reveal] { visibility: hidden; animation: failsafe-show 0s 2.5s forwards; }
@keyframes failsafe-show { to { visibility: visible; } }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { background: var(--signal); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-right: 1px solid rgba(19, 21, 24, 0.35);
}
.ticker-item i { font-style: normal; }
.ticker-item b { font-weight: 500; opacity: 0.7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 3fr; gap: 64px; } }
.intro-text {
  font-size: clamp(1.65rem, 3.3vw, 3.2rem); line-height: 1.12; font-weight: 500; font-stretch: 92%; letter-spacing: -0.01em;
  max-width: 30ch;
}
.intro-text .word { display: inline-block; }
.facts { display: grid; grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 110px); border-top: 1.5px solid var(--ink); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; } }
@media (max-width: 719px) { .fact + .fact { border-top: 1px solid var(--line); margin-top: 24px; } }
.fact-value { font-size: clamp(4.5rem, 10vw, 9rem); font-weight: 800; font-stretch: 70%; line-height: 0.8; letter-spacing: -0.02em; display: flex; align-items: flex-start; gap: 8px; }
.fact-value::after { content: ""; width: 12px; height: 12px; background: var(--signal); margin-top: 0.12em; }
.fact-label { color: var(--muted); max-width: 22ch; font-size: 1rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--paper); }
.service-list { border-bottom: 1.5px solid var(--ink); counter-reset: svc; }
.service {
  position: relative; isolation: isolate;
  display: grid; gap: 12px 24px; padding: 28px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 48px 1fr;
  grid-template-areas: "num title" "thumb thumb" ". text" ". tags";
}
.service:first-child { border-top: 1.5px solid var(--ink); }
.service-num { grid-area: num; color: var(--signal-ink); padding-top: 0.5em; }
.service-title { grid-area: title; font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 750; font-stretch: 68%; text-transform: uppercase; line-height: 0.95; }
.service-text { grid-area: text; color: var(--ink-soft); max-width: 48ch; }
.service-tags { grid-area: tags; color: var(--muted); font-size: 0.72rem; }
.service-thumb { grid-area: thumb; margin: 8px 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .service {
    grid-template-columns: 90px minmax(0, 1.25fr) minmax(0, 1fr) 220px;
    grid-template-areas: "num title text tags";
    align-items: center; padding: 38px 20px; margin-inline: -20px; column-gap: 32px;
    transition: color 380ms var(--ease-out);
  }
  .service::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: scaleY(0); transform-origin: bottom; transition: transform 460ms var(--ease-out);
  }
  .service-thumb { display: none; }
  .service-num, .service-text, .service-tags { transition: color 380ms var(--ease-out); }
  .service-tags { text-align: right; line-height: 1.7; }
  .service-title { transition: transform 460ms var(--ease-out); }
  .service:hover { color: var(--paper); }
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service-text { color: rgba(238, 234, 226, 0.82); }
  .service:hover .service-tags { color: rgba(238, 234, 226, 0.66); }
  .service:hover .service-num { color: var(--signal); }
  .service:hover .service-title { transform: translateX(10px); }
}

.service-float {
  position: fixed; left: 0; top: 0; z-index: var(--z-float); pointer-events: none;
  width: 340px; aspect-ratio: 4 / 3; overflow: hidden; opacity: 0; visibility: hidden;
  border: 1.5px solid var(--ink);
}
.service-float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 959px) { .service-float { display: none; } }

/* ==========================================================================
   ROUTES / MAP
   ========================================================================== */
.routes-grid { display: grid; gap: 40px; }
@media (min-width: 1080px) { .routes-grid { grid-template-columns: minmax(340px, 5fr) 7fr; gap: 56px; align-items: start; } }

.route-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); color: var(--fg);
  font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--fg); }
.chip.is-active { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.route-list { border-top: 1px solid var(--line-strong); }
.route-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 13px 8px; border-bottom: 1px solid var(--line); cursor: default;
  transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-med);
}
.route-code { font-family: var(--f-mono); font-size: 0.78rem; color: var(--fg-muted); }
.route-city { font-weight: 600; font-size: 1.05rem; }
.route-country { display: none; }
.route-km { font-family: var(--f-mono); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }
.route-row:hover, .route-row:focus-visible, .route-row.is-on { background: var(--night-3); }
.route-row:hover .route-code, .route-row.is-on .route-code, .route-row:focus-visible .route-code { color: var(--signal); }
.route-row.is-dim { opacity: 0.32; }
.route-note { margin-top: 18px; color: var(--fg-muted); font-size: 0.92rem; }
@media (min-width: 560px) {
  .route-row { grid-template-columns: 96px 1fr 110px auto; }
  .route-country { display: block; color: var(--fg-muted); font-size: 0.9rem; }
}

.map-wrap { position: relative; border: 1px solid var(--line); background: var(--night-2); }
@media (min-width: 1080px) { .map-wrap { position: sticky; top: calc(var(--header-h) + 24px); } }
.map { width: 100%; height: auto; aspect-ratio: 1000 / 760; }
.map-grid { stroke: rgba(238, 234, 226, 0.05); stroke-width: 1; }
.map-land { fill: #1b2025; stroke: rgba(238, 234, 226, 0.06); stroke-width: 0.6; }
.map-market { fill: #2a3137; stroke: var(--night-2); stroke-width: 1; transition: fill var(--t-med); }
.map-market.is-on { fill: #384149; }
.map-route { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; transition: opacity var(--t-med), stroke-width var(--t-med); }
.map.has-focus .map-route { opacity: 0.12; }
.map.has-focus .map-route.is-on { opacity: 1; stroke-width: 3; }
.map-node circle { fill: var(--on-night); transition: fill var(--t-fast), r var(--t-fast); }
.map-node text { fill: var(--on-night-muted); font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; transition: fill var(--t-fast), opacity var(--t-med); }
.map.has-focus .map-node { opacity: 0.35; }
.map.has-focus .map-node.is-on { opacity: 1; }
.map-node.is-on circle { fill: var(--signal); }
.map-node.is-on text { fill: var(--on-night); }
.map-hub-dot { fill: var(--signal); stroke: var(--night); stroke-width: 3; }
.map-hub-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hub 2.6s var(--ease-out) infinite; }
.map-hub text { fill: var(--on-night); font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
@keyframes hub { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
.map-legend { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--on-night-muted); font-size: 0.7rem; }
.legend-line { width: 28px; height: 2px; background: var(--signal); }

/* ==========================================================================
   METHOD
   ========================================================================== */
.method { background: var(--paper-2); padding-block: 0; overflow: hidden; }
.method-pin { padding-block: var(--section-y); }
.method-head { margin-bottom: clamp(40px, 6vw, 80px); }
.method-track { display: grid; gap: 0; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 28px 0; border-top: 1.5px solid var(--ink);
}
.step-num {
  font-size: clamp(4.5rem, 16vw, 7rem); font-weight: 800; font-stretch: 65%; line-height: 0.78;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.step-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; font-stretch: 85%; text-transform: uppercase; margin-bottom: 12px; line-height: 1; }
.step-text { color: var(--ink-soft); max-width: 36ch; }
.step-bar { position: absolute; top: -1.5px; left: 0; height: 4px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

@media (min-width: 1024px) {
  .method-track { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 8px; }
  .step-num { font-size: clamp(7rem, 11vw, 12rem); }

  .has-pin .method-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 32px) 64px; }
  .has-pin .method-track {
    display: flex; width: max-content; max-width: none; margin: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-right: 12vw;
  }
  .has-pin .step { width: clamp(380px, 34vw, 540px); padding: 32px 48px 8px 0; margin-right: 40px; }
  .has-pin .step-num { font-size: clamp(9rem, 15vw, 15rem); }
}

/* ==========================================================================
   VIDEO BAND
   ========================================================================== */
.band { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-night); background: var(--night); isolation: isolate; }
.band-media { position: absolute; inset: -12% 0; z-index: -2; }
.band-video { width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 18, 20, 0.2) 0%, rgba(15, 18, 20, 0.2) 40%, rgba(15, 18, 20, 0.85) 100%); }
.band-inner { padding-block: clamp(56px, 8vw, 110px); }
.band-title {
  margin-top: 18px; max-width: 16ch;
  font-size: clamp(2.8rem, 7.4vw, 7.6rem); font-weight: 800; font-stretch: 66%; text-transform: uppercase; line-height: 0.9;
}
.band-title em { color: var(--signal); font-size: 1.08em; }

/* ==========================================================================
   WHY
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: 1fr; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  position: relative; padding: 28px 24px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 640px) { .why-card { min-height: 280px; } }
.why-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1.5px; height: 5px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.why-card:hover::before { transform: scaleX(1); }
.why-code { color: var(--signal-ink); margin-bottom: auto; }
.why-title { font-size: 1.6rem; font-weight: 700; font-stretch: 82%; text-transform: uppercase; line-height: 1; margin-top: clamp(16px, 4vw, 48px); }
.why-card p { color: var(--ink-soft); }

/* ==========================================================================
   COMPANY
   ========================================================================== */
.company { background: var(--paper); padding-bottom: 0; }
.company-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .company-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 110px); align-items: start; } }
.company-photo { position: relative; }
@media (min-width: 960px) { .company-photo { position: sticky; top: calc(var(--header-h) + 24px); } }
.company-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.company-photo figcaption, .company-strip figcaption { margin-top: 10px; color: var(--muted); font-size: 0.68rem; }
.company-body .section-title { margin-bottom: 32px; }
.prose p + p { margin-top: 1em; }
.company-body .prose { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

.doc-card { margin-top: 48px; border: 1.5px solid var(--ink); background: var(--paper); }
.doc-card-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--ink); color: var(--paper); font-size: 0.72rem; }
.doc-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
.doc-cell { padding: 14px 16px 16px; border-top: 1px solid var(--line); min-width: 0; }
.doc-cell:first-child { border-top: 0; }
@media (min-width: 560px) {
  .doc-wide { grid-column: 1 / -1; }
  .doc-cell:nth-child(3) { border-left: 1px solid var(--line); }
}
.doc-cell dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc-cell dd { font-weight: 600; font-size: 1.05rem; margin-top: 6px; overflow-wrap: anywhere; }
.doc-cell a { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

.company-strip { display: grid; gap: 12px; margin-top: var(--section-y); padding-inline: var(--gutter); max-width: calc(var(--maxw) + 200px); margin-inline: auto; padding-bottom: 12px; }
@media (min-width: 760px) { .company-strip { grid-template-columns: 7fr 5fr; align-items: end; } }
.company-strip figure { overflow: hidden; }
.company-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.company-strip figure:last-child img { aspect-ratio: 4 / 5; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 80px; } .faq-grid > header { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-grid .section-title { margin-bottom: 24px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; width: 28px; height: 28px; transition: transform var(--t-med) var(--ease-out); color: var(--signal-ink); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item summary:hover span { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.faq-answer { padding: 0 48px 28px 0; color: var(--ink-soft); max-width: 68ch; }

/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
.contact { overflow: hidden; isolation: isolate; }
.contact-video { position: absolute; inset: 0; z-index: -1; opacity: 0.2; }
.contact-video video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); }
.contact-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 20%, rgba(15, 18, 20, 0.4)); }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1080px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.contact-intro .section-title { margin-bottom: 24px; }
.contact-direct { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-direct li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-direct .mono { color: var(--fg-muted); font-size: 0.7rem; }
.contact-big { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 750; font-stretch: 80%; text-decoration: none; line-height: 1; letter-spacing: 0.01em; }
.contact-big:hover { color: var(--signal); }
.contact-mid { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }

.quote-form {
  --bg: var(--paper); --fg: var(--ink); --fg-muted: var(--muted); --line: rgba(19, 21, 24, 0.18); --line-strong: var(--ink);
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--signal);
}
@media (max-width: 559px) { .quote-form { box-shadow: 8px 8px 0 var(--signal); } }
.form-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 0.72rem; }
.form-summary { margin: 18px 18px 0; padding: 14px 16px; border: 1.5px solid var(--danger); color: var(--danger); background: #f7e9e6; }
.form-summary p { font-weight: 600; }
.form-summary ul { margin-top: 6px; list-style: disc; padding-left: 20px; }
.form-summary a { color: inherit; }
.form-group { border: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-legend { width: 100%; }
.form-group + .form-group .form-legend { border-top: 1.5px solid var(--ink); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-legend { display: block; padding: 18px 18px 10px; color: var(--signal-ink); font-size: 0.7rem; }
.field { position: relative; display: flex; flex-direction: column; background: var(--paper); padding: 12px 18px 10px; min-width: 0; transition: background-color var(--t-fast); }
@media (min-width: 640px) {
  .field-full { grid-column: 1 / -1; }
}
.field:focus-within { background: #fff7f2; box-shadow: inset 3px 0 0 var(--signal); }
.field label { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.field label .mono { color: var(--signal-ink); font-size: 0.68rem; }
.field abbr { color: var(--signal-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; margin-top: 2px; padding: 6px 0;
  background: transparent; border: 0; border-radius: 0; outline: 0;
  font-size: 1rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.field ::placeholder { color: #7d8085; opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 28px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field.has-error { background: #fbeeeb; box-shadow: inset 3px 0 0 var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 500; }
.field-error:empty { display: none; }

.form-privacy { padding: 16px 18px; display: grid; gap: 12px; }
.privacy-layer { font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.privacy-layer strong { color: var(--ink-soft); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--ink); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--t-fast) var(--ease-out); }
.check input:checked { background: var(--signal); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check label { font-size: 0.95rem; cursor: pointer; }
.check.has-error input { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px; border-top: 1.5px solid var(--ink); }
.form-foot .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .form-foot .btn { flex: 0 0 auto; } }
.form-status { font-size: 0.95rem; font-weight: 500; }
.form-status.is-success { color: #1d6b3a; }
.form-status.is-error { color: var(--danger); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-night); padding-top: clamp(72px, 10vw, 140px); overflow: hidden; position: relative; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid rgba(238, 234, 226, 0.16); }
.footer-claim { font-size: clamp(2.2rem, 5.4vw, 5rem); font-weight: 800; font-stretch: 74%; text-transform: uppercase; line-height: 0.92; max-width: 16ch; }
.footer-claim em { color: var(--signal); font-size: 1.08em; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: 56px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a, .footer-col .link-button { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--on-night); }
.footer-col a:hover, .footer-col .link-button:hover { color: var(--signal); }
.footer-col address { line-height: 1.7; color: var(--on-night-muted); }
.footer-col address a { min-height: 0; display: inline; }
.lang-switch-footer { gap: 6px; flex-wrap: wrap; }
.lang-switch-footer .lang-link { border: 1px solid rgba(238, 234, 226, 0.24); min-width: 48px; min-height: 44px; opacity: 0.8; }
.lang-switch-footer .lang-link[aria-current="true"] { background: var(--signal); color: var(--ink); border-color: var(--signal); box-shadow: none; opacity: 1; }
.footer-wordmark {
  font-size: clamp(5rem, 25.5vw, 30rem); font-weight: 900; font-stretch: 66%; line-height: 0.74; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(238, 234, 226, 0.22);
  text-align: center; margin: 0 -0.02em; user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 28px; border-top: 1px solid rgba(238, 234, 226, 0.16); color: var(--on-night-muted); font-size: 0.85rem; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: var(--z-cookie); left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 20px;
  --fg: var(--ink); --bg: var(--paper); --line-strong: var(--ink);
}
.cookie-head { display: grid; gap: 8px; margin-bottom: 10px; }
.cookie-tag { color: var(--signal-ink); font-size: 0.68rem; }
.cookie-title { font-size: 1.35rem; font-weight: 750; font-stretch: 85%; text-transform: uppercase; }
.cookie-text { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-prefs fieldset { border: 0; padding: 0; margin-top: 14px; border-top: 1px solid rgba(19, 21, 24, 0.16); }
.cookie-option { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(19, 21, 24, 0.16); }
.cookie-option-title { font-weight: 600; font-size: 0.95rem; }
.cookie-option-text { font-size: 0.82rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (max-width: 559px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .cookie-head { grid-template-columns: 1fr; gap: 2px; margin-bottom: 6px; }
  .cookie-tag { display: none; }
  .cookie-title { font-size: 1.05rem; }
  .cookie-text { font-size: 0.82rem; line-height: 1.45; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
  .cookie-actions [data-cookie-reject] { order: 1; }
  .cookie-actions [data-cookie-accept] { order: 2; }
  .cookie-actions [data-cookie-configure], .cookie-actions [data-cookie-save] { order: 3; grid-column: 1 / -1; min-height: 36px; border-color: transparent; text-decoration: underline; }
  .cookie-actions .btn { padding: 0 10px; }
}
.switch { position: relative; flex: none; width: 48px; height: 28px; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 1.5px solid var(--ink); background: var(--paper-2); transition: background-color var(--t-fast); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: var(--ink); transition: transform var(--t-med) var(--ease-out); }
.switch input:checked + span { background: var(--signal); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.switch.is-locked { opacity: 0.55; }

/* ==========================================================================
   LEGAL
   ========================================================================== */
.legal-hero { background: var(--paper-2); padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1.5px solid var(--ink); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 28px; font-size: 0.72rem; }
.breadcrumb a { color: var(--ink); }
.legal-title { font-size: clamp(2.6rem, 7vw, 6.4rem); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.9; }
.legal-meta { margin-top: 24px; color: var(--muted); font-size: 0.72rem; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 80px; } .legal-aside nav { position: sticky; top: calc(var(--header-h) + 32px); } }
.legal-aside-title { color: var(--muted); margin-bottom: 12px; font-size: 0.7rem; }
.legal-aside ul { border-top: 1.5px solid var(--ink); }
.legal-aside a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.legal-aside a:hover, .legal-aside a[aria-current="page"] { color: var(--signal-ink); }
.legal-aside a[aria-current="page"] { font-weight: 700; }

.legal-body { max-width: 76ch; color: var(--ink-soft); }
.legal-body > * + * { margin-top: 1em; }
.legal-body h2 {
  color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 750; font-stretch: 82%; text-transform: uppercase; line-height: 1.05;
  margin-top: 2.4em; padding-top: 18px; border-top: 1.5px solid var(--ink);
  display: flex; gap: 14px; align-items: baseline;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal-ink); font-weight: 500; }
.legal-body h3 { color: var(--ink); font-size: 1.15rem; margin-top: 1.8em; }
.legal-body ul { list-style: none; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 9px; height: 2px; background: var(--signal); }
.legal-body a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.legal-body strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-body th { font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; background: var(--paper-2); color: var(--ink); }
.legal-body .data-sheet { display: grid; grid-template-columns: 1fr; border: 1.5px solid var(--ink); }
@media (min-width: 640px) { .legal-body .data-sheet { grid-template-columns: 220px 1fr; } }
.legal-body .data-sheet dt { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 14px 0; color: var(--muted); }
.legal-body .data-sheet dd { padding: 4px 14px 12px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .legal-body .data-sheet dt { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
  .legal-body .data-sheet dd { padding: 12px 14px; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 40px) 80px; }
.notfound-code { color: var(--signal); margin-bottom: 24px; }
.notfound-title { font-size: clamp(3rem, 9vw, 9rem); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 0.88; max-width: 14ch; margin-bottom: 28px; }
.notfound .section-lead { margin-bottom: 36px; }
.page-404 .site-header:not(.is-scrolled) { color: var(--paper); }

/* ==========================================================================
   Reveal (solo con JS + movimiento permitido)
   ========================================================================== */
.split-line { overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ==========================================================================
   Preferencia de movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker-group { flex-wrap: wrap; }
  .map-hub-pulse { display: none; }
}

@media print {
  .site-header, .cookie-banner, .grain, .hero-media, .video-toggle, .ticker, .band, .contact-video, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
