@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Marca: el rojo solo como acento */
  --red: #cf2027;
  --red-hover: #b51a20;

  /* Acero y cortina, en escala de grises */
  --steel-900: #1b1c1e;
  --steel-800: #26282b;
  --steel-700: #33363a;
  --steel-600: #45484d;
  --steel-500: #5e6268;
  --steel-400: #8e9196;
  --steel-300: #b9bcbf;
  --concrete: #e6e7e5;
  --concrete-2: #d8dad7;
  --paper: #f7f7f5;
  --white: #ffffff;
  --ink: #1d1f21;
  --ink-soft: #4b4f54;
  --on-dark-soft: #c4c7ca;
  --on-dark: #e1e3e5;
  --wa: #1f9d55;

  --logo-red: var(--red);
  --logo-grey: #9a9da1;

  --display: "Archivo", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --housing: 68px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --rhythm: clamp(88px, 11vw, 160px);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;

  /* Escala tipográfica: seis tamaños */
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: clamp(1.625rem, 3.2vw, 2.75rem);
  --fs-title: clamp(2.25rem, 5.6vw, 5.25rem);
  --fs-mega: clamp(3rem, 10vw, 8.5rem);
  --slat: 30px;
  --foot: 58px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--housing) + 16px); scrollbar-color: var(--steel-600) var(--concrete-2); }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
/* Con el texto agrandado (200%), las palabras largas se cortan en vez de desbordar */
h1, h2, h3, p, dd, legend, label { overflow-wrap: break-word; }
h2, h3 { hyphens: auto; }
.service > *, .step > *, .contact-grid > *, .builder > *, .facts > * { min-width: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.housing :focus-visible, .shutter :focus-visible, .process :focus-visible { outline-color: var(--white); }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Cajón de la cortina (barra superior) ---------- */
.housing {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--housing);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  color: var(--white);
  background: var(--steel-800);
  border-bottom: 1px solid var(--steel-900);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.28);
}
.brand { display: flex; align-items: center; }
.brand-mark { width: 112px; height: 33px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 8px 12px; text-decoration: none; font-weight: 500; font-size: var(--fs-small);
  color: var(--on-dark);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* Botón de menú (solo celular y tablet) */
.menu-btn {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--white); cursor: pointer;
  place-items: center; transition: background 0.2s;
}
.menu-btn:hover { background: var(--steel-700); }
.menu-lines { position: relative; display: block; width: 22px; height: 12px; }
.menu-lines span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Escenario: cortina + interior ---------- */
.stage { position: relative; background: var(--steel-900); }
.stage-pin { position: relative; min-height: 100svh; overflow: hidden; }
.js .stage { height: 210svh; }
.js .stage-pin { position: sticky; top: 0; height: 100svh; }

.interior {
  position: absolute; inset: 0;
  padding: calc(var(--housing) + 32px) var(--gutter) 32px;
  display: grid; place-items: center;
  background: radial-gradient(120% 70% at 50% 0%, #f5f6f4 0%, var(--concrete) 55%, var(--concrete-2) 100%);
}
.interior-inner {
  width: min(100%, var(--wrap)); display: grid; gap: clamp(20px, 3vw, 36px);
  opacity: calc(0.35 + var(--p, 0) * 0.65);
  transform: translateY(calc((1 - var(--p, 0)) * 40px));
}
.interior-inner > * { min-width: 0; }
.interior-line {
  font-family: var(--display); font-size: var(--fs-title); line-height: 1; font-weight: 900; font-stretch: 115%;
  letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance;
}
.interior-line strong { color: var(--red); font-weight: 900; }
/* Las fotos van en <picture> (AVIF con respaldo JPG); el envoltorio no cuenta para el diseño */
picture { display: contents; }
/* Primera imagen de cada video: AVIF si el navegador lo entiende, si no JPG */
.interior-video, .shot-scan video { background-position: center; background-size: cover; background-repeat: no-repeat; }
.interior-video {
  background-image: url("assets/video/taller-poster.jpg");
  background-image: image-set(url("assets/video/taller-poster.avif") type("image/avif"), url("assets/video/taller-poster.jpg") type("image/jpeg"));
}
.shot-scan video {
  background-image: url("assets/video/escaneo-poster.jpg");
  background-image: image-set(url("assets/video/escaneo-poster.avif") type("image/avif"), url("assets/video/escaneo-poster.jpg") type("image/jpeg"));
}
/* El recorrido del taller: arranca en gris y se enciende en color cuando se prenden las luces */
.interior-video {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); background-color: var(--steel-800);
  filter: grayscale(1); transition: filter 1.2s var(--ease-out) 0.5s;
}
.interior.lit .interior-video { filter: none; }
@media (min-width: 1081px) {
  .interior-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 5vw, 80px); }
  .interior-line { font-size: clamp(2.25rem, 4.4vw, 4.25rem); }
  .interior-video { width: auto; height: min(calc(100svh - var(--housing) - 180px), 620px); }
}

