/* Baryserv · Cisternas · v3 «corporativa»
   Fondo blanco, tipografía fina, líneas de pelo y mucho aire (referencias de la dirección:
   Liebherr, Sany Iberia, ANEFHOP). Navy de marca para titulares, rojo solo en la acción.
   Una familia: Archivo variable. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --navy: oklch(29.8% 0.119 274);
  --navy-ink: oklch(22% 0.09 274);
  --red: oklch(57.5% 0.233 28);
  --red-hover: oklch(51% 0.215 28);

  --ground: oklch(99.4% 0.002 274);
  --paper: oklch(97.1% 0.006 274);
  --paper-2: oklch(94.6% 0.009 274);
  --line: oklch(90.5% 0.01 274);
  --line-strong: oklch(82% 0.014 274);
  --ink: oklch(23% 0.025 274);
  --ink-2: oklch(43% 0.024 274);
  --ink-3: oklch(54% 0.02 274);
  --amber-bg: oklch(95% 0.05 85);
  --amber-ink: oklch(45% 0.1 70);

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: clamp(1.0625rem, 1.02rem + 0.18vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);
  --fs-h3: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.1vw, 5.5rem);

  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 7vw + 40px, 168px);
  --r: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 500; text-wrap: balance; }
strong { font-weight: 600; }
::selection { background: var(--navy); color: var(--ground); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--ground); padding: 10px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); }
.sec--tight { padding-block: clamp(56px, 5vw, 88px); }

.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.035em; font-weight: 450; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em; font-weight: 460; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- Botones y enlaces ---------- */
.btn {
  --bg: var(--red); --fg: var(--ground); --bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 600 1rem/1 var(--font); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: var(--red-hover); --bd: var(--red-hover); }
