/* ==========================================================================
   Bardulia Logistics — hoja de estilos
   ========================================================================== */

@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: 'Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0F1214;
  --ink-2: #171B1E;
  --ink-3: #20262A;
  --ink-4: #2C3439;
  --paper: #F1EEE7;
  --paper-2: #E7E2D8;
  --paper-3: #D9D3C6;
  --white: #FFFFFF;

  --oxide: #C93C16;
  --oxide-hover: #AE3210;
  --oxide-ink: #B33512;   /* texto pequeño sobre papel */
  --oxide-hi: #FF6A3D;    /* acento sobre fondo oscuro */

  --muted: #585F64;
  --muted-dark: #8A9398;
  --field-border: #8C8F8E;
  --line: rgba(15, 18, 20, 0.14);
  --line-strong: rgba(15, 18, 20, 0.32);
  --line-dark: rgba(241, 238, 231, 0.14);
  --line-dark-strong: rgba(241, 238, 231, 0.3);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 72px;
  --section-y: clamp(88px, 12vw, 176px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --accent-text: var(--oxide-ink);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

.i18n-wait [data-i18n], .i18n-wait [data-i18n-html] { visibility: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
::selection { background: var(--oxide); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 3px;
  border-radius: 1px;
}
.theme-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible {
  outline-color: var(--oxide-hi);
}

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.theme-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-muted: var(--muted-dark);
  --rule: var(--line-dark);
  --accent-text: var(--oxide-hi);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Tipografía ---------- */

.display {
  font-size: clamp(2.6rem, 6.6vw, 7rem);
  line-height: 0.94;
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  line-height: 0.98;
  font-weight: 740;
  font-stretch: 110%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead-xl {
  font-size: clamp(1.5rem, 3vw, 2.9rem);
  line-height: 1.16;
  font-weight: 430;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.lead-xl em {
  font-style: normal;
  font-weight: 700;
  font-stretch: 112%;
  color: var(--accent-text);
}
.eyebrow, .sec-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--fg);
}
.sec-label::before {
  content: '';
  width: 0.62em; height: 0.62em;
  background: var(--oxide);
  flex: none;
}
.theme-dark .sec-label::before { background: var(--oxide-hi); }

/* ---------- Botones ---------- */

.btn {
  --btn-bg: var(--oxide);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 620;
  font-stretch: 106%;
  letter-spacing: 0.005em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oxide-hover);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-ghost, .btn-outline {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-ghost::before, .btn-outline::before { background: var(--fg); }
.btn-ghost:hover, .btn-outline:hover { color: var(--bg); }
.hero .btn-ghost { color: var(--paper); }
.hero .btn-ghost::before { background: var(--paper); }
.hero .btn-ghost:hover { color: var(--ink); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
[data-hero='dark'] .site-header:not(.is-solid) { color: var(--paper); }
.site-header.is-solid {
  background: rgba(241, 238, 231, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { color: var(--paper); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: none;
  min-height: 44px;
}
.brand-mark { width: 30px; height: 30px; }
.brand-word {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-sub {
  align-self: flex-end;
  margin-bottom: 0.72rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.8;
}

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav a {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }

.lang { display: inline-flex; align-items: center; }
.lang button {
  min-width: 36px;
  min-height: 44px;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s;
  position: relative;
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed='true'] { opacity: 1; }
.lang button[aria-pressed='true']::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 8px;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--oxide);
}
[data-hero='dark'] .site-header:not(.is-solid) .lang button[aria-pressed='true']::after,
body.menu-open .lang button[aria-pressed='true']::after { background: var(--oxide-hi); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 7px; width: 26px; margin: auto; }
.menu-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bars i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle-bars i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 3vh) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease-in-out);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu ol { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-decoration: none;
}
.mm-num { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--oxide-hi); letter-spacing: 0.08em; }
.mm-foot { display: grid; gap: 1rem; padding-top: 2rem; }
.lang-lg button { font-size: 0.875rem; padding-inline: 0.6rem 0.9rem; }
.mm-mail { font-family: var(--mono); font-size: 0.875rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--ink) url('../video/hero-poster.webp') center / cover no-repeat;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 20, 0.62) 0%, rgba(15, 18, 20, 0.1) 30%, rgba(15, 18, 20, 0.35) 62%, rgba(15, 18, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 18, 20, 0.55) 0%, rgba(15, 18, 20, 0) 65%);
}
.hero-coords {
  position: absolute;
  top: 50%; right: calc(var(--gutter) - 0.6rem);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.hero-content {
  align-self: end;
  padding-top: calc(var(--header-h) + 10vh);
  padding-bottom: clamp(40px, 7vh, 88px);
}
.eyebrow-light { color: rgba(241, 238, 231, 0.86); margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.hero .display { max-width: 14.5ch; }
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 46ch) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem 4rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
}
.hero-lead { font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.55; color: rgba(241, 238, 231, 0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-bar { border-top: 1px solid var(--line-dark-strong); background: rgba(15, 18, 20, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-bar-inner { display: flex; align-items: stretch; gap: 1.5rem; min-height: 64px; }
.hero-facts { display: flex; flex: 1; }
.hero-facts > div {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.7rem clamp(1rem, 2.5vw, 2.5rem) 0.7rem 0;
  margin-right: clamp(1rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line-dark);
}
.hero-facts dt, .hero-facts dd { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.hero-facts dt { color: rgba(241, 238, 231, 0.66); }
.hero-facts dd { font-size: 0.8125rem; white-space: nowrap; }
.video-toggle {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark-strong);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.video-toggle:hover { background: rgba(241, 238, 231, 0.12); border-color: var(--paper); }
.video-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.video-toggle .i-play { fill: currentColor; stroke: none; display: none; }
.video-toggle[aria-pressed='true'] .i-pause { display: none; }
.video-toggle[aria-pressed='true'] .i-play { display: block; }
.scroll-cue {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 34px; background: var(--line-dark-strong); overflow: hidden; }
.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 12px;
  background: var(--paper);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-12px); } 100% { transform: translateY(34px); } }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--oxide);
  color: var(--ink);
  border-block: 1px solid var(--ink);
  padding-block: clamp(0.9rem, 1.6vw, 1.4rem);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  width: max-content;
  padding-right: clamp(1.25rem, 2.4vw, 2.5rem);
  font-size: clamp(1.75rem, 4.2vw, 4rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track b { font-weight: 300; font-stretch: 100%; }
.no-js-marquee .marquee-track, html:not(.js) .marquee-track { animation: marquee 50s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

.section { position: relative; padding-block: var(--section-y); }
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.sec-head .sec-label { grid-column: 1 / -1; }
.sec-head .h2 { grid-column: 1 / span 8; }
.sec-intro { grid-column: 9 / -1; align-self: end; color: var(--fg-muted); max-width: 42ch; }
.contact .sec-intro { color: rgba(241, 238, 231, 0.8); }
.sec-head-inline .h2 { grid-column: 1 / span 9; }

/* ---------- 01 Empresa ---------- */

.about-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  margin-bottom: clamp(4rem, 8vw, 7.5rem);
}
.about-top .sec-label { grid-column: 1 / span 3; align-self: start; margin-top: 0.9em; }
.about-top .lead-xl { grid-column: 4 / -1; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--gutter);
  align-items: start;
}
.about-photo { grid-column: 1 / span 7; position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; background: var(--paper-2); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-text { grid-column: 9 / -1; display: grid; gap: 1.5rem; }
.about-text > p { color: var(--fg-muted); }
.about-text > p:first-child { color: var(--fg); font-size: 1.1875rem; line-height: 1.5; }

.motto {
  margin: 1rem 0 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line-strong);
}
.motto p {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.12;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.motto footer { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--fg-muted); letter-spacing: 0.02em; }

.waybill {
  margin-top: 0.5rem;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 0.9375rem;
}
.waybill-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.waybill-ref { color: var(--oxide-hi); }
.waybill dl > div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.waybill dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.15em; }
.waybill dd { font-weight: 520; line-height: 1.4; }
.waybill-code {
  height: 44px;
  margin: 0.9rem 1rem 1rem;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 19px, var(--ink) 19px 22px, transparent 22px 25px);
}

