/* www.tscindustrial.com — TSC Instalaciones Industriales. Un solo archivo de estilos.
   Misma familia que rentas.tscindustrial.com (ámbar de TSC, Barlow Condensed como el DIN del logo),
   con lenguaje de plano técnico: retícula, cotas y rótulos en monoespaciada.
   Todo el movimiento lo pone assets/js/movimiento.js; aquí solo están los estados. Con "reducir
   movimiento" del sistema (html.quieto) todo queda en su estado final. */

:root {
  --fondo: #0a0b0d;
  --fondo-2: #0f1114;
  --superficie: #14171b;
  --superficie-2: #1a1e23;
  --linea: rgba(255, 255, 255, .08);
  --linea-fuerte: rgba(255, 255, 255, .16);
  --texto: #f2eee7;
  --tenue: #9a958c;
  --tenue-2: #6e6a63;
  --ambar: #f4ad24;
  --ambar-claro: #ffc451;
  --ambar-suave: rgba(244, 173, 36, .12);
  --ambar-brillo: rgba(244, 173, 36, .35);
  --aire: #9cd2ff;
  --agua: #3f8cff;
  --concreto: #ebe7df;
  --concreto-2: #e1dcd2;
  --concreto-texto: #16130e;
  --concreto-tenue: #625c52;
  --verde-wa: #25d366;
  --radio: 18px;
  --radio-chico: 12px;
  --ancho: 1280px;
  --margen: clamp(16px, 4vw, 44px);
  --titulos: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --cuerpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --encabezado: 72px;
  --suave: cubic-bezier(.22, .61, .36, 1);
  --resorte: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: dark;
}

/* Cambio entre páginas sin parpadeo (navegadores que lo soportan). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.encabezado { view-transition-name: encabezado; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--encabezado) + 16px); }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: var(--cuerpo); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Grano de película, apenas visible: le quita lo "plano" a los fondos oscuros. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  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");
}
img, svg { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ambar); color: #17130b; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ambar); color: #17130b; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.salto:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }

h1, h2, h3 { font-family: var(--titulos); font-weight: 700; line-height: .95; letter-spacing: .004em; margin: 0; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(42px, 6vw, 84px); }
h3 { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.04; }
p { margin: 0; }
.ante {
  display: inline-flex; align-items: center; gap: 12px; color: var(--ambar);
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 20px;
}
.ante::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { color: var(--tenue); font-size: clamp(17px, 1.45vw, 20px); max-width: 60ch; text-wrap: pretty; }
.seccion { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.seccion-cabeza { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 900px; }
.mono { font-family: var(--mono); }

/* ── Botones ─────────────────────────────────────────────────────────────────── */
.boton {
  --b-fondo: var(--ambar); --b-texto: #17130b;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-fondo); color: var(--b-texto);
  font-family: var(--titulos); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 34px -10px var(--ambar-brillo), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--resorte), box-shadow .3s, background .3s;
}
/* Brillo que cruza el botón al pasar el mouse. */
.boton::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--suave);
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px var(--ambar-brillo), inset 0 1px 0 rgba(255, 255, 255, .35); }
.boton:hover::after { transform: translateX(120%); }
.boton:active { transform: translateY(0) scale(.98); }
.boton svg { width: 21px; height: 21px; flex: none; }
.boton-sec { --b-fondo: rgba(255, 255, 255, .04); --b-texto: var(--texto); box-shadow: inset 0 0 0 1px var(--linea-fuerte); backdrop-filter: blur(10px); }
.boton-sec:hover { --b-fondo: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.boton-sec::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); }
.boton-chico { min-height: 44px; padding: 0 18px; font-size: 15.5px; }
.boton-chico svg { width: 18px; height: 18px; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.liga { color: var(--ambar); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.liga:hover { color: var(--ambar-claro); }

/* ── Encabezado ──────────────────────────────────────────────────────────────── */
.encabezado {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--encabezado);
  display: flex; align-items: center; transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.encabezado.solido { background: rgba(10, 11, 13, .9); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--linea); }
.encabezado .contenedor { display: flex; align-items: center; gap: 28px; }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--tenue); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.menu a:hover { color: var(--texto); background: rgba(255, 255, 255, .06); }
.enc-acciones { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu + .enc-acciones { margin-left: 8px; }
.enc-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tenue); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.enc-tel:hover { color: var(--texto); background: rgba(255, 255, 255, .06); }
.enc-tel svg { width: 17px; height: 17px; }
/* Botón de idioma (EN / ES): lleva a la misma página en el otro idioma. */
.enc-idioma { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--tenue); font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; box-shadow: inset 0 0 0 1px var(--linea-fuerte); transition: color .2s, background .2s, box-shadow .2s; }
.enc-idioma:hover { color: var(--texto); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.corto { display: none; }
@media (max-width: 1060px) { .menu { display: none; } }
@media (max-width: 720px) { .enc-tel .largo { display: none; } }
@media (max-width: 520px) {
  :root { --encabezado: 64px; }
  .logo img { height: 34px; }
  .largo { display: none; } .corto { display: inline; }
  .enc-tel { padding: 8px; }
}

/* ── Portada ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--encabezado) + 40px) 0 72px; overflow: hidden; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Retícula de plano: líneas finas cada 32 px y gruesas cada 160 px, que se desvanecen a los lados. */
.hero-fondo::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 62% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 45%, #000 30%, transparent 78%);
}
.hero-fondo::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 173, 36, .16), rgba(244, 173, 36, .05) 40%, transparent 68%);
  filter: blur(10px); animation: respira 9s ease-in-out infinite alternate;
}
.servicio-neumaticas .hero-fondo::after { background: radial-gradient(circle, rgba(120, 190, 255, .14), rgba(120, 190, 255, .04) 40%, transparent 68%); }
@keyframes respira { to { transform: translate(-60px, 40px) scale(1.08); opacity: .8; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(50px, 6.6vw, 104px); }
.hero h1 .h1-zona { display: block; margin-top: 16px; font-size: .36em; line-height: 1.1; color: var(--tenue); letter-spacing: .03em; }
.hero .lead { margin: 26px 0 34px; }
.sellos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 34px 0 0; }
.sellos li {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tenue);
  padding: 7px 12px 7px 26px; border-radius: 999px; border: 1px solid var(--linea); background: rgba(255, 255, 255, .02); position: relative;
}
.sellos li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 10px var(--ambar); }
.hero-lienzo { position: relative; }
.lienzo { margin: 0; position: relative; width: 100%; aspect-ratio: 560 / 620; }
.lienzo svg { width: 100%; height: 100%; overflow: visible; }
.desliza-aviso {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue-2);
}
.desliza-aviso i { width: 1px; height: 38px; background: linear-gradient(var(--ambar), transparent); animation: gota 2.2s var(--suave) infinite; transform-origin: top; }
@keyframes gota { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--encabezado) + 28px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lienzo { max-width: 520px; width: 100%; margin: 0 auto; }
  .desliza-aviso { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(44px, 12.4vw, 60px); }
  .hero .botones .boton { width: 100%; }
}