.btn:active { transform: scale(0.98); }
.btn--line { --bg: transparent; --fg: var(--navy); --bd: var(--line-strong); }
.btn--line:hover { --bg: var(--navy); --fg: var(--ground); --bd: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn__arrow { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow, .link:hover .btn__arrow { transform: translateX(4px); }

.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color .3s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Cabecera ---------- */
/* Fila de marcas (Baryserv a la izquierda, CIFA · Zoomlion a la derecha) y debajo la barra de menú, que es la que queda fija. */
.brandbar { background: var(--ground); }
.brandbar .wrap { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { flex: none; display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 196px; height: auto; }
.brand__sub { color: var(--ink-2); font-size: var(--fs-sm); padding-left: 16px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.brandbar__info { margin-left: auto; display: flex; gap: 24px; font-size: var(--fs-sm); color: var(--ink-2); }
.brandbar__info a { text-decoration: none; }
.brandbar__info a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.brandbar__partner { flex: none; }
.brandbar__partner img { width: 184px; height: auto; border-radius: 2px; }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--ground) 96%, transparent); border-block: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px oklch(22% 0.09 274 / 0.18); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: var(--hdr); }
.nav ul { list-style: none; margin: 0 0 0 -12px; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 0.9688rem; color: var(--ink); border-radius: var(--r); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header__cta { flex: none; margin-left: auto; }
.nav-toggle { display: none; width: 100%; min-height: var(--hdr); padding: 0; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: space-between; gap: 16px; font: 500 1rem/1 var(--font); color: var(--navy); }
.nav-toggle__icon { position: relative; width: 22px; height: 14px; flex: none; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--navy); transition: transform .35s var(--ease); }
.nav-toggle__icon::before { top: 3px; }
.nav-toggle__icon::after { bottom: 3px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1180px) {
  .brand__sub { display: none; }
  .nav a { padding: 10px 9px; font-size: 0.9375rem; }
}
@media (max-width: 1020px) {
  .brandbar__info { display: none; }
  .brandbar__partner { margin-left: auto; }
  .site-header { background: var(--paper); }
  .site-header .wrap { gap: 0; }
  .js .nav-toggle { display: flex; }
  .js .nav { position: fixed; inset: var(--nav-top, calc(var(--hdr) + 1px)) 0 0 0; background: var(--ground); padding: 8px var(--gut) 24px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav ul { flex-direction: column; gap: 0; margin: 0; }
  .js .nav a { font-size: 1.375rem; font-weight: 450; padding: 18px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .header__cta { display: none; }
}

/* ---------- Portada ---------- */
.hero { padding-block: clamp(40px, 5vw, 72px) 0; }
.crumbs { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: clamp(28px, 4vw, 56px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__copy { padding-bottom: clamp(8px, 2vw, 32px); }
.hero__copy .h1 { margin-bottom: 28px; }
.hero__copy .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; margin-right: calc(var(--gut) * -1); }
.hero__media picture { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { margin-top: 12px; padding-left: 9%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); color: var(--navy); font-weight: 450; letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Cabecera de sección ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .muted { max-width: 44ch; }

/* ---------- Necesidades (rejilla tipo gama de productos) ---------- */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.need { position: relative; background: var(--ground); display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 100%; transition: background-color .3s var(--ease); }
.need:hover { background: var(--paper); }
.need__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.need__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.need:hover .need__media img { transform: scale(1.04); }
.need__body { padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.need__body p { color: var(--ink-2); }
.need__go { margin-top: auto; padding-top: 14px; color: var(--navy); font-weight: 600; font-size: 0.9375rem; display: inline-flex; gap: 10px; align-items: center; }
.need:hover .btn__arrow { transform: translateX(4px); }
.need--big { grid-row: span 2; }
.need--big .need__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.need--text { background: var(--paper); }
.need--text:hover { background: var(--paper-2); }
.need--call { background: var(--navy); color: var(--ground); }
.need--call:hover { background: var(--navy-ink); }
.need--call .h3 { color: var(--ground); }
.need--call p { color: oklch(86% 0.03 274); }
.need--call .need__go { color: var(--ground); }
.need--call { grid-column: 1 / -1; }
.need--call .need__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 28px; }
.need--call .need__body p { flex: 1 1 24ch; }
.need--call .need__go { margin: 0 0 0 auto; padding: 0; }

/* ---------- Repuestos ---------- */
.parts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.parts__intro { position: sticky; top: calc(var(--hdr) + 40px); }
.parts__intro .h2 { margin-bottom: 24px; }
.parts__intro .lead { margin-bottom: 32px; }
.parts__photo { margin-top: 40px; max-width: 360px; }
.parts__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 4px; text-decoration: none; transition: padding .35s var(--ease), background-color .3s; }
.plist a:hover { padding-inline: 16px 8px; background: var(--paper); }
.plist__name { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem); color: var(--navy); letter-spacing: -0.012em; font-weight: 450; }
.plist__go { font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.plist a:hover .plist__go { color: var(--red); }
.plist a:hover .btn__arrow { transform: translateX(4px); }
.plist__more { padding: 20px 4px; color: var(--ink-2); }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 32px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps .h3 { margin-bottom: 12px; font-weight: 500; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); letter-spacing: -0.015em; line-height: 1.2; }
.steps p { color: var(--ink-2); max-width: 32ch; }

/* ---------- Oficio ---------- */
.craft { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.craft__media { position: relative; padding-bottom: 18%; }
.craft__media .main { width: 84%; aspect-ratio: 4 / 3; object-fit: cover; }
.craft__media .inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 16 / 10; object-fit: cover; border: 8px solid var(--ground); box-sizing: content-box; }
.craft__media figcaption { margin-top: 12px; width: 50%; }
.craft__copy .h2 { margin-bottom: 24px; }
.craft__copy .lead { margin-bottom: 36px; max-width: 42ch; }
.craft__facts { margin: 0 0 36px; border-top: 1px solid var(--line); }
.craft__facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.craft__facts dt { color: var(--ink-3); font-size: var(--fs-sm); padding-top: 2px; }
.craft__facts dd { margin: 0; color: var(--ink); }
.pending { display: inline-block; background: var(--amber-bg); color: var(--amber-ink); padding: 2px 8px; border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- Línea discreta ---------- */
.newline { border-block: 1px solid var(--line); }
.newline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 112px; flex-wrap: wrap; padding-block: 28px; }
.newline p { font-size: var(--fs-lead); color: var(--navy); letter-spacing: -0.01em; max-width: 46ch; line-height: 1.4; }

/* ---------- Preguntas ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em; font-weight: 460; position: sticky; top: calc(var(--hdr) + 40px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 24px; align-items: center; padding: 26px 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; width: 18px; height: 18px; justify-self: end; background:
  linear-gradient(var(--navy), var(--navy)) center / 18px 1.5px no-repeat,
  linear-gradient(var(--navy), var(--navy)) center / 1.5px 18px no-repeat; transition: transform .35s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--red); }
.faq__a { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 68ch; }
.faq__a a { color: var(--navy); }
@supports selector(::details-content) {
  .faq__list details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq__list details[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) { .faq__list details::details-content { transition: none; } }
}
:root { interpolate-size: allow-keywords; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact__info .h2 { margin-bottom: 20px; }
.contact__info .sec__sub { color: var(--ink-2); margin-bottom: 40px; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; }
.people { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.person__name { color: var(--navy); font-weight: 600; }
.person__tel { justify-self: end; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.person__tel:hover, .person__mail:hover { color: var(--red); }
.person__mail { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--fs-sm); text-decoration: none; }
.office { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.office dt { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 6px; }
.office dd { margin: 0; line-height: 1.55; }
.office a { text-decoration: none; }
.office a:hover { color: var(--red); }

.contact__form { background: var(--paper); padding: clamp(28px, 3.4vw, 52px); border-radius: var(--r); }
.form__title, .form-success__title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 460; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 8px; }
.form__intro { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 28px; max-width: 60ch; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 13px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E2267' stroke-width='1.6'/%3E%3C/svg%3E"); background-position: calc(100% - 16px) 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px oklch(29.8% 0.119 274 / 0.14); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__hint { font-size: var(--fs-sm); color: var(--ink-3); }
.field__error { font-size: var(--fs-sm); color: var(--red-hover); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); padding: 0; }
.consent label { font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.consent a { color: var(--navy); }
.form__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.form__note { color: var(--ink-2); font-size: var(--fs-sm); }
.form__note a { color: var(--navy); font-weight: 600; }
.form__status { color: var(--red-hover); font-weight: 600; margin-top: 12px; font-size: var(--fs-sm); }
.form__status:empty { display: none; }
.form-success:focus { outline: none; }
.form-success p { color: var(--ink-2); margin-bottom: 20px; }
.success-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.success-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.success-list a { font-weight: 600; color: var(--navy); text-decoration: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); padding: clamp(64px, 6vw, 104px) 0 calc(32px + env(safe-area-inset-bottom)); margin-top: 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.5fr)) minmax(0, 2fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-strong); }
.footer__brand img { width: 196px; margin-bottom: 24px; }
.footer__brand p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; max-width: 34ch; }
.footer__brand a { text-decoration: none; }
.footer__col h2 { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--ink); font-size: 0.9688rem; }
.footer__col a:hover { color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: var(--fs-sm); color: var(--ink-3); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--navy); }

/* ---------- Barra fija en el móvil ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ground); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .callbar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: 72px; }
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__media picture { animation: shutter 1.25s var(--ease) both .1s; }
  .js .hero__media img { animation: settle 1.6s var(--ease) both .1s; }
  .js .hero [data-anim] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
}
@keyframes shutter { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Adaptación ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { margin-left: 0; }
  .hero__copy .lead { max-width: 46ch; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need--big { grid-column: 1 / -1; grid-row: auto; }
  .need--big .need__media { aspect-ratio: 16 / 9; min-height: 0; }
  .parts, .craft, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .parts__intro, .faq__title { position: static; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --hdr: 52px; }
  .brandbar .wrap { min-height: 68px; gap: 16px; }
  .brand img { width: 144px; }
  .brandbar__partner img { width: 150px; }
  .hero__media { margin-right: calc(var(--gut) * -1); }
  .hero__media picture { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  @keyframes shutter { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); } }
  .hero__actions .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .needs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .craft__facts > div { grid-template-columns: 1fr; gap: 2px; }
  .form__grid { grid-template-columns: 1fr; }
  .office { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Subpáginas */
.h1--sub { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4rem); line-height: 1.04; }
.hero--sub { padding-bottom: clamp(56px, 5vw, 96px); }
.hero--sub .hero__copy .lead { max-width: 40ch; }
.hero__hours { margin-top: 20px; }
.sec-head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; margin-bottom: 0; }
.sub-body > * + * { margin-top: 20px; }
.sub-body .lead { max-width: 44ch; color: var(--navy); }
.sub-body p:not(.lead):not(.small) { color: var(--ink-2); max-width: 60ch; }
.sub-body .link { margin-top: 28px; }
.plist--static .plist__row { display: block; padding: 24px 4px; }
.plist__more .link { font-weight: 600; }
.needs--sub .need--text { min-height: 0; }
.needs--sub .need--big .need__body { flex: none; }
.needs--sub .need--big .need__media picture, .needs--sub .need--big .need__media img { height: 100%; }
.sub-p { margin-bottom: 32px; max-width: 52ch; }
.sub-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.sub-cta { background: var(--navy); color: var(--ground); }
.sub-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 64px; padding-block: clamp(56px, 5vw, 88px); }
.sub-cta .h2 { color: var(--ground); margin-bottom: 12px; }
.sub-cta p { color: var(--ground); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; }
.sub-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.sub-cta__tel { color: var(--ground); text-decoration: none; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; }
.sub-cta__tel:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 1020px) {
  .sec-head--split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .sub-cta__actions { width: 100%; }
  .sub-cta__actions .btn { flex: 1 1 auto; }
}

