/* ==========================================================================
   Transportes Zamoranos Rivelor S.L. — site styles
   Palette: warm paper, graphite ink, "bermejo" red from Zamora's Seña Bermeja
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/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("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Signature";
  src: url("../assets/fonts/signature.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #EDE9E1;
  --paper-2: #E3DED3;
  --paper-3: #D8D2C5;
  --ink: #15130F;
  --ink-2: #2B2822;
  --muted: #625D53;
  --rule: rgba(21, 19, 15, 0.16);
  --rule-strong: rgba(21, 19, 15, 0.42);

  --night: #14120F;
  --night-2: #1E1B17;
  --on-night: #ECE7DD;
  --on-night-muted: #A19B8F;
  --rule-night: rgba(236, 231, 221, 0.14);

  --red: #B8321F;
  --red-bright: #E24B31;
  --green: #2E4A3B;
  --eu-blue: #1F3B8A;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-sign: "Signature", "Brush Script MT", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.display {
  font-family: var(--f-sans);
  font-stretch: 64%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.accent { color: var(--red); }
.on-night .accent { color: var(--red-bright); }

.section { position: relative; padding-block: clamp(80px, 12vw, 168px); }
.section--night { background: var(--night); color: var(--on-night); }
.section--paper2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px);
  align-items: end;
  padding-bottom: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.section--night .section-head { border-color: var(--rule-night); }
.section-label { grid-column: 1 / span 3; color: var(--muted); align-self: start; padding-top: .5em; }
.section--night .section-label { color: var(--on-night-muted); }
.section-title { grid-column: 4 / span 9; font-size: clamp(48px, 8.4vw, 132px); }
.section-intro { grid-column: 4 / span 6; margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 52ch; }
.section--night .section-intro { color: var(--on-night-muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #FFF8F2;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px 0 24px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 2px;
  overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }
.on-night .btn::before, .hero .btn::before { background: var(--paper); }
.on-night .btn:hover, .hero .btn:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.back-link { white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--on-night);
  transition: transform .5s var(--ease-out), background-color .35s, color .35s, box-shadow .35s;
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header.is-solid {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--light { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-stretch: 70%; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em; margin-top: 4px; opacity: .75; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 10px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav + .header-actions { margin-left: 8px; }
.header-actions:only-of-type { margin-left: auto; }

.lang-switch {
  display: inline-flex; border: 1px solid currentColor; border-radius: 2px; overflow: hidden;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em;
}
.lang-switch button {
  min-width: 40px; min-height: 34px; padding: 0 8px; opacity: .6;
  transition: background-color .25s, color .25s, opacity .25s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.lang-switch button[aria-pressed="true"] span { color: var(--night); }
.site-header.is-solid .lang-switch button[aria-pressed="true"] span,
.site-header--light .lang-switch button[aria-pressed="true"] span { color: var(--paper); }

.header-cta { min-height: 42px; padding: 0 16px 0 18px; font-size: 14px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 2px;
}
.menu-toggle span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  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;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out), visibility 0s; }
.menu-open .site-header { background: transparent; color: var(--on-night); box-shadow: none; }
.menu-open .site-header .lang-switch button[aria-pressed="true"] span { color: var(--night); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a.mm-link {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  font-stretch: 64%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 13vw, 84px); line-height: 1.02;
}
.mobile-menu a.mm-link .mono { color: var(--on-night-muted); font-size: 12px; }
.mobile-menu__foot { display: grid; gap: 16px; color: var(--on-night-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-night); background: var(--night);
  overflow: hidden;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.05) 28%, rgba(20,18,15,.15) 55%, rgba(20,18,15,.88) 100%),
    linear-gradient(90deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,0) 60%);
}
.hero__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; padding-top: calc(var(--header-h) + 48px); }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 2.4vw, 28px); color: var(--on-night); }
.eyebrow__dot { width: 8px; height: 8px; background: var(--red-bright); border-radius: 50%; }
.hero__title { font-size: clamp(60px, min(12.6vw, 18.5vh), 216px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: 0.9em; }
.hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  margin-top: clamp(24px, 3vw, 40px); align-items: end;
}
.hero__lead { grid-column: 1 / span 5; font-size: clamp(17px, 1.35vw, 20px); color: rgba(236,231,221,.86); max-width: 46ch; }
.hero__ctas { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.hero__strip {
  position: relative; margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--rule-night);
}
.hero__strip ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center;
}
.hero__strip li { padding: 18px 16px 22px 0; display: grid; gap: 4px; }
.hero__strip li + li { padding-left: 16px; border-left: 1px solid var(--rule-night); }
.hero__strip .k { color: var(--on-night-muted); font-size: 11px; }
.hero__strip .v { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.02em; }
.video-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted);
}
.video-toggle:hover { color: var(--on-night); }
.video-toggle svg { width: 14px; height: 14px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red); color: #FFF3EA; overflow: hidden;
  border-block: 1px solid rgba(0,0,0,.2);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 36px);
  padding-inline: clamp(9px, 1.2vw, 18px);
  font-stretch: 64%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 76px); line-height: 1.25; white-space: nowrap;
}
.marquee__item svg { width: clamp(22px, 2.6vw, 38px); height: auto; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__body { row-gap: 48px; }
.about__label { grid-column: 1 / span 3; color: var(--muted); padding-top: .8em; }
.about__statement {
  grid-column: 4 / span 9;
  font-size: clamp(26px, 3.3vw, 52px); line-height: 1.12; font-weight: 500; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.about__statement .w { opacity: .16; transition: opacity .2s; }
.no-js .about__statement .w, .reduced .about__statement .w { opacity: 1; }
.about__figure { grid-column: 1 / span 5; margin-top: clamp(24px, 5vw, 80px); }
.about__figure .frame { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.about__figure img { width: 100%; height: 118%; object-fit: cover; }
.about__figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); }
.facts { grid-column: 7 / span 6; margin-top: clamp(24px, 5vw, 80px); align-self: end; }
.facts li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts .n { color: var(--red); padding-top: 4px; }
.facts h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 4px; }
.facts p { color: var(--muted); }

/* ---------- Services ---------- */
#services .section-head { border-bottom: 0; margin-bottom: 0; }
.svc-list { border-top: 1px solid var(--rule-night); }
.svc {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  align-items: center;
  padding-block: clamp(22px, 2.8vw, 40px);
  border-bottom: 1px solid var(--rule-night);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--night-2); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.svc:hover::before { transform: scaleY(1); }
