/* ==========================================================================
   SYNC TUNED — Performance & Tuning
   Hoja de estilos. Las partes interactivas las agrega main.js.

   Idea: el taller de noche. La pared de bloques, el cartel SYNC que se
   prende, y los datos como prueba de cada trabajo.
   ========================================================================== */

/* ---------- Fuente (alojada en el sitio) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* ---------- Colores y medidas (para cambiar el azul, cambiá --azul) ---------- */
:root {
  --bloque: #E3E4E6;
  --junta: #D3D5D9;
  --blanco: #F6F7F8;
  --papel: #FFFFFF;
  --azul: #224B9C;
  --azul-hover: #1A3C80;
  --noche: #0E1B36;
  --noche-2: #16284D;
  --noche-3: #091327;
  --led: #5B8CFF;
  --tinta: #14181F;
  --tinta-2: #4A5261;
  --suave: #B9C8EC;
  --wa: #0E8043;

  --f: "Archivo", "Arial Narrow", Arial, sans-serif;
  --ancho: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 16px;
  --corte: clamp(28px, 4.5vw, 72px);   /* inclinación de los cortes, como el logo */

  --pared-clara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cg fill='none' stroke='%23D3D5D9' stroke-width='2'%3E%3Cpath d='M0 1h160M0 41h160M1 0v40M81 40v40'/%3E%3C/g%3E%3C/svg%3E");
  --pared-oscura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cg fill='none' stroke='%23101a2e' stroke-width='3'%3E%3Cpath d='M0 1.5h160M0 41.5h160M1.5 0v40M81.5 40v40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--led); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* Títulos: cursiva ancha y pesada, con la inclinación del logo */
h1, h2 {
  font-style: italic;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  line-height: 1.03;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3, h4 { line-height: 1.25; }
p { text-wrap: pretty; }

/* Corte inclinado arriba y abajo */
.slant {
  clip-path: polygon(0 var(--corte), 100% 0, 100% calc(100% - var(--corte)), 0 100%);
  padding-block: calc(var(--corte) + clamp(56px, 8vw, 104px));
}
.slant-top {
  clip-path: polygon(0 var(--corte), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--corte) + clamp(56px, 8vw, 104px));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--azul); color: #fff; }
.btn--solid:hover { background: var(--azul-hover); }
.btn--line-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--line-light:hover { border-color: #fff; }
.btn--light { background: var(--blanco); color: var(--noche); }
.btn--light:hover { background: #fff; }
.btn--led { background: var(--led); color: var(--noche); }
.btn--led:hover { background: #7FA5FF; }
.btn--ghost { border-color: rgba(201, 214, 245, .4); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn[hidden] { display: none; }

.link { font-weight: 700; color: var(--azul); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link:hover { color: var(--azul-hover); }

/* ==========================================================================
   AVISO Y ENCABEZADO
   ========================================================================== */
.notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  padding: 9px var(--gutter);
  background: var(--noche-3);
  color: #DCE4F5;
  font-size: .92rem;
  text-align: center;
}
.notice a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.notice a:hover { color: var(--led); }

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--blanco) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--junta);
  transition: box-shadow .2s;
}
.top.is-scrolled { box-shadow: 0 6px 24px rgba(14, 27, 54, .08); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand img { width: 146px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--tinta-2); padding-block: 6px; }
.nav a:hover { color: var(--azul); }
.nav a[aria-current]:not(.nav__wa) { color: var(--azul); box-shadow: inset 0 -2px 0 var(--azul); }
.nav .nav__wa { color: #fff; background: var(--azul); padding: 10px 20px; border-radius: 999px; }
.nav .nav__wa:hover { background: var(--azul-hover); color: #fff; }

/* ==========================================================================
   INICIO — la pared del taller de noche
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background-color: #1A2337;
  background-image:
    radial-gradient(55% 45% at 50% 18%, rgba(70, 120, 255, .42), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(5, 10, 22, .75) 100%),
    var(--pared-oscura);
  background-size: auto, auto, 160px 80px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corte)), 0 100%);
  padding: clamp(40px, 5.5vw, 72px) 0 calc(var(--corte) + clamp(48px, 6vw, 80px));
  overflow: hidden;
}
.hero__wall { padding-inline: var(--gutter); }
.hero__sign {
  width: min(520px, 78vw);
  margin-inline: auto;
  filter:
    drop-shadow(0 0 6px rgba(120, 160, 255, .9))
    drop-shadow(0 0 28px rgba(70, 120, 255, .75))
    drop-shadow(0 0 80px rgba(70, 120, 255, .45));
  animation: encender 1.8s ease-out .2s both;
}
/* El cartel se prende una vez, como un LED que arranca */
@keyframes encender {
  0%   { opacity: .06; filter: none; }
  22%  { opacity: .9; }
  32%  { opacity: .3; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

.hero__copy { margin-top: clamp(32px, 4.5vw, 56px); }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.4rem); max-width: 22ch; margin-inline: auto; }
.hero__lead { margin: 20px auto 0; max-width: 40ch; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--suave); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  margin-top: clamp(40px, 5vw, 56px);
  font-size: 1rem;
  color: var(--suave);
}
.hero__facts li { padding-inline: clamp(16px, 2.5vw, 28px); }
.hero__facts li + li { border-left: 1px solid rgba(201, 214, 245, .25); }
.hero__facts strong { font-style: italic; font-weight: 850; font-stretch: 115%; color: #fff; margin-right: 4px; }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.block { padding-block: clamp(72px, 10vw, 128px); }
.block--wall { background-color: var(--bloque); background-image: var(--pared-clara); background-size: 160px 80px; }

.head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { margin-top: 14px; font-size: 1.15rem; color: var(--tinta-2); }
.head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.head--split > div { max-width: 640px; }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
}
.ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #E7EDFA;
  color: var(--azul);
  transform: skewX(-8deg);
}
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: skewX(8deg); }
.services h3 { margin-top: 18px; font-size: 1.3rem; font-weight: 800; }
.services p { margin-top: 8px; color: var(--tinta-2); max-width: 36ch; }

/* ---------- "En simple": explicaciones para cualquiera ---------- */
.simple {
  border-left: 3px solid var(--led);
  background: rgba(91, 140, 255, .1);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
}
.simple__label { font-weight: 800; font-size: .95rem; color: var(--led); margin-bottom: 6px; }
.simple p:not(.simple__label) { color: #DCE4F5; }
.simple--light { background: #E7EDFA; border-left-color: var(--azul); }
.simple--light .simple__label { color: var(--azul); }
.simple--light p:not(.simple__label) { color: var(--tinta-2); }

/* ==========================================================================
   DESBLOQUEO DE ECU
   ========================================================================== */
.unlock {
  background:
    radial-gradient(60% 50% at 0% 10%, rgba(91, 140, 255, .18), transparent 70%),
    var(--noche);
  color: #DCE4F5;
}
.unlock__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px clamp(48px, 7vw, 104px);
  align-items: end;
}
.unlock h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 12ch; }
.unlock__lead { margin-top: 20px; font-size: 1.15rem; color: var(--suave); max-width: 46ch; }

.sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(44px, 6vw, 64px);
  align-items: start;
}
.sheet {
  background: var(--noche-2);
  border: 1px solid rgba(201, 214, 245, .12);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
}
.sheet__brand {
  display: inline-block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--led);
  padding: 3px 12px;
  border: 1.5px solid rgba(91, 140, 255, .5);
  border-radius: 999px;
}
.sheet h3 {
  margin-top: 12px;
  font-style: italic;
  font-weight: 850;
  font-stretch: 120%;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  color: #fff;
}
.sheet__img { margin-top: 22px; border-radius: 10px; overflow: hidden; }
.sheet__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 60%; }
.sheet__count { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.sheet__count strong {
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--led);
  text-shadow: 0 0 28px rgba(91, 140, 255, .45);
}
.sheet__count span { font-weight: 700; font-size: 1.1rem; color: #fff; max-width: 20ch; line-height: 1.3; }
.sheet__spec { margin-top: 22px; border-top: 1px solid rgba(201, 214, 245, .14); }
.sheet__spec div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(201, 214, 245, .14); }
.sheet__spec dt { color: #8FA0C8; font-size: .95rem; }
.sheet__spec dd { margin: 0; color: #fff; font-weight: 600; }

.sheet__steps { position: relative; margin-top: 24px; display: grid; gap: 24px; padding-left: 38px; counter-reset: etapa; }
.sheet__steps::before { content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(rgba(201, 214, 245, .25), var(--led)); }
.sheet__steps li { position: relative; counter-increment: etapa; }
.sheet__steps li::before {
  content: counter(etapa);
  position: absolute;
  left: -38px;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
  background: var(--noche);
  color: #C9D6F5;
  border: 2px solid rgba(201, 214, 245, .4);
}
.sheet__steps li.is-now::before { background: var(--led); color: var(--noche); border-color: var(--led); box-shadow: 0 0 14px var(--led); }
.sheet__when { font-size: .9rem; font-weight: 700; color: var(--led); }
.sheet__steps h4 { margin-top: 2px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.sheet__steps p:not(.sheet__when) { margin-top: 6px; color: var(--suave); }

.unlock__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
  margin-top: clamp(40px, 5vw, 56px);
}
.unlock__quote { padding-left: 18px; border-left: 3px solid var(--led); }
.unlock__quote p { font-style: italic; font-weight: 700; font-stretch: 108%; font-size: 1.2rem; line-height: 1.45; color: #fff; max-width: 40ch; }
.unlock__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   DATOS — el log
   ========================================================================== */
.data__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.data__lead { margin: 16px 0 28px; font-size: 1.15rem; color: var(--tinta-2); max-width: 42ch; }
.howto { display: grid; gap: 10px; margin-top: 6px; }
.howto li { display: flex; align-items: center; gap: 12px; color: var(--tinta); }
.howto__try { margin-top: 14px; font-size: .95rem; }

.k { flex: none; display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--led); }
.k--target { border-top: 2px dashed #7C8BAA; }
.k--trace { border-top-color: var(--led); }
.k--dot { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 4px rgba(91, 140, 255, .25); margin-inline: 6px; }

.log {
  background: var(--noche);
  color: #C9D6F5;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 0 0 1px rgba(91, 140, 255, .25), 0 0 48px rgba(91, 140, 255, .22), 0 24px 60px rgba(14, 27, 54, .3);
}
.log__bar { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; font-weight: 600; padding: 2px 4px 12px; border-bottom: 1px solid rgba(201, 214, 245, .14); }
.log__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--led); }
.log__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
.log__plot { width: 100%; margin-top: 8px; touch-action: pan-y; }
.log__grid line { stroke: rgba(201, 214, 245, .1); stroke-width: 1; }
.log__axis text { fill: rgba(201, 214, 245, .55); font-family: var(--f); font-size: 13px; font-variant-numeric: tabular-nums; }
.log__target { fill: none; stroke: rgba(201, 214, 245, .55); stroke-width: 2; stroke-dasharray: 6 6; }
.log__trace {
  fill: none;
  stroke: var(--led);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(91, 140, 255, .8));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dibujar 2.2s cubic-bezier(.45, 0, .2, 1) .35s forwards;
}
@keyframes dibujar { to { stroke-dashoffset: 0; } }
/* con JavaScript, la curva se dibuja recién cuando el gráfico aparece en pantalla */
.js .log:not(.in-view) .log__trace { animation-play-state: paused; }
.log__cursor { display: none; }
.log.is-live .log__cursor { display: inline; }
.log.is-live .log__plot { cursor: crosshair; }
.log__cline { stroke: rgba(201, 214, 245, .45); stroke-width: 1; stroke-dasharray: 3 4; }
.log__mdot { fill: var(--led); stroke: var(--noche); stroke-width: 2; filter: drop-shadow(0 0 6px var(--led)); }
.log__tdot { fill: var(--noche); stroke: rgba(201, 214, 245, .8); stroke-width: 2; }

