/* =========================================================================
   Performance Chile · maqueta del sitio (v4, tema claro)
   Un solo CSS para index.html, contacto.html y privacidad.html.
   Pedido del cliente: fondo blanco, letras negras, presentacion profesional,
   limpia y facil de recorrer. Verde lima de la flota como unico acento:
   relleno del boton principal y detalles; en texto, iconos o indicadores
   sobre claro va en sus tonos profundos (--lima-deep, --lima-mid) para
   cumplir contraste. Las ilustraciones (escena del hero y dioramas) siguen
   nocturnas y se presentan como ventanas enmarcadas en la pagina blanca.
   ========================================================================= */

/* ---------- 0. Fuentes (alojadas en el sitio: sin Google Fonts) ----------
   Inter para el texto y Mona Sans para los títulos, licencia SIL OFL 1.1 (assets/fonts/LICENSE-*.txt).
   Son los mismos woff2 variables que Google Fonts le entregaba a Chrome (subconjunto latino, bajados el
   2026-11-14), con los mismos descriptores de su CSS, así el texto se ve idéntico: Inter 4.001 (ejes opsz 14–32
   y wght 100–900; el sitio usa 400–900) y Mona Sans 2.000 (wdth 75–125 y wght 200–900). El subconjunto latino
   trae todo el español (á é í ó ú ñ ü ¿ ¡ « » ° º ª) y la puntuación tipográfica (– — “ ” … • −).
   Cada página las precarga en su <head>: son las dos críticas (texto y h1). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../assets/fonts/mona-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies: neutros con un tinte minimo hacia el verde de la marca */
  --bg: #ffffff;
  --s1: #f4f5f2;            /* banda gris suave, paneles */
  --s2: #eceee9;            /* hover, bloques internos */
  --s3: #e1e4de;
  --line: #e3e6e0;          /* divisores */
  --line-2: #cfd4ce;        /* borde de tarjetas */
  --edge: #a9b0aa;          /* contorno de controles (boton secundario, signos) */

  /* Texto (contraste medido sobre #fff / sobre --s1) */
  --ink: #0a0c0b;           /* 19,6:1 / 17,9:1 */
  --ink-2: #4a534e;         /* 8,0:1 / 7,3:1 */
  --ink-3: #5a635e;         /* 6,2:1 / 5,7:1 */

  /* Marca */
  --lima: #78ca56;          /* muestreado de assets/logo.png: rellenos */
  --lima-hi: #8fdb6c;
  --lima-glow: rgba(120, 202, 86, 0.3);
  --lima-mid: #478f2f;      /* iconos e indicadores sobre claro: 4,0:1 / 3,7:1 */
  --lima-deep: #2b6a1e;     /* texto y enlaces sobre claro: 6,6:1 / 6,0:1 */
  --lima-tint: #f1f8ec;
  --lima-tint-line: #b9dca6;

  /* Noche: ventanas de ilustracion (escena del hero, dioramas, leyenda de fotos) */
  --night: #0a0c0b;
  --night-ink: #e9ecef;     /* 16,5:1 sobre --night */
  --night-ink-2: #a3ada8;   /* 8,5:1 sobre --night */

  --input-line: #6b746f;    /* borde de controles: 4,8:1 sobre blanco */
  --err-p: #b3261e;         /* 6,5:1 sobre blanco; 5,8:1 sobre --err-p-bg */
  --err-p-bg: #fbeeec;
  --err-p-tint: #fdf5f4;    /* fondo de campo con error y de avisos: --err-p 6,1:1 */
  /* Formularios («ficha de obra»): campos con fondo apenas tintado y borde suave que igual cumple 3:1 */
  --field-bg: #fafbf9;
  --field-line: #858d87;    /* 3,4:1 sobre blanco; 3,3:1 sobre --field-bg */
  --r-field: 10px;
  --shadow-ficha: 0 1px 2px rgba(10, 12, 11, 0.05), 0 2px 8px -4px rgba(10, 12, 11, 0.06), 0 36px 72px -44px rgba(10, 12, 11, 0.38), 0 18px 40px -30px rgba(43, 106, 30, 0.26);
  --halo-ficha: radial-gradient(70% 190% at 0% 0%, rgba(120, 202, 86, 0.15) 0%, rgba(120, 202, 86, 0.05) 38%, rgba(120, 202, 86, 0) 62%);
  /* Íconos de formulario (máscaras o fondos en data URI; la CSP permite img-src data:) */
  --i-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-lapiz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  --i-check-tinta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0c0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-check-lima: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6a1e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-alerta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0c0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  /* Halo del hero: lima arriba al centro y verde profundo apenas abajo a la izquierda (lo reusa /contacto) */
  --halo:
    radial-gradient(80% 60% at 50% 0%, rgba(120, 202, 86, 0.2) 0%, rgba(120, 202, 86, 0.07) 35%, rgba(120, 202, 86, 0) 65%),
    radial-gradient(55% 50% at 5% 100%, rgba(43, 106, 30, 0.09) 0%, rgba(43, 106, 30, 0) 55%);
  /* Grano casi invisible sobre los degradés del hero y del footer (evita que se vean en escalones) */
  --grano: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");

  /* Tipografia */
  --f-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-titulos: "Mona Sans", "Helvetica Neue", Arial, system-ui, sans-serif; /* h1 a h4; Inter en todo lo demás */
  --f-cifras: var(--f-sans); /* cifras, años y códigos: Inter con números tabulares */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lead: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem); /* bajadas: 17 a 19 px, un paso sobre el cuerpo */
  --t-h3: 1.25rem;
  --t-h2: clamp(2rem, 1.3rem + 2.5vw, 3.375rem);
  --t-h1: clamp(2.375rem, 1.4rem + 3.1vw, 4.125rem);

  /* Espacio */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --gutter: clamp(1.125rem, 0.6rem + 2.4vw, 2.5rem);
  --max: 80rem;

  /* Forma */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-card: 0 1px 2px rgba(10, 12, 11, 0.04), 0 24px 48px -32px rgba(10, 12, 11, 0.3);

  --z-combo: 40;
  --z-header: 100;
  --z-bar: 110;

  --header-h: 68px;
  --bar-h: 0px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: var(--lima-deep); /* 6,6:1 sobre blanco */
}
@media (max-width: 1023.98px) {
  :root { --header-h: 60px; --bar-h: 65px; } /* barra movil: 8 + 48 + 8 + 1 de borde */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: calc(var(--bar-h) + 1rem);
  background: var(--bg);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.62;
  font-weight: 400;
  font-kerning: normal;
  overflow-x: clip;
  /* Iconos isometricos: juego claro en todo el sitio (el bloque arte deja el oscuro en :root) */
  --ic-t: #cfd5d1; --ic-l: #a7afaa; --ic-r: #7f8984;
  --ic-wt: #f7f8f6; --ic-wl: #dce1dd; --ic-wr: #a3aba6;
  --ic-gt: #9ad97b; --ic-gl: #6bbd49; --ic-gr: #3f7f2b;
  --ic-k: #1b211f;
  --ic-b: #e6e9e4; --ic-bl: #d5d9d3; --ic-br: #c3c8c2;
}
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
}
::selection { background: var(--lima); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-titulos);
  font-weight: 580;
  font-stretch: 104%;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.016em; font-weight: 620; font-stretch: 100%; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--lima-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
strong { font-weight: 640; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono { font-family: var(--f-cifras); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Superficies claras: .paper es una tarjeta blanca; .section--paper, una banda gris suave */
.paper { background: var(--bg); color: var(--ink); }
.section--paper { background: var(--s1); color: var(--ink); }

/* Datos por confirmar: subrayado punteado discreto + tooltip */
.pc {
  text-decoration: underline dotted;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  position: relative;
}
@media (hover: hover) {
  .pc { cursor: help; }
  .pc:hover::after {
    content: "Dato por confirmar con el cliente";
    position: absolute;
    left: 0; bottom: calc(100% + 6px);
    z-index: 20;
    width: max-content; max-width: 16rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: #ffffff;
    font: 500 0.75rem/1.3 var(--f-sans);
    letter-spacing: 0;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 8px 20px -8px rgba(10, 12, 11, 0.45);
  }
}


/* Iconos de interfaz (trazo) */
.i {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--lima);
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 640;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--ink); outline-color: var(--ink); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.25s var(--ease-out), transform 0.16s ease-out;
}
.btn .i { width: 19px; height: 19px; }
.btn--primary { background: var(--lima); color: var(--ink); }   /* 9,7:1 */
.btn--primary:hover { background: var(--lima-hi); color: var(--ink); box-shadow: 0 0 0 4px var(--lima-glow), 0 10px 24px -14px rgba(43, 106, 30, 0.55); }
.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--edge); }
.btn--secondary:hover { background: var(--s1); color: var(--ink); border-color: var(--ink); }
/* Grafito: la otra opción de igual peso junto a un primario (p. ej. «Prefiero el cotizador completo»); negro opaco,
   no el tinta puro, para que no compita con el lima */