.shutter {
  position: absolute; inset: 0;
  padding: calc(var(--housing) + 24px) var(--gutter) 0;
  display: flex; flex-direction: column;
  color: var(--white);
  background-color: var(--steel-700);
  /* Luz de la vereda: más sombra bajo el cajón y en los bordes, la chapa algo más clara al centro */
  background-image:
    linear-gradient(180deg, rgb(0 0 0 / 0.42) var(--housing), rgb(0 0 0 / 0) calc(var(--housing) + 22%), rgb(0 0 0 / 0) 72%, rgb(0 0 0 / 0.22)),
    linear-gradient(90deg, rgb(0 0 0 / 0.24), rgb(0 0 0 / 0) 16%, rgb(255 255 255 / 0.03) 50%, rgb(0 0 0 / 0) 84%, rgb(0 0 0 / 0.24));
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
  transform: translate3d(0, calc(var(--p, 0) * -100%), 0);
  will-change: transform;
}
/* Las tablillas pasan por encima de la pintura: el texto queda pintado sobre la cortina.
   Cada tablilla tiene su cara curva (brillo arriba, sombra abajo) y el encastre oscuro con su labio;
   encima, una veta de chapa cepillada */
.shutter::after {
  content: ""; position: absolute; inset: 0 0 var(--foot) 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.75' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.16 0 0 0 -0.055'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg,
      rgb(255 255 255 / 0.17) 0,
      rgb(255 255 255 / 0.04) 1px,
      rgb(255 255 255 / 0.11) calc(var(--slat) * 0.2),
      rgb(255 255 255 / 0) calc(var(--slat) * 0.46),
      rgb(0 0 0 / 0.12) calc(var(--slat) * 0.72),
      rgb(0 0 0 / 0.34) calc(var(--slat) - 5px),
      rgb(0 0 0 / 0.72) calc(var(--slat) - 3px),
      rgb(0 0 0 / 0.5) calc(var(--slat) - 1px),
      rgb(255 255 255 / 0.08) var(--slat));
}
/* Zona inferior: se agarra y se sube arrastrando */
.shutter-grab {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: clamp(120px, 24%, 220px);
  cursor: grab; touch-action: none; display: none;
}
.js .shutter-grab { display: block; }
.shutter-grab.dragging { cursor: grabbing; }