.log__read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 6px; border-radius: 10px; overflow: hidden; }
.log__read[hidden] { display: none; }
.log__scrub { grid-column: 1 / -1; display: block; padding: 4px 2px 10px; background: var(--noche); }
.log__scrub input { width: 100%; margin: 0; accent-color: var(--led); cursor: ew-resize; }
.log__cell { background: var(--noche-2); padding: 10px 12px; display: grid; gap: 2px; }
.log__cell span { font-size: .8rem; color: rgba(201, 214, 245, .7); }
.log__cell strong { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.log__cell strong[data-r="med"] { color: var(--led); }
.log__cell strong[data-state="ok"] { color: #6FE3A1; }
.log__cell strong[data-state="off"] { color: #FFC266; }

/* ==========================================================================
   TRABAJOS
   ========================================================================== */
.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.work a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--papel);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .25s;
}
.work a:hover { box-shadow: 0 0 0 2px var(--azul), 0 18px 40px rgba(14, 27, 54, .12); }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: scale .5s ease; }
.work a:hover img { scale: 1.03; }
.work__body { padding: 18px 20px 22px; }
.work__tag { font-weight: 700; font-size: .9rem; color: var(--azul); }
.work h3 { margin-top: 4px; font-style: italic; font-weight: 850; font-stretch: 115%; font-size: 1.25rem; line-height: 1.1; }
.work__body p:last-child { margin-top: 8px; font-size: .98rem; color: var(--tinta-2); }