.svc__num { grid-column: 1 / span 1; color: var(--on-night-muted); }
.svc__title {
  grid-column: 2 / span 5;
  font-stretch: 64%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 72px); line-height: .92;
  transition: transform .5s var(--ease-out), color .3s;
}
.svc:hover .svc__title { transform: translateX(14px); color: #fff; }
.svc__desc { grid-column: 7 / span 4; color: var(--on-night-muted); font-size: 16px; max-width: 42ch; }
.svc__tags { grid-column: 11 / span 2; justify-self: end; text-align: right; color: var(--on-night-muted); font-size: 11px; }
.svc__arrow {
  position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  color: var(--red-bright); opacity: 0; transform: translateX(-12px);
  transition: opacity .3s, transform .45s var(--ease-out);
}
.svc:hover .svc__arrow { opacity: 1; transform: none; }
.svc:hover .svc__tags { opacity: 0; }
.svc__thumb { display: none; }

.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 2px;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .5s var(--ease-out);
  will-change: transform;
}
.svc-preview.is-on { clip-path: inset(0 0 0 0); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .35s, transform .7s var(--ease-out); }
.svc-preview img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Distance board ---------- */
.board-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.board-aside { grid-column: 1 / span 3; color: var(--muted); display: flex; flex-direction: column; gap: 24px; }
.board-aside p { font-size: 15px; max-width: 30ch; }
.board-legend { display: grid; gap: 10px; }
.board-legend span { display: inline-flex; align-items: center; gap: 10px; }
.board-legend i { width: 18px; height: 10px; background: var(--ink); display: inline-block; }
.board-legend i.pt { background: var(--green); }
.board-legend i.fr { background: var(--eu-blue); }
.board {
  grid-column: 4 / span 9;
  background: var(--ink); color: var(--paper); border-radius: 3px;
  padding: clamp(12px, 2vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 30px 60px -30px rgba(21,19,15,.5);
}
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board th {
  text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: #8F897E; padding: 0 12px 8px;
}
.board th.num, .board td.num { text-align: right; }
.board td { padding: 0 12px; vertical-align: middle; }
.board tr:hover td { background: rgba(255,255,255,.03); }
.flap { display: inline-flex; gap: 2px; font-family: var(--f-mono); font-weight: 500; font-size: clamp(13px, 1.25vw, 18px); }
.flap .c {
  position: relative; display: inline-grid; place-items: center;
  width: 1.12em; height: 1.6em; background: #26231E; border-radius: 2px; color: #F1ECE2;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.45);
}
.flap .c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.flap .c.sp { background: transparent; box-shadow: none; }
.flap .c.sp::after { display: none; }
.cc { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; border-radius: 2px; background: #3A362F; color: #F1ECE2; }
.cc.pt { background: var(--green); }
.cc.fr { background: var(--eu-blue); }
.bar { position: relative; height: 4px; width: 100%; min-width: 60px; background: #2B2822; border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--red-bright); transform-origin: left; }
.board__foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 12px 2px; color: #8F897E; border-top: 1px dashed #3A362F; margin-top: 8px; font-size: 11px; }

/* ---------- Process ---------- */
.process { overflow: hidden; }
.steps-wrap { position: relative; }
.road {
  position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--rule-strong) 0 18px, transparent 18px 30px);
}
.road__fill { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.step { padding-top: 0; }
.step__dot {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 28px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.step.is-on .step__dot { background: var(--red); color: #FFF3EA; box-shadow: inset 0 0 0 1.5px var(--red); }
.step h3 { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; max-width: 30ch; }

/* ---------- Band ---------- */
.band { position: relative; height: clamp(440px, 80vh, 820px); overflow: hidden; background: var(--night); color: var(--on-night); }
.band__img { position: absolute; inset: -12% 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.1), rgba(20,18,15,.7)); }
.band__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 5vw, 72px); }
.band__title { font-size: clamp(52px, 10.5vw, 176px); }
.band__title span { display: block; }
.band__title span:last-child { padding-left: 1.2em; }
.band__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; color: rgba(236,231,221,.75); }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.office {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(460px, 44vw, 620px); border-radius: 3px; overflow: hidden;
}
.office--es { background: var(--paper); padding: clamp(24px, 3vw, 44px); box-shadow: inset 0 0 0 1px var(--rule); }
.office__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.office__tag { color: var(--muted); }
.plate {
  display: inline-flex; align-items: stretch; height: 34px; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--ink); background: #F7F5F0; flex-shrink: 0;
}
.plate__eu { width: 24px; background: var(--eu-blue); color: #fff; display: grid; place-items: center; font: 600 11px/1 var(--f-sans); padding-top: 10px; position: relative; }
.plate__eu::before { content: ""; position: absolute; top: 5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 1.5px dotted #F2C230; }
.plate__num { display: grid; place-items: center; padding: 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: .08em; }
.office__city { font-size: clamp(64px, 9vw, 150px); margin-block: 32px 24px; }
.office address { font-style: normal; font-size: 18px; line-height: 1.5; }
.office__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.office__meta dt { color: var(--muted); margin-bottom: 4px; }
.office__meta dd { font-family: var(--f-mono); font-size: 14px; }
.office__actions { margin-top: 28px; }

.office--au { color: var(--on-night); background: var(--night); }
.office--au .office__bg { position: absolute; inset: 0; }
.office--au .office__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .55; transition: transform 1.2s var(--ease-out), opacity .6s; }
.office--au:hover .office__bg img { transform: scale(1.04); opacity: .7; }
.office--au::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.2) 0%, rgba(20,18,15,.85) 100%); }
.office--au > .office__inner { position: relative; z-index: 1; }
.office--au .office__inner { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; height: 100%; flex: 1; }
.office--au .office__tag { color: rgba(236,231,221,.8); }
.office--au p { color: rgba(236,231,221,.85); max-width: 40ch; font-size: 17px; }
.stamp {
  position: absolute; right: clamp(20px, 3vw, 44px); top: clamp(64px, 8vw, 104px); z-index: 2;
  transform: rotate(-8deg);
  border: 2.5px solid var(--red-bright); color: var(--red-bright);
  padding: 10px 18px 8px; border-radius: 4px;
  font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); line-height: 1;
  text-align: center; background: rgba(20,18,15,.35);
  box-shadow: inset 0 0 0 4px rgba(20,18,15,.35), inset 0 0 0 5.5px var(--red-bright);
}
.stamp small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: .2em; margin-top: 6px; }