.btn--grafito { background: #2a302d; color: #ffffff; } /* 13,3:1 */
.btn--grafito:hover { background: #0a0c0b; color: #ffffff; box-shadow: 0 10px 24px -14px rgba(10, 12, 11, 0.6); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link-quiet .i { color: var(--lima-mid); width: 19px; height: 19px; }
.link-quiet:hover { color: var(--lima-deep); text-decoration: underline; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand:hover { color: var(--ink); }
/* Logo del cliente (PNG 205x88, fondo transparente) */
.brand__logo { display: block; height: 40px; width: auto; max-width: none; }
@media (max-width: 1023.98px) { .brand__logo { height: 34px; } }
/* Wordmark provisorio anterior (si vuelve a usarse) */
.brand__mark { width: 38px; height: auto; flex: none; }
.brand__gear { fill: var(--lima); stroke: var(--lima); }
.brand__boom { fill: none; stroke: var(--lima); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand__word { display: grid; line-height: 1; }
.brand__name { font-size: 0.9375rem; font-weight: 720; letter-spacing: 0.05em; text-transform: uppercase; }
.brand__sub { margin-top: 4px; font-size: 0.625rem; font-weight: 640; letter-spacing: 0.42em; text-transform: uppercase; color: var(--lima-deep); }

.nav { display: none; margin-inline: auto; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.96875rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 6px;
  height: 2px;
  background: var(--lima-mid);
  border-radius: 2px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}
.header-tel {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-2);
  color: var(--ink);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-tel .i { color: var(--lima-mid); width: 18px; height: 18px; }
.header-tel:hover { color: var(--lima-deep); }
.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.icon-btn:hover { background: var(--s1); color: var(--lima-deep); }
.icon-btn .i { width: 22px; height: 22px; }
.site-header .btn { min-height: 44px; padding: 0.55rem 1rem; white-space: nowrap; }
@media (max-width: 1023.98px) {
  .site-header__actions .btn--primary { display: none; }
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  padding: 0;
}
.nav-toggle:hover { border-color: var(--edge); background: var(--s1); }
.nav-toggle .i-x { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-x { display: block; }
.menu-movil {
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.menu-movil ul { list-style: none; padding-block: var(--s-2); }
.menu-movil li + li { border-top: 1px solid var(--line); }
.menu-movil a {
  display: flex;
  align-items: center;
  min-height: 54px;
  color: var(--ink);
  font-weight: 560;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.menu-movil a[aria-current="page"] { color: var(--lima-deep); }
.menu-movil__actions { display: grid; gap: var(--s-2); padding-block: var(--s-3) var(--s-5); }
.menu-movil__actions .btn { width: 100%; }
@media (min-width: 640px) { .header-tel, .icon-btn { display: inline-flex; } }
@media (min-width: 640px) and (max-width: 799.98px) {
  .header-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .nav-toggle, .menu-movil { display: none !important; }
  .site-header__actions { margin-left: 0; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 0.8125rem; }
  .site-header__bar { gap: var(--s-2); }
}

/* ---------- 5. Secciones y cabeceras ---------- */
.section { padding-block: var(--section-y); }
.section--s1 { background: var(--s1); }
/* Dos secciones blancas seguidas: una linea fina marca el cambio de tema */
.section:not(.section--paper):not(.section--s1) + .section:not(.section--paper):not(.section--s1) { border-top: 1px solid var(--line); }
/* Cabecera de sección: título y, bajo él, la bajada con un ancho de lectura cómodo (nunca a la derecha, lejos
   del título: se lee como una sola idea) */
.section-head { display: grid; gap: clamp(0.875rem, 0.7rem + 0.5vw, 1.25rem); justify-items: start; margin-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.section-head p { font-size: var(--t-lead); color: var(--ink-2); max-width: 46ch; line-height: 1.6; }
.section-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.section-cta__nota { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }
.section-cta__nota .i { width: 16px; height: 16px; color: var(--lima-mid); stroke-width: 2.4; }

/* Revelado al hacer scroll (solo con JS y sin movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 6. Hero ---------- */
/* La escena 3D de día ocupa todo el hero y el texto va encima, en un panel blanco tipo ficha (el mismo
   lenguaje que el cotizador: borde fino, sombra larga y halo lima en la esquina). En escritorio el panel
   flota a la izquierda sobre la ciudad, con un halo blanco solo detrás de él; en teléfono y tablet la
   escena va arriba a lo ancho y el panel la monta por abajo. Debajo, el degradé sutil de siempre con su
   grano (::before): se ve bajo el panel en teléfono y a los lados en pantallas de más de 1920 px. */
.hero {
  --panel-w: 36rem;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--halo), var(--bg);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: var(--grano);
}
.hero__inner { position: relative; z-index: 2; margin-top: -2.5rem; }
.hero__copy {
  container-type: inline-size; /* el título se mide contra el panel */
  display: grid;
  gap: var(--s-4);
  max-width: 40rem;
  padding: clamp(1.375rem, 1rem + 1.6vw, 2.5rem);
  border: 1px solid rgba(10, 12, 11, 0.09);
  border-radius: var(--r-xl);
  background: var(--halo-ficha), var(--bg);
  box-shadow: var(--shadow-ficha);
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
}
.hero__eyebrow span:first-child { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); font-weight: 600; }
.hero__eyebrow span:first-child::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lima);
  box-shadow: 0 0 0 4px rgba(120, 202, 86, 0.22);
}
.hero__eyebrow span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: var(--s-3); vertical-align: 0.3em; background: var(--edge); }
@media (max-width: 639.98px) { .hero__eyebrow span + span::before { display: none; } }
/* Respaldo del título mientras llega Mona Sans: Arial Bold al 84,3 % ocupa el mismo ancho que Mona Sans 800
   al 94 % (medido con el título y otros titulares en ese estilo: 0,83 a 0,86). Sin él, el título sale en 3 líneas con Arial y pasa
   a 2 al llegar la fuente: el panel centrado se corría 26 px (CLS 0,016 a 1440 x 900). El alto de línea
   no cambia (line-height 1,0 del font-size), así que el panel mide lo mismo con las dos fuentes. */
@font-face {
  font-family: "Mona Sans Respaldo";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 600 900;
  size-adjust: 84.3%;
}
.hero__title {
  /* «Servicio de bombeo» en una linea: mide ~9,1 veces el cuerpo (50 px en 454 px, 58 px en 528 px), así
     que el cuerpo va en proporción al ancho del panel (cqi), con tope de 58 px.
     Mona Sans 800 al 94 % de ancho: en 104 % no cabe y el título se iria a 3 lineas */
  font-family: "Mona Sans", "Mona Sans Respaldo", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: clamp(2rem, 10.6cqi, 3.625rem);
  font-weight: 800; /* más marcado que los h2 (580) para que el título se distinga */
  font-stretch: 94%;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero__lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 31rem; }
/* Soporte tecnico 24/7: destacado con tinte lima (borde completo, sin franja lateral) */
.hero__support {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  padding: 0.6rem 1rem 0.6rem 0.8rem;
  border: 1px solid var(--lima-tint-line);
  border-radius: var(--r-md);
  background: var(--lima-tint);
  color: var(--ink);
  font-size: var(--t-sm);
  line-height: 1.4;
}
.hero__support .i { width: 20px; height: 20px; color: var(--lima-deep); stroke-width: 2; }
.hero__support strong { font-weight: 640; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-1); }
.hero__ctas .btn { flex: 1 1 auto; white-space: nowrap; }
@media (min-width: 640px) { .hero__ctas .btn { flex: 0 1 auto; } }
.hero__call { color: var(--ink-2); font-size: var(--t-sm); margin-top: calc(-1 * var(--s-2)); }
.hero__call a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__call a:hover { color: var(--lima-deep); }
.hero__micro {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-2);
}
.hero__micro li { display: inline-flex; align-items: center; gap: var(--s-2); line-height: 1.35; }
.hero__micro .i { width: 15px; height: 15px; color: var(--lima-mid); stroke-width: 2.4; }

/* Escena de dia a pantalla completa: el poster (cuadro 0 de la escena 3D, herramientas/3d/hero/) se ve
   desde el primer pintado y, con capacidad, la escena three.js aparece encima con un fundido sobre la
   misma imagen. Escritorio y tablet: escala fija (690 px = 52 m de obra), el poster no se escala: una
   caja mas grande muestra mas ciudad, no objetos mas grandes. La composicion se decide aca y en un
   solo lugar: --meta-x/--meta-y es donde va la obra (a la derecha del panel en escritorio, al centro en
   tablet); el poster se corre para ponerla ahi (--px/--py en px enteros, sin dejar de cubrir la caja: un
   medio pixel desalinearia poster y 3D) y --ox/--oy es donde
   quedo. El 3D lee la posicion del poster (hero3d.js) y las tarjetas HUD usan --ox/--oy: todo calza.
   Cada poster trae la obra en su px --ancla (los valores salen de plan.js: ENCUADRE).
   Telefono: el poster 4:5 recorta como object-fit: cover (--ref = ancho/alto). */
.hero__scene {
  --ref: 1;
  --hud-in: 0.875rem;
  --poster-w: 1920px;
  --poster-h: 1050px;
  --ancla-x: 1080px;
  --ancla-y: 470px;
  --pr: 0px; /* borde derecho del panel del texto, en px de la caja (escritorio) */
  --meta-x: 50cqw;
  --meta-y: 50cqh;
  --px: clamp(calc(100cqw - var(--poster-w)), calc(var(--meta-x) - var(--ancla-x)), 0px);
  --py: clamp(calc(100cqh - var(--poster-h)), calc(var(--meta-y) - var(--ancla-y)), 0px);
  --ox: calc(var(--px) + var(--ancla-x));
  --oy: calc(var(--py) + var(--ancla-y));
  position: relative;
  z-index: 1;
  isolation: isolate;
  order: -1; /* teléfono y tablet: la escena arriba, el panel la monta */
  overflow: hidden;
  container-type: size;
  height: clamp(28rem, 60svh, 42rem);
  background: #c3c8c1; /* color medio del poster: solo se ve si aun no llega */
}
@media (max-width: 1599.98px) and (max-height: 1071.98px) {
  .hero__scene { --poster-w: 1600px; --poster-h: 960px; --ancla-x: 930px; --ancla-y: 470px; }
}
@supports (top: round(1.5px, 1px)) {
  .hero__scene {
    --px: round(clamp(calc(100cqw - var(--poster-w)), calc(var(--meta-x) - var(--ancla-x)), 0px), 1px);
    --py: round(clamp(calc(100cqh - var(--poster-h)), calc(var(--meta-y) - var(--ancla-y)), 0px), 1px);
  }
}
.hero__poster { position: absolute; left: var(--px); top: var(--py); width: var(--poster-w); max-width: none; height: var(--poster-h); }
@media (max-width: 767.98px) {
  .hero__scene { --ref: 0.8; --hud-in: 0.5rem; height: auto; aspect-ratio: 4 / 5; max-height: 72svh; background: #b9bdb5; }
  .hero__poster { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
}
.hero__scene.is-3d .hero__poster { visibility: hidden; }
/* Capa 3D (la inserta js/3d/hero.min.js entre el poster y las tarjetas) */
.hero3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.6s var(--ease-out); pointer-events: none; }
.hero3d.is-on { opacity: 1; }
.hero3d__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Tarjetas HUD alrededor de la obra; la guia sale de la tarjeta y entra en angulo recto a su punto.
   Escritorio y tablet: el punto es la obra (--ox/--oy) mas --dx/--dy en px (escala fija: valen en
   cualquier caja; salen de poster.mjs). «Reporte diario» e «Inicio de obra» van en la columna libre
   entre el panel y la obra, arriba y abajo; «Equipo» a la derecha de la bomba. Sin pisar el panel ni
   salirse de la caja. Telefono: --u/--v en el poster (0..1) recortado como cover (--pw/--ph) y las
   tarjetas en las esquinas. --cx/--cy: donde la guia se esconde bajo la tarjeta. */
.hero__hud {
  --hud-b: calc(2.5rem + var(--hud-in)); /* bajo 1024 el panel monta la escena por abajo */
  --col-x: max(var(--hud-in), calc(var(--pr) + 1.5rem));
  --top-y: max(var(--hud-in), calc(var(--oy) - 24rem));
  --bot-b: max(var(--hud-b), calc(100cqh - var(--oy) - 22rem));
  --pump-x: min(calc(var(--ox) + 22.5rem), calc(100cqw - var(--hud-in) - 12rem));
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hud__guia {
  --ax: calc(var(--ox) + var(--dx));
  --ay: calc(var(--oy) + var(--dy));
  position: absolute;
  left: var(--ax);
  top: var(--ay);
  z-index: 1;
}
.hud__guia::before,
.hud__guia::after { content: ""; position: absolute; border: 0 solid rgba(10, 12, 11, 0.5); }
.hud__guia::after { left: min(0px, var(--cx) - var(--ax)); top: -0.5px; width: max(var(--cx) - var(--ax), var(--ax) - var(--cx)); border-top-width: 1px; }
.hud__guia::before { left: calc(var(--cx) - var(--ax) - 0.5px); top: min(0px, var(--cy) - var(--ay)); height: max(var(--cy) - var(--ay), var(--ay) - var(--cy)); border-left-width: 1px; }
.hud__guia i { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(10, 12, 11, 0.35); }
.hud__guia--report { --dx: -99.5px; --dy: -110.1px; --cx: calc(var(--col-x) + 10rem); --cy: calc(var(--top-y) + 1.5rem); }
.hud__guia--gps { --dx: -109.8px; --dy: 145.3px; --cx: calc(var(--col-x) + 10rem); --cy: calc(100cqh - var(--bot-b) - 1.5rem); }
.hud__guia--pump { --dx: 158.6px; --dy: 148px; --cx: calc(var(--pump-x) + 2rem); --cy: calc(100cqh - var(--bot-b) - 1.5rem); }
/* Rótulos de las bombas de las otras obras (desde 1280): el mismo punto lima, sin guía, y una píldora de
   una línea arriba a la derecha (no tapa la bomba, el mixer ni la tubería que sube por la fachada) */
.hud__pin { display: none; }
.hud__pin::before, .hud__pin::after { display: none; }
.hud__pin b {
  position: absolute;
  left: 5px;
  bottom: 11px;
  padding: 0.125rem 0.5rem 0.1875rem;
  border: 1px solid rgba(10, 12, 11, 0.1);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.06), 0 10px 22px -14px rgba(10, 12, 11, 0.45);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.hud__guia--estacionaria { --dx: 361.2px; --dy: -85.1px; }
.hud__guia--citypump { --dx: 351.9px; --dy: 331.5px; }
.hud__guia--citypump b { left: 16px; } /* la tubería del city pump sube justo a la derecha del punto */

.hud {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 11.5rem;
  padding: 0.55rem 0.75rem 0.6rem;
  border: 1px solid rgba(10, 12, 11, 0.1);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.06), 0 16px 32px -18px rgba(10, 12, 11, 0.4);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.hud__k { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); color: var(--ink-2); font-size: 0.75rem; }
.hud__v { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.hud__row { display: flex; align-items: center; gap: var(--s-2); }
.hud__state { display: inline-flex; align-items: center; gap: 6px; color: var(--lima-deep); font-weight: 600; font-size: 0.8125rem; }
.hud__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 0 rgba(120, 202, 86, 0.6); }
.hud__check { width: 15px; height: 15px; color: var(--lima-mid); stroke-width: 2.6; }
.hud__tag { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); font-size: 0.6875rem; font-weight: 500; }
.hud__time { font-family: var(--f-cifras); font-variant-numeric: tabular-nums; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; }
.hud--report { left: var(--col-x); top: var(--top-y); }
.hud--gps { left: var(--col-x); bottom: var(--bot-b); }
.hud--pump { left: var(--pump-x); bottom: var(--bot-b); }
.hero__caption {
  position: absolute;
  z-index: 4;
  top: var(--hud-in);
  right: var(--hud-in);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-2);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: no-preference) {
  .hud, .hud__guia { opacity: 0; animation: hud-in 0.7s var(--ease-out) forwards; }
  .hud { transform: translateY(8px); }
  .hud--report, .hud__guia--report { animation-delay: 0.35s; }
  .hud--gps, .hud__guia--gps { animation-delay: 0.5s; }
  .hud--pump, .hud__guia--pump { animation-delay: 0.65s; }
  .hud__guia--estacionaria { animation-delay: 0.8s; }
  .hud__guia--citypump { animation-delay: 0.95s; }
  .hud__state::before { animation: live 2s ease-out infinite; }
}
@keyframes hud-in { to { opacity: 1; transform: none; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(120, 202, 86, 0.6); } 100% { box-shadow: 0 0 0 7px rgba(120, 202, 86, 0); } }
@media (max-width: 767.98px) {
  .hud { min-width: 0; gap: 1px; padding: 0.35rem 0.5rem 0.4rem; font-size: 0.75rem; }
  .hud__k { font-size: 0.6875rem; gap: var(--s-2); }
  .hud__v, .hud__time { font-size: 0.8125rem; }
  .hud__state { font-size: 0.6875rem; }
  .hero__hud { --pw: max(100cqw, 100cqh * var(--ref)); --ph: calc(var(--pw) / var(--ref)); }
  .hud__guia { --ax: calc(50cqw + (var(--u) - 0.5) * var(--pw)); --ay: calc(50cqh + (var(--v) - 0.5) * var(--ph)); }
  /* En 390 x 488 caben dos tarjetas y la leyenda: «Reporte diario» se queda en escritorio y la leyenda
     sube a su lugar, arriba a la izquierda (arriba a la derecha queda la pluma) */
  .hud--report, .hud__guia--report { display: none; }
  .hud--gps { left: var(--hud-in); bottom: var(--hud-b); }
  .hud--pump { left: auto; right: var(--hud-in); bottom: var(--hud-b); }
  .hud__guia--gps { --u: 0.2317; --v: 0.6981; --cx: calc(var(--hud-in) + 4.5rem); --cy: calc(100cqh - var(--hud-b) - 1.2rem); }
  .hud__guia--pump { --u: 0.6752; --v: 0.7017; --cx: calc(100cqw - var(--hud-in) - 4.5rem); --cy: calc(100cqh - var(--hud-b) - 1.2rem); }
  .hero__caption { left: var(--hud-in); right: auto; padding: 0.15rem 0.45rem; }
}

/* Escritorio: la escena llena el hero (del alto de la pantalla bajo el header, menos 1rem: asoma solo el
   borde de la banda de datos, se lee que hay mas pagina; con tope en el alto del poster). El panel va a la
   izquierda, alineado con el contenido del header, con sombra larga que lo despega de la ciudad, y la obra
   12,5rem a su derecha y algo bajo el centro (--meta-y: aire para las gruas bajo el header). Sobre el 3D y bajo
   las tarjetas (::after): una sombra suave solo detras del panel de vidrio (sube el contraste del texto
   blanco) y una vineta centrada en la obra que lleva la mirada a ella; el resto de la ciudad queda a color,
   de borde a borde. */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    align-content: center;
    min-height: clamp(36rem, calc(100svh - var(--header-h) - 1rem), 1050px);
    padding-block: clamp(1.5rem, 0.5rem + 1.6vw, 2.5rem);
  }
  .hero__inner { margin-top: 0; }
  /* Panel de vidrio esmerilado oscuro (glassmorphism): la ciudad se ve detrás, desenfocada, y el texto va en
     blanco. Tinte al 50 % y desenfoque de 10 px (pedido del dueño: que se vea más el fondo); el contraste
     se mide sobre la escena 3D real (qa:3d) y la sombra del texto ayuda en los claros del fondo */
  .hero__copy {
    --focus: #fff;
    --vidrio-txt: rgba(255, 255, 255, 0.95);
    --vidrio-txt-2: rgba(255, 255, 255, 0.92);
    width: var(--panel-w);
    max-width: none;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 42%),
      radial-gradient(70% 120% at 0% 0%, rgba(120, 202, 86, 0.18), rgba(120, 202, 86, 0) 62%),
      rgba(12, 16, 14, 0.5);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    text-shadow: 0 1px 2px rgba(10, 12, 11, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 90px -36px rgba(10, 12, 11, 0.6);
  }
  .hero .hero__eyebrow { color: var(--vidrio-txt-2); } /* solo en el vidrio de la portada: /contacto usa la misma etiqueta sobre blanco */
  .hero .hero__eyebrow span:first-child { color: #fff; }
  .hero .hero__eyebrow span + span::before { background: rgba(255, 255, 255, 0.45); }
  .hero__lead { color: var(--vidrio-txt); }
  .hero__support { border-color: rgba(143, 219, 108, 0.5); background: rgba(120, 202, 86, 0.16); color: #fff; }
  .hero__support .i { color: var(--lima-hi); }
  .hero__ctas .btn--primary { text-shadow: none; } /* texto oscuro sobre lima: sin sombra */
  /* Botón de vidrio más oscuro que el panel: un velo blanco aclaraba lo de atrás y el texto bajaba a 3,8:1 */
  .hero__ctas .btn--secondary { background: rgba(10, 12, 11, 0.5); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
  .hero__ctas .btn--secondary:hover { background: rgba(10, 12, 11, 0.68); color: #fff; border-color: #fff; }
  .hero__call { color: var(--vidrio-txt-2); }
  .hero__call a { color: #fff; }
  .hero__call a:hover { color: var(--lima-hi); }
  .hero__micro { border-top-color: rgba(255, 255, 255, 0.18); color: var(--vidrio-txt-2); }
  .hero__micro .i { color: var(--lima-hi); }
  .hero__scene {
    --pr: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + var(--panel-w));
    --meta-x: calc(var(--pr) + 12.5rem);
    /* La obra algo bajo el centro y, en pantallas bajas, a 400 px del borde de arriba como mínimo: la grúa
       de la estacionaria (lo más alto cerca) llega ~390 px sobre la obra y así se ve entera bajo el header;
       abajo, el frente de la bomba queda a ~225 px (1280 x 720: 636 px de escena) */
    --meta-y: max(54cqh, 400px);
    position: absolute;
    inset: 0;
    height: auto;
  }
  .hero__hud { --hud-b: 1.125rem; } /* tarjetas de abajo casi al borde de la escena */
  /* La leyenda va arriba a la izquierda, alineada con el panel y sobre el velo: arriba a la derecha
     tapaba la obra de la estacionaria (obras-extra.js) y su grúa en 1280 a 1440 y sobre 1920 */
  .hero__caption { left: max(var(--gutter), (100cqw - var(--max)) / 2); right: auto; }
  .hero__scene::after {
    --r: calc(max(var(--gutter), (100% - var(--max)) / 2) + var(--panel-w));
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      radial-gradient(ellipse calc(var(--panel-w) * 0.75) 75% at calc(var(--r) - var(--panel-w) / 2) 50%, rgba(10, 12, 11, 0.2), rgba(10, 12, 11, 0)),
      radial-gradient(125% 115% at var(--ox) var(--oy), rgba(10, 12, 11, 0) 55%, rgba(10, 12, 11, 0.11) 100%);
  }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .hero { --panel-w: 32rem; } }
/* Desde 1280: «Equipo» sube a la altura de la obra, a la derecha (en la calle entre las dos manzanas de
   las otras obras, reservas.js), y deja libre la manzana de la city pump, abajo a la derecha */
@media (min-width: 1280px) {
  .hero__hud { --pump-x: min(calc(var(--ox) + 25rem), calc(100cqw - var(--hud-in) - 12rem)); }
  .hud--pump { top: calc(var(--oy) - 0.5rem); bottom: auto; }
  .hud__guia--pump { --cy: calc(var(--oy) + 1.25rem); }
  .hud__guia--estacionaria { display: block; }
}
/* El city pump queda bajo la obra: su rótulo, solo si la escena es lo bastante alta para mostrarlo entero */
@media (min-width: 1280px) and (min-height: 860px) { .hud__guia--citypump { display: block; } }
/* Pantallas bajas (1280 x 720, 1366 x 768): el panel se compacta para que el hero no crezca */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero__copy { gap: var(--s-3); padding-block: clamp(1.25rem, 3.2svh, 2rem); }
  .hero__micro { padding-top: var(--s-4); }
}
/* Más de 1920 px (2K, 4K a 1x, ultra anchas): póster ancho de 3440 x 1050, con la obra donde la pone la
   composición en 3440 px; la escena sigue de borde a borde. Solo sobre 3440 px se queda en 3440 y se
   funde con la página a los lados (el póster no se escala) */
@media (min-width: 1920.02px) {
  .hero__scene { --poster-w: 3440px; --poster-h: 1050px; --ancla-x: 1856px; --ancla-y: 470px; }
}
@media (min-width: 3440.02px) {
  .hero__scene {
    left: calc(50% - 1720px);
    right: auto;
    width: 3440px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12rem, #000 calc(100% - 12rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12rem, #000 calc(100% - 12rem), transparent);
  }
}

/* Banda de datos bajo el hero */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.trust__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}
.trust__list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.trust__list li:last-child { border-bottom: 0; }
.trust__list .ico { --ico: 72px; }
@media (min-width: 1024px) {
  .trust__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trust__list li { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s-5) var(--s-4); }
  .trust__list .ico { --ico: clamp(56px, 7.7vw - 1.2rem, 92px); } /* 60 px a 1024 (cabe «Telescópicas»), 79 a 1280, 92 desde 1440 */
  .trust__list li:first-child { padding-left: 0; }
  .trust__list li:last-child { border-right: 0; }
}

