/* Open Lambda Core — sitio de producto.
   Identidad: negro y blanco de la pista, el color de la edición como acento
   y el morado reservado al Escudo. El movimiento nunca rebota: un seguidor
   de línea corrige, no oscila. */

@property --ed-fondo-a { syntax: '<color>'; inherits: true; initial-value: #DE121B; }
@property --ed-fondo-b { syntax: '<color>'; inherits: true; initial-value: #8F0A11; }
@property --ed-letras  { syntax: '<color>'; inherits: true; initial-value: #FF6A45; }
@property --ed-tinta   { syntax: '<color>'; inherits: true; initial-value: #D50F17; }
@property --boton      { syntax: '<color>'; inherits: true; initial-value: #D50F17; }

:root {
  /* La pista y sus grises */
  --negro: #0B0E12;
  --tinta: #14181D;
  --grafito: #343A42;
  --acero: #5C6470;
  --ceniza: #8B93A0;
  --linea: #E3E1DB;
  --tarjeta: #F5F4F0;
  --papel: #FFFFFF;
  --hueso: #F4F2EE;

  /* El Escudo */
  --escudo: #6A22B8;
  --escudo-claro: #A56BF0;
  --escudo-prof: #3A1170;
  --telemetria: #FFB300;
  --ok: #3FD97B;
  --error: #FF5F56;

  /* Edición roja (c, el fotón): la de partida */
  --ed: #D50F17;
  --ed-fondo-a: #DE121B;
  --ed-fondo-b: #8F0A11;
  --ed-letras: #FF6A45;
  --ed-tinta: #D50F17;
  --boton: #D50F17;
  --boton-texto: #FFFFFF;
  --ed-sobre: #FFFFFF;

  --sans: 'Chivo', 'Glifo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Chivo Mono', 'Glifo', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --suave: cubic-bezier(.2, 0, .2, 1);
  --pad: clamp(16px, 2.6vw, 36px);
  --ancho: 1296px;

  transition: --ed-fondo-a .5s var(--suave), --ed-fondo-b .5s var(--suave),
              --ed-letras .5s var(--suave), --ed-tinta .3s var(--suave), --boton .3s var(--suave);
}
:root[data-edicion="azul"] {
  --ed: #0B4DA6; --ed-fondo-a: #0E5AC2; --ed-fondo-b: #062F6B; --ed-letras: #4F97FF;
  --ed-tinta: #0B4DA6; --boton: #0B4DA6; --boton-texto: #FFFFFF; --ed-sobre: #FFFFFF;
}
:root[data-edicion="aurea"] {
  --ed: #F0A500; --ed-fondo-a: #F7B10F; --ed-fondo-b: #B87700; --ed-letras: #FFDC6B;
  --ed-tinta: #9A6400; --boton: #F0A500; --boton-texto: #0B0E12; --ed-sobre: #0B0E12;
}
:root[data-edicion="blanca"] {
  --ed: #F4F2EE; --ed-fondo-a: #ECE9E3; --ed-fondo-b: #A9A69F; --ed-letras: #FFFFFF;
  --ed-tinta: #14181D; --boton: #14181D; --boton-texto: #FFFFFF; --ed-sobre: #0B0E12;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ed-tinta); outline-offset: 3px; border-radius: 4px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────── Tipografía ───────── */
.titular {
  font: italic 900 clamp(30px, 3.4vw, 48px)/1.04 var(--sans);
  letter-spacing: -.02em; text-wrap: balance;
}
.rotulo {
  font: 500 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acero);
}
.bajada { font-size: clamp(16px, 1.25vw, 19px); color: var(--acero); max-width: 44ch; text-wrap: pretty; }
.acento { color: var(--ed-tinta); }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 24px; border-radius: 8px; white-space: nowrap;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .14s var(--suave), color .14s var(--suave), box-shadow .14s var(--suave), transform .14s var(--suave);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .14s var(--suave); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--chico { height: 42px; padding: 0 18px; font-size: 12px; }
.btn--primario { background: var(--boton); color: var(--boton-texto); }
.btn--primario:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .12); }
.btn--claro { background: #fff; color: var(--negro); }
.btn--claro:hover { background: var(--hueso); }
.btn--oscuro { background: var(--negro); color: #fff; }
.btn--oscuro:hover { background: var(--grafito); }
.btn--linea { box-shadow: inset 0 0 0 1px var(--tinta); color: var(--tinta); }
.btn--linea:hover { background: var(--tinta); color: #fff; }
.btn--linea-acento { box-shadow: inset 0 0 0 1px var(--ed-tinta); color: var(--tinta); }
.btn--linea-acento:hover { background: var(--ed-tinta); color: #fff; }
.btn__sep { width: 1px; height: 14px; background: currentColor; opacity: .55; }
.btn__precio { font-size: 12px; opacity: .92; }

/* ───────── Navegación ───────── */
.nav {
  position: fixed; z-index: 60; top: 12px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 2px;
  height: 56px; padding: 7px 7px 7px 20px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(11, 14, 18, .05), 0 12px 32px -12px rgba(11, 14, 18, .28);
  white-space: nowrap;
}
.nav__logo {
  display: block; width: 104px; aspect-ratio: 1762/307; margin-right: 18px; flex: none;
  background: var(--negro);
  -webkit-mask: url(../img/lambda-negro.webp) center/contain no-repeat;
          mask: url(../img/lambda-negro.webp) center/contain no-repeat;
}
.nav__enlaces { display: flex; align-items: center; gap: 2px; }
.nav__enlace {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border-radius: 6px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--tinta);
  transition: background-color .14s var(--suave);
}
.nav__enlace:hover, .nav__enlace[aria-expanded="true"] { background: var(--tarjeta); }
.nav__enlace svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: rotate .14s var(--suave); }
.nav__enlace[aria-expanded="true"] svg { rotate: 180deg; }
.nav__grupo { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; min-width: 230px;
  padding: 6px; background: #fff; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(11, 14, 18, .05), 0 16px 40px -12px rgba(11, 14, 18, .3);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s var(--suave), transform .14s var(--suave), visibility 0s .14s;
}
.nav__grupo.abierto .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__opcion {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 6px; text-align: left;
  font: 500 12.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
}
.nav__opcion:hover { background: var(--tarjeta); }
.nav__opcion small { margin-left: auto; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--ceniza); text-transform: none; }
.glifo {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c, #ccc); color: var(--t, #fff);
  font: 700 13px/1 var(--mono); text-transform: none; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(11, 14, 18, .14);
}
.nav__cta { margin-left: 10px; height: 42px; padding: 0 18px; font-size: 12.5px; }
.nav__hamb { display: none; width: 42px; height: 42px; border-radius: 6px; flex-direction: column; align-items: center; justify-content: center; }
.nav__hamb span { display: block; width: 18px; height: 1.5px; background: var(--tinta); transition: transform .22s var(--suave), opacity .14s; }
.nav__hamb span + span { margin-top: 5px; }
/* la vuelta: el avance por la página, con una marca lateral por sección */
.nav__vuelta { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.nav__vuelta i { display: block; height: 100%; background: var(--ed-tinta); transform-origin: left; transform: scaleX(var(--avance, 0)); }

/* ───────── Portada ───────── */
.hero {
  position: relative; height: 100svh; min-height: 640px; max-height: 1180px; overflow: hidden; isolation: isolate;
  color: #fff; background: linear-gradient(180deg, var(--ed-fondo-a) 0%, var(--ed-fondo-b) 100%);
  --mx: 0; --my: 0;
}
.hero__letras {
  position: absolute; z-index: 0; top: 13.5%; left: 50%; width: max(95%, 1040px);
  translate: calc(-50% + var(--mx) * -16px) calc(var(--my) * -8px);
  color: var(--ed-letras); pointer-events: none;
}
.seg polygon { fill: currentColor; opacity: 0; }
.seg polygon.on { opacity: 1; }
.hero__letras polygon.on {
  fill: color-mix(in oklab, currentColor, #fff calc(var(--luz, 0) * 60%));
  animation: enciende .7s steps(1, end) both; animation-delay: calc(var(--i) * 26ms + 180ms);
}
@keyframes enciende { 0% { opacity: 0; } 18% { opacity: 1; } 30% { opacity: .15; } 46% { opacity: 1; } 58% { opacity: .5; } 70%, 100% { opacity: 1; } }

.hero__robot {
  position: absolute; z-index: 1; left: 54%; top: 45%;
  width: min(57vw, 92svh, 1080px); aspect-ratio: 1400/1047;
  translate: calc(-48% + var(--mx) * 20px) calc(-46% + var(--my) * 10px);
}
.hero__robot::after {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 6%; bottom: -3%; height: 20%;
  background: radial-gradient(closest-side, rgba(11, 14, 18, .5), rgba(11, 14, 18, 0)); filter: blur(12px);
}
.hero__flota { position: absolute; inset: 0; animation: flota 7s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero__flota img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.965); transition: opacity .45s var(--suave), transform .6s var(--suave);
  filter: drop-shadow(0 24px 30px rgba(11, 14, 18, .28));
}
.hero__flota img.activa { opacity: 1; transform: none; }
.hero::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 14, 18, .88) 0%, rgba(11, 14, 18, .55) 30%, rgba(11, 14, 18, 0) 100%);
}
.hero__pie {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5.2vh, 52px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero__texto { display: grid; gap: 16px; max-width: 780px; }
.hero h1 { font: italic 900 clamp(44px, 5.4vw, 76px)/.98 var(--sans); letter-spacing: -.025em; }
.hero__texto p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; color: rgba(255, 255, 255, .92); max-width: 34em; text-wrap: pretty; }
.hero__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
:root[data-edicion="blanca"] .hero .btn--primario { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }

.ediciones { display: grid; justify-items: end; gap: 12px; }
.ediciones__nombre { color: rgba(255, 255, 255, .86); letter-spacing: .14em; }
.ediciones__fila { display: flex; gap: 8px; }
.ediciones__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--t);
  font: 700 17px/1 var(--mono);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  transition: box-shadow .14s var(--suave), transform .14s var(--suave);
}
.ediciones__btn:hover { transform: translateY(-2px); }
.ediciones__btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--negro), 0 0 0 4px #fff; }