/* ---------- CEO ---------- */
.ceo__grid { align-items: start; }
.ceo__label { grid-column: 1 / span 3; color: var(--muted); padding-top: .8em; }
.ceo__body { grid-column: 4 / span 8; }
.ceo__mark { width: clamp(44px, 5vw, 72px); color: var(--red); margin-bottom: 24px; }
.ceo__quote { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.22; font-weight: 450; letter-spacing: -0.01em; text-wrap: pretty; }
.ceo__sign { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.signature {
  font-family: var(--f-sign); font-size: clamp(56px, 6vw, 88px); line-height: .9; color: var(--ink);
  padding: 0 .2em 0 .05em;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s var(--ease-in-out);
}
.signature.is-drawn, .no-js .signature, .reduced .signature { clip-path: inset(-20% -10% -20% 0); }
.ceo__who { padding-bottom: 12px; border-left: 1px solid var(--rule-strong); padding-left: 20px; }
.ceo__who strong { display: block; font-size: 18px; font-weight: 700; }
.ceo__who span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { row-gap: 56px; }
.contact__intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; }
.contact__title { font-size: clamp(56px, 8vw, 128px); }
.contact__lead { color: var(--on-night-muted); font-size: 18px; max-width: 40ch; }
.contact__addr { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--rule-night); }
.contact__addr .mono { color: var(--on-night-muted); }
.contact__addr address { font-style: normal; font-size: 17px; }