.work--big { grid-column: span 2; grid-row: span 2; }
.work--big a { background: var(--noche); color: #fff; }
.work--big img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; object-position: 30% 70%; }
.work--big .work__body { padding: 24px 28px 28px; }
.work--big .work__tag { color: var(--led); }
.work--big h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.work--big .work__body p:last-child { color: var(--suave); font-size: 1.02rem; max-width: 52ch; }

/* ==========================================================================
   PROCESO — es una secuencia real, por eso lleva números
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: paso;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: calc((100% - 3 * clamp(24px, 3vw, 40px)) / 4 - 24px + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--azul), var(--led));
  opacity: .35;
}
.steps li { position: relative; counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-style: italic;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 0 0 8px var(--blanco);
}
.steps h3 { margin-top: 20px; font-size: 1.3rem; font-weight: 800; }
.steps p { margin-top: 6px; color: var(--tinta-2); }

/* ==========================================================================
   TUNING A DISTANCIA
   ========================================================================== */
.remote { background: var(--azul); color: #fff; }
.remote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.remote__lead { margin-top: 18px; font-size: 1.15rem; color: #DCE4F5; max-width: 44ch; }
.remote__label { margin-top: 28px; font-weight: 700; }
.countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 32px; }
.countries li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: .95rem; }