/* ───────── Secciones ───────── */
main {
  display: flex; flex-direction: column; gap: clamp(96px, 11.5vw, 168px);
  padding-block: clamp(72px, 8.5vw, 124px) clamp(96px, 11.5vw, 168px);
}
.seccion {
  width: min(100% - 2 * var(--pad), var(--ancho)); margin-inline: auto;
  display: flex; flex-direction: column; gap: clamp(36px, 4.2vw, 60px);
}
.cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cabeza .titular { max-width: 18em; }
.cabeza--centro { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.cabeza--centro .bajada { margin-inline: auto; }
.cabeza--centro .btn { margin-top: 12px; }

.js .rev { opacity: 0; translate: 0 20px; transition: opacity .6s var(--suave), translate .6s var(--suave); transition-delay: calc(var(--orden, 0) * 70ms); }
.js .rev.visto { opacity: 1; translate: none; }

/* ───────── Simulación ───────── */
.sim { border-radius: 22px; overflow: hidden; background: var(--negro); color: #fff; }
.sim__pista {
  position: relative; aspect-ratio: 2/1;
  background: radial-gradient(110% 90% at 50% 0%, #1B2028 0%, #0B0E12 72%);
}
.sim__pista > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim__junta { stroke: rgba(255, 255, 255, .05); stroke-width: 3; }
.sim__linea { fill: none; stroke: #F4F2EE; stroke-width: 19; stroke-linecap: butt; stroke-linejoin: round; }
.sim__marca { fill: #F4F2EE; }
.sim__marca.visto { fill: var(--telemetria); }
.sim__estela { fill: none; stroke: var(--telemetria); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.sim__robot { filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.sim__meta { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; stroke-dasharray: 10 12; }
.sim__meta-rot { font: 500 26px var(--mono); letter-spacing: .14em; fill: rgba(255, 255, 255, .42); }
.sim__chapa {
  position: absolute; left: clamp(12px, 1.8vw, 22px); top: clamp(12px, 1.8vw, 20px);
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.sim__chapa i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 217, 123, .6); animation: late 2.6s var(--suave) infinite; }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(63, 217, 123, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(63, 217, 123, 0); } }
.sim__crono { position: absolute; right: clamp(12px, 1.8vw, 22px); top: clamp(12px, 1.8vw, 18px); display: grid; justify-items: end; gap: 8px; }
.sim__crono svg { width: clamp(108px, 13vw, 176px); height: auto; color: var(--telemetria); overflow: visible; }
.sim__crono .seg polygon { opacity: .1; }
.sim__crono .seg polygon.on { opacity: 1; }
.sim__crono span { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sim__aviso {
  position: absolute; left: 53.5%; top: 21%; translate: -50% 0; padding: 9px 14px; border-radius: 6px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: #231417; color: #FFB1AC; box-shadow: inset 0 0 0 1px rgba(255, 95, 86, .5);
  opacity: 0; transition: opacity .22s var(--suave); pointer-events: none; white-space: nowrap;
}
.sim__aviso.ok { background: #10201A; color: #A9F2C6; box-shadow: inset 0 0 0 1px rgba(63, 217, 123, .45); }
.sim__aviso.ver { opacity: 1; }

.sim__barra { display: grid; grid-template-columns: 1.3fr .82fr 1.3fr; gap: 1px; background: #242932; border-top: 1px solid #242932; }
.sim__celda { background: #0F1318; padding: 20px 22px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.sim__celda > .rotulo { color: rgba(255, 255, 255, .5); font-size: 10.5px; }
.sim__prompt { display: flex; gap: 10px; min-height: 22px; font: 400 14.5px/1.5 var(--mono); color: #fff; }
.sim__prompt::before { content: "›"; color: var(--telemetria); }
.sim__prompt b { font-weight: 400; }
.sim__prompt b::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; background: var(--telemetria); animation: parpadea 1s steps(1) infinite; }
@keyframes parpadea { 50% { opacity: 0; } }
.sim__ia { font: 400 12px/1.4 var(--mono); color: rgba(255, 255, 255, .58); min-height: 17px; }
.sim__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sim__chip {
  height: 32px; padding: 0 12px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: background-color .14s var(--suave), color .14s var(--suave), box-shadow .14s var(--suave);
}
.sim__chip:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); color: #fff; }
.sim__chip[aria-pressed="true"] { background: #fff; color: var(--negro); box-shadow: none; }
.sim__vel { display: flex; align-items: baseline; gap: 8px; font: 500 34px/1 var(--mono); letter-spacing: -.02em; color: var(--telemetria); font-variant-numeric: tabular-nums; }
.sim__vel small { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.sim__sensores { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.sim__sensores i { flex: 1; max-width: 14px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.sim__sensores i::after { content: ""; position: absolute; inset: 0; background: #F4F2EE; transform-origin: bottom; transform: scaleY(var(--v, 0)); }
.sim__sensores i.marca { max-width: 9px; margin-inline: 5px; }
.sim__sensores i.marca::after { background: var(--telemetria); }
.sim__leyenda { display: flex; justify-content: space-between; font: 400 9.5px/1 var(--mono); letter-spacing: .12em; color: rgba(255, 255, 255, .4); text-transform: uppercase; }
.sim__planilla { width: 100%; border-collapse: collapse; font: 400 12px/1.3 var(--mono); table-layout: fixed; }
.sim__planilla th { text-align: left; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .4); padding: 0 8px 8px 0; }
.sim__planilla td { padding: 7px 8px 7px 0; border-top: 1px solid #242932; color: rgba(255, 255, 255, .86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim__planilla th:nth-child(1) { width: 34px; } .sim__planilla th:nth-child(3) { width: 74px; } .sim__planilla th:nth-child(4) { width: 96px; }
.sim__planilla .si { color: var(--ok); } .sim__planilla .no { color: var(--error); }
.sim__planilla tr.nueva td { animation: entra .4s var(--suave); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.sim__planilla .vacia td { color: rgba(255, 255, 255, .3); }

/* ───────── Trío ───────── */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 64px); width: min(100%, 1060px); margin-inline: auto; text-align: center; }
.trio li { display: grid; justify-items: center; gap: 10px; align-content: start; }
.trio svg { width: 26px; height: 26px; fill: none; stroke: var(--tinta); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.trio h3 { font: 600 19px/1.25 var(--sans); }
.trio p { font-size: 15.5px; line-height: 1.5; color: var(--acero); max-width: 30ch; text-wrap: pretty; }

/* ───────── De un vistazo ───────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.carta {
  position: relative; display: flex; flex-direction: column; min-height: 372px; padding: 26px 26px 22px;
  border-radius: 12px; background: var(--tarjeta); overflow: hidden;
}
.carta h3 { font: italic 800 clamp(21px, 1.85vw, 27px)/1.08 var(--sans); letter-spacing: -.012em; }
.carta p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--acero); max-width: 36ch; text-wrap: pretty; }
.carta--dato h3 { font-size: clamp(32px, 3.3vw, 50px); font-weight: 900; line-height: .98; letter-spacing: -.025em; }
.carta__dibujo { flex: 1; display: grid; place-items: center; min-height: 196px; margin-top: 18px; }
.carta__dibujo > svg { width: 100%; height: 100%; max-height: 232px; overflow: visible; }
.tz { fill: none; stroke: var(--tinta); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tz--fino { stroke-width: .8; }
.tz--puntos { stroke-dasharray: 2 4; }
.tz--acento { stroke: var(--ed-tinta); }
.tz--escudo { stroke: var(--escudo); }
.relleno { fill: var(--tinta); }
.relleno--acento { fill: var(--ed-tinta); }
.cifra { font: 500 9px var(--mono); letter-spacing: .1em; fill: var(--acero); text-transform: uppercase; }
.planos { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 34px); width: 100%; }
.planos figure { display: grid; justify-items: center; gap: 10px; }
.planos img { height: clamp(150px, 15.5vw, 206px); width: auto; }
.planos figcaption { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acero); white-space: nowrap; }
.abanico g { transition: transform .4s var(--suave); }
.late-arco { animation: arco 2.6s var(--suave) infinite; animation-delay: calc(var(--n) * .28s); opacity: .15; }
@keyframes arco { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .15; } }

/* ───────── Mapa ───────── */
.mapa { position: relative; width: 100%; aspect-ratio: 168/62; }
.mapa svg { width: 100%; height: 100%; overflow: visible; }
.mapa circle { fill: #D8D6D0; }
.mapa circle.cl { fill: var(--ed-tinta); }
.mapa circle.jp { fill: var(--tinta); }
.mapa .ruta { fill: none; stroke: var(--ed-tinta); stroke-width: .28; stroke-dasharray: .9 .9; }
.mapa .viajero { fill: var(--ed-tinta); }
.mapa .anillo { fill: none; stroke: var(--ed-tinta); stroke-width: .25; transform-box: fill-box; transform-origin: center; animation: anillo 2.6s var(--suave) infinite; }
.mapa .anillo--jp { stroke: var(--tinta); animation-delay: 1.3s; }
@keyframes anillo { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.mapa__nota {
  position: absolute; translate: 14px -50%; display: grid; gap: 5px; white-space: nowrap;
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta);
}
.mapa__nota small { font: 400 10px/1 var(--mono); letter-spacing: .08em; color: var(--acero); }
.mapa__nota--izq { translate: calc(-100% - 14px) -50%; text-align: right; }
.mezcla { display: inline-block; white-space: nowrap; }

/* ───────── Hardware abierto ───────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo article { display: grid; gap: 22px; align-content: start; }
.duo__media { position: relative; aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; }
.duo__pie { display: grid; gap: 6px; justify-items: start; }
.duo__pie h3 { font: 600 19px/1.25 var(--sans); }
.duo__pie p { font-size: 15.5px; color: var(--acero); max-width: 52ch; }
.duo__pie .btn { margin-top: 14px; }

.visor { background: radial-gradient(90% 80% at 50% 38%, #1D222A 0%, #101318 72%); color: #fff; container-type: inline-size; user-select: none; }
/* el cuadro del render (16:10) llena el alto; si la tarjeta es más angosta, se recorta por los lados */
.visor__cuadro { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 16/10; translate: -50% 0; }
.visor__cuadro canvas, .visor__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.visor.lista .visor__poster { opacity: 0; }
.visor__rotulos, .rotulos, .rotulos svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rotulos line { stroke: rgba(255, 255, 255, .6); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .2s var(--suave); }
.rotulo__punto { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--telemetria); box-shadow: 0 0 0 3px rgba(255, 179, 0, .25); opacity: 0; scale: .2; transition: opacity .2s var(--suave), scale .3s var(--suave); }
.rotulos .rotulo { position: absolute; translate: 0 -50%; white-space: nowrap; font: 500 clamp(9.5px, 1.6cqw, 11.5px)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: .6em .75em; border-radius: 4px; background: rgba(13, 16, 20, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); opacity: 0; transition: opacity .2s var(--suave); }
.rotulos .rotulo--izq { translate: -100% -50%; }
.visor.abierto[data-paso="1"] .rotulos[data-capa="0"] :is(line, .rotulo, .rotulo__punto),
.visor.abierto[data-paso="2"] .rotulos[data-capa="1"] :is(line, .rotulo, .rotulo__punto),
.visor.abierto[data-paso="3"] .rotulos[data-capa="2"] :is(line, .rotulo, .rotulo__punto) { opacity: 1; scale: 1; transition-duration: .35s; transition-delay: calc(.05s + var(--n, 1) * .07s); }
.visor.falla .visor__ctrl { display: none; }
.visor__hud { position: absolute; left: clamp(14px, 4cqw, 28px); top: clamp(14px, 4cqw, 26px); max-width: 32%; display: grid; gap: 7px; pointer-events: none; }
.visor__hud b { white-space: nowrap; }
.visor__hud b { font: 500 clamp(11px, 2cqw, 13px)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.visor__hud span { font: 400 clamp(10px, 1.8cqw, 12px)/1.3 var(--mono); color: var(--telemetria); letter-spacing: .04em; }
.visor__ctrl { position: absolute; right: clamp(12px, 3.4cqw, 22px); bottom: clamp(12px, 3.4cqw, 20px); display: flex; gap: 6px; }
.visor__ctrl button {
  height: 30px; padding: 0 11px; border-radius: 5px;
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background-color .14s, color .14s;
}
.visor__ctrl button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.visor__ctrl button.activo { background: var(--telemetria); color: var(--negro); box-shadow: none; }
.visor__pista { position: absolute; left: clamp(14px, 4cqw, 28px); bottom: clamp(14px, 3.6cqw, 24px); font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .38); pointer-events: none; }
@container (max-width: 600px) {
  .visor__rotulos, .visor__pista, .visor__hud span { display: none; }
  /* en tarjetas angostas los botones pasan a ser íconos: con texto tapaban el robot */
  .visor__ctrl button { width: 40px; height: 40px; padding: 0; font-size: 0; display: grid; place-content: center; }
  .visor__ctrl button::before { content: ""; box-sizing: border-box; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; rotate: 45deg; translate: 2px 0; }
  .visor__ctrl button[data-v="sig"]::before { rotate: -135deg; translate: -2px 0; }
  .visor__ctrl button[data-v="pausa"]::before { width: 10px; height: 12px; border-width: 0 3px; rotate: none; translate: none; }
  .visor__ctrl button[data-v="pausa"].activo::before { width: 0; height: 0; border-style: solid; border-color: transparent transparent transparent currentColor; border-width: 7px 0 7px 11px; translate: 1px 0; }
}

.bom { background: var(--boton); container-type: inline-size; }
.bom__pildora {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r);
  display: grid; place-items: center; height: 11.5cqw; padding: 0 5cqw; border-radius: 999px;
  background: #fff; color: var(--tinta); white-space: nowrap;
  font: 500 4.5cqw/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 1.2cqw 2.4cqw -1cqw rgba(11, 14, 18, .35);
  transform: translate(var(--dx, 0px), var(--dy, 0px)); transition: transform .4s var(--suave), rotate .4s var(--suave);
  cursor: default;
}
.bom__pildora:hover { rotate: 0deg; z-index: 3; }

/* ───────── Cotizar ───────── */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 3vw, 40px); align-items: end; width: min(100%, 1080px); margin-inline: auto; }
.etapas figure { display: grid; gap: 18px; justify-items: center; }
.etapas__img { height: clamp(150px, 20vw, 270px); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.etapas__img img { max-height: 100%; width: auto; height: auto; max-width: 100%; min-width: 0; object-fit: contain; }
.etapas figcaption { display: grid; gap: 6px; justify-items: center; text-align: center; font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.etapas figcaption small { font: 400 10.5px/1.2 var(--mono); letter-spacing: .06em; color: var(--acero); text-transform: none; }
.placa-color { position: relative; height: 100%; aspect-ratio: 1080/1223; max-width: 100%; }
.placa-color svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.placa-color i { position: absolute; inset: 0; background: var(--ed-sobre); -webkit-mask: url(../img/placa-base-serigrafia.webp) center/100% 100% no-repeat; mask: url(../img/placa-base-serigrafia.webp) center/100% 100% no-repeat; }
.placa-color polygon { fill: var(--ed); stroke: rgba(11, 14, 18, .18); stroke-width: .3; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* ───────── Preguntas ───────── */
.faq { background: var(--tarjeta); padding-block: clamp(64px, 7.5vw, 108px); }
.faq__int { width: min(100% - 2 * var(--pad), var(--ancho)); margin-inline: auto; display: grid; grid-template-columns: minmax(220px, 1fr) 2.5fr; gap: 32px 48px; align-items: start; }
.faq__lista { border-top: 1px solid var(--linea); }
.faq__item { border-bottom: 1px solid var(--linea); }
.faq__p {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; width: 100%; padding: 24px 0; text-align: left;
  font: 400 15px/1.5 var(--mono); color: var(--tinta);
}
.faq__mas { position: relative; flex: none; width: 13px; height: 13px; margin-top: 5px; }
.faq__mas::before, .faq__mas::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--tinta); transition: rotate .22s var(--suave); }
.faq__mas::after { rotate: 90deg; }
.faq__item.abierta .faq__mas::after { rotate: 0deg; }
.faq__r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--suave); }
.faq__item.abierta .faq__r { grid-template-rows: 1fr; }
.faq__r > div { overflow: hidden; }
.faq__r p { padding: 0 48px 26px 0; font-size: 16px; line-height: 1.6; color: var(--acero); max-width: 66ch; text-wrap: pretty; }
.faq__r p + p { margin-top: -12px; }

/* ───────── Pie ───────── */
.pie { padding-top: clamp(48px, 6vw, 80px); background: #fff; overflow: hidden; }
.pie__int { width: min(100% - 2 * var(--pad), var(--ancho)); margin-inline: auto; display: grid; gap: clamp(40px, 5vw, 64px); }
.pie__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pie h4 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.pie__cols a, .pie__cols button, .pie__cols span.fila {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; text-align: left;
  font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acero);
  transition: color .14s var(--suave);
}
.pie__cols a:hover, .pie__cols button:hover { color: var(--tinta); }
.etiqueta { padding: 3px 5px; border-radius: 2px; background: var(--ceniza); color: #fff; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.pie__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acero); }
.pie__logo {
  display: block; width: 100%; aspect-ratio: 1762/307; margin-bottom: clamp(20px, 3vw, 44px);
  background: var(--ed-tinta);
  -webkit-mask: url(../img/lambda-negro.webp) center/contain no-repeat;
          mask: url(../img/lambda-negro.webp) center/contain no-repeat;
}

/* ───────── Aviso de enlace por conectar ───────── */
.aviso {
  position: fixed; z-index: 80; left: 50%; bottom: 24px; translate: -50% 16px; max-width: calc(100% - 32px);
  padding: 13px 18px; border-radius: 8px; background: var(--negro); color: #fff;
  font: 400 12.5px/1.4 var(--mono); letter-spacing: .03em;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--suave), translate .22s var(--suave);
}
.aviso.ver { opacity: 1; translate: -50% 0; }

/* ───────── Pantallas medianas y chicas ───────── */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .nav__enlace { padding: 0 10px; }
}
@media (max-width: 940px) {
  .nav { left: 12px; right: 12px; translate: none; justify-content: space-between; padding-left: 16px; }
  .nav__hamb { display: flex; }
  .nav__cta { display: none; }
  .nav__enlaces {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; background: #fff; border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(11, 14, 18, .05), 0 16px 40px -12px rgba(11, 14, 18, .3);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .14s var(--suave), transform .14s var(--suave), visibility 0s .14s;
  }
  .nav.abierta .nav__enlaces { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav.abierta .nav__hamb span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.abierta .nav__hamb span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__enlace { height: 48px; padding: 0 12px; justify-content: space-between; }
  .nav__menu { position: static; translate: none; box-shadow: none; padding: 0 0 6px; min-width: 0; grid-template-columns: 1fr 1fr; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__grupo.abierto .nav__menu { display: grid; }
  .nav__opcion small { display: none; }
  .nav__enlaces .btn { display: inline-flex; margin: 6px 4px 4px; }

  .hero__pie { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__pie > * { width: 100%; }
  .ediciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .hero__robot { left: 50%; width: min(118vw, 78svh); top: 38%; translate: calc(-50% + var(--mx) * 20px) -50%; }
  .hero__letras { width: 150%; top: 13%; }

  .sim__barra { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; gap: 44px; }
  .faq__int { grid-template-columns: 1fr; }
  .pie__cols { grid-template-columns: 1fr 1fr; }
  .mapa__nota small { display: none; }
}
@media (min-width: 941px) { .nav__enlaces .btn { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .carta { min-height: 330px; }
  .sim { border-radius: 16px; }
  .sim__pista { aspect-ratio: 4/3; }
  .sim__chapa span { display: none; }
  .duo__media { border-radius: 16px; aspect-ratio: 4/3; }
  .etapas { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .etapas__img { height: 42vw; }
  .hero__botones .btn { flex: 1 1 auto; }
  .hero__robot { width: min(106vw, 62svh); top: 35%; }
  .hero__letras { width: 104%; top: 11.5%; }
  .ediciones__btn { width: 40px; height: 40px; }
  .faq__r p { padding-right: 12px; }
  .mapa { aspect-ratio: 168/72; }
  .mapa__nota { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rev { opacity: 1; translate: none; }
}