/* ---------- 02 Servicios ---------- */

.services { border-top: 1px solid var(--line); }
.svc-list { counter-reset: svc; border-bottom: 1px solid var(--line-strong); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem var(--gutter);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line-strong);
}
.svc::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; color: var(--accent-text); padding-top: 0.6rem; letter-spacing: 0.06em; }
.svc-title {
  font-size: clamp(1.6rem, 3.1vw, 2.9rem);
  line-height: 1.02;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.022em;
  transition: transform 0.5s var(--ease);
}
.svc:hover .svc-title { transform: translateX(10px); }
.svc-body { display: grid; gap: 1rem; align-content: start; padding-top: 0.4rem; }
.svc-body p { color: var(--fg-muted); max-width: 52ch; }
.svc-tags { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg) !important; }
.svc-thumb { display: none; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.svc-follow {
  position: fixed;
  top: 0; left: 0;
  z-index: 5;
  width: clamp(240px, 22vw, 340px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity 0.35s var(--ease);
  background: var(--paper-2);
}
.svc-follow.is-visible { opacity: 1; }
.svc-follow img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
}
.svc-follow img.is-active { opacity: 1; transform: scale(1); }

/* ---------- 03 Rutas ---------- */

.routes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem var(--gutter);
  align-items: start;
}
.map { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.map svg { width: 100%; height: 100%; overflow: hidden; }
.map .ctx path { fill: #14181B; stroke: #232A2E; stroke-width: 1; }
.map .land path { fill: #1C2226; stroke: #3A4449; stroke-width: 1.2; stroke-linejoin: round; }
.map .grat line { stroke: rgba(241, 238, 231, 0.05); stroke-width: 1; }
.map .country-label {
  fill: rgba(241, 238, 231, 0.2);
  font-family: var(--font);
  font-size: 30px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.map .route {
  fill: none;
  stroke: rgba(241, 238, 231, 0.32);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s;
}
.map.is-drawn .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--i, 0) * 70ms), stroke 0.3s, stroke-width 0.3s, opacity 0.3s; }
.map .route.is-active { stroke: var(--oxide-hi); stroke-width: 3.2; }
.map.has-active .route:not(.is-active) { opacity: 0.35; }
.map .route.is-off, .map .city.is-off { opacity: 0.08 !important; }
.map .city { cursor: pointer; transition: opacity 0.3s; }
.map .city circle { fill: var(--paper); transition: r 0.3s, fill 0.3s; }
.map .city .hit { fill: transparent; }
.map .city text {
  fill: rgba(241, 238, 231, 0.75);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: fill 0.3s;
}
.map .city.is-active circle:not(.hit) { fill: var(--oxide-hi); }
.map .city.is-active text { fill: var(--paper); font-weight: 500; }
.map .hub circle.core { fill: var(--oxide-hi); }
.map .hub circle.ring { fill: none; stroke: var(--oxide-hi); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.map .hub text { fill: var(--paper); font-family: var(--font); font-size: 26px; font-weight: 800; font-stretch: 120%; letter-spacing: 0.04em; text-transform: uppercase; }
.map .hub .hub-sub { fill: var(--oxide-hi); font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: 0.14em; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

.board-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-bottom: 0;
}
.board-title { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oxide-hi); box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0.25; } }
.board-filter { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.board-filter button {
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--ink-4);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted-dark);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.board-filter button:hover { color: var(--paper); border-color: var(--muted-dark); }
.board-filter button[aria-pressed='true'] { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.board {
  width: 100%;
  border-collapse: collapse;
  background: #0A0C0D;
  border: 1px solid var(--ink-4);
  font-family: var(--mono);
}
.board thead th {
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid var(--ink-4);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted-dark);
}
.board th.num, .board td.num { text-align: right; }
.board td, .board tbody th { padding: 0.42rem 1rem; text-align: left; font-weight: 400; border-bottom: 1px solid #16191B; vertical-align: middle; }
.board tbody tr { cursor: pointer; transition: background-color 0.2s; }
.board tbody tr:hover, .board tbody tr:focus-visible, .board tbody tr.is-active { background: #161A1C; }
.board tbody tr:focus-visible { outline-offset: -3px; }
.board tbody tr.is-active .flap { color: var(--oxide-hi); }
.board tr[hidden] { display: none; }
.flaps { display: inline-flex; gap: 2px; }
.flap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.18em;
  height: 1.6em;
  background: linear-gradient(180deg, #1D2225 0 49%, #15191B 51% 100%);
  border-radius: 2px;
  color: var(--paper);
  font-size: clamp(0.8125rem, 1.05vw, 1rem);
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s;
}
.flap::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.7);
}
.flap.is-flipping { animation: flip 0.07s linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
.flap.is-blank { color: transparent; }
.board td.t .flap { color: #F2C14E; }
.board tbody tr.is-active td.t .flap { color: var(--oxide-hi); }
.board-note { margin-top: 1rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted-dark); max-width: 60ch; }

/* ---------- 04 Ubicación ---------- */

.loc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--gutter);
  align-items: stretch;
}
.loc-photo { grid-column: 1 / span 7; position: relative; overflow: hidden; background: var(--paper-2); display: flex; flex-direction: column; }
.loc-photo-inner { overflow: hidden; flex: 1; min-height: 420px; }
.loc-photo img { width: 100%; height: 118%; object-fit: cover; }
.loc-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 0;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stats {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
}
.stats li {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.stats li:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.stats li:nth-child(even) { padding-left: 1.25rem; }
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: clamp(3rem, 6.4vw, 6.25rem);
  line-height: 0.9;
  font-weight: 760;
  font-stretch: 116%;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-num .approx { font-size: 0.45em; font-weight: 400; color: var(--accent-text); margin-right: 0.08em; align-self: flex-start; margin-top: 0.12em; }
.stat-num small { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.45rem; }
.stat-label { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.45; max-width: 24ch; }

/* ---------- 05 Método ---------- */

.method { background: var(--paper-2); padding-top: 0; }
.method-band { height: clamp(220px, 34vw, 460px); overflow: hidden; margin-bottom: var(--section-y); }
.method-band-inner { height: 100%; }
.method-band img { width: 100%; height: 125%; object-fit: cover; }

.track { position: relative; }
.track-line {
  position: relative;
  height: 2px;
  margin-bottom: 2.5rem;
  background: var(--line-strong);
  --progress: 0;
}
.track-fill {
  position: absolute;
  inset: 0;
  background: var(--oxide);
  transform: scaleX(var(--progress));
  transform-origin: left;
}
.track-truck {
  position: absolute;
  bottom: 6px;
  left: calc(var(--progress) * 100%);
  width: 46px;
  height: 23px;
  margin-left: -46px;
  fill: var(--ink);
  transition: left 0.1s linear;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.step { display: grid; gap: 0.9rem; align-content: start; transition: opacity 0.4s var(--ease); }
.js .track[data-armed] .step:not(.is-on) { opacity: 0.38; }
.step-num {
  position: relative;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; font-weight: 720; font-stretch: 112%; letter-spacing: -0.02em; }
.step p { color: var(--fg-muted); max-width: 32ch; }

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

.contact { overflow: hidden; isolation: isolate; }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  background: var(--ink) url('../video/forest-poster.webp') center / cover no-repeat;
}
.contact-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 18, 20, 0.94) 0%, rgba(15, 18, 20, 0.86) 45%, rgba(15, 18, 20, 0.6) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--gutter);
  align-items: start;
}
.contact-info { grid-column: 1 / span 5; display: grid; gap: 1.75rem; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-info .sec-intro { grid-column: auto; max-width: 40ch; }
.contact-list { display: grid; border-top: 1px solid var(--line-dark-strong); margin-top: 1rem; }
.contact-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); padding-top: 0.2em; }
.contact-list dd a { text-decoration-color: var(--line-dark-strong); }
.contact-list dd a:hover { text-decoration-color: currentColor; }