/* Rótulos y trazos de las animaciones (SVG armado por JS). */
.dib { fill: none; stroke: rgba(242, 238, 231, .5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dib-tenue { stroke: rgba(242, 238, 231, .18); stroke-width: 1; }
.dib-energia { stroke: var(--ambar); filter: drop-shadow(0 0 6px rgba(244, 173, 36, .7)); }
.rotulo { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; fill: var(--tenue); text-transform: uppercase; }
.rotulo-vivo { fill: var(--ambar); }
.pulso { fill: #ffd27a; filter: drop-shadow(0 0 5px #f4ad24) drop-shadow(0 0 12px rgba(244, 173, 36, .8)); }

/* ── Franja de clientes ──────────────────────────────────────────────────────── */
.clientes { padding: 34px 0 40px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); background: var(--fondo-2); }
.clientes-titulo { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tenue-2); margin: 0 0 26px; }
.carrusel { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.carrusel-pista { display: flex; width: max-content; animation: carrusel 48s linear infinite; }
.carrusel:hover .carrusel-pista { animation-play-state: paused; }
.logos { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.logos img { width: auto; opacity: .55; transition: opacity .3s; }
.logos img:hover { opacity: 1; }
@keyframes carrusel { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .logos { gap: 48px; padding-right: 48px; } .carrusel-pista { animation-duration: 34s; } }

/* ── Foto que se revela (del dibujo a la planta) ─────────────────────────────── */
.revela { position: relative; height: 210vh; }
.revela-fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.revela-marco {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(calc((1 - var(--p, 0)) * 22%) calc((1 - var(--p, 0)) * 30%) calc((1 - var(--p, 0)) * 22%) calc((1 - var(--p, 0)) * 30%) round calc((1 - var(--p, 0)) * 28px));
}
.revela-marco img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--p, 0) * .25)); }
.revela-marco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, .2), transparent 30%, transparent 50%, rgba(10, 11, 13, .9)), linear-gradient(90deg, rgba(10, 11, 13, .75), transparent 60%); }
.revela-pie {
  position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 2; opacity: clamp(0, calc((var(--p, 0) - .6) * 3), 1);
  transform: translateY(calc((1 - var(--p, 0)) * 30px));
}
.revela-pie p { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); font-family: var(--titulos); font-weight: 600; font-size: clamp(26px, 3.4vw, 46px); text-transform: uppercase; line-height: 1; max-width: 18ch; }
.revela-pie .ante { margin-bottom: 14px; }
.quieto .revela, .revela.sin-fijo { height: auto; }
.quieto .revela-fijo, .revela.sin-fijo .revela-fijo { position: relative; height: 72vh; min-height: 420px; }
.quieto .revela-marco, .revela.sin-fijo .revela-marco { --p: 1; }

