/* MECANOVA LAB · www.mecanova.cl
   Sistema visual: negro del logo, acero del cubo de Mecanius y los tres anillos de la O.
   Sin recursos externos: fuentes e imágenes se sirven desde el propio sitio. */

/* ---------- Fuentes (SIL OFL 1.1) */
@font-face { font-family: "Elms Sans"; src: url("/assets/fonts/elms-sans-latin-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens */
:root {
  color-scheme: dark;
  --void: #000000;
  --ether-0: #0a0f17;
  --ether-1: #182232;
  --white: #ffffff;
  --steel-50: #f3f5f8;
  --steel-200: #d8dde6;
  --steel-400: #9aa5b5;
  --steel-600: #5d6878;
  --hair: rgba(216, 221, 230, 0.13);
  --hair-2: rgba(216, 221, 230, 0.26);
  --red: #fc4549;
  --violet: #9592fb;
  --sky: #2cb7fe;
  --f-display: "Elms Sans", "IBM Plex Sans", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* El signo de la terminal del logo (>LAB), en proporciones exactas */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 195.81 269.34'%3E%3Cpath d='M0 41.52L111.43 134.67L0 227.82L34.71 269.34L195.81 134.67L34.71 0Z'/%3E%3C/svg%3E");
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--void); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--void);
  color: var(--steel-200);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; color: var(--steel-50); text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.6em; }
code { font-family: var(--f-mono); font-size: 0.95em; }
strong { font-weight: 600; color: var(--steel-50); }
a { color: inherit; }
::selection { background: rgba(252, 69, 73, 0.38); color: var(--white); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
main { position: relative; display: block; }
main:focus { outline: none; }
main a:not([class]) {
  color: var(--steel-50);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}
main a:not([class]):hover { text-decoration-color: currentColor; }

.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 14px;
  background: var(--steel-50); color: #000; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Tipografía de sección */
.statement {
  margin: 0;
  font: 500 clamp(2rem, 1.05rem + 3.7vw, 4.75rem)/1.04 var(--f-display);
  letter-spacing: -0.028em;
  color: var(--steel-50);
  max-width: 21ch;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font: 500 clamp(1.75rem, 1.2rem + 1.7vw, 2.875rem)/1.08 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--steel-50);
}
.h3 { font-size: 1.375rem; }
.lead {
  font: 400 clamp(1.125rem, 1rem + 0.45vw, 1.375rem)/1.5 var(--f-text);
  color: var(--steel-200);
  max-width: 38rem;
}
.kicker {
  display: flex; align-items: center; gap: 0.55em;
  margin: 0 0 clamp(18px, 2vw, 30px);
  font: 500 1.125rem/1 var(--f-display);
  color: var(--steel-400);
  letter-spacing: 0.01em;
}
.prompt {
  flex: none; display: inline-block; width: 0.55em; height: 0.76em;
  background: var(--red);
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
}
.note { color: var(--steel-400); font-size: 0.9375rem; max-width: 46rem; }

/* ---------- Cabecera */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), opacity 0.9s var(--ease), translate 0.9s var(--ease);
}
.site-header.is-solid {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hair);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.header-row .nav { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 34px; padding: 0 12px;
  font: 500 0.8125rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--steel-200); text-decoration: none;
  border: 1px solid var(--hair-2); border-radius: 999px; transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover { color: var(--white); border-color: var(--steel-400); }
.menu-lang { margin: 28px 0 0; }
.menu-lang a { font: 500 1.125rem/1 var(--f-text); color: var(--steel-200); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 0.3em; }
.brand { display: block; width: clamp(128px, 11vw, 168px); line-height: 0; }
.brand svg { width: 100%; height: auto; }
.nav ul { display: flex; gap: clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 0.45em; padding: 12px 0;
  font: 500 0.9375rem/1 var(--f-text); letter-spacing: 0.01em;
  color: var(--steel-200); text-decoration: none; transition: color 0.2s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after, .menu-nav ul a[aria-current="page"]::after {
  content: ""; flex: none; width: 0.42em; height: 0.72em; background: var(--red);
}
.menu-btn {
  display: none; align-items: center; min-height: 40px; padding: 0 16px;
  font: 500 0.9375rem/1 var(--f-text); color: var(--steel-50);
  background: transparent; border: 1px solid var(--hair-2); border-radius: 999px; cursor: pointer;
}
.menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--void); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-nav ul { list-style: none; margin: 0; padding: 24px 0 0; }
.menu-nav ul a {
  display: flex; align-items: center; gap: 0.3em; padding: 16px 0;
  font: 500 clamp(2rem, 9vw, 2.75rem)/1.1 var(--f-display); letter-spacing: -0.02em;
  color: var(--steel-50); text-decoration: none; border-bottom: 1px solid var(--hair);
}
.menu-mail { margin: 24px 0 48px; font: 400 1rem/1.9 var(--f-mono); }
.menu-mail a { color: var(--steel-400); text-decoration: none; overflow-wrap: anywhere; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--void); border-bottom-color: var(--hair); }
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Campo de isolíneas (inicio) */
.field {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
}