/* ---------- 7. Servicios (dioramas) ---------- */
.services { display: grid; gap: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Tarjeta: la maqueta arriba, el texto abajo y los botones al pie (alineados entre las tres); al pasar el
   puntero se eleva apenas (y el contexto de la maqueta se atenúa: equipos/contexto.js) */
.service {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover { transform: translateY(-4px); }
}
@media (hover: hover) {
  .service:hover { border-color: var(--edge); box-shadow: var(--shadow-card); }
}
/* El diorama se apoya sobre un piso gris claro, como una maqueta sobre la mesa */
.service__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s-5) var(--s-5) 0;
  height: clamp(15rem, 10rem + 14vw, 23rem);
  background:
    radial-gradient(60% 55% at 50% 64%, rgba(120, 202, 86, 0.16), rgba(120, 202, 86, 0) 72%),
    linear-gradient(180deg, var(--bg), var(--s1));
  border-bottom: 1px solid var(--line);
}
.diorama__svg { width: 100%; max-width: 30rem; height: 100%; max-height: 100%; }
/* Escena 3D de la tarjeta (js/3d/<equipo>.min.js): se monta sobre el póster en la misma caja y
   aparece con un fundido; mientras, el póster se apaga (CLS 0, sin salto si póster = cuadro 0) */
.service__art[data-3d] { height: auto; aspect-ratio: 4 / 3; padding: 0; }
.service__art > .escena3d__poster { width: 100%; height: 100%; object-fit: cover; }
.service__art > * { transition: opacity 0.6s var(--ease-out); }
.service__art.is-3d > :not(.escena3d) { opacity: 0; }
.escena3d { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.escena3d.is-on { opacity: 1; }
.escena3d__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* Gradación de día del hero (saturación y contraste) sobre el canvas de las tarjetas; el póster la trae horneada */
.service__art .escena3d__canvas { filter: saturate(1.12) contrast(1.05); }
.service__body {
  position: relative;
  z-index: 1; /* la etiqueta se monta sobre el borde de la maqueta */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
/* Dato clave de cada equipo: etiqueta blanca con punto lima, montada sobre el borde entre maqueta y texto */
.service__body > .service__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: calc(-1 * var(--s-6) - 1rem) 0 var(--s-2);
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 8px 18px -12px rgba(10, 12, 11, 0.45);
  color: var(--lima-deep); /* 6,6:1 */
  font-size: var(--t-xs);
  font-weight: 620;
  letter-spacing: 0.005em;
}
.service__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 3px rgba(120, 202, 86, 0.24); }
.service h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.026em; font-stretch: 104%; }
.service__body > p { color: var(--ink-2); max-width: 40ch; }
.service__label { font-weight: 600; color: var(--ink) !important; margin-bottom: calc(-1 * var(--s-2)); }
.service__need { font-size: var(--t-sm); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.service__need strong { color: var(--ink); }
.service__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: auto; padding-top: var(--s-5); }

.checklist { list-style: none; display: grid; gap: var(--s-2); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); }
.checklist .i { color: var(--lima-mid); width: 18px; height: 18px; margin-top: 4px; stroke-width: 2.4; }

.services__foot { display: grid; gap: var(--s-4); margin-top: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
/* Ayuda para elegir: banda de tinte lima con el globo de la pregunta, el texto y el botón en una línea */
.services__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border: 1px solid var(--lima-tint-line);
  border-radius: var(--r-xl);
  background: var(--lima-tint);
  color: var(--ink);
}
.services__help p { flex: 1 1 28rem; }
.services__help .ico { --ico: 60px; }
.services__help .btn--secondary { background: var(--bg); }

/* ---------- 8. Proceso (banda gris) ---------- */

/* La línea de tiempo es una tubería de hormigón: tubo gris con collarines y, al entrar la sección, el hormigón
   (lima) la recorre de 01 a 04 y enciende cada número al pasar (main.js, initLineaTiempo). Los extremos de la
   tubería van a 1,5rem de los bordes de la lista: main.js mide con ese mismo margen. */
.steps { --tubo: 6px; list-style: none; display: grid; gap: var(--s-7); position: relative; counter-reset: step; }
.step { position: relative; display: grid; gap: var(--s-3); align-content: start; padding-left: 4.5rem; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--edge);
  box-shadow: 0 0 0 5px var(--s1); /* separa el número del tubo, como una brida */
  font-family: var(--f-cifras);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  z-index: 1;
}
.step:first-child .step__num { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.step .ico { --ico: 84px; margin: -6px 0 0 -10px; }
.step h3 { font-size: 1.25rem; letter-spacing: -0.018em; }
.step p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; max-width: 34ch; }
.steps::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - var(--tubo) / 2);
  top: 1.5rem; bottom: 1.5rem;
  width: var(--tubo);
  border-radius: var(--tubo);
  background: repeating-linear-gradient(180deg, #dde1db 0 56px, #c3c8c1 56px 62px);
  box-shadow: inset 0 0 0 1px rgba(10, 12, 11, 0.04);
}
@media (min-width: 1024px) {
  .steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-6); } /* tantas columnas como pasos */
  .step { padding-left: 0; padding-top: 4.75rem; }
  .step .ico { margin-left: -12px; }
  .steps::before {
    left: 1.5rem; right: 1.5rem;
    top: calc(1.375rem - var(--tubo) / 2); bottom: auto;
    width: auto; height: var(--tubo);
    background: repeating-linear-gradient(90deg, #dde1db 0 84px, #c3c8c1 84px 92px);
  }
}

/* Línea de tiempo animada (main.js, initLineaTiempo): al entrar la sección, una línea lima avanza
   sobre la punteada y enciende cada número cuando pasa por él (--hito = segundos hasta ese paso).
   Sin JS o con movimiento reducido no hay .js-linea: se ve el diseño estático de arriba. */
.steps::after { content: none; }
.steps.js-linea::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - var(--tubo) / 2);
  top: 1.5rem; bottom: 1.5rem;
  width: var(--tubo);
  background: linear-gradient(90deg, var(--lima-mid), var(--lima) 55%, var(--lima-hi));
  border-radius: var(--tubo);
  transform: scaleY(0);
  transform-origin: top;
}
.steps.js-linea.is-avanzando::after { transform: none; transition: transform var(--linea-dur, 2.8s) linear; }
.steps.js-linea .step__num { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.steps.js-linea:not(.is-avanzando) .step:first-child .step__num { background: var(--bg); color: var(--ink); border-color: var(--edge); }
.steps.js-linea.is-avanzando .step__num {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  transition-delay: var(--hito, 0s);
  animation: hito 0.9s var(--ease-out) var(--hito, 0s) both;
}
@keyframes hito {
  from { box-shadow: 0 0 0 0 rgba(120, 202, 86, 0.6); }
  to { box-shadow: 0 0 0 14px rgba(120, 202, 86, 0); }
}
@media (min-width: 1024px) {
  .steps.js-linea::after {
    left: 1.5rem; right: 1.5rem;
    top: calc(1.375rem - var(--tubo) / 2); bottom: auto;
    width: auto; height: var(--tubo);
    background: linear-gradient(180deg, var(--lima-hi), var(--lima) 45%, var(--lima-mid));
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* ---------- 9. Por que + Nosotros ---------- */
.why { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .why__head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.why__head { display: grid; gap: var(--s-5); }
.why-lead { font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); font-weight: 400; letter-spacing: -0.008em; max-width: 34ch; }
.reasons { list-style: none; display: grid; }
.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-5);
  align-items: start;
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason .ico { --ico: clamp(84px, 4.5rem + 2.5vw, 112px); grid-row: span 2; }
.reason h3 { padding-top: 6px; }
.reason p { color: var(--ink-2); max-width: 36rem; }

/* «Desde 2012»: segunda parte de «Nuestros equipos en terreno», bajo la galería y separada por una línea fina:
   la historia a la izquierda (el año como etiqueta) y las dos citas de los socios a la derecha */
.about {
  display: grid;
  gap: var(--s-7);
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.25rem); /* (más el margen de .obras-notes) */
  padding-top: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }
.about__story { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.about__year {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border: 1px solid var(--lima-tint-line);
  border-radius: 999px;
  background: var(--lima-tint);
  font-family: var(--f-cifras);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-xs);
  font-weight: 620;
  color: var(--lima-deep); /* 6,3:1 sobre el tinte */
}
.about__year::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lima); }
.about__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 580; letter-spacing: -0.03em; line-height: 1.08; font-stretch: 104%; }
.about__story > p:not(.about__year) { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.6; max-width: 36rem; }
.about__quotes { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .about__quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0;
  display: grid;
  gap: var(--s-5);
  align-content: space-between;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.125rem; line-height: 1.55; letter-spacing: -0.012em; color: var(--ink); }
.quote figcaption { display: flex; gap: var(--s-3); align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.quote__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--lima-deep);
  font-weight: 640;
  font-size: var(--t-sm);
}
.quote__who { display: grid; line-height: 1.3; }
.quote__who span { color: var(--ink-2); font-size: var(--t-sm); }
.quote__photo { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- 10. Galeria (equipos en terreno) ---------- */
.gallery__track { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery__item figure { margin: 0; display: grid; gap: var(--s-2); height: 100%; grid-template-rows: 1fr auto; }
.gallery__item--feature { grid-column: 1 / -1; }
.gallery__item--feature figure { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.gallery__item--feature img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 52%; background: var(--s1); }
/* Leyenda sobre la foto: siempre clara sobre un degradado oscuro */
.gallery__item--feature figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-7) var(--s-5) var(--s-5);
  background: linear-gradient(180deg, rgba(10, 12, 11, 0), rgba(10, 12, 11, 0.78) 55%, rgba(10, 12, 11, 0.92));
  color: var(--night-ink);
  font-size: var(--t-sm);
}
/* En teléfono la foto 21:9 queda más baja que la leyenda y el texto claro caía sobre el blanco de la página */
@media (max-width: 639.98px) {
  .gallery__item--feature img { aspect-ratio: 4 / 3; }
  .gallery__item--feature figcaption { padding: var(--s-6) var(--s-4) var(--s-4); }
}
.gallery__item:not(.gallery__item--feature) img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--s1);
}
.ph__box {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-2);
  aspect-ratio: 4 / 3;
  padding: var(--s-3);
  border: 1px dashed var(--edge);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(30deg, rgba(10, 12, 11, 0.035) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-30deg, rgba(10, 12, 11, 0.035) 0 1px, transparent 1px 18px),
    var(--s1);
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 500;
  text-align: center;
}
.ph__box .i { width: 26px; height: 26px; }
.gallery__controls { display: none; }
@media (max-width: 759.98px) {
  .gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: var(--s-2);
    scrollbar-width: thin;
  }
  .gallery__item { flex: 0 0 86%; scroll-snap-align: start; }
  .gallery__item--feature img { aspect-ratio: 4 / 3; }
  .gallery__item--feature figure { border-radius: var(--r-lg); }
  .js .gallery__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
  .gallery__controls p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); font-size: var(--t-sm); }
  .gallery__controls .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
}
@media (min-width: 760px) and (max-width: 1023.98px) {
  .gallery__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.obras-notes { display: grid; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- 11. Clientes (logos de hormigoneras y constructoras) ---------- */
/* Cintas de logos a color: una por grupo, en sentidos opuestos, que corren lento y sin fin; se detienen al pasar
   el puntero y se desvanecen en los bordes. Cada cinta trae los logos una vez (los que leen los lectores de
   pantalla y las pruebas) y copias decorativas (aria-hidden) para que el giro empalme: la pista mide dos mitades
   iguales y se corre la mitad. Con movimiento reducido, quietas: solo los originales, en filas. */
.clients { display: grid; gap: clamp(1.25rem, 0.9rem + 1.2vw, 2rem); }
.clients__group { display: grid; gap: var(--s-2); }
.clients__title { display: flex; align-items: center; gap: 0.6rem; font-size: 1rem; font-weight: 620; color: var(--ink); }
.clients__title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lima); }
.marquee {
  --ficha: clamp(9.5rem, 7.2rem + 5.6vw, 13.5rem);
  --sep: clamp(0.75rem, 0.55rem + 0.6vw, 1.125rem);
  overflow: hidden;
  padding-block: 0.875rem 1.375rem; /* aire para la sombra y el leve alzado de cada ficha */
  margin-inline: calc(-1 * var(--gutter)); /* la cinta corre de borde a borde del contenedor */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { list-style: none; display: flex; width: max-content; padding-inline: var(--gutter); animation: cinta var(--dur, 48s) linear infinite; }
.marquee--reversa .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.marquee__track > li { flex: none; width: var(--ficha); margin-right: var(--sep); } /* margen y no gap: las dos mitades miden exacto */
.client { min-width: 0; }
.clients .client__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .marquee { margin-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; row-gap: var(--sep); padding-inline: 0; }
  .client-copia { display: none; }
}
.client__logo {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-2);
  aspect-ratio: 3 / 2;
  padding: var(--s-4);
  border: 1px dashed var(--edge);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 500;
  text-align: center;
  overflow: hidden;
}
.client__logo .i { width: 24px; height: 24px; }
/* Con el logo real (<img>): ficha blanca de alto fijo con el logo a color; al pasar el puntero se alza */
.client__logo:has(img) {
  display: block; /* alto fijo de bloque: el 100 % de la imagen se resuelve contra él */
  aspect-ratio: auto;
  height: clamp(5.25rem, 4.2rem + 2.6vw, 7rem);
  padding: clamp(0.625rem, 0.5rem + 0.35vw, 0.875rem) clamp(1rem, 0.8rem + 0.6vw, 1.5rem); /* el logo (recortado a su dibujo) llena el resto */
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.04), 0 14px 26px -20px rgba(10, 12, 11, 0.4);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
/* Los logos (sitio/assets/clientes/) vienen recortados a su dibujo: llenan la ficha según su forma (los anchos, a
   lo ancho; los altos, a lo alto) */