/* ── Qué hacemos: cuadrícula de tarjetas con luz que sigue el cursor ─────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tarjeta {
  --mx: 50%; --my: 50%;
  grid-column: span 2; position: relative; isolation: isolate; overflow: hidden;
  padding: 30px 28px 32px; border-radius: var(--radio); background: var(--superficie);
  border: 1px solid var(--linea); min-height: 250px; display: flex; flex-direction: column;
  transition: border-color .3s, transform .5s var(--suave);
}
.tarjeta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(244, 173, 36, .14), transparent 45%);
}
.tarjeta::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(244, 173, 36, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tarjeta:hover::before, .tarjeta:hover::after { opacity: 1; }
.tarjeta h3 { margin-top: auto; padding-top: 28px; }
.tarjeta p { color: var(--tenue); margin-top: 12px; font-size: 16px; }
.tarjeta-icono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ambar-suave); border: 1px solid rgba(244, 173, 36, .25); color: var(--ambar); }
.tarjeta-icono svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta-num { position: absolute; top: 26px; right: 28px; font-family: var(--mono); font-size: 12px; color: var(--tenue-2); letter-spacing: .1em; }
.tarjeta-grande { grid-column: span 4; grid-row: span 2; min-height: 520px; background: linear-gradient(160deg, #1a1e24, #121418 60%); }
.tarjeta-grande h3 { font-size: clamp(30px, 3.4vw, 46px); }
.tarjeta-ancha { grid-column: span 3; }
.tarjeta-foto { position: absolute; inset: 0; z-index: -2; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: scale(1.04); transition: transform 1.2s var(--suave), opacity .6s; }
.tarjeta-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 27, .35), rgba(20, 23, 27, .95) 72%); }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.1); opacity: .42; }
.voltajes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.voltajes li { font-family: var(--mono); font-size: 13px; color: var(--ambar); padding: 6px 12px; border-radius: 8px; background: var(--ambar-suave); border: 1px solid rgba(244, 173, 36, .28); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tarjeta, .tarjeta-ancha { grid-column: span 1; }
  .tarjeta-grande { grid-column: span 2; grid-row: auto; min-height: 420px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tarjeta, .tarjeta-ancha, .tarjeta-grande { grid-column: auto; min-height: 0; }
  .tarjeta-grande { min-height: 380px; }
}

/* ── Cómo trabajamos: hoja clara que sube sobre lo oscuro ─────────────────────── */
.proceso { background: var(--concreto); color: var(--concreto-texto); border-radius: 32px 32px 0 0; margin-top: -32px; z-index: 2; }
.proceso .ante { color: #a86c00; }
.proceso .lead { color: var(--concreto-tenue); }
.proceso-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.proceso-fijo { position: sticky; top: calc(var(--encabezado) + 48px); align-self: start; }
.proceso-contador { margin-top: 48px; display: flex; align-items: baseline; gap: 12px; font-family: var(--titulos); font-weight: 700; }
.proceso-contador b { font-size: clamp(120px, 15vw, 220px); line-height: .8; color: var(--concreto-texto); font-variant-numeric: tabular-nums; }
.proceso-contador span { font-size: 40px; color: rgba(22, 19, 14, .3); }
.proceso-pasos { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; counter-reset: paso; }
/* El riel se llena conforme bajas (--p lo pone movimiento.js). */
.proceso-pasos::before, .proceso-pasos::after { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.proceso-pasos::before { background: rgba(22, 19, 14, .12); }
.proceso-pasos::after { background: var(--ambar); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 14px rgba(244, 173, 36, .6); }
.paso { position: relative; padding: 4px 0 64px; opacity: .38; transition: opacity .5s var(--suave); counter-increment: paso; }
.paso:last-child { padding-bottom: 8px; }
.paso::before {
  content: ""; position: absolute; left: -44px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--concreto); border: 2px solid rgba(22, 19, 14, .2); transition: border-color .4s, background .4s, box-shadow .4s;
}
.paso.activo { opacity: 1; }
.paso.activo::before { border-color: var(--ambar); background: var(--ambar); box-shadow: 0 0 0 6px rgba(244, 173, 36, .2); }
.paso-num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--concreto-tenue); display: block; margin-bottom: 10px; }
.paso h3 { font-size: clamp(30px, 3.2vw, 44px); }
.paso p { margin-top: 14px; color: var(--concreto-tenue); font-size: 18px; max-width: 46ch; }
@media (max-width: 860px) {
  .proceso-grid { grid-template-columns: 1fr; }
  .proceso-fijo { position: static; }
  .proceso-contador { display: none; }
  .paso { padding-bottom: 44px; }
}