/* ---------- Portada */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 32px) var(--pad) 136px;
}
.hero-inner { width: min(100%, 1000px); }
.hero-title { margin: 0; line-height: 0; }
.mark { width: 100%; height: auto; overflow: visible; }
.hero-tag {
  margin: clamp(26px, 3.6vw, 52px) 0 0;
  font: 300 clamp(1.125rem, 0.92rem + 0.85vw, 1.625rem)/1.3 var(--f-display);
  color: var(--steel-200); letter-spacing: 0.005em; text-wrap: balance;
}
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.place { margin: 0; font: 400 0.875rem/1.5 var(--f-text); color: var(--steel-400); }
.coords { display: block; margin-top: 2px; font: 400 0.8125rem/1.5 var(--f-mono); color: var(--steel-400); opacity: 0.75; }
.scroll-cue { display: grid; place-items: center; width: 44px; height: 76px; }
.scroll-cue::before {
  content: ""; width: 1px; height: 64px;
  background: linear-gradient(var(--steel-200), var(--steel-200)) no-repeat 0 -26px / 1px 26px, var(--hair-2);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { background-position: 0 64px, 0 0; } }

/* Estado de la animación de entrada: el script la controla; si no corre, todo aparece igual */
html.js .hero .mark, html.js .hero .hero-tag, html.js .hero .hero-foot { opacity: 0; }
html.js .hero:not(.is-live) .mark,
html.js .hero:not(.is-live) .hero-tag,
html.js .hero:not(.is-live) .hero-foot { animation: appear 0.6s 2.4s forwards; }
html.js .hero.is-live .mark { opacity: 1; }
html.js .hero .hero-tag { translate: 0 10px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
html.js .hero .hero-foot { transition: opacity 1.4s var(--ease) 0.3s; }
html.js .hero.is-ready .hero-tag { opacity: 1; translate: 0 0; }
html.js .hero.is-ready .hero-foot { opacity: 1; }
html.js body.home:not(.header-in) .site-header { opacity: 0; translate: 0 -10px; pointer-events: none; animation: header-fallback 0s 3s forwards; }
html.js body.home.intro-live:not(.header-in) .site-header { animation: none; }
@keyframes header-fallback { to { opacity: 1; translate: 0 0; pointer-events: auto; } }
@keyframes appear { to { opacity: 1; translate: 0 0; } }

/* ---------- Capítulos */
.chapter { position: relative; z-index: 1; padding-block: clamp(96px, 13vw, 200px); }
.page .chapter { padding-block: clamp(72px, 9vw, 136px); }
.page .chapter + .chapter { border-top: 1px solid var(--hair); }
.chapter--about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.chapter--about .statement { grid-column: 1 / span 10; }
.about-body { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 80px); }
.about-body p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--steel-200); }

.chapter--mv { overflow-x: clip; }
.chapter--mv .wrap { display: grid; gap: clamp(140px, 24vh, 280px); }
.mv-item { position: relative; display: grid; }
.mv-text { position: relative; z-index: 1; }
.mv-item--end .mv-text { justify-self: end; }
.field-anchor {
  position: absolute; top: 50%; translate: 0 -50%;
  width: clamp(140px, 24vmin, 300px); aspect-ratio: 1; pointer-events: none;
}
.field-anchor--right { right: 3%; }
.field-anchor--left { left: 3%; }

.chapter--rules .h2 { max-width: 16ch; }
.rules {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 72px) clamp(32px, 6vw, 104px);
}
.rules li { border-top: 1px solid var(--hair-2); padding-top: 24px; }
.rules p { margin: 0; color: var(--steel-400); max-width: 34em; }