.platforms { background: var(--noche); border-radius: var(--r); padding: clamp(26px, 4vw, 44px); color: #DCE4F5; }
.platforms h3 { font-size: 1.3rem; font-weight: 800; color: #fff; }
.platforms ul { margin-top: 18px; }
.platforms li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 13px;
  border-top: 1px solid rgba(201, 214, 245, .16);
  font-style: italic;
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #fff;
}
.platforms li span { font-style: normal; font-weight: 500; font-stretch: 100%; font-size: .92rem; color: #8FA0C8; text-align: right; }
.platforms p { margin-top: 16px; color: var(--suave); font-size: 1rem; }

/* ==========================================================================
   EL TALLER
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 7vw, 104px); align-items: start; }
.about__text p { margin-top: 18px; font-size: 1.15rem; color: var(--tinta-2); max-width: 48ch; }
.kit__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.kit { display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; background: var(--junta); }
.kit div { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 16px; align-items: baseline; background: var(--papel); padding: 15px 20px; }
.kit dt { font-style: italic; font-weight: 850; font-stretch: 112%; color: var(--tinta); }
.kit dd { margin: 0; color: var(--tinta-2); font-size: 1rem; }

/* ==========================================================================
   PREGUNTAS
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(48px, 7vw, 104px); align-items: start; }
.faq details { border-top: 2px solid var(--tinta); }
.faq details:last-child { border-bottom: 2px solid var(--tinta); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  border-right: 3px solid var(--azul);
  border-bottom: 3px solid var(--azul);
  rotate: 45deg;
  translate: 0 -4px;
  transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--azul); }
.faq details p { padding-bottom: 22px; color: var(--tinta-2); max-width: 60ch; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(70, 120, 255, .25), transparent 70%),
    var(--noche);
  color: #fff;
  padding-bottom: clamp(72px, 10vw, 120px);
}
.contact__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.contact__in p { margin-top: 14px; font-size: 1.15rem; color: var(--suave); max-width: 44ch; }
.contact__in .btn { margin-top: 28px; }

.quote { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.quote[hidden] { display: none; }
.quote__form { display: grid; grid-template-columns: 1fr 150px; gap: 22px 16px; }
.quote__form > .chips, .quote__form > .field--wide, .quote__send { grid-column: 1 / -1; }

.field label, .chips legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: #fff; }
.opt { font-weight: 500; color: var(--suave); }
.field input, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--blanco);
  border: 2px solid transparent;
  border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #7A8394; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--led); outline-offset: 2px; }
.field__err { display: none; margin-top: 8px; font-size: .95rem; font-weight: 600; color: #FFD7A3; }
.field__err::before { content: "! "; font-weight: 800; }
.field.is-bad input { border-color: #FFC266; background: #FFF6E8; }
.field.is-bad .field__err { display: block; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { float: left; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(201, 214, 245, .35);
  font-weight: 600;
  font-size: .97rem;
  color: #fff;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: var(--led); border-color: var(--led); color: var(--noche); }
.chips input:checked + span::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.quote__send { justify-self: start; margin-top: 4px; }

.ticket { position: sticky; top: 110px; background: var(--noche-2); border: 1px solid rgba(201, 214, 245, .12); border-radius: 18px; padding: 22px; }
.ticket__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: #C9D6F5; padding-bottom: 12px; border-bottom: 1px solid rgba(201, 214, 245, .14); }
.ticket__head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6FE3A1; box-shadow: 0 0 10px #6FE3A1; }
.ticket__body {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 4px 16px 16px 16px;
  background: #DCF8C6;
  color: #10261A;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  min-height: 120px;
}
.ticket__foot { margin-top: 14px; font-size: .9rem; color: #A9B8DA; }

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.foot { background: var(--noche-3); color: #A9B8DA; padding-block: clamp(64px, 8vw, 96px) 40px; text-align: center; }
.foot__sign {
  width: min(280px, 60vw);
  margin: 0 auto 40px;
  filter: drop-shadow(0 0 16px rgba(70, 120, 255, .6));
}
.foot__quote p {
  max-width: 24ch;
  margin-inline: auto;
  font-style: italic;
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid rgba(201, 214, 245, .3);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.pill svg { width: 22px; height: 22px; fill: currentColor; }
.pill:hover { border-color: #fff; }
.pill--wa { background: var(--wa); border-color: var(--wa); }
.pill--wa:hover { background: #0B6A37; border-color: #0B6A37; }
.foot__base { margin-top: 56px; padding-top: 30px; border-top: 1px solid rgba(201, 214, 245, .12); display: grid; gap: 6px; font-size: .92rem; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 8px 24px rgba(14, 27, 54, .35);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { background: #0B6A37; }

/* ---------- Página 404 ---------- */
.e404 { min-height: 100vh; display: grid; place-items: center; padding-block: 40px; clip-path: none; }
.e404 .hero__sign { width: min(420px, 80vw); margin-bottom: 40px; }
.e404 .hero__lead { margin-inline: auto; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .top__in { flex-wrap: wrap; min-height: 0; padding-block: 12px 0; }
  .nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--bloque); color: var(--tinta); font-size: .95rem; }
  .nav a[aria-current]:not(.nav__wa) { box-shadow: none; background: var(--azul); color: #fff; }
  .nav .nav__wa { order: -1; background: var(--wa); padding: 8px 14px; }
  .nav .nav__wa:hover { background: #0B6A37; }
  html { scroll-padding-top: 130px; }

  .unlock__top, .sheets, .data__grid, .remote__grid, .about, .faq, .quote { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
  .work--big { grid-row: auto; }
  .work--big img { aspect-ratio: 4 / 3; height: auto; flex: none; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand img { width: 124px; }
  .hero__cta .btn, .unlock__cta .btn { flex: 1 1 100%; }
  .hero__facts { flex-direction: column; gap: 8px; }
  .hero__facts li + li { border-left: 0; }
  .services, .works, .steps { grid-template-columns: minmax(0, 1fr); }
  .work--big { grid-column: auto; }
  .work img { aspect-ratio: 4 / 3; object-position: center 70%; }
  .kit div { grid-template-columns: 1fr; gap: 2px; }
  .sheet__spec div { grid-template-columns: 96px 1fr; }
  .quote__form { grid-template-columns: minmax(0, 1fr); }
  .quote__send { width: 100%; }
  .log__read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill { width: 100%; justify-content: center; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ---------- Menos movimiento para quien lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sign { animation: none; }
  .log__trace { animation: none; stroke-dashoffset: 0; }
  .work img, .faq summary::after { transition: none; }
}

@media print {
  .notice, .top, .wa-float, .hero__cta, .quote { display: none; }
  .slant, .slant-top, .hero { clip-path: none; }
  .log__trace { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Tuners autorizados y distribuidores ---------- */
.partners { background: var(--papel); border-bottom: 1px solid var(--junta); }
.partners__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(32px, 6vw, 80px);
  padding-block: clamp(26px, 3.5vw, 38px);
}
.partners__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; justify-content: center; }
.partners__label { font-weight: 700; font-size: .95rem; color: var(--azul); }
.partners ul { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.partners li { font-style: italic; font-weight: 850; font-stretch: 115%; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--tinta); }
.kit__title--next { margin-top: 28px; }

/* ---------- Selector de idioma ---------- */
.lang {
  display: flex;
  gap: 2px;
  margin-left: clamp(12px, 2vw, 24px);
  padding: 3px;
  border-radius: 999px;
  background: var(--bloque);
  font-weight: 700;
  font-size: .85rem;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--tinta-2);
  line-height: 1;
}
.lang a:hover { color: var(--azul); }
.lang a[aria-current] { background: var(--papel); color: var(--azul); box-shadow: 0 1px 3px rgba(14, 27, 54, .12); }
@media (max-width: 860px) {
  .lang { order: 2; margin-left: auto; }
}