.form-card {
  grid-column: 7 / -1;
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --accent-text: var(--oxide-ink);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3.4vw, 3rem);
  border-top: 4px solid var(--oxide);
}
.form-card :focus-visible { outline-color: var(--oxide); }
.form-title { font-size: 1.5rem; line-height: 1.15; font-weight: 720; font-stretch: 112%; letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.form-summary {
  margin-bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--oxide);
  background: #FBE9E3;
  color: #7E220A;
  font-weight: 520;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 560; }
.field abbr { color: var(--oxide-ink); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input:not([type='checkbox']), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #767C80; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 60, 22, 0.35); }
.field [aria-invalid='true'] { border-color: var(--oxide) !important; box-shadow: inset 3px 0 0 var(--oxide); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select::after {
  content: '';
  position: absolute;
  right: 1rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field-check input {
  width: 22px; height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--oxide);
  cursor: pointer;
}
.field-check label { font-weight: 400; cursor: pointer; }
.field-check .field-error { grid-column: 2; }
.field-error { color: #A12C0B; font-size: 0.875rem; font-weight: 520; }
.field-error::before { content: '! '; font-family: var(--mono); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.form-status { font-weight: 520; min-height: 1.5em; }
.form-status.is-ok { color: #1E5E3A; }
.form-status.is-error { color: #A12C0B; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }

.gdpr { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: 0.875rem; }
.gdpr summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gdpr summary::-webkit-details-marker { display: none; }
.gdpr summary::after { content: '+'; font-size: 1.25rem; line-height: 1; transition: transform 0.3s var(--ease); }
.gdpr[open] summary::after { transform: rotate(45deg); }
.gdpr dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.gdpr dt { font-weight: 620; }
.gdpr dd { color: var(--muted); }

/* ---------- Pie ---------- */

.site-footer { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 128px); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-dark-strong);
}
.footer-tag {
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  line-height: 1;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.025em;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem var(--gutter);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9375rem;
}
.footer-h { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1rem; }
.footer-cols ul { display: grid; gap: 0.15rem; }
.footer-cols a, .footer-cols .link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 6px);
  transition: background-size 0.4s var(--ease);
}
.footer-cols a:hover, .footer-cols .link-btn:hover { background-size: 100% 1px; }
.footer-company { line-height: 1.6; margin-bottom: 0.75rem; color: rgba(241, 238, 231, 0.84); }
.footer-company strong { color: var(--paper); font-weight: 620; }
.lang-col { display: grid; justify-items: start; }
.lang-col button { min-height: 36px; padding: 0; font-family: var(--font); font-size: 0.9375rem; letter-spacing: 0; }
.lang-col button[aria-pressed='true']::after { left: auto; right: -12px; bottom: 50%; margin: 0 0 -2px; background: var(--oxide-hi); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.footer-motto { text-transform: uppercase; letter-spacing: 0.12em; }
.to-top { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper); }
.footer-word {
  margin: 0 0 -0.2em;
  padding-inline: calc(var(--gutter) * 0.5);
  font-size: 14.6vw;
  line-height: 0.8;
  font-weight: 820;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-3);
  white-space: nowrap;
  user-select: none;
}

/* ---------- Cookies ---------- */

.ck-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(440px, calc(100vw - 32px));
  padding: 1.25rem 1.25rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 60px -20px rgba(15, 18, 20, 0.45);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ck-banner.is-visible { opacity: 1; transform: none; }
.ck-title { font-weight: 720; font-stretch: 110%; margin-bottom: 0.35rem; font-size: 1.0625rem; }
.ck-text { color: var(--muted); }
.ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 1rem; }
.ck-actions .btn { flex: 1 1 8rem; }
.ck-actions .link-btn { min-height: 44px; padding-inline: 0.25rem; font-size: 0.9375rem; }