/* ---------- Producto (Mecanius): fondo «Ether» de la vista 3D del programa */
.product {
  position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, var(--void) 0, var(--ether-0) 12%, var(--ether-1) 62%, var(--ether-0) 88%, var(--void) 100%);
  padding-block: clamp(96px, 13vw, 180px) clamp(96px, 12vw, 180px);
}
.product-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px); align-items: center;
}
.product-visual { position: relative; }
.product-visual::before {
  content: ""; position: absolute; inset: 14% 8% 10%;
  background: radial-gradient(closest-side, rgba(150, 175, 210, 0.16), rgba(150, 175, 210, 0) 100%);
}
.cube { position: relative; width: min(100%, 440px); height: auto; margin-inline: auto; }
.product-name { margin: 0 0 clamp(22px, 2.6vw, 34px); line-height: 1; }
.product-lockup { display: inline-grid; justify-items: end; gap: 0.5em; }
.wordmark { width: clamp(210px, 30vw, 430px); height: auto; }
.product-year { font: 500 clamp(0.9375rem, 0.75rem + 0.7vw, 1.375rem)/1 var(--f-mono); letter-spacing: 0.18em; color: var(--steel-400); margin-right: -0.18em; }
.features { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.features li {
  position: relative; padding: 13px 0 13px 1.9em;
  border-bottom: 1px solid var(--hair); color: var(--steel-200);
}
.features li::before {
  content: ""; position: absolute; left: 0; top: calc(13px + 0.42em);
  width: 0.78em; height: 0.78em; border-radius: 50%;
  background: radial-gradient(circle closest-side, #000 0 37%, var(--red) 38% 56%, var(--violet) 57% 77%, var(--sky) 78% 100%);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin: clamp(28px, 3vw, 40px) 0 0; }
.cmd {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 22px 0 18px;
  font: 500 1.0625rem/1 var(--f-text); color: var(--steel-50); text-decoration: none;
  border: 1px solid var(--hair-2); background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s, background-color 0.25s;
}
.cmd::before {
  content: ""; flex: none; width: 0.6em; height: 0.82em; background: var(--red);
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
}
.cmd::after { content: ""; flex: none; width: 0.46em; height: 0.78em; background: var(--red); opacity: 0; }
.cmd:hover, .cmd:focus-visible { border-color: var(--steel-200); background: rgba(255, 255, 255, 0.04); }
.cmd:hover::after, .cmd:focus-visible::after { opacity: 1; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.link-out {
  font: 400 1rem/1.4 var(--f-text); color: var(--steel-200);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-2); text-underline-offset: 0.35em;
}
.link-out:hover { color: var(--white); text-decoration-color: currentColor; }

/* ---------- Ilustración de la viga */
.beam { margin-block: clamp(80px, 10vw, 140px) 0; }
.beam-stage { position: relative; aspect-ratio: 16 / 6; border-block: 1px solid var(--hair); }
.beam-canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.beam-canvas.is-dragging { cursor: grabbing; }
.beam-ui {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 14px 28px; margin-top: 20px;
}
.beam-label { font: 500 0.9375rem/1 var(--f-text); color: var(--steel-50); }
.beam-range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.beam-range::-webkit-slider-runnable-track { height: 1px; background: var(--hair-2); }
.beam-range::-moz-range-track { height: 1px; background: var(--hair-2); }
.beam-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; margin-top: -10px; background: var(--red); border: 0; border-radius: 0; }
.beam-range::-moz-range-thumb { width: 12px; height: 20px; background: var(--red); border: 0; border-radius: 0; }
.beam-range:focus-visible { outline-offset: 2px; }
.beam-legend { display: flex; align-items: center; gap: 10px; font: 400 0.8125rem/1 var(--f-text); color: var(--steel-400); }
.beam-legend i {
  display: block; width: 128px; height: 8px;
  background: linear-gradient(90deg, #2cb7fe 0 12.5%, #9592fb 12.5% 25%, #c5a0d3 25% 37.5%, #db84aa 37.5% 50%, #fc4549 50% 62.5%, #b32e34 62.5% 75%, #901c29 75% 87.5%, #6e0121 87.5%);
}
.beam-read { display: grid; grid-template-columns: repeat(3, max-content); gap: 14px clamp(28px, 4vw, 56px); margin: 26px 0 0; }
.beam-read div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.beam-read dt { font: 400 0.8125rem/1.25 var(--f-text); color: var(--steel-400); }
.beam-read dd { margin: 0; min-width: 7ch; font: 500 1.375rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--steel-50); }
.beam-caption { margin-top: 14px; font: 400 0.8125rem/1.5 var(--f-text); color: var(--steel-400); }
/* Ficha de la viga: cada dato entero en su línea y una raya fina entre datos. La raya del primer dato de cada
   línea queda fuera de .beam-meta (overflow oculto), así ninguna línea empieza con raya */
.beam-meta { overflow: hidden; margin-top: 18px; }
.beam-spec, .beam .beam-caption { display: flex; flex-wrap: wrap; row-gap: 2px; margin: 0 0 0 calc(-0.75em - 1px); padding: 0; list-style: none; font: 400 0.8125rem/1.6 var(--f-text); color: var(--steel-400); }
.beam-spec li, .beam .beam-caption span { white-space: nowrap; padding-left: 0.75em; margin-right: 0.75em; border-left: 1px solid rgba(216, 221, 230, 0.24); line-height: 1.25; margin-block: 0.18em; }
.beam .beam-caption { margin: 8px 0 0; }
.beam .beam-caption span:first-child { border-left: 0; padding-left: 0; }

/* ---------- Correos y botón Copiar */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; font: 400 1.0625rem/1.4 var(--f-mono); }
.mail a { color: var(--steel-50); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--hair-2); text-underline-offset: 0.3em; }
.mail a:hover { text-decoration-color: currentColor; }
.copy {
  min-height: 36px; padding: 0 14px;
  font: 500 0.8125rem/1 var(--f-text); color: var(--steel-200);
  background: transparent; border: 1px solid var(--hair-2); border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.copy:hover { border-color: var(--steel-400); color: var(--white); }
.copy.is-done { color: var(--sky); border-color: var(--sky); }

/* ---------- Pie */
.site-footer {
  position: relative; z-index: 1; background: var(--void); border-top: 1px solid var(--hair);
  padding: 64px 0 28px; font-size: 0.9375rem; color: var(--steel-400);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.5fr; gap: 40px 32px; }
.footer-grid:not(:has(> :nth-child(4))) { grid-template-columns: 1.3fr 1fr 1.5fr; }
.footer-brand .brand { width: 164px; margin-bottom: 18px; }
.footer-brand p { max-width: 16rem; }
.footer-col h2 { margin: 4px 0 16px; font: 600 0.8125rem/1.2 var(--f-text); color: var(--steel-50); letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col p, .footer-col address { margin: 0 0 12px; font-style: normal; line-height: 1.6; }
.site-footer a { color: var(--steel-400); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--steel-50); }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 0.8125rem; }