/* ── En números ──────────────────────────────────────────────────────────────── */
.numeros { background: var(--fondo); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.kpi { padding: 34px 26px 0 0; border-right: 1px solid var(--linea); }
.kpi + .kpi { padding-left: 26px; }
.kpi:last-child { border-right: 0; }
.kpi-valor { display: flex; align-items: baseline; gap: 6px; font-family: var(--titulos); font-weight: 700; font-size: clamp(46px, 5.4vw, 86px); line-height: 1; color: var(--texto); }
.kpi-valor .kpi-unidad { font-size: .42em; color: var(--ambar); }
.kpi-texto { display: block; margin-top: 14px; color: var(--tenue); font-size: 16px; }
.numeros-nota { margin-top: 44px; color: var(--tenue); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.numeros-nota::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 10px var(--ambar); flex: none; }
/* Odómetro: cada dígito es una columna 0-9 que rueda hasta su número. */
.odometro { display: inline-flex; font-variant-numeric: tabular-nums; }
.odometro .dig { display: inline-block; height: 1em; overflow: hidden; }
.odometro .col { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 70ms); }
.odometro .col span { height: 1em; line-height: 1; }
.odometro .sep { display: inline-block; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 28px 18px 28px 0; border-bottom: 1px solid var(--linea); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(3) { padding-left: 0; }
}

/* ── Galería horizontal (en computadora se ancla y avanza con el scroll) ─────── */
.galeria { padding: clamp(88px, 12vw, 160px) 0 0; position: relative; }
.galeria-cabeza { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.galeria-cabeza .seccion-cabeza { margin-bottom: 0; min-width: 0; }
@media (max-width: 760px) { .galeria-cabeza { flex-direction: column; align-items: stretch; } .galeria-avance { width: 100%; } }
.galeria-avance { flex: none; width: 160px; height: 2px; background: var(--linea-fuerte); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.galeria-avance i { display: block; height: 100%; background: var(--ambar); transform-origin: left; transform: scaleX(var(--p, 0)); }
.galeria-zona { position: relative; }
.galeria-fijo { padding-bottom: clamp(88px, 12vw, 160px); }
.galeria-pista { display: flex; gap: 18px; padding: 0 var(--margen); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria-pista::-webkit-scrollbar { display: none; }
.galeria-foto { flex: none; width: min(84vw, 560px); margin: 0; scroll-snap-align: center; }
.galeria-abrir { display: block; width: 100%; padding: 0; border: 0; background: var(--superficie); border-radius: var(--radio); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.galeria-abrir img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--suave), filter .6s; filter: saturate(.85); }
.galeria-abrir:hover img { transform: scale(1.05); filter: saturate(1.05); }
.galeria-foto figcaption { margin-top: 14px; color: var(--tenue); font-size: 15px; display: flex; gap: 12px; }
.galeria-foto figcaption::before { content: counter(foto, decimal-leading-zero); counter-increment: foto; font-family: var(--mono); font-size: 12px; color: var(--ambar); padding-top: 3px; }
.galeria-pista { counter-reset: foto; }
/* Modo anclado (lo prende movimiento.js en pantallas anchas). */
.galeria.anclada .galeria-zona { height: var(--alto-zona, 300vh); }
.galeria.anclada .galeria-fijo { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; overflow: hidden; }
.galeria.anclada .galeria-pista { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; padding-left: max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen))); }
.galeria.anclada .galeria-foto { width: clamp(380px, 38vw, 600px); }
.galeria.anclada .galeria-foto:nth-child(even) { margin-top: 64px; }

/* Visor de fotos a pantalla completa. */
.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 7, 8, .94); color: var(--texto); }
.visor::backdrop { background: rgba(0, 0, 0, .6); }
.visor[open] { display: grid; grid-template-rows: 1fr auto; animation: aparecer .3s var(--suave); }
.visor img { width: 100%; height: 100%; object-fit: contain; padding: 64px 72px 0; }
.visor p { text-align: center; padding: 18px 24px 28px; color: var(--tenue); }
.visor button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linea-fuerte); background: rgba(255, 255, 255, .06); cursor: pointer; display: grid; place-items: center; }
.visor button:hover { background: rgba(255, 255, 255, .12); }
.visor button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.visor-cerrar { top: 16px; right: 16px; }
.visor-ant { left: 16px; top: 50%; translate: 0 -50%; }
.visor-sig { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) { .visor img { padding: 72px 8px 0; } .visor-ant, .visor-sig { top: auto; bottom: 18px; translate: 0; } }
@keyframes aparecer { from { opacity: 0; } }

/* ── Testimonios: bloque ámbar ───────────────────────────────────────────────── */
.testimonios { background: var(--ambar); color: #17130b; overflow: hidden; }
.testimonios .ante { color: #17130b; }
.testimonios h2 { max-width: 16ch; }
.testi-escenario { position: relative; margin-top: clamp(40px, 6vw, 72px); min-height: 330px; }
.testi { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--suave), visibility .7s; }
.testi.activo { opacity: 1; visibility: visible; position: relative; }
.testi blockquote { margin: 0; font-family: var(--titulos); font-weight: 600; font-size: clamp(30px, 4vw, 58px); line-height: 1.05; text-transform: uppercase; max-width: 26ch; text-wrap: balance; }
.testi blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .5; margin-bottom: 18px; opacity: .3; }
.testi .palabra > span { transition-duration: .6s; }
.testi-autor { margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: 17px; }
.testi-autor b { font-weight: 700; }
.testi-autor span { opacity: .65; }
/* Con la empresa ("Gerente de Lanzamientos · Forvia") no cabe junto al nombre en el celular: va abajo,
   alineado con el nombre (34px de la raya + 14px del hueco). */