.shutter-paint {
  flex: 1;
  width: min(100%, var(--wrap)); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 6vh;
  --logo-grey: #a4a7ab;
}
.sign { display: grid; justify-items: center; width: min(68%, 500px, 51vh); }
.sign-mark { width: 100%; height: auto; aspect-ratio: 239 / 140; opacity: 0.94; filter: url(#paint); }
/* Bajada en una sola línea: textLength la estira al ancho exacto del isologo */
.sign-name { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 12.4px; fill: #e9eaeb; }
.sign-list {
  margin-top: clamp(28px, 6vh, 64px);
  filter: url(#paint-soft);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  font-size: var(--fs-lead); line-height: 1.2; color: var(--on-dark-soft);
}
.sign-list li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin: 0 18px; vertical-align: 0.2em; }

.shutter-foot {
  height: var(--foot); margin-inline: calc(-1 * var(--gutter));
  display: flex; align-items: center; justify-content: center; gap: clamp(80px, 22vw, 320px);
  background: linear-gradient(180deg, #6c7074 0, var(--steel-600) 3px, var(--steel-800) 60%, var(--steel-900) calc(100% - 5px), #0d0e0f calc(100% - 5px));
  border-top: 2px solid var(--steel-900);
}
.handle { width: 74px; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #e2e3e2, #8a8d90); box-shadow: 0 3px 4px rgb(0 0 0 / 0.4); }
.lock { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #eeeeec, #7d8083 70%); box-shadow: 0 2px 4px rgb(0 0 0 / 0.45); }
.hint {
  display: none; position: relative; z-index: 1; align-self: center; align-items: center; gap: 8px; padding-bottom: 18px;
  font-size: var(--fs-small); font-weight: 600; color: var(--on-dark);
  opacity: calc(1 - var(--p, 0) * 6);
}
.hint svg { transform: rotate(-90deg); animation: nudge 1.8s var(--ease) infinite; }
.js .hint { display: flex; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- Secciones ---------- */
.services, .process, .history, .reviews { padding-block: var(--rhythm); position: relative; }
.title {
  font-family: var(--display); font-weight: 900; font-stretch: 120%;
  font-size: var(--fs-title); line-height: 0.98; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance; max-width: 16ch;
  overflow-wrap: break-word; hyphens: auto;
}
.lede { margin-top: 24px; max-width: 52ch; font-size: var(--fs-lead); color: var(--ink); }

/* Aparición: la pintura se aplica de izquierda a derecha */
.js .reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
.js .reveal.in { clip-path: inset(0 0 0 0); }

/* Servicios */
.svc-body { margin-top: clamp(48px, 7vw, 88px); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; align-items: center; gap: 32px;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--steel-300);
}
.service:last-child { border-bottom: 1px solid var(--steel-300); }
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); background: var(--steel-800);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.service h3 {
  font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.02em;
  transition: color 0.3s;
}
.service p { color: var(--ink); max-width: 46ch; transition: color 0.3s; }
.service-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.service-cta svg { transition: transform 0.4s var(--ease); }
.service-cta::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .service:hover::before { transform: scaleX(1); }
  .service:hover h3 { color: var(--white); }
  .service:hover p { color: var(--on-dark-soft); }
  .service:hover .service-cta { background: var(--red); color: var(--white); border-color: var(--red); }
  .service:hover .service-cta svg { transform: translateX(4px); }
}
.service:focus-within::before { transform: scaleX(1); }
.service:focus-within h3 { color: var(--white); }
.service:focus-within p { color: var(--on-dark-soft); }
.service:focus-within .service-cta { background: var(--red); color: var(--white); border-color: var(--red); }

/* Proceso */
.process { background: var(--steel-800); color: var(--white); }
.process .title { color: var(--white); max-width: 20ch; }
.process .lede { color: var(--on-dark); }
.steps {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
}
.step { display: grid; gap: 12px; align-content: start; }
.step-n {
  font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: var(--fs-title); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px var(--steel-400);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s;
}
.step.on .step-n { color: var(--white); -webkit-text-stroke-color: var(--white); }
.step h3 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: var(--fs-lead); line-height: 1.15; }
.step p { color: var(--on-dark); }
/* Ruta: el autito avanza con el scroll y deja el camino marcado */
.road { --car: 64px; position: relative; margin-top: 48px; height: 32px; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed var(--steel-500); transform: translateY(-50%); }
.road-trail { position: absolute; left: 0; top: 50%; height: 3px; border-radius: 2px; background: var(--red); transform: translateY(-50%); width: calc(var(--s, 0) * (100% - var(--car)) + var(--car) * 0.5); }
.road-car { position: absolute; top: 0; left: calc(var(--s, 0) * (100% - var(--car))); width: var(--car); height: 32px; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.35)); }

/* Historia */
.history-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.history-number {
  display: flex; align-items: flex-start;
  font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 0.78; letter-spacing: -0.05em;
  font-size: clamp(144px, 26vw, 352px); color: var(--steel-800);
  font-variant-numeric: tabular-nums;
}
.history-copy { display: grid; gap: 20px; }
.history-copy p { max-width: 48ch; color: var(--ink); }
.history-copy p:first-of-type { margin-top: 8px; }
/* Galería: el escaneo en grande a la izquierda; a la derecha la cabina apaisada y dos autos en 4:5.
   Las medidas cierran: dos columnas iguales, y 16:10 arriba + 4:5 abajo dan el mismo alto que un 4:5 */
.gallery {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px;
}
.shot { position: relative; min-width: 0; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--steel-800); aspect-ratio: 4 / 5; }
.shot img, .shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-scan { grid-row: span 2; aspect-ratio: auto; }
.shot-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
/* Como en servicios: en gris acero, en color al pasar el mouse */
.shot img, .shot video { filter: grayscale(1); transition: filter 0.6s var(--ease-out); }
@media (hover: hover) { .shot:hover img, .shot:hover video { filter: none; } }
/* En pantallas táctiles no hay mouse: se encienden al pasar por el centro de la pantalla */
.svc-photos img.lit, .shot .lit { filter: none; }
/* Pausa del video, con el mismo lenguaje que los rótulos */
.shot-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
  color: var(--white); background: rgb(14 15 16 / 0.55); cursor: pointer; transition: background 0.2s;
}
.shot-toggle:hover { background: rgb(14 15 16 / 0.8); }
.shot-toggle svg { width: 14px; height: 14px; }
.shot-toggle .i-play { display: none; }
.shot-toggle[aria-pressed="true"] .i-play { display: block; }
.shot-toggle[aria-pressed="true"] .i-pause { display: none; }
.history-copy p, .step p, .lede { text-wrap: pretty; }