/* ---------- Páginas interiores */
.page-hero {
  position: relative; z-index: 1;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 150px)) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--hair);
}
.page-title {
  margin: 0;
  font: 500 clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem)/1.02 var(--f-display);
  letter-spacing: -0.032em; color: var(--steel-50); max-width: 15ch;
}
.page-hero .lead { margin: clamp(20px, 2.5vw, 32px) 0 0; }

.support {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 104px);
  padding-block: clamp(56px, 7vw, 104px) clamp(96px, 12vw, 160px);
}
.support-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.panel { border: 1px solid var(--hair-2); padding: 20px 22px; }
.panel-label { margin: 0 0 10px; font: 500 0.8125rem/1 var(--f-text); color: var(--steel-400); }
.version { margin: 0; display: flex; align-items: baseline; gap: 0.4em; font: 500 1.375rem/1.2 var(--f-display); color: var(--steel-50); }
.version code { font: 500 1.375rem/1 var(--f-mono); }
.panel-meta { margin: 6px 0 14px; font-size: 0.9375rem; color: var(--steel-400); }
.panel .mail { margin: 0; font-size: 1rem; }
.support-main { max-width: 46rem; }
.support-sec + .support-sec { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--hair); }
.support-sec > p { max-width: 42rem; }
.support-sec .h2 { margin-bottom: 20px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.3em; font: 500 0.875rem/1.2 var(--f-mono); color: var(--red); }
.callout { margin: 24px 0 0; padding: 16px 20px; border-left: 2px solid var(--sky); background: rgba(44, 183, 254, 0.06); color: var(--steel-200); }
.release h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 8px 0 12px; }
.release h3 code { font: 500 1.125rem/1 var(--f-mono); color: var(--steel-50); }
.release h3 span { font: 400 0.9375rem/1 var(--f-text); color: var(--steel-400); }
.release ul { margin: 0; padding-left: 1.2em; }
.release li + li { margin-top: 6px; }

.company { padding-block: 0 clamp(96px, 12vw, 160px); }
.company .h3 { padding-top: 40px; border-top: 1px solid var(--hair); margin-bottom: 0; }
.facts { margin: 20px 0 0; }
.facts div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--steel-400); }
.facts dd { margin: 0; color: var(--steel-50); }