@media (max-width: 600px) {
  .testi-autor { flex-wrap: wrap; row-gap: 2px; }
  .testi-autor b { white-space: nowrap; }
  .testi-autor span { flex-basis: 100%; padding-left: 48px; }
}
.testi-autor::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.testi-controles { display: flex; align-items: center; gap: 18px; margin-top: 44px; }
.testi-barras { display: flex; gap: 8px; }
.testi-barras button { width: 54px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.testi-barras button::before, .testi-barras button i { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(23, 19, 11, .22); border-radius: 2px; }
.testi-barras button i { background: #17130b; transform-origin: left; transform: scaleX(0); }
.testi-barras button.activo i { animation: llenar var(--dur, 7s) linear forwards; }
.testi-barras button.visto i { transform: scaleX(1); }
.testimonios.pausa .testi-barras button.activo i { animation-play-state: paused; }
@keyframes llenar { to { transform: scaleX(1); } }
.testi-flechas { display: flex; gap: 8px; margin-left: auto; }
.testi-flechas button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(23, 19, 11, .3); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.testi-flechas button:hover { background: rgba(23, 19, 11, .08); }
.testi-flechas svg { width: 18px; height: 18px; stroke: #17130b; fill: none; stroke-width: 2; }

/* ── Por qué TSC ──────────────────────────────────────────────────────────────── */
.razones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linea); }
.razon { padding: 34px 32px 40px 0; border-bottom: 1px solid var(--linea); position: relative; }
.razon:not(:nth-child(3n)) { border-right: 1px solid var(--linea); }
.razon:not(:nth-child(3n + 1)) { padding-left: 32px; }
.razon-num { font-family: var(--mono); font-size: 12px; color: var(--ambar); letter-spacing: .14em; }
.razon h3 { margin-top: 20px; }
.razon p { margin-top: 14px; color: var(--tenue); font-size: 16px; }
@media (max-width: 960px) {
  .razones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .razon { border-right: 0 !important; padding: 30px 24px 34px 0 !important; }
  .razon:nth-child(odd) { border-right: 1px solid var(--linea) !important; }
  .razon:nth-child(even) { padding-left: 24px !important; }
}
@media (max-width: 600px) { .razones { grid-template-columns: 1fr; } .razon, .razon:nth-child(odd), .razon:nth-child(even) { border-right: 0 !important; padding: 28px 0 !important; } }

/* ── Preguntas ───────────────────────────────────────────────────────────────── */
.preguntas { background: var(--fondo-2); border-top: 1px solid var(--linea); }
.preguntas-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.preguntas-grid > div:first-child { position: sticky; top: calc(var(--encabezado) + 40px); }
.preguntas-otra { margin-top: 30px; color: var(--tenue); }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta:first-child { border-top: 1px solid var(--linea); }
.pregunta summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--titulos); font-weight: 600; font-size: clamp(21px, 1.9vw, 25px); line-height: 1.2; text-transform: uppercase; letter-spacing: .01em;
  transition: color .2s;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--ambar-claro); }
.pregunta summary::before, .pregunta summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--ambar); border-radius: 2px; transition: transform .4s var(--suave);
}
.pregunta summary::after { transform: rotate(90deg); }
.pregunta[open] summary::after { transform: rotate(0deg); }
.respuesta { overflow: hidden; }
.respuesta p { color: var(--tenue); padding: 0 48px 28px 0; max-width: 64ch; }
@media (max-width: 860px) { .preguntas-grid { grid-template-columns: 1fr; } .preguntas-grid > div:first-child { position: static; } }

/* ── También hacemos ─────────────────────────────────────────────────────────── */
.otros { padding: clamp(72px, 9vw, 120px) 0; }
.otros h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 32px; }
.otros-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.otro {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border-radius: var(--radio);
  text-decoration: none; overflow: hidden; isolation: isolate; border: 1px solid var(--linea); background: var(--superficie);
}
.otro .tarjeta-foto img { opacity: .4; }
.otro h3 { margin-top: auto; font-size: clamp(26px, 2.6vw, 34px); }
.otro p { margin-top: 10px; color: var(--tenue); font-size: 16px; }
.otro-ir { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--ambar); font-weight: 600; }
.otro-ir svg { width: 18px; height: 18px; transition: transform .35s var(--resorte); stroke: currentColor; fill: none; stroke-width: 2; }
.otro:hover .otro-ir svg { transform: translateX(6px); }
.otro:hover .tarjeta-foto img { transform: scale(1.08); opacity: .5; }
body.servicio-electricas .otro[data-servicio="electricas"],
body.servicio-neumaticas .otro[data-servicio="neumaticas"],
body.servicio-maniobras .otro[data-servicio="maniobras"] { display: none; }
body:not(.servicio-inicio) .otros-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .otros-lista, body:not(.servicio-inicio) .otros-lista { grid-template-columns: 1fr; } .otro { min-height: 240px; } }