.ck-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.ck-dialog::backdrop { background: rgba(15, 18, 20, 0.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ck-dialog-inner { padding: 1.5rem; display: grid; gap: 0; }
.ck-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.ck-dialog h2 { font-size: 1.375rem; font-weight: 720; font-stretch: 112%; letter-spacing: -0.01em; }
.ck-x { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.ck-x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ck-row-t { font-weight: 640; }
.ck-row-d { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-top: 0.2rem; }
.ck-always { flex: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oxide-ink); }
.ck-none { padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.ck-dialog-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.25rem; font-size: 0.9375rem; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--paper-3); border: 1px solid var(--field-border); transition: background-color 0.25s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--oxide); border-color: var(--oxide); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--oxide); outline-offset: 3px; }

/* ---------- Páginas legales ---------- */

.page-legal { --bg: var(--paper); }
.legal-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-strong); }
.legal-hero .sec-label { margin-bottom: 1.5rem; }
.legal-hero h1 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 0.98; font-weight: 760; font-stretch: 112%; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
  gap: 3rem var(--gutter);
  padding-block: clamp(48px, 6vw, 96px) var(--section-y);
}
.legal-layout > div { min-width: 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-toc p { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.legal-toc ol { counter-reset: toc; display: grid; border-top: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc a { display: grid; grid-template-columns: 2rem 1fr; padding: 0.55rem 0; font-size: 0.9375rem; line-height: 1.35; text-decoration: none; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.75rem; color: var(--oxide-ink); padding-top: 0.15em; }
.legal-toc a:hover { color: var(--oxide-ink); }
.legal-doc { max-width: 74ch; counter-reset: sec; }
.legal-doc > * + * { margin-top: 1rem; }
.legal-doc h2 {
  counter-increment: sec;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.12;
  font-weight: 720;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-doc h2::before { content: counter(sec, decimal-leading-zero) ' — '; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; color: var(--oxide-ink); display: block; margin-bottom: 0.5rem; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { margin-top: 1.75rem; font-size: 1.125rem; font-weight: 680; }
.legal-doc p, .legal-doc li { color: #2B3134; }
.legal-doc ul { padding-left: 0; display: grid; gap: 0.5rem; }
.legal-doc ul li { position: relative; padding-left: 1.4rem; }
.legal-doc ul li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; background: var(--oxide); }
.legal-doc a { color: var(--oxide-ink); }
.legal-doc .lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
.legal-doc .note { padding: 1rem 1.25rem; background: var(--paper-2); border-left: 3px solid var(--ink); font-size: 0.9375rem; }
.legal-id { border: 1px solid var(--ink); background: var(--white); }
.legal-id > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.legal-id > div:last-child { border-bottom: 0; }
.legal-id dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.legal-id dd { font-weight: 520; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); background: var(--white); }
.legal-doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.legal-doc th, .legal-doc td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-doc th { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-2); color: var(--ink); }
.legal-doc td code { font-family: var(--mono); font-size: 0.875rem; background: var(--paper-2); padding: 0.1em 0.35em; }

/* ---------- Animación: estados iniciales (solo con JS y movimiento permitido) ---------- */

.js-scrub .word { display: inline-block; }

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

@media (max-width: 1180px) {
  .nav ul { gap: 1.1rem; }
  .header-cta { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .site-header > .header-actions .lang { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: inline-flex; }
  .hero-foot { grid-template-columns: 1fr; }
  .sec-head .h2, .sec-head-inline .h2 { grid-column: 1 / -1; }
  .sec-intro { grid-column: 1 / -1; }
  .about-top .sec-label, .about-top .lead-xl { grid-column: 1 / -1; }
  .about-top .sec-label { margin-top: 0; }
  .about-photo { grid-column: 1 / -1; position: relative; top: 0; }
  .about-text { grid-column: 1 / -1; max-width: 680px; }
  .routes-grid { grid-template-columns: 1fr; }
  .map { max-width: 640px; width: 100%; margin-inline: auto; }
  .board-wrap { position: static; }
  .loc-photo, .stats { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-info, .form-card { grid-column: 1 / -1; }
  .contact-info { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .brand-sub { display: none; }
  .hero-coords { display: none; }
  .hero-bar-inner { gap: 0.75rem; }
  .hero-facts > div:nth-child(2) { display: none; }
  .hero-facts > div { padding-right: 0.9rem; margin-right: 0.9rem; }
  .hero-facts dd { font-size: 0.75rem; }
  .scroll-cue { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .svc { grid-template-columns: 1fr; gap: 0.75rem; }
  .svc-num { padding-top: 0; }
  .svc:hover .svc-title { transform: none; }
  .svc-thumb { display: block; margin-bottom: 0.25rem; }
  .board td, .board th { padding-inline: 0.5rem !important; }
  .board .cc { display: none; }
  .flap { width: 1.05em; }
  .board-top { padding: 0.75rem; }
  .map .city text { display: none; }
  .map .city.is-active text { display: block; }
  .map .country-label { font-size: 40px; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 1.25rem 0 1.5rem !important; border-right: 0 !important; }
  .loc-photo-inner { min-height: 300px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 1.5rem; border-bottom: 1px solid var(--line-strong); }
  .track-line { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .gdpr dl > div, .contact-list > div, .waybill dl > div, .legal-id > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .ck-actions .link-btn { flex-basis: 100%; text-align: center; }
}

@media (hover: none), (pointer: coarse) {
  .svc-follow { display: none; }
}
@media (hover: none) and (min-width: 721px) {
  .svc-thumb { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .map .route { stroke-dashoffset: 0; }
  .marquee-track { animation: none !important; }
}

@media print {
  .site-header, .mobile-menu, .hero-media, .marquee, .svc-follow, .ck-banner, .footer-word, .contact-media { display: none !important; }
  .theme-dark, .hero { background: none; color: #000; }
}