.prose { padding-block: clamp(56px, 7vw, 104px) clamp(96px, 12vw, 160px); }
.prose section { max-width: 46rem; }
.prose section + section { margin-top: 56px; }

/* ---------- Página de Mecanius */
.product--hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); }
.product--hero .note { margin-top: 28px; }
.section-intro { max-width: 40rem; margin: 18px 0 0; color: var(--steel-400); }
.flow {
  list-style: none; counter-reset: flow; padding: 0;
  margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--hair-2);
}
.flow li { counter-increment: flow; position: relative; padding: 22px 20px 0 0; }
.flow li::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 18px; font: 500 0.8125rem/1 var(--f-mono); color: var(--red); }
.flow li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--steel-200); }
.flow h3 { margin: 0 0 8px; }
.flow p { margin: 0; font-size: 0.9375rem; color: var(--steel-400); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.split-main > p { max-width: 36rem; }
.split-main .lead { margin-top: 20px; }
.split-main .h2 + p:not(.lead) { margin-top: 20px; }
.ask { margin: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--hair-2); }
.ask blockquote { margin: 0; }
.ask blockquote p { margin: 0; font: 400 clamp(1.25rem, 1rem + 0.9vw, 1.75rem)/1.35 var(--f-display); color: var(--steel-50); }
.ask blockquote p::before { content: open-quote; }
.ask blockquote p::after { content: close-quote; }
.ask blockquote p:lang(es) { quotes: "«" "»"; }
.ask blockquote p:lang(en) { quotes: "\201C" "\201D"; }
.ask figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--steel-400); }
.codes { margin: 0; border-top: 1px solid var(--hair); }
.codes div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.codes dt { font-size: 0.875rem; color: var(--steel-400); }
.codes dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.codes code { font: 500 1.125rem/1.3 var(--f-mono); color: var(--steel-50); letter-spacing: 0.02em; }
.code-tag { padding: 3px 7px; border: 1px solid var(--hair-2); font: 500 0.6875rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-400); }
.audiences { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.audiences li { border-top: 1px solid var(--hair-2); padding-top: 24px; }
.audiences p { color: var(--steel-400); }
.audiences .plan { margin: 0 0 12px; font: 500 0.875rem/1.3 var(--f-mono); color: var(--sky); }
.plans li { display: flex; flex-direction: column; }
.price { display: grid; gap: 4px; margin: 4px 0 16px; }
.price-num { font: 500 clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem)/1.1 var(--f-display); letter-spacing: -0.015em; color: var(--steel-50); }
.price-unit { font: 400 0.875rem/1.4 var(--f-text); color: var(--steel-400); }
.plan-go { margin: auto 0 0; padding-top: 12px; }
.plans + .note { margin-top: clamp(28px, 3vw, 40px); }
.vysia-shot { margin-top: clamp(40px, 5vw, 64px); }
.vysia-shot .shot-frame { aspect-ratio: 16 / 7; padding: 16px; text-align: center; }
.shot-img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); background: var(--ether-0); }
.vysia-shot .shot-img { max-width: 820px; margin-inline: auto; }
.vysia-shot figcaption { max-width: 820px; margin-inline: auto; }
/* Dos capturas lado a lado: lo que propone Vysia AI y la malla */
.vysia-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); max-width: 1040px; margin-inline: auto; }
.vysia-pair figure { margin: 0; }
.vysia-shot .vysia-pair .shot-img { max-width: none; }
.vysia-shot .vysia-pair figcaption { max-width: none; margin-top: 10px; font: 500 0.75rem/1.4 var(--f-mono); color: var(--steel-200); }
.vysia-shot > figcaption { max-width: 1040px; }
.vysia-physics { max-width: 1040px; margin: 0 auto 14px; font: 500 0.8125rem/1.2 var(--f-mono); letter-spacing: 0.06em; color: var(--sky); }
@media (max-width: 560px) { .vysia-pair { grid-template-columns: minmax(0, 1fr); } }
.shot figcaption { margin-top: 12px; font: 400 0.8125rem/1.45 var(--f-text); color: var(--steel-400); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  border: 1px dashed var(--hair-2); background: linear-gradient(180deg, var(--ether-0), var(--ether-1));
  font: 400 0.8125rem/1 var(--f-mono); color: var(--steel-400);
}
.chapter--cta { border-top: 1px solid var(--hair); }
.chapter--cta .statement { max-width: 18ch; }