/* Imágenes que llenan su marco */
.need__media picture, .hero__media picture { height: 100%; }
.need__media picture img { height: 100%; }

/* ---------- Portada del hub (estructura de la dirección: Cisternas, Servicios, Reparación, Repuestos) ---------- */
.hero__grid--hub { grid-template-areas: "copy media" "actions media"; grid-template-rows: 1fr auto; row-gap: 0; align-items: end; }
.hero__grid--hub .hero__copy { grid-area: copy; padding-bottom: 0; }
.hero__grid--hub .hero__copy .lead { margin-bottom: 36px; max-width: 30ch; }
.hero__grid--hub .hero__media { grid-area: media; }
.hero__grid--hub .hero__actions { grid-area: actions; align-self: start; padding-bottom: clamp(36px, 3.4vw, 56px); }
.hero--hub .h1 { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.5rem); }

.craft--flip .craft__copy { order: -1; }
.craft__text { color: var(--ink-2); max-width: 54ch; margin: -12px 0 32px; }
.aside-line { margin-top: clamp(48px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; color: var(--navy); font-size: var(--fs-lead); letter-spacing: -0.01em; line-height: 1.4; }

.repair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.repair__media { position: sticky; top: calc(var(--hdr) + 32px); }
.repair__media picture { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); height: auto; }
.repair__media img { width: 100%; height: 100%; object-fit: cover; }
.repair__media figcaption { margin-top: 12px; }
.repair__copy .h2 { margin-bottom: 20px; }
.repair__copy .lead { max-width: 40ch; }
.repair__blocks { margin: 40px 0; border-top: 1px solid var(--line-strong); }
.repair__blocks > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.repair__blocks dt { color: var(--navy); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.3; }
.repair__blocks dd { margin: 0; color: var(--ink-2); }
.repair__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.repair__list a { display: inline-block; padding: 4px 0; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .3s var(--ease), color .2s; }
.repair__list a:hover { color: var(--navy); text-decoration-color: currentColor; }
.repair__actions, .parts__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.parts--hub { grid-template-areas: "intro list" "actions list" "photo list"; grid-template-rows: auto auto 1fr; row-gap: 0; }
.parts--hub .parts__photo { grid-area: photo; align-self: start; margin-top: 56px; max-width: 480px; }
.parts__photo { margin-inline: 0; margin-bottom: 0; }
.parts__photo figcaption { margin-top: 12px; }
.parts--hub .parts__intro { grid-area: intro; position: static; }
.parts--hub .parts__list { grid-area: list; }
.parts--hub .parts__actions { grid-area: actions; align-self: start; }

