/* ==========================================================================
   TRANSMATIC — sistema visual «Azul y rojo»
   Cromo de cristal oscuro flotando sobre película de planta y sobre placas
   blancas de producto. Azul cobalto para la acción y los campos de color,
   rojo de marca para el estado y el marcador.

   Tokens (nombres estables, compartidos con features.css):
     --paper #fff · --paper-2 #f0f1f6 (suelo de página) · --panel · --stone
     --ink #0c0f1e · --ink-2 #111528 · --ink-3 #191e36
     --mute (sólo sobre oscuro o estados inactivos) · --mute-dark (texto secundario)
     --blue #2a44d7 (acción, campos) · --cta = --blue (alias histórico)
     --red #e5352c (marca, marcas sin texto) · --red-deep #d92b22 (rellenos con texto blanco)
     --glass: cristal oscuro del cromo (nav, chips, panel de película, toast).
     --f-display / --f-sans: Host Grotesk · --f-mono: Geist Mono (valores,
     unidades, recuentos y numerales de capítulo, siempre con cifras tabulares).

   Contrato de componentes:
     .btn            primario: fondo --blue, texto blanco (7,2:1), 52px, radio 4px.
     .btn--red       alias de .btn (compatibilidad).
     .btn--ghost     contorno 1px currentColor, fondo transparente.
     .btn--light     fondo blanco, texto --ink (sobre campos de color y oscuros).
     .btn--sm        40px de alto.
     .tab / .tab--sm rectángulos 4px dentro de un control segmentado;
                     estado activo [aria-pressed="true"] = fondo --ink.
     .mcard          placa de imagen blanca 4:3 (object-fit: contain),
                     .mcard__img · .mcard__body · .mcard__name · .mcard__add[data-add]
                     · .mcard__link (capa de enlace). «En presupuesto» = --red-deep.
   Las máquinas van siempre sobre blanco, sin tintes ni mezclas encima.
   ========================================================================== */