.client__logo img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) {
  .marquee__track > li:hover .client__logo { border-color: var(--edge); box-shadow: 0 1px 2px rgba(10, 12, 11, 0.05), 0 20px 34px -20px rgba(10, 12, 11, 0.45); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .marquee__track > li:hover .client__logo { transform: translateY(-4px); }
}
.client__name { font-size: var(--t-sm); font-weight: 560; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- 12. Testimonios (condicional) ---------- */
.testis { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.testi {
  margin: 0;
  height: 100%;
  display: grid;
  gap: var(--s-5);
  align-content: space-between;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border: 1px dashed var(--edge);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.testi blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.testi figcaption { display: grid; gap: 2px; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }

/* ---------- 13. Cobertura ---------- */
.coverage { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .coverage { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-7); } }
.coverage__text { display: grid; gap: var(--s-5); align-content: start; }
.coverage__text > p { font-size: var(--t-lead); color: var(--ink-2); max-width: 32rem; }
.region-box { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--s1); max-width: 32rem; }
.region-box h3 { font-size: 1.125rem; }
.region-box p { color: var(--ink-2); }
/* Mapa de la base: geografía real de OpenStreetMap (herramientas/mapa/generar.mjs: npm run mapa).
   Plano = SVG + nombres anclados (se recortan juntos); lienzo = ventana visible con escala, norte y
   atribución. Grosores en unidades del plano (--k los engrosa cuando el mapa se ve chico). Nombres,
   pin y ficha en px fijos: se leen igual de 360 a 1920. */
.mapa {
  --m-tierra: #f1f3ee;
  --m-c3: #dee2da;
  --m-c2: #d1d6ce;
  --m-c1: #c0c6be;
  --m-au: #ffffff;
  --m-au-b: #a7aea6;
  --m-ve-b: #6f7871;
  --m-lim: #b1b8af;
  --m-rio: #b4c6cb;
  --m-parque: #e2edd9;
  --m-urb: #e6e9e2;
  /* halo del color del terreno: separa cada nombre de las calles que pasan por debajo */
  --m-halo: 0 0 1px var(--m-tierra), 0 0 2px var(--m-tierra), 0 0 2px var(--m-tierra), 0 0 3px var(--m-tierra), 0 0 4px var(--m-tierra), 0 0 6px var(--m-tierra);
  --k: 1;
  margin: 0;
  display: grid;
  gap: var(--s-4);
  container: mapa / inline-size;
}
.mapa__lienzo {
  position: relative;
  aspect-ratio: 5 / 6; /* móvil: ventana más vertical, centrada en la ruta */
  container: lienzo / size;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--m-tierra);
}
.mapa__plano {
  position: absolute;
  top: 0;
  height: 100%;
  aspect-ratio: var(--m-wh);
  /* centra --foco-x sin dejar bordes vacíos; sin recorte (escritorio) queda en 0 */
  left: clamp(calc(100cqw - 100cqh * var(--m-wh)), calc(50cqw - 100cqh * var(--m-wh) * var(--foco-x)), 0px);
}
.mapa__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-tierra { fill: var(--m-tierra); }
.m-urb { fill: var(--m-urb); }
.m-parque { fill: var(--m-parque); }
.m-lim { stroke: var(--m-lim); stroke-width: calc(1.1px * var(--k)); stroke-dasharray: 5 4; }
.m-rio { stroke: var(--m-rio); stroke-width: calc(3.2px * var(--k)); }
.m-c3 { stroke: var(--m-c3); stroke-width: calc(1.25px * var(--k)); }
.m-c2 { stroke: var(--m-c2); stroke-width: calc(1.7px * var(--k)); }
.m-c1 { stroke: var(--m-c1); stroke-width: calc(2.3px * var(--k)); }
.m-au-b { stroke: var(--m-au-b); stroke-width: calc(6px * var(--k)); }
.m-au { stroke: var(--m-au); stroke-width: calc(3.6px * var(--k)); }
.m-ve-b { stroke: var(--m-ve-b); stroke-width: calc(7px * var(--k)); }
.m-ve { stroke: var(--m-au); stroke-width: calc(4.2px * var(--k)); }
.m-li { stroke: var(--ink); stroke-width: calc(5px * var(--k)); }
/* Ruta entre el centro y la base: lima con borde grafito (la lima sola no llega a 3:1 sobre el terreno) */
.m-ruta path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.m-ruta__b { stroke: var(--ink); stroke-width: calc(10px * var(--k)); }
.m-ruta__n { stroke: var(--lima); stroke-width: calc(5.5px * var(--k)); }
/* Viaje (main.js, initMapa): con JS y sin movimiento reducido la ruta queda como un camino tenue y, en cada
   ciclo, un camión sale del centro de Santiago, recorre la autopista dejando el trazo lima (.m-flujo, que se
   dibuja del centro a la base), llega a la base con un pulso y, tras 3 s, vuelve a salir */
.js-mapa .m-ruta__n { stroke: #cfe1c3; }
.m-flujo { stroke: var(--lima); stroke-width: calc(5.5px * var(--k)); stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.m-movil { pointer-events: none; }
.m-movil__escala { transform: scale(var(--k, 1)); }
.m-movil__halo { fill: rgba(120, 202, 86, 0.38); transform-box: fill-box; transform-origin: center; animation: movil-halo 1.1s var(--ease-out) infinite; }
.m-movil__cuerpo { fill: var(--ink); stroke: #ffffff; stroke-width: 3.5; }
.m-movil__luz { fill: var(--lima); }
@keyframes movil-halo { from { transform: scale(0.55); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.mapa__capa { position: absolute; inset: 0; pointer-events: none; }
.mapa__l {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--giro, 0deg));
  white-space: nowrap;
  font: 640 0.6875rem/1 var(--f-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: var(--m-halo);
}
.mapa__l--sector { font-size: 0.875rem; font-weight: 680; letter-spacing: 0.01em; text-transform: none; color: var(--ink); }
.mapa__l--via { font-size: 0.6875rem; font-weight: 620; letter-spacing: 0.02em; text-transform: none; color: var(--ink-2); }
.mapa__l--izq { transform: translate(0, -50%); line-height: 1.2; color: var(--ink); }
.mapa__l--agua { font-size: 0.6875rem; font-weight: 560; letter-spacing: 0.04em; text-transform: none; color: #2f4b54; }
.mapa__centro { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid var(--ink); border-radius: 50%; background: var(--bg); }
.mapa__centro-t { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 680 0.8125rem/1 var(--f-sans); color: var(--ink); text-shadow: var(--m-halo); }
.mapa__pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 8px 18px -6px rgba(10, 12, 11, 0.55); }
.mapa__pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--lima); }
.mapa__pin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(120, 202, 86, 0.28); }
@media (prefers-reduced-motion: no-preference) {
  .mapa__pin::before { box-shadow: none; background: var(--lima); opacity: 0; animation: mapa-pulso 2.8s var(--ease-out) infinite; }
}
@keyframes mapa-pulso { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.8); opacity: 0; } }
/* Con el viaje andando, el centro destella en cada salida y la base late una vez en cada llegada */
.js-mapa .mapa__pin::before { animation: none; opacity: 0; }
.js-mapa .mapa__pin.is-llegada::before { animation: mapa-pulso 1.3s var(--ease-out) both; }
.mapa__centro { transition: background-color 0.35s ease; }
.mapa__centro::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lima-mid); opacity: 0; pointer-events: none; }
.mapa__centro.is-salida { background: var(--lima); }
.mapa__centro.is-salida::after { animation: mapa-salida 1.1s var(--ease-out) both; }
@keyframes mapa-salida { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.8); opacity: 0; } }

.mapa__escala {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: calc(var(--escala-r) * 100cqh * var(--m-wh));
  height: 7px;
  border: 2px solid var(--ink-2);
  border-top: 0;
  font: 640 0.6875rem/1 var(--f-sans);
  color: var(--ink-2);
  text-shadow: var(--m-halo);
}
.mapa__escala span { position: absolute; bottom: 11px; }
.mapa__escala span:first-child { left: 0; transform: translateX(-50%); }
.mapa__escala span:last-child { right: 0; transform: translateX(50%); white-space: nowrap; }
.mapa__norte { position: absolute; right: 18px; top: 16px; display: grid; justify-items: center; gap: 3px; font: 700 0.75rem/1 var(--f-sans); color: var(--ink); text-shadow: var(--m-halo); }
.mapa__norte svg { width: 12px; height: 17px; fill: var(--ink); }
.mapa__osm { position: absolute; right: 0; bottom: 0; padding: 5px 12px 6px; border-top-left-radius: var(--r-md); background: rgba(255, 255, 255, 0.9); font-size: 0.75rem; color: var(--ink-2); }
.mapa__osm a { color: inherit; text-underline-offset: 2px; }
.mapa__osm a:hover { color: var(--ink); }

.mapa__ficha { display: grid; gap: var(--s-1); padding: 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg); }
.mapa__ficha-k { font-size: var(--t-xs); font-weight: 600; color: var(--lima-deep); }
.mapa__ficha-n { font-size: 1.125rem; font-weight: 680; letter-spacing: -0.01em; color: var(--ink); }
.mapa__ficha address { font-style: normal; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.mapa__acciones { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.mapa__btn { flex: 1 1 auto; min-height: 44px; padding: 0.5rem 0.8rem; font-size: var(--t-sm); white-space: nowrap; }

/* Mapa chico (móvil, columnas angostas): trazos más gruesos, sin nombres de vías */
@container mapa (max-width: 43.99rem) {
  .mapa__lienzo { --k: 1.4; }
  .mapa__l--ancho { display: none; }
  .mapa__centro-t { font-size: 0.75rem; }
  /* abajo no caben escala y atribución juntas: la escala sube a la esquina libre (oeste rural) */
  .mapa__escala { top: 34px; bottom: auto; }
}
/* Mapa ancho: ventana completa y ficha flotando a la izquierda del pin */
@container mapa (min-width: 44rem) {
  .mapa__lienzo { aspect-ratio: var(--m-wh); }
  .mapa__lienzo, .mapa__ficha { grid-area: 1 / 1; }
  .mapa__ficha {
    position: relative;
    z-index: 1;
    align-self: start;
    justify-self: end;
    width: max-content;
    max-width: 21rem;
    /* borde derecho a 28 px del pin (los márgenes en % se miden sobre el ancho del mapa) */
    margin-inline-end: calc(100% - var(--pin-x) + 28px);
    margin-block-start: calc(var(--pin-y) - 3.25rem);
    box-shadow: var(--shadow-card);
  }
  .mapa__ficha::after { content: ""; position: absolute; right: -16px; top: 3.25rem; width: 14px; height: 2px; margin-top: -1px; background: var(--ink); }
}

/* ---------- 14. Preguntas (banda gris) ---------- */
.faq-layout { display: grid; gap: var(--s-6); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.faq-layout__head { display: grid; gap: var(--s-5); justify-items: start; }
.faq-layout__head .ico { --ico: clamp(150px, 7rem + 6vw, 208px); margin-left: calc(var(--ico) * -0.1); } /* 150 px en teléfono, 208 desde ~1590 */
.faq { list-style: none; border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
.faq__btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  padding: var(--s-4) 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.faq__btn:hover { color: var(--lima-deep); }
.faq__sign {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 30px; height: 30px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__sign { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__more { display: none; }
@media (max-width: 759.98px) {
  .faq.is-clamped > .faq__item:nth-child(n+7) { display: none; }
  .faq__more { display: inline-flex; justify-self: start; margin-top: var(--s-4); }
}
.faq__panel { display: grid; }
.faq__inner { overflow: hidden; }
.faq__content { display: grid; gap: var(--s-3); padding: 0 3rem var(--s-5) 0; max-width: 46rem; color: var(--ink-2); }
.faq__content p:first-child { color: var(--ink); }
.js .faq__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.js .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease-out), visibility 0s;
}

/* ---------- 15. CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, rgba(10, 12, 11, 0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(-30deg, rgba(10, 12, 11, 0.04) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(60% 70% at 20% 10%, #000, transparent 70%);
  mask-image: radial-gradient(60% 70% at 20% 10%, #000, transparent 70%);
}
.cta-final > .container { position: relative; }
.cta-final__head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: var(--s-7); }
.cta-final__head p { color: var(--ink-2); font-size: var(--t-lead); }
.cta-final__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .cta-final__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }

.panel {
  --pad: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  border-radius: var(--r-xl);
  padding: var(--pad);
}
/* Tarjeta del formulario simple: la «ficha». Borde casi invisible y sombra en capas con un dejo verde,
   la misma de la ficha animada de /contacto. */
.panel.paper { border: 1px solid rgba(10, 12, 11, 0.1); box-shadow: var(--shadow-ficha); }

/* Membrete de la ficha (simple): título, etiqueta y barra de cuatro tramos sobre el halo lima del hero */
.ficha-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-3);
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--s-6);
  padding: var(--s-5) var(--pad) var(--s-5);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--halo-ficha), var(--bg);
}
.ficha-head__titulo { font-family: var(--f-titulos); font-size: 1.125rem; font-weight: 620; font-stretch: 104%; letter-spacing: -0.018em; line-height: 1.2; }
.ficha-head__tag { padding: 0.2rem 0.65rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: var(--t-xs); font-weight: 550; line-height: 1.4; white-space: nowrap; }
.ficha-head__barra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ficha-head__barra i { height: 4px; overflow: hidden; border-radius: 4px; background: var(--s2); }
.ficha-head__barra i::after { content: ""; display: block; height: 100%; background: var(--lima); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.ficha-head__barra i.is-lleno::after { transform: none; }

.direct { display: grid; gap: var(--s-5); align-content: start; }
.direct h3 { font-size: 1.375rem; font-weight: 600; }
.direct__list { list-style: none; display: grid; }
.direct__list li { display: flex; gap: var(--s-4); align-items: flex-start; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.direct__list li:first-child { border-top: 1px solid var(--line); }
.direct__list .i { color: var(--lima-mid); margin-top: 3px; }
.direct__list a { color: var(--ink); font-weight: inherit; display: inline-flex; min-height: 28px; align-items: center; text-decoration: none; }
.direct__list a:hover { color: var(--lima-deep); text-decoration: underline; }
.direct__label { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 2px; }
.direct .ico { --ico: clamp(184px, 8rem + 9vw, 272px); margin-bottom: calc(var(--ico) * -0.12); } /* 184 px en teléfono, 272 desde ~1600; el camión es plano y deja aire abajo */

/* ---------- 16. Footer ---------- */
/* Espejo del hero: halo lima que sube desde abajo al centro, verde profundo apenas arriba a la derecha y el mismo grano */
.site-footer {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 85% at 50% 100%, rgba(120, 202, 86, 0.26) 0%, rgba(120, 202, 86, 0.09) 38%, rgba(120, 202, 86, 0) 70%),
    radial-gradient(50% 60% at 95% 0%, rgba(43, 106, 30, 0.06) 0%, rgba(43, 106, 30, 0) 55%),
    var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line-2);
}
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03; background-image: var(--grano); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--lima-deep); text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s-7); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); } }
.f-brand { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.f-brand p { color: var(--ink-2); max-width: 22rem; }
/* Instagram: logo en sus colores oficiales y el usuario al lado */
.f-social { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: calc(-1 * var(--s-2)); color: var(--ink); font-size: var(--t-sm); font-weight: 560; text-decoration: none; }
.f-social:hover { color: var(--lima-deep); }
.f-social__ig { width: 28px; height: 28px; flex: none; }
.f-title { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s-3); font-weight: 600; }
.f-list { list-style: none; display: grid; gap: 2px; }
.f-list li { color: var(--ink-2); font-size: var(--t-sm); }
.f-list a { display: inline-flex; align-items: center; min-height: 36px; }
.f-contact li { padding-block: 3px; }
.f-contact b { color: var(--ink); font-weight: 600; }
.f-legal { padding-block: var(--s-5); background: linear-gradient(var(--line-2), var(--line-2)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; /* linea al ancho del contenido, no del padding */ font-size: var(--t-xs); color: var(--ink-3); display: grid; gap: var(--s-3); }
.f-legal a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- 17. Barra movil ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: var(--s-2);
  padding: 8px var(--s-3) calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -10px 24px -20px rgba(10, 12, 11, 0.4);
  transition: transform 0.2s var(--ease-out), visibility 0s linear 0s;
}
.mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 0.2s var(--ease-out), visibility 0s linear 0.2s; }
.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  background: var(--bg);
}
.mb-btn .i { width: 19px; height: 19px; color: var(--lima-mid); }
.mb-btn--primary { background: var(--lima); color: var(--ink); border-color: var(--lima); }
.mobile-bar--duo { grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- 18. Formularios ----------
   Idea: la «ficha de obra». El formulario simple y el cotizador son la versión real de la ficha animada del
   encabezado de /contacto: membrete con título, barra o pasos que se completan, filas con check y sello al
   enviar. Campos con fondo apenas tintado y borde suave (3,4:1), foco lima con borde de 2 px (6,6:1),
   errores con ícono y texto, opciones con anillo lima y check. Una sola escala de radios: 10 px en campos y
   opciones, 16 px en bloques, 22 px en la tarjeta. Movimiento solo con transform y opacity, y ninguno con
   movimiento reducido. Contenedor «form»: las tarjetas de bomba se acomodan al ancho del formulario. */
.form { display: grid; gap: var(--s-5); container: form / inline-size; }
.field { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .label { padding: 0; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); }
.field > legend { margin-bottom: var(--s-3); }
.tag-req { margin-left: 0.15em; font-size: var(--t-xs); font-weight: 450; letter-spacing: 0; color: var(--ink-3); } /* 6,2:1 */
.hint { margin-top: -0.125rem; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  background-color: var(--field-bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.22s var(--ease-out);
}
.textarea { min-height: 7.5rem; resize: vertical; }
.select { appearance: none; background-image: var(--i-chevron); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 20px; padding-right: 2.75rem; }
.input::placeholder, .textarea::placeholder { color: #626b66; opacity: 1; } /* 5,3:1 sobre --field-bg */
@media (hover: hover) {
  .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
}
/* Foco: borde lima profundo de 2 px (1 de borde + 1 inset, sin mover el contenido) y halo lima claro */
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--lima-deep);
  background-color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--lima-deep), 0 0 0 4px rgba(120, 202, 86, 0.3);
}
.input:disabled { border-color: var(--line-2); background-color: var(--s2); color: var(--ink-2); cursor: not-allowed; }
.input--short { max-width: 12rem; }
.input--date { max-width: 16rem; }
/* Error: borde rojo de 2 px y fondo apenas rosado; el mensaje va debajo con ícono */
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea {
  border-color: var(--err-p);
  background-color: var(--err-p-tint);
  box-shadow: inset 0 0 0 1px var(--err-p);
}
[aria-invalid="true"].input:focus, [aria-invalid="true"].select:focus, [aria-invalid="true"].textarea:focus {
  background-color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--err-p), 0 0 0 4px rgba(179, 38, 30, 0.14);
}
.field-error { display: flex; gap: 0.45rem; align-items: flex-start; color: var(--err-p); font-size: 0.875rem; font-weight: 550; line-height: 1.4; }
.field-error .i { width: 16px; height: 16px; margin-top: 0.12rem; stroke-width: 2.1; }