/* Opiniones */
.reviews { background: var(--paper); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.reviews-link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px;
  font-weight: 600; text-decoration: none; color: var(--ink); transition: color 0.2s;
}
.reviews-link svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.reviews-link:hover { color: var(--red); }
.reviews-link:hover svg { transform: translateX(4px); }
.review-list { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.review { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding-top: 24px; border-top: 3px solid var(--ink); }
.stars { display: flex; gap: 2px; color: var(--red); }
.stars svg { width: 18px; height: 18px; }
.review blockquote p { font-size: var(--fs-lead); line-height: 1.5; }
.review-by { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }

/* ---------- Contacto: la cortina baja a medias ---------- */
.contact { position: relative; overflow: hidden; background: var(--concrete); padding-bottom: clamp(72px, 9vw, 120px); }
/* Detrás de la cortina queda la boca oscura del taller: el texto se lee aunque la cortina todavía no haya bajado */
.contact::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--shutter-h, 420px); background: var(--steel-900); }
.contact-shutter {
  position: absolute; inset: 0 0 auto; height: var(--shutter-h, 420px);
  background-color: var(--steel-700);
  background-image:
    repeating-linear-gradient(180deg,
      rgb(255 255 255 / 0.09) 0,
      rgb(255 255 255 / 0) calc(var(--slat) * 0.35),
      rgb(0 0 0 / 0) calc(var(--slat) * 0.7),
      rgb(0 0 0 / 0.22) calc(var(--slat) - 4px),
      #1f2124 calc(var(--slat) - 2px),
      rgb(0 0 0 / 0.06) var(--slat));
  border-bottom: 18px solid var(--steel-800);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
}
.js .contact-shutter { transform: translateY(calc((var(--c, 0) - 1) * 100%)); }