/* Portada: tres servicios grandes. */
.srv-inicio .otro { min-height: 520px; padding: 34px; }
.srv-inicio .otro h3 { font-size: clamp(34px, 3.4vw, 50px); }
.srv-inicio .otro .tarjeta-foto img { opacity: .55; }
.srv-inicio .otro .tarjeta-foto::after { background: linear-gradient(180deg, rgba(10, 11, 13, .05), rgba(10, 11, 13, .55) 45%, rgba(10, 11, 13, .96) 85%); }
.srv-inicio .otro-etiqueta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ambar); }
@media (max-width: 800px) { .srv-inicio .otro { min-height: 420px; } }

/* ── Cierre con formulario ───────────────────────────────────────────────────── */
.cierre { position: relative; overflow: hidden; border-top: 1px solid var(--linea); }
.cierre::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; left: -320px; bottom: -620px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 173, 36, .2), rgba(244, 173, 36, .05) 42%, transparent 66%);
}
.cierre-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cierre h2 { font-size: clamp(48px, 6.6vw, 100px); }
.cierre .lead { margin: 26px 0 0; }
.cierre-ciudad { margin-top: 40px; }
.cierre-ciudad p { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--linea-fuerte); background: transparent; color: var(--texto); border-radius: 999px;
  padding: 10px 16px; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: rgba(255, 255, 255, .34); }
.chip[aria-pressed="true"] { background: var(--ambar); color: #17130b; border-color: var(--ambar); font-weight: 600; }
.cierre .botones { margin-top: 30px; }
.formulario {
  background: rgba(20, 23, 27, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--linea); border-radius: 24px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.formulario h3 { font-size: 30px; }
.formulario > p { color: var(--tenue); margin: 8px 0 22px; font-size: 15.5px; }
.cierre-o { display: flex; align-items: center; gap: 14px; color: var(--tenue-2); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.cierre-o::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.campo { display: grid; gap: 7px; margin-bottom: 14px; font-size: 14px; color: var(--tenue); }
.campo input, .campo select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--linea-fuerte);
  background: rgba(0, 0, 0, .28); color: var(--texto); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tenue) 50%), linear-gradient(135deg, var(--tenue) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ambar); box-shadow: 0 0 0 4px rgba(244, 173, 36, .16); }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tenue); margin: 6px 0 18px; }
.consentimiento input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ambar); flex: none; }
.formulario .boton { width: 100%; }
.form-aviso { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.form-aviso.error { color: #ff8a7a; }
.form-aviso.ok { color: #7ee2a8; }
@media (max-width: 960px) { .cierre-grid { grid-template-columns: 1fr; } }
/* En inglés: el país (+1 / +52) junto al teléfono. */
.campos-tel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
@media (max-width: 460px) { .campos-2 { grid-template-columns: 1fr; gap: 0; } }

/* ── Pie ─────────────────────────────────────────────────────────────────────── */
.pie { border-top: 1px solid var(--linea); padding: 72px 0 40px; background: var(--fondo-2); font-size: 15px; color: var(--tenue); }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pie-grid > div:first-child p { margin-top: 18px; max-width: 34ch; }
.pie h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto); margin: 0 0 16px; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pie a { text-decoration: none; transition: color .2s; }
.pie a:hover { color: var(--texto); }
.pie-dato b { display: block; color: var(--texto); font-weight: 500; }
.pie-rentas { display: none; margin-top: 44px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--linea); align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.servicio-inicio .pie-rentas { display: flex; }
.pie-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: var(--tenue-2); }
.pie-legal-ligas { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-grid { grid-template-columns: 1fr; } }

/* ── Barra de idioma (sitio.js): esta misma página en el idioma del navegador ────── */
/* Abajo a la izquierda, sin tapar el botón de WhatsApp. */
.barra-idioma { position: fixed; left: 20px; bottom: 20px; z-index: 61; max-width: min(470px, calc(100vw - 116px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 14px; background: rgba(20, 23, 27, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--linea-fuerte), 0 18px 40px -12px rgba(0, 0, 0, .6); font-size: 14.5px; color: var(--texto); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--resorte); }
.barra-idioma.visible { opacity: 1; transform: none; }
.barra-idioma p { margin: 0; line-height: 1.45; }
.barra-idioma .liga { white-space: nowrap; }
.barra-idioma button { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--tenue); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.barra-idioma button:hover { color: var(--texto); background: rgba(255, 255, 255, .12); }
@media (max-width: 520px) { .barra-idioma { left: 12px; bottom: 16px; max-width: calc(100vw - 104px); font-size: 14px; } }

/* ── Botón flotante de WhatsApp ──────────────────────────────────────────────── */
.flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--verde-wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, .5);
  opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--resorte);
}
.flotante.visible { opacity: 1; transform: none; pointer-events: auto; animation: latido 3.2s 1.2s infinite; }
.flotante svg { width: 30px; height: 30px; }
@keyframes latido { 0%, 70%, 100% { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, .45); } 35% { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55), 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (max-width: 520px) { .flotante { right: 14px; bottom: 14px; width: 58px; height: 58px; } }