/* Dos campos cortos por fila cuando el formulario tiene ancho (nombre + teléfono, comuna + fecha) */
.form-row { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.form-row .input--date { max-width: none; }

/* ---- Opciones ----
   Regla de forma: el control siempre va a la izquierda (chips, filas y tarjetas con imagen). Seleccionada = borde lima profundo de 2 px, anillo lima claro y fondo lima muy suave. */
.opts { display: grid; gap: var(--s-2); }
/* Opciones cortas (horario, elementos, punto de vaciado): chips del ancho de su texto */
.opts--inline { display: flex; flex-wrap: wrap; }
.opts--inline .opt { flex: 0 1 auto; align-items: center; padding-right: 1.1rem; }
.opts--inline .opt__title { font-weight: 550; }
.opt {
  position: relative;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-field);
  background: var(--bg);
  cursor: pointer;
  line-height: 1.35;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.22s var(--ease-out), transform 0.16s ease-out;
}
@media (hover: hover) {
  .opt:hover { border-color: var(--edge); background: var(--field-bg); }
}
.opt:active { transform: scale(0.985); }
.opt:has(input:checked) {
  border-color: var(--lima-deep);
  background: var(--lima-tint);
  box-shadow: inset 0 0 0 1px var(--lima-deep), 0 0 0 3px rgba(120, 202, 86, 0.24);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt__body { display: grid; gap: 3px; min-width: 0; }
.opt__title { font-weight: 620; letter-spacing: -0.01em; }
/* Filas con frase completa (acceso, condiciones): peso de lectura, no de título */
.opts:not(.opts--bombas):not(.opts--inline) .opt__title { font-weight: 500; letter-spacing: 0; }
.opt__sub { font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }
.has-error .opt { border-color: var(--err-p); }

/* Tipo de bomba, siempre con el control a la izquierda y la imagen a la derecha, que llena el alto de la
   tarjeta con el mismo margen arriba, abajo y a la derecha (0,5rem). Teléfono (formulario bajo 30rem): una
   columna de filas, control | texto | imagen de 100 px de ancho. Desde 30rem: grilla de dos por fila; en cada
   tarjeta, a la izquierda el control arriba y el texto debajo, y a la derecha la imagen, que crece con el
   formulario (hasta 168 px). Las imágenes son cuadradas (360 × 360, npm run miniaturas) y se recortan con
   cover según el alto de la tarjeta, sin ampliarse. */
.opts--bombas { grid-template-columns: minmax(0, 1fr); }
.opt--bomba {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}
.opt--bomba input { margin: 0; }
.opt--bomba .opt__body { padding-block: 0.375rem; }
.opt--bomba .opt__title { font-size: 1rem; }
.opt--bomba .opt__sub { font-size: 0.8125rem; }
.opt__img { display: block; align-self: stretch; width: 100px; height: 100%; min-height: 4.5rem; object-fit: cover; border-radius: 8px; background: var(--s1); transition: background-color 0.16s ease; }
.opt__img--ico { display: grid; place-items: center; }
.opt__img--ico .ico { --ico: 60px; }
.opt:has(input:checked) .opt__img { background: var(--bg); }
@container form (min-width: 30rem) {
  .opts--bombas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt--bomba {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 0.875rem;
    row-gap: 0.375rem;
    padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  }
  .opt--bomba input { grid-area: 1 / 1; margin-top: 0.375rem; }
  .opt--bomba .opt__body { grid-area: 2 / 1; }
  .opt--bomba .opt__img { grid-area: 1 / 2 / 3 / 3; width: clamp(120px, 21cqi, 168px); min-height: 7rem; border-radius: 10px; }
  .opt__img--ico .ico { --ico: clamp(72px, 13cqi, 92px); }
}

.check-line { display: flex; gap: var(--s-3); align-items: flex-start; min-height: 44px; padding-block: 0.55rem; cursor: pointer; line-height: 1.45; }
.field > .check-line { font-size: var(--t-sm); font-weight: 500; }

/* Radios y casillas con el color de la marca (el control nativo sigue ahí para lectores y teclado) */
.opt input, .check-line input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--input-line); /* 4,8:1 sobre blanco */
  border-radius: 50%;
  background: #ffffff center / 14px no-repeat;
  cursor: pointer;
  transition: border-color 0.15s ease, border-width 0.15s ease, background-color 0.15s ease;
}
.check-line input { width: 22px; height: 22px; margin: 0; }
.opt input[type="checkbox"], .check-line input[type="checkbox"] { border-radius: 6px; }
.opt:hover input, .check-line:hover input { border-color: var(--ink); }
.opt input[type="radio"]:checked { border: 6px solid var(--lima-deep); }
.opt input[type="checkbox"]:checked, .check-line input[type="checkbox"]:checked {
  border-color: var(--lima-deep);
  background-color: var(--lima-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
/* Control de las tarjetas de bomba: círculo de 22 px; marcado = lima con check tinta */
.opt--bomba input { width: 22px; height: 22px; }
.opt--bomba input[type="radio"]:checked { border: 1.5px solid var(--lima-deep); background-color: var(--lima); background-image: var(--i-check-tinta); background-size: 13px; }
.opt input:focus-visible { outline: none; }
.check-line input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check-line input:disabled { opacity: 0.5; cursor: not-allowed; }
@media (forced-colors: active) {
  .opt input, .check-line input { appearance: auto; -webkit-appearance: auto; border: 0; background: none; }
  .opt:has(input:checked) { outline: 2px solid CanvasText; }
}

/* Subcampo condicional: aparece pegado a la opción que lo abre, sobre un fondo gris suave */
.subfield { padding: var(--s-4); border-radius: var(--r-md); background: var(--s1); }
.subfield .input { background-color: var(--bg); }
.notice { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--lima-tint); border: 1px solid var(--lima-tint-line); font-size: var(--t-sm); line-height: 1.45; color: var(--ink); }
.notice .i { color: var(--lima-deep); width: 18px; height: 18px; margin-top: 1px; }
.counter { margin-top: -0.125rem; font-size: var(--t-xs); color: var(--ink-2); justify-self: end; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--err-p); font-weight: 600; }
.file-drop { display: grid; gap: var(--s-2); justify-items: start; }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop label.btn { cursor: pointer; }
.file-drop input[type="file"]:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-list { list-style: none; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.file-list li { display: flex; gap: var(--s-2); align-items: center; }
.file-list .i { width: 16px; height: 16px; color: var(--lima-mid); }
.combo { position: relative; }
.combo .input { padding-right: 2.75rem; }
.combo__icon { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); pointer-events: none; width: 20px; height: 20px; color: var(--ink); }
.combo__list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  z-index: var(--z-combo);
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.3rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-field);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.06), 0 20px 40px -16px rgba(10, 12, 11, 0.32);
  color: var(--ink);
}
.combo__list li { padding: 0.6rem 0.75rem; min-height: 44px; display: flex; align-items: center; border-radius: 7px; cursor: pointer; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--lima-tint); }
.combo__list li[aria-selected="true"] { outline: 2px solid var(--lima-deep); outline-offset: -2px; }
.combo__list li.is-sep { margin-top: 0.3rem; border-top: 1px solid var(--line-2); border-radius: 0 0 7px 7px; font-weight: 600; }
.combo__list .combo__empty { cursor: default; color: var(--ink-2); font-size: var(--t-sm); }
.combo__list .combo__empty:hover { background: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Consentimiento como nota tranquila: aviso corto y casillas sobre gris suave, sin peso de título */
.consent-note { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-4) var(--s-2); border-radius: var(--r-md); background: var(--s1); }
.privacy-short { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; } /* 7,3:1 sobre --s1 */
.privacy-layer { font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.consent-note .privacy-layer { padding-bottom: var(--s-2); }

/* Zona de envío: CTA protagonista, línea de confianza y alternativa */
.form-submit { display: grid; gap: var(--s-3); margin-top: var(--s-1); }
.btn--cta { min-height: 56px; font-size: 1.0625rem; font-weight: 650; }
.btn--cta::after, .q-actions [data-next]::after, .q-actions [type="submit"]::after {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask: var(--i-flecha) center / contain no-repeat;
  mask: var(--i-flecha) center / contain no-repeat;
  transition: transform 0.22s var(--ease-out);
}
@media (hover: hover) {
  .btn--cta:hover::after, .q-actions [data-next]:hover::after, .q-actions [type="submit"]:hover::after { transform: translateX(3px); }
}
.form .btn:active, .q-actions .btn:active { transform: scale(0.98); }
/* Enviando: la flecha se vuelve un anillo que gira (estático con movimiento reducido) */
.btn[aria-busy="true"]::after {
  -webkit-mask: none;
  mask: none;
  background: none;
  border: 2px solid rgba(10, 12, 11, 0.22);
  border-top-color: var(--ink);
  border-radius: 50%;
}
.trust-line { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-5); font-size: var(--t-xs); color: var(--ink-2); line-height: 1.4; }
.trust-line li { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust-line .i { width: 15px; height: 15px; color: var(--lima-mid); stroke-width: 2.2; }

/* Resumen de errores: tarjeta tranquila con ícono, título en tinta y enlaces a cada campo */
.error-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border: 1px solid rgba(179, 38, 30, 0.28);
  border-radius: var(--r-md);
  background: var(--err-p-tint);
  color: var(--ink);
}
.error-summary::before { content: ""; grid-row: 1 / span 2; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--err-p) var(--i-alerta) center / 16px no-repeat; }
.error-summary h3 { align-self: center; font-size: 1rem; font-weight: 640; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.error-summary ul { list-style: none; display: grid; gap: 0.2rem; }
.error-summary a { color: var(--err-p) !important; font-size: var(--t-sm); font-weight: 550; text-decoration-thickness: 1px; }
.error-summary a:hover { color: var(--ink) !important; }
.server-error { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px solid rgba(179, 38, 30, 0.28); border-radius: var(--r-md); background: var(--err-p-tint); color: var(--err-p); font-weight: 550; font-size: var(--t-sm); }
.server-error .i { width: 18px; height: 18px; margin-top: 1px; }

/* Éxito: insignia que se estampa, N° de solicitud destacado y lo que sigue como línea de pasos */
.success { display: grid; gap: var(--s-4); justify-items: start; }
.success__badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: var(--s-1); border-radius: 50%; background: var(--lima); color: var(--ink); box-shadow: 0 0 0 8px var(--lima-tint), 0 0 0 9px var(--lima-tint-line); }
.success__badge .i { width: 26px; height: 26px; stroke-width: 2.6; }
.success h2, .success h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.success h2:focus, .success h3:focus { outline: none; }
.success [data-ref] { display: inline-block; padding: 0.02em 0.32em; border-radius: 8px; background: var(--lima-tint); color: var(--lima-deep); white-space: nowrap; } /* 6,3:1 */
.success > p { max-width: 60ch; color: var(--ink-2); }
.success > p strong { color: var(--ink); }
.success__steps { list-style: none; counter-reset: sigue; display: grid; width: 100%; padding: var(--s-2) 0 0; }
.success__steps li { counter-increment: sigue; position: relative; min-height: 2.5rem; padding: 0.2rem 0 var(--s-4) 2.75rem; line-height: 1.5; }
.success__steps li::before {
  content: counter(sigue);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.success__steps li:first-child::before { border-color: var(--lima); background: var(--lima); color: var(--ink); }
.success__steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.9375rem - 1px); top: 2.125rem; bottom: 0.25rem; width: 2px; border-radius: 2px; background: var(--line-2); }
.success__steps li:last-child { padding-bottom: 0; }
.success__urgent { width: 100%; padding: var(--s-4); border-radius: var(--r-md); background: var(--s1); }
.success__urgent a[href^="tel:"] { white-space: nowrap; }
.success__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-1); }