.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; align-content: start; }
.field { display: grid; gap: 8px; grid-column: span 2; align-content: start; }
.field--half { grid-column: span 1; }
.field label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); }
.field label .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--night-2); border: 1px solid var(--rule-night); border-radius: 2px; color: var(--on-night);
  font-size: 16px; transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23A19B8F' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--night-2); color: var(--on-night); }
.field input::placeholder, .field textarea::placeholder { color: #6F6A60; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(236,231,221,.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); background: #221F1A; }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: var(--red-bright); }
.field__err { font-size: 14px; color: #FF8A73; min-height: 0; }
.field__err:empty { display: none; }

.consent { grid-column: span 2; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--on-night-muted); }
.consent input { appearance: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid rgba(236,231,221,.5); border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--ease-out); }
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent label { font-size: 15px; line-height: 1.5; cursor: pointer; }
.consent a { color: var(--on-night); }
.consent .field__err { grid-column: 2; }

.form__actions { grid-column: span 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 15px; }
.form__status[data-type="ok"] { color: #9FD3AE; }
.form__status[data-type="err"] { color: #FF8A73; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.dp-table { grid-column: span 2; margin-top: 8px; border-top: 1px solid var(--rule-night); padding-top: 18px; }
.dp-table summary { cursor: pointer; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.dp-table summary::-webkit-details-marker { display: none; }
.dp-table summary::after { content: "+"; font-size: 18px; transition: transform .3s; }
.dp-table[open] summary::after { transform: rotate(45deg); }
.dp-table dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin-top: 14px; font-size: 14px; color: var(--on-night-muted); }
.dp-table dt { color: var(--on-night); font-weight: 600; }
.dp-table a { color: var(--on-night); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--rule-night); }
.footer__col h2 { color: var(--on-night-muted); margin-bottom: 16px; font-weight: 400; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { text-decoration: none; color: var(--on-night); opacity: .88; display: inline-block; padding-block: 3px; }
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { color: var(--on-night-muted); font-size: 15px; line-height: 1.7; }
.footer__legal strong { color: var(--on-night); font-weight: 600; }
.footer__word {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; line-height: .78;
  font-size: 19.6vw; letter-spacing: -0.01em; white-space: nowrap;
  margin-top: 40px; margin-left: -0.04em; color: var(--on-night);
  user-select: none;
}
.footer__word span { color: var(--red-bright); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; color: var(--on-night-muted); border-top: 1px solid var(--rule-night); }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-night-muted); text-decoration: none; }
.to-top:hover { color: var(--on-night); }
.to-top svg { width: 14px; height: 14px; }