:root {
  --ink: #0c0f1e;
  --ink-2: #111528;
  --ink-3: #191e36;
  --paper: #ffffff;
  --paper-2: #f0f1f6;
  --panel: #e4e6ef;
  --stone: #cfd3e0;
  --mute: #8b91a6;
  --mute-dark: #555b72;
  --soft: #b9bfd6;           /* texto secundario sobre oscuro */
  --line: rgba(12, 15, 30, .13);
  --line-inv: rgba(255, 255, 255, .16);
  --blue: #2a44d7;
  --blue-hover: #1f36b8;
  --blue-soft: #a5ceff;
  --blue-tint: #e6eafb;
  --red: #e5352c;
  --red-deep: #d92b22;
  --cta: var(--blue);
  --cta-hover: var(--blue-hover);
  --err: #c2261d;
  --err-inv: #ffd3c4;
  --rosso: #e5352c;
  --glass: rgba(16, 19, 36, .7);
  --glass-solid: rgba(14, 17, 32, .94);
  --blur: saturate(1.5) blur(16px);
  --radius: 4px;

  --f-display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1600px;
  --nav-top: 20px;
  --nav-bar: 60px;
  --nav-h: 100px;            /* espacio que reserva la nav flotante: 20 + 60 + 20 */

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --t: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable;
  scrollbar-color: #9aa1bb var(--paper-2);
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-2); /* suelo de página; las placas y paneles son --paper */
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip, no hidden: hidden convierte body en contenedor de scroll y rompe position: sticky */
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
.contact ::selection, .chap--blue ::selection { background: #fff; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section--dark :focus-visible, .contact :focus-visible, .footer :focus-visible, .service :focus-visible,
.intro :focus-visible, .film :focus-visible, .menu :focus-visible, .nav :focus-visible, .vmodal :focus-visible,
.toast :focus-visible, .chap__panel :focus-visible, .gama__ctrl :focus-visible { outline-color: #fff; }
.section--dark, .contact, .footer, .menu { caret-color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.display em, em { font-style: normal; }
.h-xl { font-size: clamp(44px, 6.6vw, 96px); }
.h-lg { font-size: clamp(38px, 5vw, 80px); }
.h-md { font-size: clamp(28px, 3.2vw, 52px); line-height: 1.04; }
.h-sm { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.5; max-width: 44ch; color: var(--mute-dark); margin: 0; }
.section--dark .lead, .service .lead { color: var(--soft); }
.contact .lead { color: #dfe5ff; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.mono { font-size: 13px; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--bd);
  font-family: var(--f-sans); font-weight: 500; font-size: 15px; letter-spacing: 0; line-height: 1;
  border-radius: var(--radius); white-space: nowrap;
  transition: background-color var(--t) ease, color var(--t) ease, box-shadow var(--t) ease;
}
.btn:hover { --bg: var(--blue-hover); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--red { --bg: var(--blue); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.btn--ghost:hover { --bg: rgba(12, 15, 30, .06); }
.section--dark .btn--ghost:hover, .contact .btn--ghost:hover, .service .btn--ghost:hover,
.intro .btn--ghost:hover, .film .btn--ghost:hover { --bg: rgba(255, 255, 255, .12); }
.btn--ghost.is-in, .btn.is-in { --bg: var(--red-deep); --fg: #fff; --bd: var(--red-deep); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { --bg: var(--blue-tint); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

.link-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-color var(--t); }
.link-u:hover { text-decoration-color: transparent; }

/* ==========================================================================
   Nav: barra de cristal flotante, dividida por grupo de máquinas
   ========================================================================== */
.nav {
  position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; gap: 4px;
  padding: 0 var(--gutter);
  color: #fff; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__bar, .nav__quote, .nav__plus {
  height: var(--nav-bar); border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.nav__bar { display: flex; align-items: center; padding: 0 6px 0 20px; min-width: 0; }
.nav__logo { display: block; flex: none; width: 112px; margin-right: 14px; }
.nav__logo img { width: 100%; height: auto; }
.nav__links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links li { display: flex; align-items: center; }
.nav__links li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.nav__links a {
  display: grid; place-items: center; height: 48px; padding: 0 clamp(14px, 1.5vw, 24px);
  border-radius: 3px; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color var(--t) ease;
}
.nav__links a:hover { background: rgba(255, 255, 255, .12); }
.nav__links a[aria-current="true"] { background: #fff; color: var(--ink); }
.nav__quote {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 14px 0 20px;
  font-size: 15px; font-weight: 500;
  transition: background-color var(--t) ease;
}
.nav__count {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 3px;
  display: grid; place-items: center;
  background: var(--red-deep); color: #fff;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.nav__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.22); } }
.nav__plus { width: var(--nav-bar); display: grid; place-items: center; flex: none; transition: background-color var(--t) ease; }
.nav__plus svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.nav__quote:hover, .nav__plus:hover { background: rgba(16, 19, 36, .88); }
body.menu-open .nav__plus { background: #fff; color: var(--ink); }
body.menu-open .nav__plus svg { transform: rotate(135deg); }

/* Índice completo (botón +): grupos → familias, y la empresa */
.menu-bg { position: fixed; inset: 0; z-index: 98; background: rgba(12, 15, 30, .42); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.menu-open .menu-bg { opacity: 1; pointer-events: auto; }
.menu {
  position: fixed; z-index: 99;
  top: calc(var(--nav-top) + var(--nav-bar) + 4px);
  left: 50%; width: min(1180px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - var(--nav-top) - var(--nav-bar) - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--glass-solid); color: #fff; border-radius: var(--radius);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  padding: clamp(22px, 2.4vw, 36px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px);
  transition: opacity .25s ease, transform .5s var(--ease), visibility 0s linear .25s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s ease, transform .5s var(--ease); }
.menu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .9fr); gap: 28px clamp(20px, 2.4vw, 40px); }
.menu__col h3 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 1.9vw, 30px); letter-spacing: -.03em; line-height: 1.05; }
.menu__col h3 a { display: inline-flex; align-items: baseline; gap: 10px; }
.menu__col h3 sup { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0; color: var(--soft); font-variant-numeric: tabular-nums; }
.menu__col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-inv); }
.menu__col li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-inv); font-size: 15px; color: #dfe2ee; transition: color var(--t), background-color var(--t); }
.menu__col li a span { font-family: var(--f-mono); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.menu__col a:hover { color: #fff; }
.menu__col li a:hover { background: rgba(255, 255, 255, .07); }
.menu__col--co { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line-inv); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 2.4vw, 36px); font-size: 14px; color: var(--soft); }
.menu__foot a:hover { color: #fff; }

/* ==========================================================================
   Intro: película de planta a sangre; al avanzar se desenfoca y entra el enunciado
   ========================================================================== */
.intro { position: relative; color: #fff; background: var(--ink-2); }
.intro__pin { position: relative; min-height: 100svh; overflow: hidden; display: grid; }
.intro__media { position: absolute; inset: 0; }
.intro__media video, .intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__media::after {
  content: ""; position: absolute; inset: 0;
  /* El velo cubre sólo lo que necesita el texto: banda bajo la nav, zona izquierda del titular y franja inferior */
  background:
    linear-gradient(90deg, rgba(12,15,30,.62) 0%, rgba(12,15,30,.34) 38%, rgba(12,15,30,0) 68%),
    linear-gradient(180deg, rgba(12,15,30,.3) 0%, rgba(12,15,30,0) 20%, rgba(12,15,30,0) 58%, rgba(12,15,30,.82) 100%);
}
.intro__veil { display: none; }
.intro__a {
  position: relative; z-index: 2; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; padding-top: var(--nav-h);
}
.hero__title-wrap { align-self: end; padding-bottom: clamp(28px, 4.4vh, 56px); }
.hero__title { font-size: clamp(44px, 7.2vw, 96px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.hero__title .line { display: block; }
.hero__sub { margin: clamp(18px, 2.6vh, 28px) 0 0; max-width: 54ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: #e2e5f0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.6vh, 40px); }
.hero__bar {
  border-top: 1px solid var(--line-inv);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 0; padding: 20px 0 28px;
}
.readout { display: grid; gap: 6px; margin: 0; }
.readout__k { font-size: 13px; font-weight: 500; color: var(--soft); }
.readout__v--txt { font-family: var(--f-sans); letter-spacing: 0; }
.readout__v { margin: 0; font-family: var(--f-mono); font-size: clamp(16px, 1.3vw, 21px); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Enunciado: sin JS o con movimiento reducido es un bloque propio bajo la película */
.intro__b { position: relative; z-index: 2; padding: clamp(88px, 11vw, 176px) 0; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.16; letter-spacing: -.032em; margin: 0; max-width: 24ch; text-wrap: pretty;
}
.manifesto__sig { margin-top: clamp(28px, 4vh, 48px); display: flex; flex-wrap: wrap; gap: 12px; }

/* Modo vivo (lo activa home.js): escena fija de dos tiempos gobernada por --p (0 → 1) */
.intro.is-live { height: 230svh; }
.intro.is-live .intro__pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
.intro.is-live .intro__veil {
  display: block; position: absolute; inset: 0; z-index: 1;
  background: rgba(12, 15, 30, .58);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: clamp(0, (var(--p, 0) - .08) * 3, 1);
}
.intro.is-live .intro__media video { transform: scale(calc(1 + var(--p, 0) * .06)); }
.intro.is-live .intro__a {
  grid-area: 1 / 1; height: 100svh; min-height: 0;
  opacity: clamp(0, 1 - var(--p, 0) * 3.4, 1);
  transform: translateY(calc(var(--p, 0) * -60px));
}
.intro.is-live .intro__b {
  grid-area: 1 / 1; align-self: end; padding: 0 var(--gutter) clamp(48px, 9vh, 104px);
  opacity: clamp(0, (var(--p, 0) - .36) * 4, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .36) * 2.6, 1)) * 44px));
}
.intro.is-live .manifesto__text { max-width: 25ch; font-size: clamp(30px, 4.1vw, 64px); }
.intro.is-live[data-phase="a"] .intro__b, .intro.is-live[data-phase="b"] .intro__a { pointer-events: none; visibility: hidden; }

/* ==========================================================================
   La gama: escena fija que avanza por los cuatro grupos de máquinas
   ========================================================================== */
.gama { position: relative; background: var(--paper); }
.chap { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr); }
.chap__plate { position: relative; background: #fff; display: grid; place-items: center; padding: clamp(24px, 4vw, 72px); min-height: 0; }
.chap__plate img { width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }
.chap__panel {
  position: relative; color: #fff; background: var(--blue);
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(28px, 3vw, 52px);
}
.chap--red .chap__panel { background: var(--red-deep); }
.chap__meta { margin: auto 0 -8px; font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.chap__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 80px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.chap__tag { margin: 0; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.45; max-width: 30ch; }
.chap__fams { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .34); }
.chap__fams a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .34);
  font-size: 16px;
  transition: background-color var(--t);
}
.chap__fams a b { font-weight: 500; display: grid; gap: 1px; }
.chap__fams a small { font-size: 14px; font-weight: 400; line-height: 1.4; }
@media (max-height: 860px) and (min-width: 1101px) { .chap__fams a small { display: none; } }
.chap__fams a span { font-family: var(--f-mono); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.chap__fams a:hover { background: rgba(255, 255, 255, .12); }
.chap__cta { align-self: flex-start; margin-top: 8px; }
.gama__ctrl { display: none; }

/* Apilado (móvil, tablet, movimiento reducido): cada grupo es un bloque */
.gama:not(.is-live) .chap + .chap { border-top: 1px solid var(--line); }
.gama:not(.is-live) .chap__plate { min-height: clamp(280px, 44vw, 560px); }

/* Modo vivo */
.gama.is-live { height: calc(100svh + var(--n, 4) * 85svh); }
.gama.is-live .gama__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.gama.is-live .chap {
  position: absolute; inset: 0;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .7s;
}
.gama.is-live .chap.is-on { visibility: visible; pointer-events: auto; transition: none; z-index: 1; }
.gama.is-live .chap__plate { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 104px; }
.gama.is-live .chap__plate img {
  max-height: none; opacity: 0; transform: translateY(28px) scale(.985);
  transition: opacity .5s ease, transform .9s var(--ease);
}
.gama.is-live .chap.is-on .chap__plate img { opacity: 1; transform: none; transition-delay: .08s; }
.gama.is-live .chap__panel {
  padding-top: calc(var(--nav-h) + clamp(12px, 3vh, 36px));
  clip-path: inset(100% 0 0 0);
  transition: clip-path .8s var(--ease);
}
.gama.is-live .chap.is-on .chap__panel { clip-path: inset(0); }
.gama.is-live .chap.is-prev .chap__panel { clip-path: inset(0); }
.gama.is-live .chap.is-prev { visibility: visible; z-index: 0; }
.gama.is-live .chap__panel > * { opacity: 0; transform: translateY(22px); transition: opacity .45s ease, transform .8s var(--ease); }
.gama.is-live .chap.is-on .chap__panel > * { opacity: 1; transform: none; transition-delay: calc(.14s + var(--i, 0) * .05s); }
.gama.is-live .gama__ctrl {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 28px;
  width: calc((100% - 2 * var(--gutter)) * .56);
  display: grid; gap: 14px;
}
.gama__chips { display: flex; gap: 4px; }
.gama__chip {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 3px;
  background: var(--glass); color: #fff;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  transition: background-color var(--t) ease;
}
.gama__chip b { font-family: var(--f-sans); font-weight: 500; font-size: 14px; display: none; }
.gama__chip:hover { background: var(--ink); }
.gama__chip[aria-current="true"] { background: var(--red-deep); }
.gama__chip[aria-current="true"] b { display: inline; }
.gama__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gama__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--gp, 0)); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(88px, 10vw, 168px) 0; }
.section--dark { background: var(--ink-2); color: #fff; }
.section__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(44px, 5.5vw, 88px); }
.section__head > :nth-child(2) { justify-self: end; }
.section__head .lead { max-width: 46ch; }
.finder-sec .section__head { margin-bottom: 0; }

/* ---------- Flagship (CA 1000) ---------- */
.flag { background: var(--paper-2); padding: clamp(88px, 10vw, 168px) 0; border-top: 1px solid var(--line); }
.flag__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.flag__head .lead { justify-self: end; }
.flag__body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 4px; align-items: stretch; }
.flag__plate { position: relative; background: #fff; border-radius: var(--radius); display: grid; place-items: center; padding: clamp(16px, 2.4vw, 40px); min-height: 60vh; }
.flag__img { position: relative; width: 100%; max-width: 1180px; }
.flag__img img { width: 100%; height: auto; }
.callout {
  position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 3px; background: var(--red-deep); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1;
}
.flag__side { display: flex; flex-direction: column; gap: 28px; background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.4vw, 36px); }
.flag__points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flag__points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--mute-dark); }
.flag__points li b { display: block; color: var(--ink); font-weight: 600; }
.flag__points .callout { position: static; margin: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.specs div:nth-child(even) { padding-left: 14px; }
.specs dt { font-size: 13px; color: var(--mute-dark); margin-bottom: 2px; }
.specs dd { margin: 0; font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.flag__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ---------- Film: película de planta con panel de cristal ---------- */
.film { position: relative; background: var(--ink-2); color: #fff; overflow: hidden; }
.film__sticky { position: relative; height: 96svh; min-height: 560px; overflow: hidden; }
.film__img { position: absolute; inset: 0; }
.film__img img, .film__img video { width: 100%; height: 100%; object-fit: cover; }
.film__content { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; flex-wrap: wrap; padding-bottom: clamp(24px, 5vh, 56px); }
.film__panel {
  max-width: 620px; padding: clamp(24px, 2.6vw, 40px); border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.film__panel .lead { margin-top: 18px; color: #e2e5f0; }
.play {
  display: inline-flex; align-items: center; gap: 16px; height: 84px; padding: 0 28px 0 10px; border-radius: var(--radius);
  background: var(--glass); font-size: 15px; font-weight: 500;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color var(--t) ease;
}
.play:hover { background: rgba(16, 19, 36, .9); }
.play__btn {
  width: 64px; height: 64px; border-radius: 3px; flex: none;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  transition: background-color var(--t), color var(--t);
}
.play:hover .play__btn { background: var(--red-deep); color: #fff; }
.play__btn svg { width: 20px; height: 20px; margin-left: 3px; }
.play__meta { display: grid; gap: 2px; text-align: left; }
.play__meta .num { font-size: 13px; color: var(--soft); }

/* ---------- Values / numbers ---------- */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-inv); }
.value { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px) 0 0; border-right: 1px solid var(--line-inv); }
.value + .value { padding-left: clamp(20px, 2.4vw, 40px); }
.value:last-child { border-right: 0; }
.value__n { font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 6.6vw, 96px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.value__n sup { font-size: .28em; color: var(--blue-soft); vertical-align: top; position: relative; top: .5em; margin-left: .12em; letter-spacing: 0; font-weight: 500; }
.value h3 { font-weight: 600; font-size: 17px; letter-spacing: 0; margin: 24px 0 8px; }
.value p { margin: 0; color: var(--soft); max-width: 36ch; }

.values__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 80px); margin-top: clamp(72px, 9vw, 140px); align-items: center; }
.values__photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.values__photo img { width: 100%; height: 100%; object-fit: cover; }
.values__photo figcaption { position: absolute; left: 12px; bottom: 12px; height: 34px; padding: 0 12px; display: grid; place-items: center; border-radius: 3px; font-size: 14px; color: #fff; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.values__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 40px; }
.values__pair img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
.procs { list-style: none; margin: clamp(72px, 9vw, 140px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-inv); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; color: var(--soft); }
.procs li { white-space: nowrap; }

/* ---------- Applications ---------- */
.apps__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.apps__item { position: relative; border-bottom: 1px solid var(--line); }
.apps__item a { display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 24px; padding: clamp(18px, 1.8vw, 28px) 0; }
.apps__item .t { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.8vw, 64px); line-height: 1.02; letter-spacing: -.035em; transition: transform .5s var(--ease), color var(--t); }
.apps__item .c { font-size: 15px; color: var(--mute-dark); text-align: right; }
.apps__item .go { width: 20px; height: 20px; color: var(--mute-dark); transition: color var(--t), transform .5s var(--ease); }
.apps__item a:hover .t { transform: translateX(14px); color: var(--blue); }
.apps__item a:hover .go { color: var(--blue); transform: translateX(4px); }
.apps__preview {
  position: fixed; z-index: 50; top: 0; left: 0; width: min(340px, 26vw); aspect-ratio: 4/5;
  pointer-events: none; overflow: hidden; border-radius: var(--radius);
  opacity: 0; transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}
.apps__preview.on { opacity: 1; }
.apps__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.apps__preview img.on { opacity: 1; }

/* ---------- Showcase grid (home) ---------- */
.show { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.show .mcard:nth-child(1) { grid-column: span 7; }
.show .mcard:nth-child(2) { grid-column: span 5; }
.show .mcard:nth-child(3) { grid-column: span 5; }
.show .mcard:nth-child(4) { grid-column: span 7; }
.show .mcard__img { aspect-ratio: auto; flex: 1; min-height: clamp(340px, 36vw, 600px); }
.show .mcard__body { flex: none; }

/* ---------- Machine card (catalog + home) ---------- */
.mcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t) ease; }
.mcard:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.mcard__img { position: relative; aspect-ratio: 4/3; background: #fff; }
.mcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10% 6% 5%; object-fit: contain; transition: transform .7s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.03); }
.mcard__tag { position: absolute; top: 16px; left: 18px; z-index: 1; font-size: 13px; color: var(--mute-dark); }
.mcard__add {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  height: 36px; padding: 0 12px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 500;
  transition: background-color var(--t), color var(--t), box-shadow var(--t);
}
.mcard__add:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.mcard__add.is-in { background: var(--red-deep); color: #fff; box-shadow: none; }
.mcard__body { flex: 1 0 auto; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-content: start; gap: 6px 20px; align-items: start; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.mcard__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.1vw, 36px); line-height: 1.02; letter-spacing: -.035em; margin: 0; transition: color var(--t); }
.mcard:hover .mcard__name { color: var(--blue); }
.mcard__desc { grid-column: 1 / -1; margin: 2px 0 0; color: var(--mute-dark); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.45); align-self: start; }
.mcard__spec { min-height: 3em; font-family: var(--f-mono); font-size: 13px; line-height: 1.5; text-align: right; color: var(--mute-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mcard__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }

/* ---------- Asistencia técnica ---------- */
.service { background: var(--ink-2); color: #fff; }
.service__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-inv); }
.service__item { padding: clamp(24px, 2.6vw, 40px) clamp(20px, 2.4vw, 40px) 0 0; border-right: 1px solid var(--line-inv); }
.service__item + .service__item { padding-left: clamp(20px, 2.4vw, 40px); }
.service__item:last-child { border-right: 0; }
.service__item h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.service__item p { margin: 0; color: var(--soft); max-width: 38ch; }
.service__item a { color: #fff; }
.service__item a:hover { text-decoration: underline; text-underline-offset: .22em; }
.service__item .num { font-size: 15px; }
.service__cta { margin-top: clamp(40px, 4vw, 64px); }

/* ---------- Contact: campo azul ---------- */
.contact { background: var(--blue); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); }
.contact__info .lead { margin-top: 24px; }
.contact__info dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin: 44px 0 0; }
.contact__info dt { font-size: 14px; color: #d3dbff; padding-top: 1px; }
.contact__info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact__info dd a:hover { text-decoration: underline; text-underline-offset: .22em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-content: start; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: #dfe5ff; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding: 10px 0 12px; font-size: 17px; color: #fff; border-radius: 0;
  transition: border-color var(--t);
}
.field textarea::placeholder { color: #cdd5fb; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 #fff; }
.field .err { font-size: 13px; color: var(--err-inv); margin-top: 6px; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err-inv); }
.form__quote { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 3px; background: var(--ink); font-size: 14px; font-weight: 500; }
.chip button { width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; }
.chip button:hover { background: rgba(255, 255, 255, .16); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: start; font-size: 14px; color: #dfe5ff; }
.check input { width: 18px; height: 18px; accent-color: #fff; margin-top: 2px; flex: none; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 14px; }
.form__status.ok { color: #fff; font-weight: 500; }
.form__status.ko { color: var(--err-inv); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 96px) 0 32px; }
.footer__logo { display: block; width: 150px; height: auto; margin: 0 0 clamp(36px, 4vw, 56px); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--line-inv); }
.footer__cols h4 { font-weight: 600; font-size: 15px; letter-spacing: 0; color: #fff; margin: 0 0 16px; }
.footer__cols p { color: var(--soft); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.footer__cols a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--mute); }
.footer__cert { height: 48px; width: auto; border-radius: 3px; filter: grayscale(1); opacity: .85; margin-top: 24px; }

/* ==========================================================================
   Quote drawer
   ========================================================================== */
.drawer-bg { position: fixed; inset: 0; z-index: 200; background: rgba(12,15,30,.5); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(500px, 100vw); background: #fff; color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%); transition: transform .55s var(--ease);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head .num { font-size: 14px; color: var(--mute-dark); }
.drawer__close { width: 44px; height: 44px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background-color var(--t); }
.drawer__close:hover { background: var(--paper-2); }
.drawer__list { overflow: auto; list-style: none; margin: 0; padding: 0 28px; }
.drawer__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer__item img { width: 96px; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.drawer__item b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.drawer__item span { font-size: 14px; color: var(--mute-dark); }
.drawer__rm { font-size: 14px; font-weight: 500; color: var(--mute-dark); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--stone); }
.drawer__rm:hover { color: var(--ink); text-decoration-color: currentColor; }
.drawer__empty { padding: 56px 0; color: var(--mute-dark); }
.drawer__empty .display { color: var(--ink); margin-bottom: 12px; }
.drawer__foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__foot .btn { justify-content: center; }

/* ==========================================================================
   Video modal
   ========================================================================== */
.vmodal { position: fixed; inset: 0; z-index: 300; background: rgba(8,10,22,.95); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.vmodal.is-open { opacity: 1; pointer-events: auto; }
.vmodal video { width: min(92vw, 1600px); max-height: 86vh; background: #000; }
.vmodal__close { position: absolute; top: 24px; right: 24px; color: #fff; width: 52px; height: 52px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-inv); display: grid; place-items: center; transition: background-color var(--t); }
.vmodal__close:hover { background: rgba(255,255,255,.12); }

/* ==========================================================================
   Catalog page
   ========================================================================== */
.page-head { position: relative; z-index: 41; padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head__row { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end; }
.page-head .display { font-size: clamp(42px, 6vw, 96px); }
.page-head__count { margin: 0; font-size: 16px; color: var(--mute-dark); text-align: right; }
.page-head__count b { font-family: var(--f-mono); font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }

/* La barra se pega bajo la nav flotante: su franja superior (color de página) tapa
   las tarjetas que pasan por detrás de la nav. */
.filters {
  --strip: calc(var(--nav-top) + var(--nav-bar) + 12px);
  position: sticky; top: 0; z-index: 40;
  margin-top: calc(-1 * var(--strip)); padding-top: var(--strip);
  background: linear-gradient(var(--paper-2), var(--paper-2)) top / 100% var(--strip) no-repeat, #fff;
  border-bottom: 1px solid var(--line);
}
.filters__row { display: flex; align-items: center; gap: 20px; min-height: 68px; border-top: 1px solid var(--line); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.filters__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; min-width: 0; margin-right: auto; padding: 3px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.filters__tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 36px; padding: 0 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--mute-dark); white-space: nowrap; transition: background-color var(--t), color var(--t); }
.tab sup { font-family: var(--f-mono); font-size: 12px; font-weight: 400; margin-left: 6px; vertical-align: baseline; font-variant-numeric: tabular-nums; opacity: .85; }
.tab:hover { color: var(--ink); background: rgba(12, 15, 30, .06); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters__tools { display: flex; gap: 10px; align-items: center; flex: none; }
.filters__sub { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; margin-top: -2px; }
.filters__sub::-webkit-scrollbar { display: none; }
.filters__sub[hidden] { display: none; }
.filters__sub .tab { box-shadow: inset 0 0 0 1px var(--line); }
.filters__sub .tab[aria-pressed="true"] { box-shadow: none; background: var(--blue); }
.tab--sm { height: 32px; padding: 0 12px; font-size: 14px; }
.search { position: relative; }
.search input { width: 220px; height: 40px; border-radius: var(--radius); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff; padding: 0 14px 0 38px; font-size: 15px; transition: box-shadow var(--t); }
.search input::placeholder { color: var(--mute-dark); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mute-dark); }
.select-sm { height: 40px; border-radius: var(--radius); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230c0f1e' stroke-width='1.2'/%3E%3C/svg%3E") right 14px center no-repeat; padding: 0 34px 0 14px; font-size: 15px; appearance: none; max-width: 210px; text-overflow: ellipsis; }
.select-sm:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.view-toggle { display: flex; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; padding: 3px; background: var(--paper-2); }
.view-toggle button { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; color: var(--mute-dark); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cat { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(80px, 10vw, 160px); }
.cat__group { scroll-margin-top: 240px; }
.cat__group + .cat__group { margin-top: clamp(56px, 7vw, 112px); }
.cat__ghead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cat__ghead h2 { font-size: clamp(30px, 3.4vw, 56px); }
.cat__ghead span { font-size: 15px; color: var(--mute-dark); }
.cat__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.cat.is-dense .cat__grid { grid-template-columns: repeat(4, 1fr); }
.cat.is-dense .mcard__name { font-size: 22px; }
.cat.is-dense .mcard__desc { display: none; }
.cat__empty { padding: 120px 0; text-align: center; color: var(--mute-dark); }
.cat__empty .display { color: var(--ink); margin-bottom: 16px; }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp { padding-top: var(--nav-h); }
.pdp__crumbs { font-size: 14px; color: var(--mute-dark); padding: 16px 0 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.pdp__crumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.pdp__crumbs [aria-current] { color: var(--ink); }
.pdp__hero { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: stretch; }
.pdp__stage { position: relative; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-height: max(70vh, 560px); display: grid; place-items: center; cursor: zoom-in; }
.pdp__stage img { width: 100%; height: 100%; max-height: 82vh; padding: 5%; object-fit: contain; transition: transform .2s linear; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp__stage.is-zoom img { transform: scale(2.1); }
.pdp__stage.is-zoom { cursor: zoom-out; }
.pdp__hint { position: absolute; right: 12px; bottom: 12px; height: 30px; padding: 0 10px; display: grid; place-items: center; border-radius: 3px; background: var(--glass); color: #fff; font-size: 13px; }
.pdp__info { display: flex; flex-direction: column; gap: 26px; padding: 8px 0; position: sticky; top: calc(var(--nav-h) + 4px); align-self: start; }
.pdp__name { font-size: clamp(48px, 5.6vw, 96px); letter-spacing: -.04em; }
.pdp__fam { margin: -14px 0 0; font-size: 16px; color: var(--mute-dark); }
.pdp__lead { font-size: 19px; line-height: 1.5; margin: 0; max-width: 40ch; }
.pdp__keys { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin: 0; }
.pdp__keys div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pdp__keys div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.pdp__keys div:nth-child(even) { padding-left: 16px; }
.pdp__keys dt { font-size: 13px; color: var(--mute-dark); margin-bottom: 4px; }
.pdp__keys dd { margin: 0; font-family: var(--f-mono); font-size: 17px; font-variant-numeric: tabular-nums; }
.pdp__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pdp__tags span { height: 32px; padding: 0 10px; border-radius: 3px; display: inline-flex; align-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }

.pdp__detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 120px); padding: clamp(72px, 9vw, 140px) 0; }
.pdp__detail h2 { margin-bottom: 24px; }
.pdp__detail p { font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { text-align: left; font-weight: 400; font-size: 15px; color: var(--mute-dark); padding: 14px 20px 14px 0; width: 42%; vertical-align: top; }
.spec-table td { font-family: var(--f-mono); font-size: 15px; padding: 14px 0; font-variant-numeric: tabular-nums; }
.pdp__acc { margin-top: 40px; }
.pdp__acc h3 { font-weight: 600; font-size: 17px; letter-spacing: 0; margin: 0 0 12px; }
.pdp__acc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pdp__acc li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.pdp__acc li svg { flex: none; color: var(--blue); }
.pdp__docs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pdp__related { padding-bottom: clamp(72px, 9vw, 140px); }
.pdp__related .cat__ghead a { font-size: 15px; }
.pdp__nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pdp__nav a { padding: 36px 0; display: grid; gap: 6px; transition: color var(--t); }
.pdp__nav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; justify-items: end; }
.pdp__nav a:hover { color: var(--blue); }
.pdp__nav .display { font-size: clamp(30px, 3.6vw, 60px); }
.pdp__nav .k { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute-dark); }
.pdp__nav .k svg { width: 16px; height: 16px; }
.pdp__nav a:first-child .k svg { transform: scaleX(-1); }

/* ==========================================================================
   Reveal (desde un estado ya legible)
   ========================================================================== */
[data-reveal] { opacity: .001; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"], [data-reveal="lines"] { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, calc(100% + 60px)); background: var(--glass-solid); color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); padding: 10px 10px 10px 18px; border-radius: var(--radius); display: flex; gap: 16px; align-items: center; font-size: 15px; transition: transform .5s var(--ease); }
.toast.on { transform: translate(-50%, 0); }
.toast button { height: 36px; padding: 0 12px; border-radius: 3px; font-size: 14px; font-weight: 500; background: #fff; color: var(--ink); transition: background-color var(--t); }
.toast button:hover { background: var(--blue-tint); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { justify-content: space-between; }
  .nav__links { display: none; }
  .nav__bar { padding-right: 20px; margin-right: auto; }
  .nav__logo { margin-right: 0; }
  .menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu__col--co { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .menu__col--co ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
}
@media (max-width: 1100px) {
  .hero__bar { grid-template-columns: repeat(2, 1fr); }
  .values__grid, .service__grid { grid-template-columns: 1fr; }
  .value, .value + .value, .service__item, .service__item + .service__item { border-right: 0; padding: 28px 0; border-bottom: 1px solid var(--line-inv); }
  .values__split, .contact__grid, .pdp__hero, .pdp__detail, .flag__body { grid-template-columns: 1fr; }
  .flag__plate { min-height: 0; }
  .pdp__info { position: static; }
  .pdp__stage { min-height: 56vh; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cat.is-dense .cat__grid { grid-template-columns: repeat(3, 1fr); }
  .show .mcard:nth-child(n) { grid-column: span 6; }
  .chap { grid-template-columns: 1fr; }
  .chap__meta { margin-top: 8px; }
}
@media (max-width: 760px) {
  :root { --nav-top: 12px; --nav-bar: 52px; --nav-h: 76px; }
  body { font-size: 16px; }
  .nav__bar { padding: 0 14px; }
  .nav__logo { width: 96px; }
  .nav__quote .lbl { display: none; }
  .nav__quote { padding: 0 11px; }
  .menu { left: var(--gutter); width: auto; right: var(--gutter); transform: translateY(-10px); }
  .menu.is-open { transform: none; }
  .menu__grid { grid-template-columns: 1fr; gap: 26px; }
  .menu__col--co ul { grid-template-columns: 1fr; }
  .section__head, .flag__head { grid-template-columns: 1fr; }
  .section__head > :nth-child(2), .flag__head .lead { justify-self: start; }
  .hero__title { font-size: clamp(32px, 9.2vw, 60px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__bar { gap: 16px 20px; padding: 18px 0 22px; }
  .intro.is-live .intro__b { padding-bottom: 40px; }
  .chap__cta { align-self: stretch; }
  .cat__grid, .cat.is-dense .cat__grid { grid-template-columns: 1fr; }
  .filters__row { flex-wrap: wrap; gap: 0; }
  .filters__tabs { flex: 1 1 100%; margin: 10px 0; }
  .filters__tools { width: 100%; padding-bottom: 12px; }
  .search { flex: 1; }
  .search input, .search input:focus { width: 100%; }
  .select-sm { max-width: 46%; }
  .view-toggle { display: none; }
  .form { grid-template-columns: 1fr; }
  .apps__item a { grid-template-columns: 1fr 20px; }
  .apps__item .c { display: none; }
  .apps__preview { display: none; }
  .show .mcard:nth-child(n) { grid-column: span 12; }
  .show .mcard__img { min-height: 0; aspect-ratio: 4/3; }
  .specs { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .page-head__row { grid-template-columns: 1fr; }
  .page-head__count { text-align: left; }
  .cat__ghead { grid-template-columns: 1fr; gap: 8px; }
  .pdp__stage { min-height: 0; aspect-ratio: 4 / 3.4; }
  .pdp__stage img { max-height: none; }
  .pdp__nav .display { font-size: 26px; }
  .film__sticky { height: 84svh; }
  .film__content { flex-direction: column; align-items: stretch; justify-content: flex-end; flex-wrap: nowrap; }
  .play { height: 72px; }
  .play__btn { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .nav, .menu, .menu-bg, .drawer, .drawer-bg, .toast, .footer, .filters { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