.contact-grid {
  position: relative;
  padding-top: clamp(72px, 10vw, 128px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-intro { grid-column: 1 / -1; color: var(--white); }
.contact-title {
  font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: var(--fs-mega); line-height: 0.85; letter-spacing: -0.035em;
  overflow-wrap: break-word; hyphens: auto;
}
.contact-intro p { margin-top: 16px; font-size: var(--fs-lead); color: var(--on-dark); max-width: 40ch; }

.builder {
  display: grid; gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.04), 0 24px 48px rgb(29 31 33 / 0.16);
}
.builder-title { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: var(--fs-lead); line-height: 1.2; }
.service-tag {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: var(--radius);
  background: var(--concrete); color: var(--ink); font-size: var(--fs-small);
}
.service-tag[hidden] { display: none; }
.service-tag strong { font-weight: 600; }
.service-tag-x {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.service-tag-x svg { width: 18px; height: 18px; }
.service-tag-x:hover { background: var(--concrete-2); color: var(--red); }

.field { display: grid; gap: 8px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; width: 100%; min-width: 0; font-weight: 400; color: var(--ink);
  padding: 12px 16px; border: 1.5px solid var(--steel-300); border-radius: 12px; background: var(--white);
  caret-color: var(--red); resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b6f73; }
.field input:hover, .field textarea:hover { border-color: var(--steel-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel-800); box-shadow: 0 0 0 4px rgb(38 40 43 / 0.12); }

.send {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 24px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: inherit; font-weight: 600; font-size: var(--fs-body);
  color: var(--white); background: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s;
}
.send svg { width: 22px; height: 22px; }
@media (hover: hover) { .send:hover { background: var(--red); } }

.contact-side { display: grid; gap: 40px; padding-top: 112px; }
.facts { display: grid; gap: 28px; }
.facts dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.facts dt svg { width: 20px; height: 20px; color: var(--red); }
.facts dd { margin-top: 6px; font-family: var(--display); font-size: var(--fs-lead); font-weight: 800; font-stretch: 108%; line-height: 1.25; }
.facts a { text-decoration: none; transition: color 0.2s; }
.facts a:hover { color: var(--red); }


/* ---------- WhatsApp flotante ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.28);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.float-wa svg { width: 32px; height: 32px; }
.float-wa:hover { transform: scale(1.07); }
.js .float-wa { opacity: 0; transform: translateY(24px) scale(0.8); pointer-events: none; }
.js .float-wa.show { opacity: 1; transform: none; pointer-events: auto; }
.js .float-wa.show:hover { transform: scale(1.07); }


/* ---------- Las luces del taller se encienden al abrir la cortina ---------- */
.interior { isolation: isolate; }
.lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(14 15 16 / 0.62); }
.interior.lit .lights { animation: lights-on 1400ms linear forwards; }
@keyframes lights-on {
  0% { opacity: 1; }
  15% { opacity: 0.2; }
  30% { opacity: 0.8; }
  50% { opacity: 0.1; }
  62% { opacity: 0.45; }
  100% { opacity: 0; }
}

/* Las tablillas se juntan al entrar en el cajón */
.shutter-roll {
  position: absolute; left: 0; right: 0; top: var(--housing); z-index: 2; pointer-events: none;
  height: calc(var(--roll, 0) * 30px);
  background-color: var(--steel-800);
  background-image: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.12) 0 1px, rgb(0 0 0 / 0) 1px 3px, rgb(0 0 0 / 0.55) 3px 5px);
}


/* ---------- Las fotos se abren como una persiana ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .gallery .shot { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out) var(--open-delay, 0ms), transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
  .js .gallery .shot.in { clip-path: inset(0); }
  /* terminada la persiana se saca el recorte, así la sombra del hover no queda cortada */
  .js .gallery .shot.open { clip-path: none; }
  .js .gallery .shot:nth-child(2) { --open-delay: 90ms; }
  .js .gallery .shot:nth-child(3) { --open-delay: 180ms; }
  .js .gallery .shot:nth-child(4) { --open-delay: 270ms; }
}

/* Al pasar el mouse, la foto crece por encima de las demás */
.gallery .shot { z-index: 0; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery .shot:hover { z-index: 2; transform: scale(1.18); box-shadow: 0 24px 48px rgb(29 31 33 / 0.28); }
  /* el escaneo ya es grande: crece menos */
  .gallery .shot-scan:hover { transform: scale(1.06); }
  .gallery .shot-scan { transform-origin: left center; }
  .gallery .shot-wide { transform-origin: right top; }
  .gallery .shot:nth-child(3) { transform-origin: center bottom; }
  .gallery .shot:nth-child(4) { transform-origin: right bottom; }
}