@media (max-width: 1020px) {
  .hero__grid--hub { grid-template-areas: "copy" "media" "actions"; grid-template-rows: auto; row-gap: 32px; }
  .hero__grid--hub .hero__copy .lead { margin-bottom: 0; max-width: 46ch; }
  .hero__grid--hub .hero__actions { padding-bottom: 0; }
  .hero--hub { padding-bottom: clamp(16px, 3vw, 32px); }
  .craft--flip .craft__copy { order: 0; }
  .repair { grid-template-columns: 1fr; }
  .repair__media { position: static; }
  .repair__media picture { aspect-ratio: 16 / 10; }
  .parts--hub { grid-template-areas: "intro" "photo" "list" "actions"; grid-template-rows: auto; row-gap: 32px; }
  .parts--hub .parts__photo { margin-top: 0; max-width: none; }
}
@media (max-width: 760px) {
  .hero--hub .hero__copy, .hero--hub .crumbs { text-align: center; }
  .hero--hub .crumbs ol { justify-content: center; }
  .hero--hub .hero__copy .lead { margin-inline: auto; }
  .hero__grid--hub .hero__media { margin-left: calc(var(--gut) * -1); }
  .hero__grid--hub .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__grid--hub .hero__actions .btn { padding: 0 12px; min-height: 52px; font-size: 0.9375rem; }
  .hero__grid--hub .hero__actions .btn__arrow { display: none; }
  .repair__blocks > div { grid-template-columns: 1fr; }
  .repair__actions, .parts__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .parts__actions .link, .repair__actions .link { align-self: center; }
}