/* ── Ventana de WhatsApp en computadora ──────────────────────────────────────── */
.ventana { border: 0; padding: 0; background: transparent; color: var(--texto); max-width: min(440px, calc(100vw - 32px)); width: 100%; }
.ventana::backdrop { background: rgba(5, 6, 7, .7); backdrop-filter: blur(6px); }
.ventana[open] { animation: subir .4s var(--resorte); }
@keyframes subir { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.ventana-caja { position: relative; background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: 24px; padding: 34px 30px 28px; text-align: center; }
.ventana h3 { font-size: 30px; }
.ventana-caja > p { color: var(--tenue); margin: 10px 0 22px; font-size: 15.5px; }
.qr { width: 236px; margin: 0 auto 20px; background: #fff; padding: 14px; border-radius: 16px; }
.qr svg { width: 100%; height: auto; }
.ventana-ligas { display: grid; gap: 12px; justify-items: center; }
.cerrar { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linea); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--tenue); }
.cerrar:hover { color: var(--texto); background: rgba(255, 255, 255, .06); }
.boton-texto { background: none; border: 0; color: var(--tenue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.boton-texto:hover { color: var(--texto); }

/* ── Páginas sencillas (aviso, 404) ──────────────────────────────────────────── */
.sencilla { padding: calc(var(--encabezado) + 72px) 0 110px; }
.sencilla h1 { font-size: clamp(46px, 6vw, 84px); }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 48px 0 14px; }
.legal p, .legal li { color: var(--tenue); }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal .fecha { font-family: var(--mono); font-size: 13px; color: var(--tenue-2); margin-top: 18px; }
.legal .legal-nota { margin-top: 22px; padding: 2px 0 2px 16px; border-left: 2px solid var(--ambar); font-size: 15px; }
.e404-ligas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ── Aparición al hacer scroll ───────────────────────────────────────────────── */
.aparece { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--suave), transform 1.1s var(--suave); transition-delay: calc(var(--retraso, 0) * 90ms); }
.aparece.visto { opacity: 1; transform: none; }
/* Títulos que suben palabra por palabra desde una máscara. */
.revela-palabras .palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.revela-palabras .palabra > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 45ms); }
.revela-palabras.visto .palabra > span { transform: none; }