/* ---------- 404 */
.lost { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.lost-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.lost-icon { width: min(100%, 300px); height: auto; }
.lost .lead { margin-top: clamp(20px, 2.5vw, 32px); }

/* ---------- Texto que se enciende al desplazarse */
[data-scrub] .w { transition: opacity 0.12s linear; }

/* ---------- Encabezado de sección (productos, galería, alianzas, contacto) */
.section-head { display: grid; gap: 16px; max-width: 46rem; }
.section-head .section-intro { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.block-title { margin: 0 0 10px; font: 500 clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem)/1.15 var(--f-display); letter-spacing: -0.012em; color: var(--steel-50); }

/* ---------- Productos */
.chapter--products { padding-block: clamp(40px, 6vw, 96px) clamp(96px, 12vw, 180px); }
.products {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 1.8vw, 24px);
}
.pcard {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--hair-2);
  background: linear-gradient(180deg, rgba(24, 34, 50, 0.5), rgba(10, 15, 23, 0.5));
  transition: border-color 0.35s var(--ease), translate 0.5s var(--ease);
}
.pcard--star {
  border-color: rgba(216, 221, 230, 0.34);
  background:
    radial-gradient(90% 70% at 88% 6%, rgba(44, 183, 254, 0.12), rgba(44, 183, 254, 0) 70%),
    linear-gradient(180deg, var(--ether-1), var(--ether-0));
}
.pcard:hover, .pcard:has(.pcard-go:focus-visible) { border-color: var(--steel-200); translate: 0 -3px; }
.pcard:has(.pcard-go:focus-visible) { outline: 2px solid var(--sky); outline-offset: 3px; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard-icon { width: clamp(64px, 6.5vw, 92px); height: auto; }
.pcard--star .pcard-icon { width: clamp(92px, 10vw, 148px); }
.pcard-icon.ingenest-icon { width: clamp(120px, 12vw, 184px); }
.pcard-index { font: 500 clamp(2.25rem, 1.6rem + 2.4vw, 4rem)/1 var(--f-mono); color: rgba(216, 221, 230, 0.13); letter-spacing: -0.02em; }
.pcard-kicker { margin: clamp(20px, 2.6vw, 34px) 0 8px; font: 500 0.8125rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.pcard-name { margin: clamp(20px, 2.6vw, 34px) 0 12px; font: 500 clamp(2rem, 1.45rem + 2vw, 3.25rem)/1.05 var(--f-display); letter-spacing: -0.02em; }
.pcard-kicker + .pcard-name { margin-top: 0; }
.pcard-desc { color: var(--steel-200); max-width: 34rem; }
.pcard-status { display: inline-flex; align-items: center; gap: 0.6em; margin: auto 0 0; padding-top: 24px; font: 500 0.8125rem/1 var(--f-mono); color: var(--steel-400); }
.pcard-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(149, 146, 251, 0.14); }
.pcard-status--on::before { background: var(--sky); box-shadow: 0 0 0 4px rgba(44, 183, 254, 0.16); }
.pcard-go {
  display: inline-flex; align-items: center; gap: 0.6em; align-self: flex-start; margin-top: 18px;
  font: 500 1.0625rem/1.2 var(--f-text); color: var(--steel-50); text-decoration: none;
}
.pcard-go::before {
  content: ""; flex: none; width: 0.6em; height: 0.82em; background: var(--red);
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
}
.pcard-go::after { content: ""; position: absolute; inset: 0; }
.pcard-go:focus-visible { outline: none; }

/* ---------- Galería */
.chapter--gallery { padding-block: clamp(96px, 12vw, 180px) clamp(48px, 6vw, 96px); }
.gallery {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 18vw, 270px); gap: clamp(10px, 1.1vw, 16px);
}
.g-item--lead { grid-column: span 2; grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-fig { position: relative; height: 100%; margin: 0; overflow: hidden; border: 1px solid var(--hair); background: var(--ether-0); }
.g-link { display: block; height: 100%; }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease), filter 0.4s; }
/* Capturas con la escala de colores a la derecha: se recorta por la izquierda para que se vea */
.g-link img.g-img--right { object-position: right center; }
.g-link:hover img, .g-link:focus-visible img { scale: 1.035; }
.g-link:focus-visible { outline-offset: -3px; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 13px;
  font: 400 0.8125rem/1.4 var(--f-mono); color: var(--steel-50);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82)); pointer-events: none;
}
.g-item--light .g-cap { padding-top: 12px; background: rgba(6, 10, 16, 0.88); }
.g-sample { display: inline-block; margin-right: 0.5em; padding: 3px 7px 2px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #000; background: var(--steel-200); }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: var(--steel-50); background: var(--void);
}
.lightbox::backdrop { background: var(--void); }
html.lb-open { overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar, .lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); }
.lb-count { margin: 0; font: 400 0.8125rem/1 var(--f-mono); color: var(--steel-400); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--pad); touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--hair); }
.lb-cap { margin: 0; flex: 1; text-align: center; font: 400 0.9375rem/1.4 var(--f-text); color: var(--steel-200); }
.lb-more { display: block; max-width: 62ch; margin: 6px auto 0; font-size: 0.8125rem; line-height: 1.5; color: var(--steel-400); }
.lb-close, .lb-nav {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 16px;
  font: 500 0.875rem/1 var(--f-text); color: var(--steel-50);
  background: transparent; border: 1px solid var(--hair-2); border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--steel-200); }