/* ---------- Odómetro: +40 ---------- */
.history-number { align-items: center; gap: 0.05em; line-height: 1; letter-spacing: 0; }
.odo-plus { font-size: 0.45em; color: var(--red); align-self: flex-start; margin-top: 0.08em; }
.odo-win {
  display: inline-block; height: 1em; overflow: hidden;
  padding-inline: 0.04em; border-radius: var(--radius);
  background: var(--steel-800); color: var(--white);
}
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -1em)); }
.odo-strip > span { height: 1em; line-height: 1; display: grid; place-items: center; }
/* Los dígitos se dibujan con CSS: para lectores de pantalla el número está en el texto de la sección */
.odo-strip > span::before { content: attr(data-n); }

/* ---------- Cómo trabajamos: el auto recorre los pasos ---------- */
.route { position: relative; }
.step { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.road-trail { width: calc(var(--x, 0px) + var(--car) * 0.5); }
.road-car { left: var(--x, 0px); }
@media (prefers-reduced-motion: no-preference) {
  .js .step:not(.on) { opacity: 0.4; transform: translateY(12px); }
}
@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .js .process { height: 200svh; padding-block: 0; }
  .js .process-pin {
    position: sticky; top: var(--housing);
    height: calc(100svh - var(--housing));
    display: flex; align-items: center;
  }
  .js .process-pin > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
  .js .process .steps { margin-top: clamp(40px, 6vh, 72px); }
}

/* ---------- Entradas por sección ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-stagger] > *:not(.reveal) {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-stagger].in > *:not(.reveal) { opacity: 1; transform: none; }
}

/* ---------- Respuesta al tocar ---------- */
.service-cta, .send, .menu-btn, .service-tag-x, .nav a { transition-property: background, color, border-color, transform; }
.service-cta:active, .send:active, .menu-btn:active, .service-tag-x:active { transform: scale(0.97); transition-duration: var(--t-press); }

/* ---------- Fotos de cada servicio ---------- */
/* Celular y tablet: cada servicio lleva su tira de fotos, que se desliza de costado */
.svc-photos {
  --bleed: calc(var(--gutter) + clamp(16px, 2vw, 32px));
  position: relative; z-index: 1; grid-column: 1 / -1;
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); scrollbar-width: none;
  margin: 8px calc(-1 * var(--bleed)) 0; padding-inline: var(--bleed);
}
.svc-photos::-webkit-scrollbar { display: none; }
/* En reposo las fotos van en gris acero, como la cortina; al pasar el mouse se encienden en color */
.svc-photos img, .svc-frame img { filter: grayscale(1); transition: filter 0.6s var(--ease-out); }
@media (hover: hover) {
  .svc-photos img:hover, .svc-frame:hover img { filter: none; }
}
.svc-photos img {
  flex: 0 0 auto; width: min(72%, 320px); height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--concrete-2); scroll-snap-align: start;
}
.svc-frame { display: none; }

/* Compu: una sola foto grande al costado de la lista, que muestra el servicio que estás mirando */
@media (min-width: 1081px) {
  .svc-body { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 34fr); column-gap: 4%; align-items: start; }
  .svc-photos { display: none; }
  .service { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; transition: opacity 0.2s ease; }
  .service p { grid-column: 1; grid-row: 2; }
  .service-cta { grid-row: 1 / span 2; grid-column: 2; }
  .svc-frame {
    display: block; position: relative; align-self: stretch; min-height: 420px;
    overflow: hidden; border-radius: var(--radius); background: var(--steel-800);
  }
  .svc-frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: inset(0 0 100% 0);
    transition: filter 0.6s var(--ease-out);
  }
  html:not(.js) .svc-frame picture:first-child img { clip-path: none; }
  /* Cada foto nueva baja como una persiana sobre la anterior y se acerca despacio */
  .svc-frame img.on { clip-path: inset(0); transition: clip-path 900ms var(--ease-in-out), filter 0.6s var(--ease-out); animation: svc-drift 7s linear both; }
  .svc-frame img.front { z-index: 1; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1081px) {
  .service-list:has(.service:hover, .service:focus-within) .service:not(:hover, :focus-within) { opacity: 0.4; }
}
@keyframes svc-drift { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------- WhatsApp flotante: etiqueta al pasar ---------- */
.float-wa-tip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 600; color: var(--white); background: var(--ink);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .float-wa:hover .float-wa-tip { opacity: 1; transform: translate(0, -50%); }
}
.float-wa:focus-visible .float-wa-tip { opacity: 1; transform: translate(0, -50%); }
.float-wa:active { transform: scale(0.94); }