/* Sin JavaScript, o con "reducir movimiento": todo visible y quieto. */
.sin-js .aparece, .quieto .aparece { opacity: 1; transform: none; transition: none; }
.quieto .revela-palabras .palabra > span { transform: none; transition: none; }
.quieto *, .quieto *::before, .quieto *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
.quieto .carrusel-pista { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
.quieto .carrusel-pista .logos[aria-hidden] { display: none; }
.quieto .logos { flex-wrap: wrap; justify-content: center; gap: 36px 56px; padding: 0 var(--margen); }

/* ── Dibujos de portada (SVG que arma JS) ────────────────────────────────────── */
.lienzo-iso { aspect-ratio: 560 / 500; }
.marco-borde { fill: rgba(255, 255, 255, .012); stroke: rgba(255, 255, 255, .07); }
.marco-esquina { fill: none; stroke: var(--ambar); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.dib-fino { stroke-width: 1.4; }
.dib.bus { stroke-width: 5; }
.dib { transition: stroke .5s, filter .5s; }
.dib.vivo { stroke: var(--ambar); filter: drop-shadow(0 0 5px rgba(244, 173, 36, .6)); }
.nodo { fill: var(--texto); }
.destello { fill: #fff3d0; opacity: 0; filter: blur(4px); }
.brillo { fill: var(--ambar); opacity: 0; filter: blur(14px); }
.rotulo.simbolo { font-size: 18px; font-weight: 700; fill: var(--texto); letter-spacing: 0; }
.rotulo { transition: fill .5s; }
.rotulo-2 { fill: var(--tenue-2); }
.rotulo-vivo .rotulo-2 { fill: var(--ambar-claro); }
.giro { fill: none; stroke: var(--ambar); stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .8; }
.rotulo-g .rotulo { fill: var(--texto); }
.guia { fill: none; stroke: rgba(242, 238, 231, .35); stroke-width: 1; }
.guia-punto { fill: var(--ambar); }

/* Isométricos (loop, maniobra, nave). */
.caja .cara-sup { fill: #272c33; stroke: rgba(242, 238, 231, .34); stroke-width: 1; stroke-linejoin: round; }
.caja .cara-izq { fill: #1c2026; stroke: rgba(242, 238, 231, .24); stroke-width: 1; stroke-linejoin: round; }
.caja .cara-der { fill: #15181d; stroke: rgba(242, 238, 231, .2); stroke-width: 1; stroke-linejoin: round; }
.caja-ambar .cara-sup { fill: #4a3712; stroke: rgba(244, 173, 36, .7); }
.caja-ambar .cara-izq { fill: #33260d; stroke: rgba(244, 173, 36, .45); }
.caja-ambar .cara-der { fill: #261c0a; stroke: rgba(244, 173, 36, .4); }
.piso-base { fill: rgba(255, 255, 255, .015); stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.reja { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.muro { fill: rgba(255, 255, 255, .012); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.tubo-base { fill: none; stroke: #2b3139; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.tubo { fill: none; stroke: var(--fluido, var(--aire)); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s; }
.tubo-luz { fill: none; stroke: var(--fluido, var(--aire)); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .14; filter: blur(5px); transition: stroke .6s; }
.particula { fill: #e9f6ff; filter: drop-shadow(0 0 4px var(--fluido, var(--aire))); }
.modo-agua { --fluido: var(--agua); }
.modo-agua .particula { fill: #9cc4ff; }
.modo-aire { --fluido: var(--aire); }
.cable { fill: none; stroke: rgba(242, 238, 231, .3); stroke-width: 2; stroke-linecap: round; transition: stroke .6s, filter .6s; }
.cable.vivo { stroke: var(--ambar); filter: drop-shadow(0 0 4px rgba(244, 173, 36, .6)); }
.laser { stroke: #ff5a3c; stroke-width: 1.6; filter: drop-shadow(0 0 4px #ff5a3c); opacity: 0; }
.huella { fill: rgba(244, 173, 36, .06); stroke: var(--ambar); stroke-width: 1.4; stroke-dasharray: 6 5; }
.camino { fill: none; stroke: rgba(244, 173, 36, .5); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.ancla { stroke: var(--ambar); stroke-width: 2.4; stroke-linecap: round; }
.gancho { stroke: rgba(242, 238, 231, .5); stroke-width: 1.5; fill: none; }
.lectura { font-family: var(--titulos); font-weight: 700; fill: var(--texto); }
.lectura-chica { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; fill: var(--tenue); text-transform: uppercase; }
.pasos-anim text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; fill: var(--tenue-2); transition: fill .4s; }
.pasos-anim text.activo { fill: var(--ambar); }
.pasos-anim .riel { stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.pasos-anim .riel-lleno { stroke: var(--ambar); stroke-width: 2; }
.nave-liga text { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; fill: var(--tenue); transition: fill .3s; }
.nave-liga .guia { transition: stroke .3s; }
.nave-liga.activo text { fill: var(--texto); }
.nave-liga:hover text, .nave-liga:focus-visible text { fill: var(--ambar); text-decoration: underline; }
.nave-liga rect { fill: rgba(10, 11, 13, .7); stroke: var(--linea-fuerte); }
.nave-liga.activo rect { stroke: var(--ambar); }

/* Manómetro y rejilla del compresor. */
.reja-luz { stroke: rgba(242, 238, 231, .22); stroke-width: 1.2; }
.mano-cara { fill: rgba(16, 18, 22, .9); stroke: rgba(242, 238, 231, .3); stroke-width: 1.4; }
.mano-marca { stroke: rgba(242, 238, 231, .45); stroke-width: 1.2; }
.mano-aguja { stroke: var(--fluido, var(--aire)); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--fluido, var(--aire))); transition: stroke .6s; }
.mano-eje { fill: var(--texto); }

/* Nivel de burbuja (maniobras). */
.burbuja { fill: rgba(156, 210, 255, .55); stroke: var(--aire); stroke-width: 1; transition: fill .4s, stroke .4s; }
.listo .burbuja { fill: rgba(126, 226, 168, .6); stroke: #7ee2a8; }
.palomita { fill: none; stroke: #7ee2a8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.caja.patin .cara-sup, .caja.patin .cara-izq, .caja.patin .cara-der { fill: #0d0f12; stroke: rgba(244, 173, 36, .5); }
.manometro .lectura-chica { font-size: 8.5px; }

/* Aire / agua en neumáticas. */
.fluido { display: flex; justify-content: center; gap: 4px; margin: 14px auto 0; padding: 4px; width: max-content; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); }
.fluido button { border: 0; background: transparent; color: var(--tenue); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14.5px; font-weight: 500; transition: background .3s, color .3s; }
.fluido button[aria-pressed="true"] { background: var(--texto); color: #101114; }

/* Entrada de la portada: solo se desliza, nunca parte de transparente (así cuenta como pintado desde
   el primer cuadro para la velocidad que mide Google). */
.entra { animation: entrar 1s var(--suave) both; animation-delay: calc(var(--retraso, 0) * 90ms + 120ms); }
@keyframes entrar { from { transform: translateY(18px); } }