/* ---------- Cookie notice ---------- */
.notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 120;
  max-width: 420px; width: calc(100% - 32px);
  background: var(--paper); color: var(--ink);
  border-radius: 3px; padding: 20px;
  box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -16px rgba(21,19,15,.35);
  transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s;
}
.notice.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .4s; }
.notice p { font-size: 14.5px; margin: 8px 0 16px; color: var(--ink-2); }
.notice .mono { color: var(--muted); font-size: 11px; }
.notice__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice .btn { min-height: 44px; font-size: 14px; }
.notice a { font-size: 14px; font-weight: 600; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reduced .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.legal-hero .mono { color: var(--muted); margin-bottom: 20px; display: block; }
.legal-hero h1 { font-size: clamp(52px, 9vw, 140px); }
.legal-hero .updated { margin-top: 24px; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); padding-block: clamp(48px, 6vw, 96px); }
.legal-toc { grid-column: 1 / span 3; }
.legal-toc nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h2 { color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.legal-toc ol { counter-reset: toc; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--ink); }
.legal-toc a.is-active { box-shadow: inset 2px 0 0 var(--red); padding-left: 10px; }
.legal-body { grid-column: 5 / span 7; max-width: 72ch; }
.legal-body section { padding-block: 8px 32px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; }
.legal-body h2 .mono { color: var(--red); font-size: 12px; }
.legal-body h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 22px; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--red); }
.legal-body a { color: var(--red); text-underline-offset: 3px; }
.legal-body .data-card { margin: 16px 0; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper-2); }
.legal-body .data-card dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; }
.legal-body .data-card dt, .legal-body .data-card dd { padding: 12px 16px; border-top: 1px solid var(--rule); }
.legal-body .data-card dt:first-of-type, .legal-body .data-card dd:first-of-type { border-top: 0; }
.legal-body .data-card dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-body th { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-body code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 2px; }
.table-scroll { overflow-x: auto; }
.legal-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.legal-pages a { text-decoration: none; font-size: 14px; padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 2px; min-height: 40px; display: inline-flex; align-items: center; }
.legal-pages a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* language-scoped blocks (legal pages) */
.lang-block { display: contents; }
html[lang="en"] [data-lang="es"], html[lang="es"] [data-lang="en"] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero__lead { grid-column: 1 / span 7; }
  .hero__ctas { grid-column: 8 / span 5; }
  .svc__desc { grid-column: 7 / span 6; }
  .svc__tags { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .road { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background-image: repeating-linear-gradient(180deg, var(--rule-strong) 0 18px, transparent 18px 30px); }
  .road__fill { transform: scaleY(0); transform-origin: top; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 24px; padding-bottom: 40px; }
  .step__dot { margin-bottom: 0; grid-row: span 2; }
  .step p { max-width: 48ch; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols .footer__col:first-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .section-label, .about__label, .ceo__label { grid-column: 1 / -1; margin-bottom: 16px; }
  .section-title, .section-intro, .about__statement, .ceo__body { grid-column: 1 / -1; }
  .about__figure { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; margin-top: 0; }
  .hero__lead, .hero__ctas { grid-column: 1 / -1; }
  .hero__ctas { justify-content: flex-start; margin-top: 24px; }
  .hero__strip ul { grid-template-columns: 1fr 1fr; }
  .hero__strip li:nth-child(3), .hero__strip li:nth-child(4) { display: none; }
  .hero__strip li:last-child { grid-column: span 2; border-left: 0; padding-left: 0; padding-top: 0; }
  .video-toggle { padding-left: 0; }
  .svc { grid-template-columns: 1fr; row-gap: 10px; }
  .svc__num, .svc__title, .svc__desc { grid-column: 1 / -1; }
  .svc__thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 10px; border-radius: 2px; }
  .svc:hover .svc__title { transform: none; }
  .svc__arrow { display: none; }
  .svc-preview { display: none; }
  .board-aside, .board { grid-column: 1 / -1; }
  .board-aside { margin-bottom: 24px; }
  .board .col-bar { display: none; }
  .offices { grid-template-columns: 1fr; }
  .contact__intro, .form { grid-column: 1 / -1; }
  .legal-toc, .legal-body { grid-column: 1 / -1; }
  .legal-toc { margin-bottom: 32px; }
  .legal-toc nav { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__sub { display: none; }
  .back-link { border-bottom: 0; min-height: 44px; min-width: 44px; justify-content: center; }
  .back-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back-link svg { width: 22px; height: 22px; }
  .brand__name { font-size: 20px; }
  .lang-switch button { min-width: 36px; }
  .hero__title .line:nth-child(2) { padding-left: 0.4em; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .form { grid-template-columns: 1fr; }
  .field, .field--half, .consent, .form__actions, .dp-table { grid-column: 1 / -1; }
  .dp-table dl { grid-template-columns: 1fr; gap: 2px; }
  .dp-table dd { margin-bottom: 10px; }
  .office__meta { grid-template-columns: 1fr; }
  .stamp { top: 64px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__cols .footer__col:first-child { grid-column: auto; }
  .board td, .board th { padding-inline: 6px; }
  .flap .c { width: 1.02em; }
  .legal-body .data-card dl { grid-template-columns: 1fr; }
  .legal-body .data-card dd { border-top: 0; padding-top: 0; }
}

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