.lb-nav { width: 52px; padding: 0; }
.lb-nav::before {
  content: ""; width: 10px; height: 14px; background: var(--steel-50);
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
}
.lb-prev::before { scale: -1 1; }

/* ---------- Alianzas */
.chapter--allies { padding-block: clamp(48px, 6vw, 96px); }
.allies {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
.ally { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: clamp(18px, 3vw, 40px); background: var(--void); }
.ally a { display: grid; place-items: center; width: 100%; height: 100%; }
.ally img { max-width: 100%; max-height: 64px; width: auto; height: auto; opacity: 0.85; transition: opacity 0.3s; }
.ally a:hover img { opacity: 1; }
.ally--pending span { padding: 10px 14px; font: 400 0.75rem/1 var(--f-mono); letter-spacing: 0.04em; color: var(--steel-600); border: 1px dashed var(--hair-2); }

/* ---------- Contacto: directo y formulario */
.chapter--contact { padding-block: clamp(96px, 12vw, 180px); border-top: 1px solid var(--hair); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px); align-items: start; margin-top: clamp(32px, 4vw, 56px);
}
.contact-grid--page { margin-top: 0; padding-block: clamp(56px, 7vw, 104px); }
.direct { margin: 0; border-top: 1px solid var(--hair); }
.direct > div { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.direct dt { font: 500 0.875rem/1.3 var(--f-text); color: var(--steel-400); }
.direct dd { margin: 0; }
.direct-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.direct-mail {
  font: 400 1.0625rem/1.4 var(--f-mono); color: var(--steel-50); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--hair-2); text-underline-offset: 0.3em;
}
.direct-mail:hover { text-decoration-color: currentColor; }
.direct-more { font-size: 0.9375rem; }
.direct address { font-style: normal; color: var(--steel-200); line-height: 1.6; }

.cform {
  position: relative; padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--hair-2);
  background: linear-gradient(180deg, rgba(24, 34, 50, 0.5), rgba(10, 15, 23, 0.5));
}
.cform > .block-title { margin-bottom: clamp(18px, 2vw, 26px); }
.cf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; }
.cf-type { display: inline-flex; margin: 0; padding: 3px; border: 1px solid var(--hair-2); border-radius: 999px; }
.cf-type label { position: relative; display: inline-flex; }
.cf-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf-type span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font: 500 0.875rem/1 var(--f-text); color: var(--steel-200); transition: background-color 0.2s, color 0.2s; }
.cf-type input:checked + span { background: var(--steel-50); color: #000; }
.cf-type input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.cf-legend { margin: 0; font-size: 0.8125rem; color: var(--steel-400); }
.req { color: var(--red); font-weight: 600; }
.cform .only-empresa, .cform .req--empresa { display: none; }
.cform:has(input[name="tipo"][value="empresa"]:checked) .only-empresa { display: grid; }
.cform:has(input[name="tipo"][value="empresa"]:checked) .req--empresa { display: inline; }
.cform:has(input[name="tipo"][value="persona"]:checked) .cf-name { grid-column: 1 / -1; }
.cf-checks { display: grid; gap: 14px; margin-top: 24px; }
.cf-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.cf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sky); cursor: pointer; }
.cf-check label { font-size: 0.9375rem; line-height: 1.5; color: var(--steel-200); cursor: pointer; }
.cf-check label a { color: var(--steel-50); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 0.25em; }
.cf-check .cf-error { grid-column: 2; }
.cf-check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.cform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.cf-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field label, .cf-field legend { padding: 0; font: 500 0.9375rem/1.3 var(--f-text); color: var(--steel-50); }
.cf-field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--steel-400); }
.cf-field input, .cf-field textarea {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-text); color: var(--steel-50);
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--hair-2); border-radius: 0;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.cf-field textarea { min-height: 128px; resize: vertical; }
.cf-field input:hover, .cf-field textarea:hover { border-color: var(--steel-600); }
.cf-field input:focus-visible, .cf-field textarea:focus-visible { outline: none; border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); background: rgba(0, 0, 0, 0.6); }
.cf-field [aria-invalid="true"] { border-color: var(--red); }
.cf-error { margin: 0; font: 400 0.875rem/1.4 var(--f-text); color: #ff8f92; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  font: 500 0.9375rem/1 var(--f-text); color: var(--steel-200);
  border: 1px solid var(--hair-2); border-radius: 999px; transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--steel-400); }