/* ---- Movimiento (solo transform y opacity; nada con movimiento reducido) ---- */
@media (prefers-reduced-motion: no-preference) {
  .field-error:not([hidden]), .error-summary:not([hidden]), .server-error:not([hidden]) { animation: q-aparece 0.24s var(--ease-out); }
  .subfield:not([hidden]), .notice:not([hidden]) { animation: q-aparece 0.3s var(--ease-out); }
  .opt input:checked { animation: q-marca 0.26s var(--ease-out); }
  .btn[aria-busy="true"]::after { animation: q-gira 0.75s linear infinite; }
  .success:not([hidden]) .success__badge { animation: q-sello 0.5s var(--ease-out) both; }
  .success:not([hidden]) > :not(.success__badge) { animation: q-sube 0.45s var(--ease-out) both; }
  .success:not([hidden]) > :nth-child(2) { animation-delay: 0.08s; }
  .success:not([hidden]) > :nth-child(3) { animation-delay: 0.14s; }
  .success:not([hidden]) > :nth-child(4) { animation-delay: 0.2s; }
  .success:not([hidden]) > :nth-child(n + 5) { animation-delay: 0.26s; }
}
@keyframes q-aparece { from { opacity: 0; transform: translateY(-4px); } }
@keyframes q-sube { from { opacity: 0; transform: translateY(8px); } }
@keyframes q-marca { from { transform: scale(0.7); } }
@keyframes q-gira { to { transform: rotate(1turn); } }
@keyframes q-sello { 0% { opacity: 0; transform: scale(0.6) rotate(-8deg); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* ---------- 19. Contacto y paginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, rgba(10, 12, 11, 0.045) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-30deg, rgba(10, 12, 11, 0.045) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(50% 90% at 85% 40%, #000, transparent 75%);
  mask-image: radial-gradient(50% 90% at 85% 40%, #000, transparent 75%);
}
.page-hero__inner { position: relative; display: grid; gap: var(--s-6); align-items: center; }
.page-hero__copy { display: grid; gap: var(--s-4); justify-items: start; max-width: 46rem; }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-weight: 700; letter-spacing: -0.036em; line-height: 1.02; }
.page-hero__lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; }
.page-hero__alt { color: var(--ink-2); font-size: var(--t-sm); }
.page-hero__alt a { font-weight: 600; color: var(--ink); }
.page-hero__alt a:hover { color: var(--lima-deep); }
.page-hero__art { display: none; }
@media (min-width: 1024px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .page-hero__art { display: flex; align-items: flex-end; gap: 0; }
  .page-hero__art .ico { --ico: 132px; }
  .page-hero__art .ico + .ico { margin-left: -28px; }
}

/* /contacto: «Tu cotización en camino». Mismo halo y grano que el hero de la portada (el ::before de
   .page-hero sigue siendo la grilla isométrica: el grano va en ::after, bajo el contenido). */
.page-hero--cotiza { isolation: isolate; background: var(--halo), var(--bg); }
.page-hero--cotiza::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03; background-image: var(--grano); }

/* Escenario «De tu solicitud a tu obra»: a la derecha una tarjeta redondeada con la obra en
   3D (js/3d/cotiza.min.js: edificio de cuatro niveles, camión bomba telescópica, mixer y algo de otra ciudad);
   encima, abajo a la izquierda, la ficha que se llena y se envía; arriba a la izquierda la respuesta de
   Performance y, cuando la losa queda llena, su sello abajo a la derecha. La escena lee el reloj de la ficha
   (mismo instante del ciclo de 16 s). Ancho y alto fijos por tramo: nada de lo que se anima mueve el layout.
   Bajo 1024 px va bajo el texto, con la tarjeta a todo el ancho (ver el bloque «Teléfono y tablet»).
   Estado sin animar = estado final (tres filas con check, barra llena, sello, respuesta y losa hormigonada; el
   póster de la tarjeta es el mismo final): es lo que se ve con movimiento reducido o sin 3D. */
.page-hero__cta { justify-self: start; margin-top: var(--s-1); }
.cv-ficha {
  --fila: 2.75rem;
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 15.5rem;
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem 1rem 0.75rem;
  border: 1px solid rgba(10, 12, 11, 0.1);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.06), 0 30px 56px -30px rgba(10, 12, 11, 0.5), 0 12px 24px -18px rgba(43, 106, 30, 0.25);
  color: var(--ink);
  line-height: 1.3;
}
.cv-ficha__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cv-ficha__titulo { font-size: 0.875rem; font-weight: 640; letter-spacing: -0.01em; }
/* Barra de pasos: tres tramos, cada uno se llena con scaleX */
.cv-barra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cv-barra i { height: 4px; overflow: hidden; border-radius: 4px; background: var(--s2); }
.cv-barra i::after { content: ""; display: block; height: 100%; background: var(--lima); transform-origin: 0 50%; }
/* Filas: etiqueta, dato y check. ::before de .cv-filas = resalte de la fila activa; ::before de cada fila =
   esqueleto del dato vacío; ::after = anillo punteado del check pendiente (todos en su misma celda). */
.cv-filas { position: relative; isolation: isolate; list-style: none; }
.cv-filas::before { content: ""; position: absolute; z-index: -1; inset: 0 -0.5rem auto; height: var(--fila); border-radius: var(--r-sm); background: var(--lima-tint); opacity: 0; }
.cv-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: var(--s-3);
  height: var(--fila);
  border-top: 1px solid var(--line);
}
.cv-fila::before { content: ""; grid-area: 2 / 1; align-self: center; width: var(--esq, 7rem); height: 0.5rem; border-radius: 4px; background: var(--s2); opacity: 0; }
.cv-fila:nth-child(2) { --esq: 5.75rem; }
.cv-fila:nth-child(3) { --esq: 4.25rem; }
.cv-fila::after { content: ""; grid-area: 1 / 2 / 3; align-self: center; width: 1.25rem; height: 1.25rem; border: 1.5px dashed var(--edge); border-radius: 50%; }
.cv-fila__k { grid-area: 1 / 1; color: var(--ink-2); font-size: 0.75rem; line-height: 1.2; }
.cv-fila__v { grid-area: 2 / 1; overflow: hidden; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.cv-fila__ok { position: relative; z-index: 1; grid-area: 1 / 2 / 3; align-self: center; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--lima); }
.cv-fila__ok .i { width: 0.75rem; height: 0.75rem; color: var(--ink); stroke-width: 3.2; }
/* Pie: hueco del botón (esqueleto), el botón que se presiona y, encima, el sello */
.cv-ficha__pie { display: grid; align-items: center; height: 2.5rem; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.cv-ficha__pie::before { content: ""; grid-area: 1 / 1; width: 9.75rem; height: 2rem; border-radius: var(--r-sm); background: var(--s1); opacity: 0; }
.cv-boton {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding-inline: 0.875rem;
  border-radius: var(--r-sm);
  background: var(--lima);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 14px -8px rgba(43, 106, 30, 0.7);
  opacity: 0;
}
.cv-sello {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.75rem;
  padding-inline: 0.55rem 0.7rem;
  border: 1.5px solid var(--lima-deep);
  border-radius: var(--r-sm);
  background: var(--lima-tint);
  color: var(--lima-deep);   /* 6,3:1 sobre --lima-tint */
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  transform: rotate(-3deg);
}
.cv-sello .i { width: 0.875rem; height: 0.875rem; stroke-width: 3; }
/* Puntero que entra desde abajo a la derecha y presiona el botón (la punta queda sobre su centro) */
.cv-puntero { position: absolute; left: 5.25rem; bottom: 0.4rem; width: 1.125rem; height: 1.35rem; opacity: 0; pointer-events: none; transform-origin: 2px 2px; }
.cv-puntero svg { display: block; width: 100%; height: 100%; overflow: visible; fill: var(--ink); stroke: #ffffff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(10, 12, 11, 0.3)); }
/* Respuesta de Performance: globo de mensaje (WhatsApp) con la promesa real de tiempo. Arriba a la izquierda,
   asomando fuera de la tarjeta: tapa la ciudad, no el camino del mixer ni la pluma */
.cv-respuesta {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0.75rem;
  width: 14.5rem;
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0.875rem 0.8rem;
  border: 1px solid rgba(10, 12, 11, 0.1);
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.06), 0 24px 44px -26px rgba(10, 12, 11, 0.45);
  transform-origin: 0 100%;
}
.cv-respuesta__de { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; }
.cv-respuesta__ico { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--lima-tint); color: var(--lima-deep); }
.cv-respuesta__ico .i { width: 0.875rem; height: 0.875rem; }
.cv-respuesta__quien { font-weight: 650; color: var(--ink); }
.cv-respuesta__hora { margin-left: auto; color: var(--ink-2); font-size: 0.6875rem; }
.cv-respuesta__msg { display: grid; font-size: 0.8125rem; line-height: 1.4; color: var(--ink); }
.cv-respuesta__chip { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--lima-tint); color: var(--lima-deep); font-size: 0.6875rem; font-weight: 650; }
.cv-respuesta__chip .i { width: 0.75rem; height: 0.75rem; }
/* Cierre en la obra: cuando la losa queda llena aparece su sello, dentro de la tarjeta abajo a la derecha */
.cv-obra-lista { position: absolute; z-index: 3; bottom: calc(var(--cv-cuelga, 3.5rem) + 1rem); right: 1rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem 0.3rem 0.45rem; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 0.75rem; font-weight: 650; box-shadow: 0 10px 24px -14px rgba(10, 12, 11, 0.6); transform-origin: 100% 50%; }
.cv-obra-lista .i { width: 1.05rem; height: 1.05rem; padding: 0.15rem; border-radius: 50%; background: var(--lima); color: var(--ink); stroke-width: 3.2; }

/* Tarjeta de la obra en 3D: se monta sobre su póster (= estado final) y aparece con un fundido */
.cv-escena {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cv-tarjeta, 24rem);
  aspect-ratio: 960 / 826;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(10, 12, 11, 0.08);
  border-radius: 22px;
  background: var(--s1);
  box-shadow: 0 1px 2px rgba(10, 12, 11, 0.05), 0 44px 80px -46px rgba(10, 12, 11, 0.55);
}
.cv-escena > .escena3d__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-escena > * { transition: opacity 0.6s var(--ease-out); }
.cv-escena.is-3d > :not(.escena3d) { opacity: 0; }
.cv-escena .escena3d__canvas { filter: saturate(1.12) contrast(1.05); }

@media (min-width: 1024px) {
  .page-hero__art.cotiza-viva {
    --cv-w: clamp(31rem, 4rem + 40vw, 46rem); /* tarjeta de 23rem (1024) a 38rem (desde ~1700) */
    --cv-tarjeta: calc(var(--cv-w) - 8rem); /* la ficha asoma 8rem a la izquierda de la tarjeta */
    --cv-cuelga: 6rem; /* y cuelga 6rem bajo ella: solo tapa la calle de adelante */
    position: relative;
    display: block;
    width: var(--cv-w);
    height: calc(var(--cv-tarjeta) * 826 / 960 + var(--cv-cuelga));
  }
}
/* Tarjeta chica (1024-1279 px): la respuesta baja junto a la ficha, bajo la tarjeta (no tapa la llegada del
   mixer), y el sello de la losa sube a la esquina de arriba */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .cv-respuesta { top: auto; left: auto; right: 0; bottom: 0; }
  .cv-obra-lista { bottom: auto; top: 1rem; }
}
/* Teléfono y tablet (< 1024 px): bajo el texto, la tarjeta a todo el ancho (hasta 34rem). La respuesta va
   arriba a la izquierda, casi entera sobre la tarjeta (solo toca el borde de los árboles); la ficha cuelga abajo
   a la izquierda y pisa solo la calle (va en el flujo: el alto del escenario sale de su contenido); el sello de
   la losa queda abajo a la derecha, sobre la calle, justo encima de la ficha (100cqi = ancho de la tarjeta).
   Ninguno tapa el mixer, la pluma ni la losa. */
@media (max-width: 1023.98px) {
  .page-hero__art.cotiza-viva {
    --cv-asoma: 6.25rem;
    --cv-pisa: 3rem;
    container-type: inline-size;
    position: relative;
    display: block;
    width: 100%;
    max-width: 34rem;
    padding-top: var(--cv-asoma);
  }
  .cotiza-viva .cv-escena { position: relative; top: auto; right: auto; width: 100%; }
  .cotiza-viva .cv-ficha { position: relative; left: auto; bottom: auto; width: min(15.5rem, calc(100% - 3rem)); margin: calc(-1 * var(--cv-pisa)) 0 0 0.75rem; }
  .cotiza-viva .cv-respuesta { top: 0; left: 0.75rem; width: min(14.5rem, calc(100% - 1.5rem)); }
  .cotiza-viva .cv-obra-lista { top: calc(var(--cv-asoma) + 100cqi * 826 / 960 - var(--cv-pisa) - 2.35rem); right: 0.75rem; bottom: auto; }
}

/* Ciclo de 16 s (1 % = 160 ms), el de la escena 3D (herramientas/3d/equipos/cotiza/guion.js): obra 4-10 %,
   bombeo 11-17,5 %, metros cuadrados 19-25 %, botón 27-30 %, el puntero lo presiona en 31 %, sello 33-35 %,
   respuesta 36-39 % (el mixer llega en 39-56 %, la pluma se despliega en 44-62 % y la losa se llena en
   64-93 %), sello de la losa 91-93 %; todo se apaga en 97-99,5 % y la ficha vuelve a empezar mientras, en la
   tarjeta, la pluma se pliega y el mixer se va. Solo transform y opacity. */