/* ---------- Pie ---------- */
.foot { background: var(--concrete); padding-bottom: 32px; }
.foot-row {
  padding-top: 24px; border-top: 1px solid var(--steel-300);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-small); color: var(--ink-soft);
}
.foot-row address { font-style: normal; }
.foot-mark { width: 96px; height: 28px; --logo-grey: var(--steel-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .js .menu-btn { display: grid; }
  .js .nav {
    position: fixed; inset: var(--housing) 0 auto; z-index: 49;
    flex-direction: column; gap: 4px; margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--steel-800); border-bottom: 1px solid var(--steel-900);
    box-shadow: 0 16px 28px rgb(0 0 0 / 0.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .js .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
  .js .nav a { padding: 14px 16px; border-radius: 12px; font-size: var(--fs-lead); }
  .js .nav a::after { display: none; }
  .js .nav a:hover { background: var(--steel-700); }
  html:not(.js) .nav { overflow-x: auto; }
  .service { grid-template-columns: minmax(0, 1fr) auto; }
  .service p { grid-column: 1; grid-row: 2; }
  .service-cta { grid-row: 1 / span 2; grid-column: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --housing: 60px; --slat: 24px; }
  .brand-mark { width: 96px; height: 28px; }
  .sign-list { flex-direction: column; gap: 6px; }
  .sign-list li + li::before { display: none; }
  :root { --foot: 48px; }
  .interior-video { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--housing) - 230px); }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service-cta { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { grid-template-columns: auto 1fr; column-gap: 20px; }
  .step-n { grid-row: span 2; font-size: 3rem; min-width: 1.2ch; }
  /* En celular la ruta es vertical, a la izquierda de los pasos, y el auto baja */
  .route { padding-left: 52px; }
  .road { position: absolute; left: 0; top: 0; bottom: 0; width: 32px; height: auto; margin: 0; }
  .road::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed var(--steel-500); transform: translateX(-50%); }
  .road-trail { left: 50%; top: 0; width: 3px; height: calc(var(--y, 0px) + var(--car) * 0.5); transform: translateX(-50%); }
  .road-car { left: 50%; top: var(--y, 0px); width: var(--car); transform: translateX(-50%) rotate(90deg); transform-origin: 50% 50%; margin-top: calc((var(--car) - 32px) / 2); }
  .road { --car: 52px; }
  .history-grid { grid-template-columns: 1fr; }
  .history-number { font-size: clamp(96px, 30vw, 160px); }
  .history-grid > * { min-width: 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shot-scan { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .review-list { grid-template-columns: 1fr; }
  .contact { padding-bottom: 88px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { padding-top: 8px; }
  .interior-line { font-size: 1.625rem; }
  .float-wa { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .stage { height: auto; }
  .js .stage-pin { position: relative; height: auto; min-height: 100svh; }
  .shutter { position: relative; min-height: 100svh; transform: none; }
  .interior { position: relative; min-height: 70svh; }
  .interior-inner { opacity: 1; transform: none; }
  .js .hint { display: none; }
  .js .reveal { clip-path: none; transition: none; }
  .js .contact-shutter { transform: none; transition: none; }
  .lights, .shutter-roll, .shutter-grab { display: none !important; }
  .svc-frame img.on { animation: none; }
  .js .contact-shutter { transform: none; }
  /* Se mantienen los cambios de color y opacidad; se quita el desplazamiento */
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity !important; }
}