.chip input:checked + span { color: #000; background: var(--steel-50); border-color: var(--steel-50); }
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform-privacy { margin: 26px 0 0; max-width: 42rem; font-size: 0.8125rem; line-height: 1.6; color: var(--steel-400); }
.cform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
button.cmd { cursor: pointer; }
button.cmd[disabled] { opacity: 0.6; cursor: progress; }
.cform-status { margin: 0; font-size: 0.9375rem; color: var(--steel-200); }
.cform-status:empty { display: none; }
.cform-done { outline: none; }
.cform-done .block-title { display: flex; align-items: center; gap: 0.5em; }
.cform-done .block-title::before {
  content: ""; flex: none; width: 0.5em; height: 0.7em; background: var(--red);
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
}
.cform-done p { color: var(--steel-200); max-width: 34rem; }
.cform-note { margin-top: 18px; padding: 12px 16px; font-size: 0.875rem; border-left: 2px solid var(--violet); background: rgba(149, 146, 251, 0.08); }
.page-hero--end { border-bottom: 0; min-height: 70vh; min-height: 70svh; }

@media (max-width: 860px) {
  .products, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .g-link img.g-img--right { object-position: 66% center; }
  .g-item--wide { grid-column: auto; }
  .g-item--lead, .g-item:last-child:nth-child(even) { grid-column: 1 / -1; grid-row: span 1; }
  .allies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-cap { font-size: 0.875rem; }
}
@media (max-width: 560px) {
  .cform-grid { grid-template-columns: minmax(0, 1fr); }
  .g-cap { padding: 34px 10px 9px; font-size: 0.6875rem; }
}

/* ---------- Adaptación a pantallas */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 860px) {
  .chapter--about .statement, .about-body { grid-column: 1 / -1; }
  .product-grid, .split, .audiences, .shots, .support, .lost-grid { grid-template-columns: minmax(0, 1fr); }
  .product-visual { max-width: 300px; }
  .support-aside { position: static; }
  .lost-icon { width: 180px; }
}
@media (max-width: 760px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .beam-stage { aspect-ratio: 4 / 3; }
  .beam-ui { grid-template-columns: minmax(0, 1fr); }
  .beam-read { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
  .beam-read dd { min-width: 0; font-size: 1.0625rem; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field-anchor { width: 46vmin; }
  .field-anchor--right { right: -16%; }
  .field-anchor--left { left: -16%; }
  .hero { padding-bottom: 120px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--hair-2); row-gap: 32px; }
  .flow li { padding: 0 0 0 24px; }
  .flow li::after { top: 3px; left: -4px; }
  .flow li::before { margin-bottom: 10px; }
}

/* ---------- Movimiento */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero .mark, html.js .hero .hero-tag, html.js .hero .hero-foot { opacity: 1; translate: none; animation: none; }
  html.js body.home .site-header { opacity: 1; translate: none; pointer-events: auto; animation: none; }
  .scroll-cue::before { animation: none; }
  .cmd:hover::after, .cmd:focus-visible::after { animation: none; }
  .pcard:hover, .pcard:has(.pcard-go:focus-visible) { translate: none; }
  .g-link:hover img, .g-link:focus-visible img { scale: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Impresión */
@media print {
  .field, .site-header, .scroll-cue, .beam, .copy, .menu, .cform, .lightbox { display: none !important; }
  body, .product { background: #fff !important; color: #000; }
  h1, h2, h3, .statement, .page-title, strong { color: #000; }
}