@media (prefers-reduced-motion: no-preference) {
  .cotiza-viva { --cv-t: 16s; }
  .cv-filas::before, .cv-fila::before, .cv-fila__v, .cv-fila__ok, .cv-barra i::after, .cv-ficha__pie::before,
  .cv-boton, .cv-sello, .cv-puntero, .cv-respuesta, .cv-respuesta__chip, .cv-obra-lista {
    animation-duration: var(--cv-t);
    animation-timing-function: var(--ease-out);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }
  .cv-filas::before { animation-name: cv-cursor; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  .cv-fila:nth-child(1)::before { animation-name: cv-esq1; }
  .cv-fila:nth-child(2)::before { animation-name: cv-esq2; }
  .cv-fila:nth-child(3)::before { animation-name: cv-esq3; }
  .cv-fila:nth-child(1) .cv-fila__v { animation-name: cv-dato1; }
  .cv-fila:nth-child(2) .cv-fila__v { animation-name: cv-dato2; }
  .cv-fila:nth-child(3) .cv-fila__v { animation-name: cv-dato3; }
  .cv-fila:nth-child(1) .cv-fila__ok { animation-name: cv-ok1; }
  .cv-fila:nth-child(2) .cv-fila__ok { animation-name: cv-ok2; }
  .cv-fila:nth-child(3) .cv-fila__ok { animation-name: cv-ok3; }
  .cv-barra i:nth-child(1)::after { animation-name: cv-tramo1; }
  .cv-barra i:nth-child(2)::after { animation-name: cv-tramo2; }
  .cv-barra i:nth-child(3)::after { animation-name: cv-tramo3; }
  .cv-ficha__pie::before { animation-name: cv-hueco; }
  .cv-boton { animation-name: cv-boton; }
  .cv-puntero { animation-name: cv-puntero; }
  .cv-sello { animation-name: cv-sello; }
  .cv-respuesta { animation-name: cv-respuesta; }
  .cv-respuesta__chip { animation-name: cv-chip; }
  .cv-obra-lista { animation-name: cv-obra-lista; }
  .cotiza-viva.is-pausado *, .cotiza-viva.is-pausado *::before, .cotiza-viva.is-pausado *::after { animation-play-state: paused; }
}
@keyframes cv-cursor {
  0%, 2% { opacity: 0; transform: translateY(0); }
  4%, 10% { opacity: 1; transform: translateY(0); }
  12%, 17.5% { opacity: 1; transform: translateY(100%); }
  19.5%, 25% { opacity: 1; transform: translateY(200%); }
  27%, 100% { opacity: 0; transform: translateY(200%); }
}
@keyframes cv-esq1 { 0%, 5% { opacity: 1; } 7%, 97% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes cv-esq2 { 0%, 12.5% { opacity: 1; } 14.5%, 97% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes cv-esq3 { 0%, 20.5% { opacity: 1; } 22.5%, 97% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes cv-dato1 { 0%, 5% { opacity: 0; transform: translateY(5px); } 8%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: none; } }
@keyframes cv-dato2 { 0%, 12.5% { opacity: 0; transform: translateY(5px); } 15.5%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: none; } }
@keyframes cv-dato3 { 0%, 20.5% { opacity: 0; transform: translateY(5px); } 23.5%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: none; } }
@keyframes cv-ok1 { 0%, 7.5% { opacity: 0; transform: scale(0.5); } 10%, 97% { opacity: 1; transform: none; } 99.5% { opacity: 0; transform: scale(0.85); } 100% { opacity: 0; transform: scale(0.5); } }
@keyframes cv-ok2 { 0%, 15% { opacity: 0; transform: scale(0.5); } 17.5%, 97% { opacity: 1; transform: none; } 99.5% { opacity: 0; transform: scale(0.85); } 100% { opacity: 0; transform: scale(0.5); } }
@keyframes cv-ok3 { 0%, 23% { opacity: 0; transform: scale(0.5); } 25.5%, 97% { opacity: 1; transform: none; } 99.5% { opacity: 0; transform: scale(0.85); } 100% { opacity: 0; transform: scale(0.5); } }
@keyframes cv-tramo1 { 0%, 6.5% { transform: scaleX(0); opacity: 1; } 10.5%, 97% { transform: none; opacity: 1; } 99.5% { transform: none; opacity: 0; } 99.6%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes cv-tramo2 { 0%, 14% { transform: scaleX(0); opacity: 1; } 18%, 97% { transform: none; opacity: 1; } 99.5% { transform: none; opacity: 0; } 99.6%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes cv-tramo3 { 0%, 21.5% { transform: scaleX(0); opacity: 1; } 25.5%, 97% { transform: none; opacity: 1; } 99.5% { transform: none; opacity: 0; } 99.6%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes cv-hueco { 0%, 26.5% { opacity: 1; } 28%, 97.5% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes cv-boton {
  0%, 26.5% { opacity: 0; transform: scale(0.92); }
  28.5%, 30.5% { opacity: 1; transform: none; }
  31.25% { opacity: 1; transform: scale(0.93); }
  32% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: none; }
}
@keyframes cv-puntero {
  0%, 27% { opacity: 0; transform: translate(4.5rem, 2.25rem); }
  28% { opacity: 1; }
  30.5% { opacity: 1; transform: none; }
  31.25% { opacity: 1; transform: scale(0.86); }
  32% { opacity: 1; transform: none; }
  34.5%, 100% { opacity: 0; transform: translate(0.6rem, 0.3rem); }
}
@keyframes cv-sello { 0%, 32.5% { opacity: 0; transform: rotate(-3deg) scale(1.3); } 35%, 97% { opacity: 1; transform: rotate(-3deg); } 99.5%, 100% { opacity: 0; transform: rotate(-3deg) scale(0.96); } }
@keyframes cv-respuesta { 0%, 36% { opacity: 0; transform: translateY(0.75rem) scale(0.94); } 39%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: translateY(0.25rem); } }
@keyframes cv-obra-lista { 0%, 90.5% { opacity: 0; transform: scale(0.85); } 92.5%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: none; } }
@keyframes cv-chip { 0%, 39% { opacity: 0; transform: translateY(4px); } 41%, 97% { opacity: 1; transform: none; } 99.5%, 100% { opacity: 0; transform: none; } }

.quote-section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--section-y); }
.quote-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) {
  .quote-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-6); }
  .quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
/* Cotizador: la misma ficha que el formulario simple, con el stepper como membrete */
.q-card { --pad: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); border-radius: var(--r-xl); overflow: visible; border: 1px solid rgba(10, 12, 11, 0.1); box-shadow: var(--shadow-ficha); }
.q-progress {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5) var(--pad) var(--s-5);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--halo-ficha), var(--bg);
}
.q-progress__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3); }
.q-progress__text { font-size: var(--t-xs); font-weight: 600; color: var(--lima-deep); font-variant-numeric: tabular-nums; } /* 6,6:1 */
/* Stepper: número en círculo y nombre debajo; la línea entre pasos se llena (scaleX) al completar uno.
   Pendiente = círculo blanco con borde; actual = lima con halo; listo = lima suave con check. */
.q-progress__bar { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-progress__bar li {
  --nodo: 2rem;
  counter-increment: paso;
  position: relative;
  display: grid;
  justify-items: start;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 550;
  line-height: 1.25;
  color: var(--ink-2);
  background: linear-gradient(var(--line-2), var(--line-2)) left calc(var(--nodo) + 0.625rem) top calc(var(--nodo) / 2 - 1px) / calc(100% - var(--nodo) - 1.25rem) 2px no-repeat;
  transition: color 0.2s ease;
}
.q-progress__bar li:last-child { background: none; }
.q-progress__bar li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: var(--nodo);
  height: var(--nodo);
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg) center / 14px no-repeat;
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s var(--ease-out);
}
.q-progress__bar li::after {
  content: "";
  position: absolute;
  left: calc(var(--nodo) + 0.625rem);
  right: 0.625rem;
  top: calc(var(--nodo) / 2 - 1px);
  height: 2px;
  border-radius: 2px;
  background: var(--lima-mid);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.q-progress__bar li:last-child::after { display: none; }
.q-progress__bar li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.q-progress__bar li[aria-current="step"]::before { border-color: var(--lima); background-color: var(--lima); box-shadow: 0 0 0 5px rgba(120, 202, 86, 0.22); }
.q-progress__bar li.is-done::before { content: ""; border-color: var(--lima-tint-line); background-color: var(--lima-tint); background-image: var(--i-check-lima); }
.q-progress__bar li.is-done::after { transform: none; }

.q-body { padding: var(--s-6) var(--pad) clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.q-step { display: grid; gap: clamp(2rem, 1.6rem + 1vw, 2.5rem); }
.q-step__head { display: grid; gap: var(--s-2); }
.q-step__head h2 { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.125rem); font-weight: 600; }
.q-step__head h2:focus { outline: none; }
.q-step__head p { max-width: 56ch; color: var(--ink-2); }
/* Bloques del paso: subtítulo discreto con una línea fina que corre hasta el borde */
.q-group { display: grid; gap: var(--s-5); }
.q-group__title { display: flex; align-items: center; gap: var(--s-3); font-size: 1rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.012em; }
.q-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.q-body .input, .q-body .select, .q-body .textarea, .q-body .combo { max-width: 40rem; }
.q-body .combo .input { max-width: none; } /* el ancho lo limita .combo, así el chevron queda dentro del campo */
.q-body .counter { justify-self: stretch; max-width: 40rem; text-align: right; } /* bajo el borde derecho de su campo */
.q-body .input--short { max-width: 12rem; }
.q-body .input--date { max-width: 16rem; }
.q-body .form-row .input--date { max-width: none; }
.q-actions { display: flex; flex-wrap: wrap-reverse; gap: var(--s-3); justify-content: space-between; align-items: center; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.q-actions .btn--primary { min-width: 13rem; min-height: 52px; font-weight: 650; }
/* Volver: botón fantasma con flecha a la izquierda (la acción secundaria no compite con la principal) */
.q-actions [data-prev] { border-color: transparent; background: transparent; padding-inline: 0.75rem 1.1rem; }
.q-actions [data-prev]::before { content: ""; width: 1.125rem; height: 1.125rem; background: currentColor; -webkit-mask: var(--i-flecha) center / contain no-repeat; mask: var(--i-flecha) center / contain no-repeat; transform: scaleX(-1); transition: transform 0.22s var(--ease-out); }
@media (hover: hover) {
  .q-actions [data-prev]:hover { border-color: transparent; background: var(--s1); }
  .q-actions [data-prev]:hover::before { transform: scaleX(-1) translateX(3px); }
}
@media (max-width: 559.98px) { .q-actions .btn { width: 100%; } }
.q-step .trust-line { justify-content: flex-end; margin-top: calc(-1 * var(--s-5)); }
@media (max-width: 559.98px) { .q-step .trust-line { justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .q-step:not([hidden]) { animation: q-sube 0.3s var(--ease-out); }
}

/* Revisión: la ficha completa. Cada bloque con su check, título y «Editar»; filas de dato sin tabla */
.review { display: grid; gap: var(--s-3); }
.review__block { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.review__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); background: var(--halo-ficha), var(--bg); }
.review__head::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; border: 1px solid var(--lima-tint-line); border-radius: 50%; background: var(--lima-tint) var(--i-check-lima) center / 12px no-repeat; }
.review__head h3 { flex: 1; font-size: 1rem; font-weight: 620; letter-spacing: -0.012em; }
.review__edit { min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: none; color: var(--lima-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.review__edit:hover { color: var(--ink); }
.review__head .review__edit { padding-inline: 0.75rem; font-size: var(--t-sm); text-decoration: none; }
.review__head .review__edit::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-lapiz) center / contain no-repeat; mask: var(--i-lapiz) center / contain no-repeat; }
.review__head .review__edit:hover { background: var(--lima-tint); }
.review dl { margin: 0; padding: var(--s-1) var(--s-4) var(--s-2); }
.review dl > div { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: var(--s-3); padding-block: 0.625rem; }
.review dl > div + div { border-top: 1px solid var(--line); }
.review dt { color: var(--ink-2); font-size: var(--t-sm); }
.review dd { margin: 0; font-weight: 560; overflow-wrap: anywhere; }
@media (max-width: 559.98px) { .review dl > div { grid-template-columns: 1fr; gap: 0; } }
.wa-alt { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--s1); }
.wa-alt p { font-size: var(--t-sm); color: var(--ink-2); }

.quote-aside .panel { background: var(--s1); border: 1px solid var(--line-2); }
.quote-aside h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.aside-actions { display: grid; gap: var(--s-2); margin-block: var(--s-4) var(--s-3); }
.aside-list { list-style: none; display: grid; }
.aside-list li { display: grid; gap: 2px; padding-block: var(--s-3); border-bottom: 1px solid var(--line-2); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list .k { font-size: var(--t-xs); color: var(--ink-3); }
.aside-list .v { font-weight: 560; }
.aside-list a { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink); }
.aside-list a:hover { color: var(--lima-deep); }
.trust-box { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); font-size: var(--t-sm); }
.trust-box li { display: flex; align-items: center; gap: var(--s-2); }
.trust-box .i { width: 16px; height: 16px; color: var(--lima-mid); stroke-width: 2.4; }

.faq-short { display: grid; gap: var(--s-5) var(--s-7); }
@media (min-width: 820px) { .faq-short { grid-template-columns: 1fr 1fr; } }
.faq-short article { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line-2); align-content: start; }
.faq-short h3 { font-size: 1.125rem; }
.faq-short p { color: var(--ink-2); }

.legal-index { display: grid; gap: var(--s-3); padding-left: 1.6rem; max-width: 46rem; }
.legal-index li { padding-left: var(--s-2); }
.legal-index li::marker { font-family: var(--f-cifras); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--lima-deep); }
.legal-index a { color: var(--ink); text-decoration: none; display: block; padding-block: 0.3rem; } /* bloque: el número se alinea con la primera línea */
.legal-index a:hover { color: var(--lima-deep); text-decoration: underline; text-underline-offset: 0.2em; }

/* Politica de privacidad: indice fijo a la izquierda en escritorio, texto con ancho de lectura a la derecha */
.legal-layout { display: grid; gap: var(--s-7); }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.legal-toc__title { margin-bottom: var(--s-4); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legal { display: grid; gap: var(--s-8); max-width: 46rem; }
.legal section { display: grid; gap: var(--s-4); }
.legal h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 640; }
.legal__n { margin-right: 0.4em; color: var(--lima-deep); font-variant-numeric: tabular-nums; }
.legal__meta { font-size: var(--t-sm); color: var(--ink-3); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { display: grid; gap: var(--s-2); padding-left: 1.25rem; list-style: disc; }
.legal li::marker { color: var(--lima-mid); }
.legal a { color: var(--lima-deep); text-decoration: underline; text-underline-offset: 0.2em; }

/* arte:inicio (generado por herramientas/inyectar.js desde icons.css + out/vivos.css + scene.css: no editar a mano) */
/* ---------- Iconos isometricos (sprite) ----------
   Una sola luz para todo el set: tapa clara, cara izquierda media, cara derecha oscura.
   Los colores vienen de variables: cada seccion (oscura o papel) define su juego. */
.iso-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: block; width: var(--ico, 56px); height: var(--ico, 56px); flex: none; }
.it { fill: var(--ic-t); } .il { fill: var(--ic-l); } .ir { fill: var(--ic-r); }
.wt { fill: var(--ic-wt); } .wl { fill: var(--ic-wl); } .wr { fill: var(--ic-wr); }
.gt { fill: var(--ic-gt); } .gl { fill: var(--ic-gl); } .gr { fill: var(--ic-gr); }
.ik { fill: var(--ic-k); }
.ib { fill: var(--ic-b); } .ibl { fill: var(--ic-bl); } .ibr { fill: var(--ic-br); }
.ibm { fill: none; stroke: var(--ic-gr); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ibm2 { fill: none; stroke: var(--ic-gl); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iho, .isg, .iri { fill: none; stroke: var(--ic-k); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.irb { fill: none; stroke: var(--ic-wt); stroke-width: 1; stroke-linecap: round; opacity: .9; }
.ipp { fill: none; stroke: var(--ic-k); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ipp2 { fill: none; stroke: var(--ic-wr); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ijt { fill: var(--ic-gl); stroke: var(--ic-k); stroke-width: .6; }
.igh { fill: none; stroke: var(--ic-gl); stroke-width: 1.1; stroke-dasharray: 2.4 2; stroke-linejoin: round; }
.ighb { fill: none; stroke: var(--ic-gl); stroke-width: 2; stroke-dasharray: 3 2.4; stroke-linecap: round; stroke-linejoin: round; }
.iq { fill: var(--ic-gl); font: 700 11px/1 "Inter", system-ui, sans-serif; }
.ilt, .ica { fill: none; stroke: var(--ic-wl); stroke-width: .7; }
.ijb { fill: none; stroke: var(--ic-wt); stroke-width: 1.6; stroke-linecap: round; }
.irbar { fill: none; stroke: var(--ic-gr); stroke-width: .7; }
.ipin { fill: var(--ic-gl); } .ipin2 { fill: var(--ic-gr); } .ipd { fill: var(--ic-k); }
.ili, .imsg { fill: none; stroke: var(--ic-wr); stroke-width: 1.1; stroke-linecap: round; }
.ick { fill: none; stroke: var(--ic-k); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iplm { fill: none; stroke: var(--ic-gr); stroke-width: 5.6; stroke-linecap: round; stroke-linejoin: round; }
.iplm2 { fill: none; stroke: var(--ic-gl); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.iqm { fill: none; stroke: var(--ic-gl); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.icl { fill: var(--ic-wl); }
.iwr { fill: none; stroke: var(--ic-k); stroke-width: 2.6; stroke-linecap: round; }
.icr { fill: none; stroke: var(--ic-r); stroke-width: .7; }

/* Juego para fondo grafito (por defecto) */
:root {
  --ic-t: #5b6661; --ic-l: #3d4642; --ic-r: #2a312e;
  --ic-wt: #eef1ee; --ic-wl: #c2c9c5; --ic-wr: #8b9590;
  --ic-gt: #a8e68a; --ic-gl: #78ca56; --ic-gr: #4a8f33;
  --ic-k: #0d1110;
  --ic-b: #1f2623; --ic-bl: #171c1a; --ic-br: #111513;
}
/* Juego para fondo papel */
.on-paper {
  --ic-t: #cdd3cf; --ic-l: #a7afaa; --ic-r: #7f8984;
  --ic-wt: #ffffff; --ic-wl: #dfe3e0; --ic-wr: #a9b1ac;
  --ic-gt: #9ad97b; --ic-gl: #6bbd49; --ic-gr: #3f7f2b;
  --ic-k: #1b211f;
  --ic-b: #e3e6e1; --ic-bl: #d3d7d1; --ic-br: #c2c7c1;
}

/* ---------- Iconos con vida (SVG en linea, generado por arte-iso.js: no editar a mano) ----------
   Solo transform/opacity. Con movimiento reducido no se declara ninguna animacion y queda el reposo.
   main.js pone .is-pausado mientras el icono esta fuera de pantalla. */
.ico--vivo .av { transform-box: view-box; transform-origin: 0 0; }
.mx-s1 { stop-color: var(--ic-wt); } .mx-s2 { stop-color: var(--ic-wl); } .mx-s3 { stop-color: var(--ic-wr); } .mx-sk { stop-color: var(--ic-k); }
.mx-ch { fill: none; stroke: var(--ic-r); stroke-width: 1.7; stroke-linejoin: round; }
.mx-ch2 { fill: none; stroke: var(--ic-l); stroke-width: .7; stroke-linejoin: round; }
.mx-aro { fill: none; stroke: var(--ic-wr); stroke-width: .6; }
.mx-esc { fill: none; stroke: var(--ic-k); stroke-width: .9; stroke-linecap: round; }
.mx-reflejo { fill: var(--ic-wl); opacity: .35; }
.mx-rodado { fill: var(--ic-k); opacity: .8; }
.mx-humo { fill: var(--ic-wr); opacity: 0; }
.mx-sombra { fill: var(--ic-k); opacity: .09; }
.mx-techo { fill: var(--ic-wt); stroke: var(--ic-wl); stroke-width: .35; stroke-linejoin: round; }
.mx-contorno { fill: none; stroke: var(--ic-wl); stroke-width: .35; }
.mx-aro2 { fill: none; stroke: var(--ic-wt); stroke-width: .45; opacity: .9; }
.mx-lama { fill: none; stroke: var(--ic-l); stroke-width: .3; }
.mx-limpia { fill: none; stroke: var(--ic-wr); stroke-width: .35; stroke-linecap: round; }
.mx-junta { fill: none; stroke: var(--ic-wr); stroke-width: .35; stroke-linejoin: round; }
.mx-brazo { fill: none; stroke: var(--ic-k); stroke-width: .4; stroke-linecap: round; }
.mx-escala { fill: none; stroke: var(--ic-r); stroke-width: .55; stroke-linecap: round; }
.mx-peldano { fill: none; stroke: var(--ic-r); stroke-width: .4; }
.mx-cinta { fill: none; stroke: var(--ic-wr); stroke-width: .4; }
.mx-brillo { fill: none; stroke: var(--ic-wt); stroke-width: .5; stroke-linecap: round; opacity: .85; }
.mx-surco { fill: none; stroke: var(--ic-l); stroke-width: .3; opacity: .7; }
.mx-baliza { fill: var(--ic-gl); }
.gr-velo1 { fill: var(--ic-gt); opacity: .22; } .gr-velo2 { fill: var(--ic-gl); opacity: .2; }
.gr-cel1 { fill: none; stroke: var(--ic-gl); stroke-width: .5; }
.gr-cel2 { fill: none; stroke: var(--ic-gr); stroke-width: .5; }
.gr-cordon { fill: none; stroke: var(--ic-gr); stroke-width: .9; stroke-linecap: round; }
.gr-cordon-fondo { fill: none; stroke: var(--ic-gl); stroke-width: .6; opacity: .5; }
.gr-zz { fill: none; stroke: var(--ic-gr); stroke-width: .45; }
.gr-tirante, .gr-eslinga { fill: none; stroke: var(--ic-r); stroke-width: .5; stroke-linejoin: round; }
.gr-cable { fill: none; stroke: var(--ic-k); stroke-width: .5; }
.gr-luz { fill: var(--ic-gl); }
@media (prefers-reduced-motion: no-preference) {
  .mx-franjas { animation: mx-giro 3s linear infinite; }
  .mx-humo { animation: mx-humo 3.3s cubic-bezier(.22, 1, .36, 1) infinite; }
  .mx-humo--2 { animation-delay: -1.1s; }
  .mx-humo--3 { animation-delay: -2.2s; }
  .mx-baliza { animation: gr-luz 2.6s ease-in-out infinite; }
  .gr-carro { animation: gr-carro 16s cubic-bezier(.45, 0, .55, 1) infinite; }
  .gr-cable { animation: gr-cable 16s cubic-bezier(.45, 0, .55, 1) infinite; }
  .gr-carga { animation: gr-carga 16s cubic-bezier(.45, 0, .55, 1) infinite; }
  .gr-luz { animation: gr-luz 2.6s ease-in-out infinite; }
  .ico--vivo.is-pausado .av { animation-play-state: paused; }
}
@keyframes mx-giro { to { transform: translate(-5.99px, -4.34px); } }
@keyframes mx-humo { 0% { transform: translate(0, 0) scale(.35); opacity: 0; } 18% { opacity: .55; } 100% { transform: translate(3px, -10px) scale(1.5); opacity: 0; } }
/* Grua (16 s): baja el balde, vacia, lo sube, el carro entra a la torre, espera y vuelve a salir */
@keyframes gr-carro { 0%, 41% { transform: translate(0, 0); } 60%, 70% { transform: translate(-12.8px, -7.4px); } 90%, 100% { transform: translate(0, 0); } }
@keyframes gr-cable { 0%, 4% { transform: scaleY(1); } 18%, 27% { transform: scaleY(2.364); } 41%, 100% { transform: scaleY(1); } }
@keyframes gr-carga { 0%, 4% { transform: translateY(0); } 18%, 27% { transform: translateY(12.3px); } 41%, 100% { transform: translateY(0); } }
@keyframes gr-luz { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Arte isometrico: clases compartidas por escena y dioramas ---------- */
.iso .s0, .scene .s0 { fill: #0b0e0d; }
.iso .s1, .scene .s1 { fill: #121715; }
.iso .s2, .scene .s2 { fill: #0e1210; }
.iso .s3, .scene .s3 { fill: #0b0e0d; }
.scene .ln { fill: none; stroke: #1b2220; stroke-width: 1.1; stroke-dasharray: 7 9; }
.scene .pk { fill: none; stroke: #222a27; stroke-width: 1; }
.scene .zb { fill: #1e2522; }
.iso .lot, .scene .lot { fill: #141917; }
.scene .lot2 { fill: #111614; }
.scene .bt { fill: #1a201d; stroke: #29312e; stroke-width: 1; stroke-linejoin: round; }
.scene .f1 { fill: url(#wl1); } .scene .f2 { fill: url(#wl2); } .scene .f3 { fill: url(#wl3); }
.scene .f4 { fill: url(#wr1); } .scene .f5 { fill: url(#wr2); } .scene .f6 { fill: url(#wr3); }
.scene .wna1, .scene .wna2, .scene .wna3 { fill: #edcfb1; }
.scene .wnb1, .scene .wnb2, .scene .wnb3 { fill: #dea55a; }
.scene .wnc1, .scene .wnc2, .scene .wnc3 { fill: #95522e; }
.scene .wna1, .scene .wnb1, .scene .wnc1 { opacity: .5; }
.scene .wna2, .scene .wnb2, .scene .wnc2 { opacity: .72; }
.scene .wna3, .scene .wnb3, .scene .wnc3 { opacity: .94; }
.iso .tl, .scene .tl { fill: #0c0f0e; }
.scene .an { fill: none; stroke: #3a4440; stroke-width: 1.2; }
.iso .am, .scene .am { fill: #dea55a; }
.iso .m1, .scene .m1 { fill: #4a5450; }
.iso .m2, .scene .m2 { fill: #343c38; }
.iso .m3, .scene .m3 { fill: #252c29; }
.iso .w1, .scene .w1 { fill: #e4e8e5; }
.iso .w2, .scene .w2 { fill: #b6bdb9; }
.iso .w3, .scene .w3 { fill: #868f8a; }
.iso .g1, .scene .g1 { fill: #9be07a; }
.iso .g2, .scene .g2 { fill: #78ca56; }
.iso .g3, .scene .g3 { fill: #4e9636; }
.iso .k1, .scene .k1 { fill: #0c0f0e; }
.iso .k2, .scene .k2 { fill: #1d2421; }
.iso .k3, .scene .k3 { fill: #151a18; }
.iso .c1, .scene .c1 { fill: #4a524e; }
.iso .c2, .scene .c2 { fill: #353c39; }
.iso .c3, .scene .c3 { fill: #262c29; }
.iso .gl, .scene .gl { fill: #0f1714; }
.iso .hl, .scene .hl { fill: #f6f1e4; }
.iso .ol, .scene .ol { fill: none; stroke: #78ca56; stroke-width: 2.2; stroke-linecap: round; }
.iso .bm0, .scene .bm0 { fill: none; stroke: #2f5a20; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.iso .bm1, .scene .bm1 { fill: none; stroke: #78ca56; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.iso .bm2, .scene .bm2 { fill: none; stroke: #c8eeb4; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-1.6px); }
.iso .rib, .scene .rib { fill: none; stroke: #eef1ee; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 5 9; opacity: .75; }
.iso .ch, .scene .ch { fill: none; stroke: #6e7772; stroke-width: 3; stroke-linecap: round; }
.scene .tail { fill: #c9733a; }
.iso .iw1, .scene .iw1 { fill: #6b4a26; opacity: .55; }
.iso .iw2, .scene .iw2 { fill: #4b3620; opacity: .5; }
.iso .iw3, .scene .iw3 { fill: #2e241a; opacity: .5; }
.iso .rb, .scene .rb { fill: none; stroke: #5b8a45; stroke-width: .8; }
.scene .fw { fill: none; stroke: #5a4a3a; stroke-width: 2; }
.scene .rl { fill: none; stroke: #9aa39e; stroke-width: .9; }
.scene .st { fill: none; stroke: #6f7974; stroke-width: 1; }
.scene .cr { fill: none; stroke: #c4ccc7; stroke-width: 1; }
.iso .lw, .scene .lw { fill: #f2c27b; }
.scene .pl { fill: none; stroke: #5d6763; stroke-width: 1.6; }
.scene .fl { fill: #f3f6f1; }
.iso .hose, .scene .hose { fill: none; stroke: #1a1f1d; stroke-width: 3.2; stroke-linecap: round; }
.scene .pour { fill: none; stroke: #8f9692; stroke-width: 2.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.iso .puddle, .scene .puddle { fill: #59605c; }
.scene .jb { fill: rgba(196, 204, 199, .14); stroke: #c4ccc7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.scene .jz { fill: none; stroke: #c4ccc7; stroke-width: .8; vector-effect: non-scaling-stroke; }
.scene .cw { fill: #2a312e; stroke: #59625e; stroke-width: .8; vector-effect: non-scaling-stroke; }
.scene .tr { fill: #78ca56; }
.scene .cb { fill: none; stroke: #9aa39e; stroke-width: 1; }
.scene .ray { fill: none; stroke-width: 1.4; }
.scene .pg3 { fill: none; stroke: #78ca56; stroke-width: 14; stroke-opacity: .07; stroke-linejoin: round; }
.scene .pg2 { fill: none; stroke: #78ca56; stroke-width: 6; stroke-opacity: .22; stroke-linejoin: round; }
.scene .pg1 { fill: none; stroke: #bff0a4; stroke-width: 1.8; stroke-linejoin: round; }
.scene .pin { stroke: #78ca56; stroke-width: 1; stroke-opacity: .5; }
.scene .comet { fill: none; stroke: #f1ffe9; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 1440; opacity: 0; }
.scene .gps-ring { fill: none; stroke: #78ca56; stroke-width: 1.6; opacity: .6; }
.scene .gps-pin { fill: #78ca56; }
.scene .gps-dot { fill: #0a0c0b; }
.scene .hud-dot { fill: #e9f7e2; }
.scene .hud-halo { fill: none; stroke: #78ca56; stroke-width: 1.4; opacity: .7; }
.iso .dl1 { fill: #1a1612; } .iso .dr1 { fill: #120f0c; }
.iso .dl2 { fill: #232a27; } .iso .dr2 { fill: #191e1c; }
.iso .strata { fill: none; stroke: #2c2620; stroke-width: 1; }
.iso .dper { fill: none; stroke: #78ca56; stroke-width: 1.6; stroke-opacity: .75; }
.iso .ghost { fill: rgba(120, 202, 86, .05); stroke: #78ca56; stroke-width: 1.4; stroke-dasharray: 4 4; stroke-linejoin: round; opacity: .7; }
.iso .ghostb { fill: none; stroke: #78ca56; stroke-width: 4; stroke-dasharray: 6 6; stroke-linecap: round; opacity: .55; }
.iso .pipe0 { fill: none; stroke: #2a312e; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.iso .pipe1 { fill: none; stroke: #8e9792; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.iso .joint { fill: #78ca56; stroke: #0b0e0d; stroke-width: 1; }

/* ---------- Animaciones de la escena ---------- */
@media (prefers-reduced-motion: no-preference) {
  .scene .per { animation: per-pulse 3.6s ease-in-out infinite; }
  .scene .comet { animation: comet 7s linear infinite; }
  .scene .comet--2 { animation-delay: -3.5s; }
  .scene .drive--a { animation: drive-a 28s linear infinite; }
  .scene .drive--b { animation: drive-b 28s linear infinite; animation-delay: -6s; }
  .scene .rib { animation: rib 1.4s linear infinite; }
  .scene .slew { animation: slew 24s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .scene .sway { animation: sway 7s ease-in-out infinite alternate; }
  .scene .pour { animation: pour .9s linear infinite; }
  .scene .puddle { animation: puddle 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .scene .hoist-load { animation: hoist 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .scene .hoist-cable { animation: cable 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .scene .bl { animation: blink 2.4s steps(1, end) infinite; }
  .scene .bl--2 { animation-delay: -1.1s; }
  .scene .bl--3 { animation-duration: 1.2s; }
  .scene .gps-ring { animation: ring 2.8s cubic-bezier(.16, 1, .3, 1) infinite; transform-box: fill-box; transform-origin: center; }
  .scene .gps-ring--2 { animation-delay: -1.4s; }
}
@keyframes per-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes comet { 0% { stroke-dashoffset: 0; opacity: 0; } 4% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -1510; opacity: 0; } }
@keyframes rib { to { stroke-dashoffset: -28; } }
@keyframes slew { from { transform: rotate(152deg); } to { transform: rotate(222deg); } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
@keyframes pour { to { stroke-dashoffset: -16; } }
@keyframes puddle { from { transform: scale(.82); } to { transform: scale(1.08); } }
@keyframes hoist { from { transform: translateY(-26px); } to { transform: translateY(14px); } }
@keyframes cable { from { transform: scaleY(.62); } to { transform: scaleY(1.22); } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
/* Mixers: posicion estatica (movimiento reducido) y recorrido animado.
   Vectores por unidad de mundo: +y = (-26, 15) px ; +x = (26, 15) px */
.scene .drive--a { transform: translate(-208px, 120px); }
.scene .drive--b { transform: translate(364px, 210px); }
@media (prefers-reduced-motion: no-preference) {
  .scene .drive--b { animation-delay: -21.3s; }
}
@keyframes drive-a { 0% { transform: translate(26px, -15px); opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(-832px, 480px); opacity: 0; } }
@keyframes drive-b { 0% { transform: translate(780px, 450px); opacity: 0; } 10% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translate(-936px, -540px); opacity: 0; } }
/* arte:fin */

/* ---------- 19b. Página 404 ---------- */
.p404 { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; }
.p404__inner { display: grid; gap: var(--s-4); justify-items: start; max-width: 44rem; padding-block: var(--s-8); }
.p404 .brand { margin-bottom: var(--s-5); }
.p404__code { font-family: var(--f-cifras); font-variant-numeric: tabular-nums; font-size: var(--t-sm); font-weight: 600; color: var(--lima-deep); }
.p404 h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); font-weight: 560; letter-spacing: -0.036em; line-height: 1.04; }
.p404__lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; }
.p404__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.p404__alt { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s-3); }
.p404__alt a { font-weight: 600; color: var(--ink); }

/* ---------- 20. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
@media print {
  .site-header, .mobile-bar, .hero__scene { display: none; }
}
