/* All Simplex | Versión terminal de ciberseguridad */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --bg: #050607;
  --panel: #0b0d10;
  --panel-2: #101317;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ecebe6;
  --soft: #b9bcc1;
  --dim: #80858c;
  --yellow: #ffc300;
  --yellow-hi: #ffd54d;
  --yellow-soft: rgba(255, 195, 0, 0.12);
  --yellow-line: rgba(255, 195, 0, 0.45);
  --red: #ff5f56;
  --red-soft: rgba(255, 95, 86, 0.1);
  --grey: #8a8f96;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --header-h: 68px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(255, 195, 0, 0.06), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: #000; }

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

/* Barra de desplazamiento */
* { scrollbar-color: rgba(255, 195, 0, 0.5) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 195, 0, 0.45); border: 3px solid var(--bg); border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--yellow);
  color: #000;
  font-family: var(--mono);
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Efectos de pantalla: líneas de barrido y escaneo */
.fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 3px);
  opacity: 0.35;
}
.fx__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255, 195, 0, 0.05) 70%, rgba(255, 195, 0, 0.35) 99%, transparent);
  transform: translateY(-140px);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fx__scan { animation: barrido 9s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite; }
}
@keyframes barrido {
  0% { transform: translateY(-140px); opacity: 0; }
  6% { opacity: 1; }
  60% { transform: translateY(105vh); opacity: 0.9; }
  61%, 100% { transform: translateY(105vh); opacity: 0; }
}

/* Tipografía de sección */
.section-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-title::before {
  content: "> ";
  color: var(--yellow);
}
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 14px; font-size: 1.06rem; color: var(--soft); }

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--yellow); color: #000; }
.btn--primary:hover { background: var(--yellow-hi); box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.2); }
.btn--ghost { border-color: var(--yellow-line); color: var(--yellow); background: transparent; }
.btn--ghost::before { content: "[\00a0"; }
.btn--ghost::after { content: "\00a0]"; }
.btn--ghost:hover { background: var(--yellow-soft); border-color: var(--yellow); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Encabezado */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 6, 7, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { width: auto; height: 26px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--soft);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s ease;
}
.nav a:not(.btn)::before { content: "/"; color: var(--dim); margin-right: 2px; transition: color 0.15s ease; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::before { color: var(--yellow); }
.nav__cta { min-height: 40px; padding: 8px 16px; font-size: 0.86rem; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--yellow);
}
.menu-btn__bars { position: relative; top: -3px; }
.menu-btn__bars::before { content: ""; position: absolute; top: 6px; left: 0; }

/* Hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  min-height: max(520px, calc(100vh - var(--header-h) - 220px));
}
.hero__prompt {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--dim);
  margin-bottom: 20px;
}
.hero__prompt span { color: var(--yellow); }
.hero__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.55vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title span:nth-child(3) { color: var(--yellow); }
.hero__title span:last-child::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: var(--yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title span:last-child::after { animation: parpadeo 1.05s steps(1) infinite; }
}
@keyframes parpadeo { 50% { opacity: 0; } }
.hero__tagline {
  margin-top: clamp(18px, 2.2vw, 24px);
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  color: var(--text);
}
.hero__tagline b { color: var(--yellow); font-weight: inherit; }
.hero__lead {
  margin-top: 14px;
  max-width: 36em;
  font-size: clamp(1.04rem, 1.3vw, 1.15rem);
  line-height: 1.62;
  color: var(--soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.2vw, 36px); }

/* Ventana de terminal */
.term {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 9, 11, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 195, 0, 0.06), 0 30px 80px -30px rgba(255, 195, 0, 0.28);
  overflow: hidden;
}
.term::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 195, 0, 0.06), transparent 70%);
  pointer-events: none;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.term__dots { display: inline-flex; gap: 7px; }
.term__dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.term__dots i:first-child { background: var(--yellow); }
.term__title { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__body {
  position: relative;
  padding: 20px 20px 24px;
  min-height: 360px;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.05vw, 0.92rem);
  line-height: 1.85;
  color: var(--text);
}
.tl { white-space: pre-wrap; word-break: break-word; }
.c-y { color: var(--yellow); }
.c-r { color: var(--red); }
.c-d { color: var(--dim); }
.term__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--yellow);
}
@media (prefers-reduced-motion: no-preference) {
  .term__cursor { animation: parpadeo 1.05s steps(1) infinite; }
}

/* Barra de estado (credenciales) */
.status { border-block: 1px solid var(--line); background: rgba(11, 13, 16, 0.85); }
.status__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.status__item { padding: 20px 22px; border-left: 1px solid var(--line); font-family: var(--mono); }
.status__item:first-child { border-left: 0; padding-left: 0; }
.status__item dt { font-size: 0.78rem; color: var(--yellow); }
.status__item dt::after { content: ":"; }
.status__item dd { margin-top: 4px; font-size: 0.9rem; line-height: 1.4; color: var(--text); }

/* Paneles con barra de título */
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0;
}
.panel__bar > span:first-child::before { content: "~/"; color: var(--yellow); }
.panel__state { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); }
.panel__state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 195, 0, 0.7);
}

/* Servicios */
.services { padding-block: var(--section); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color 0.2s ease;
}
.service:hover { border-color: var(--yellow-line); }
.service__body { padding: clamp(22px, 2.6vw, 30px); }
.service h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.service__lead { margin-top: 12px; color: var(--soft); line-height: 1.55; }
.service__list { margin-top: 18px; display: grid; gap: 10px; }
.service__list li { position: relative; padding-left: 22px; font-size: 0.98rem; line-height: 1.45; color: var(--text); }
.service__list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--yellow);
}

/* Casos como diferencias de código */
.cases { padding-block: 0 var(--section); }
.cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.case > .panel__bar > span:first-child::after { content: ".diff"; color: var(--dim); }
.case dl { display: grid; }
.case dl > div { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 14px 18px 14px 0; }
.case dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0;
  text-align: center;
}
.case dt::before { font-size: 1rem; }
.case__before { background: var(--red-soft); border-left: 2px solid var(--red); }
.case__before dt::before { content: "-"; color: var(--red); }
.case__before dd { color: var(--soft); }
.case__after { background: var(--yellow-soft); border-left: 2px solid var(--yellow); }
.case__after dt::before { content: "+"; color: var(--yellow); }
.case__after dd { color: var(--text); }
.case dd { font-size: 0.98rem; line-height: 1.5; }
.case dd::before {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}
.case__before dd::before { content: "antes"; }
.case__after dd::before { content: "con IA"; color: var(--yellow); }

/* Diagnóstico */
.diag { padding-block: var(--section); border-top: 1px solid var(--line); }
.diag__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.diag__intro > p { margin-top: 18px; max-width: 30em; color: var(--soft); }

.radar { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin-top: 30px; contain: paint; }
@property --barrido { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.radar__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar__ring { fill: none; stroke: rgba(255, 195, 0, 0.18); stroke-width: 1; }
.radar__ring:first-child { fill: rgba(255, 195, 0, 0.025); stroke: rgba(255, 195, 0, 0.35); }
.radar__axis { fill: none; stroke: rgba(255, 195, 0, 0.12); stroke-width: 1; stroke-dasharray: 3 5; }
.radar__core { fill: var(--yellow); }
.radar__blip circle { fill: var(--bg); stroke: var(--grey); stroke-width: 1.5; transition: fill 0.25s ease, stroke 0.25s ease; }
.radar__blip text { fill: var(--dim); font-family: var(--mono); font-size: 11px; transition: fill 0.25s ease; }
.radar__blip.is-si circle { fill: var(--yellow); stroke: var(--yellow); }
.radar__blip.is-si text { fill: var(--text); }
.radar__blip.is-no circle { fill: var(--red); stroke: var(--red); }
.radar__blip.is-no text { fill: var(--red); }
.radar__blip.is-ns circle { fill: var(--grey); stroke: var(--grey); }
.radar__blip.is-ns text { fill: var(--soft); }
.radar__sweep {
  position: absolute;
  inset: calc(10 / 300 * 100%);
  border-radius: 50%;
  background: conic-gradient(from var(--barrido, 0deg), rgba(255, 195, 0, 0.32), rgba(255, 195, 0, 0) 70deg, transparent 360deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .radar__sweep { animation: giro 4s linear infinite; }
  .radar__blip.is-no circle { animation: alerta 1.2s ease-in-out infinite; }
}
@keyframes giro { to { --barrido: 360deg; } }
@keyframes alerta { 50% { stroke-width: 6; stroke: rgba(255, 95, 86, 0.35); } }

.meter { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 26px; max-width: 340px; }
.meter__seg { height: 6px; background: rgba(255, 255, 255, 0.1); transition: background-color 0.2s ease; }
.meter__seg.is-si { background: var(--yellow); }
.meter__seg.is-no { background: var(--red); }
.meter__seg.is-ns { background: var(--grey); }
.diag__intro > .diag__count { margin-top: 10px; font-family: var(--mono); font-size: 0.84rem; color: var(--dim); }

.quiz { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.q { margin-inline: clamp(18px, 2.6vw, 30px); padding-block: 22px; border-top: 1px dashed var(--line); }
.q:first-of-type { border-top: 0; }
.q legend {
  float: left;
  width: 100%;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
}
.q__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.q__opts label { position: relative; cursor: pointer; }
.q__opts input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q__opts span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.q__opts span::before { content: "[\00a0"; color: var(--dim); }
.q__opts span::after { content: "\00a0]"; color: var(--dim); }
.q__opts label:hover span { border-color: var(--text); color: var(--text); }
.q__opts input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.q__opts input:checked + span::before, .q__opts input:checked + span::after { color: inherit; }
.q__opts input[value="si"]:checked + span { background: var(--yellow); border-color: var(--yellow); color: #000; }
.q__opts input[value="no"]:checked + span { background: var(--red); border-color: var(--red); color: #000; }
.q__opts input[value="ns"]:checked + span { background: var(--grey); border-color: var(--grey); color: #000; }
.quiz__nojs { margin: 20px; color: var(--yellow); }

.result {
  grid-column: 1 / -1;
  border: 1px solid var(--yellow-line);
  border-radius: var(--r);
  background: var(--panel);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.result.is-bajo { border-color: rgba(255, 95, 86, 0.55); }
.result.is-bajo .panel__state::before { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 86, 0.8); }
.result__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
}
.result__score {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--yellow);
}
.result.is-bajo .result__score { color: var(--red); }
.result__label { margin-top: 10px; font-family: var(--mono); font-size: 0.86rem; color: var(--dim); }
.result__title { margin-top: 22px; font-family: var(--mono); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.result__text { margin-top: 8px; color: var(--soft); }
.result__list { display: grid; gap: 12px; }
.result__list li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: var(--r);
  background: var(--red-soft);
  font-size: 0.97rem;
  line-height: 1.5;
}
.result__list li::before {
  content: "[!!]";
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--red);
}
.result__list li.is-ns { border-left-color: var(--grey); background: rgba(255, 255, 255, 0.03); }
.result__list li.is-ns::before { content: "[??]"; color: var(--grey); }
.result__list strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 0.95rem; }
.result__list span { color: var(--soft); }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result__note { margin-top: 16px; font-size: 0.86rem; color: var(--dim); }

/* Metodología */
.process { padding-block: var(--section); border-top: 1px solid var(--line); }
.steps {
  counter-reset: paso;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--yellow-line);
}
.step { counter-increment: paso; position: relative; }
.step::before {
  content: "[" counter(paso, decimal-leading-zero) "]";
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--r);
  background: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--yellow);
}
.step h3 { margin-top: 20px; font-family: var(--mono); font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--soft); }

/* Nosotros */
.about { padding-block: var(--section); border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.facts { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color 0.2s ease;
}
.fact:hover { border-color: var(--yellow-line); }
.fact dt { font-family: var(--mono); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.02em; }
.fact dt::before { content: "# "; color: var(--yellow); }
.fact dd { margin-top: 8px; color: var(--soft); font-size: 0.97rem; }
.proof { border: 1px solid var(--yellow-line); border-radius: var(--r); background: var(--panel); }
.proof__body { padding: clamp(22px, 2.6vw, 30px); }
.proof h3 { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.proof__body > p { margin-top: 8px; color: var(--soft); }
.proof__list { margin-top: 18px; display: grid; gap: 10px; }
.proof__list li { position: relative; padding-left: 52px; line-height: 1.45; }
.proof__list li::before {
  content: "[ok]";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--yellow);
}
.proof__link { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 0.9rem; color: var(--yellow); text-underline-offset: 4px; }

/* Contacto */
.contact { padding-block: var(--section); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact__lead { margin-top: 16px; max-width: 28em; font-size: 1.08rem; color: var(--soft); }
.reach { margin-top: 32px; display: grid; gap: 20px; font-family: var(--mono); }
.reach dt { font-size: 0.8rem; color: var(--yellow); }
.reach dt::after { content: ":"; }
.reach dd { margin-top: 2px; font-size: 1.02rem; line-height: 1.5; }
.reach a { text-decoration-color: var(--yellow-line); text-underline-offset: 5px; }
.reach a:hover { color: var(--yellow); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(20px, 3vw, 32px) clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.form__bar { grid-column: 1 / -1; margin-inline: calc(-1 * clamp(20px, 3vw, 32px)); margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-weight: 600; font-size: 0.84rem; color: var(--soft); }
.field label::before { content: "$ "; color: var(--yellow); }
.check label::before { content: none; }
.opt { font-weight: 400; color: var(--dim); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: #07080a;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.95rem;
  caret-color: var(--yellow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--yellow) 50%),
    linear-gradient(135deg, var(--yellow) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--panel-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.38); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.16);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { font-family: var(--mono); font-size: 0.82rem; color: var(--red); }
.field__error::before { content: "error: "; }
.check { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--yellow); }
.check label { font-family: var(--body); font-weight: 400; font-size: 0.95rem; line-height: 1.45; color: var(--soft); }
.check a { color: var(--text); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.check .field__error { grid-column: 1 / -1; }
.form__foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__nojs { font-size: 0.92rem; color: var(--red); }
.form__status {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form__status.is-ok { background: var(--yellow-soft); color: var(--yellow-hi); border: 1px solid var(--yellow-line); }
.form__status.is-ok::before { content: "[ok] "; font-weight: 700; }
.form__status.is-error { background: var(--red-soft); color: #ffb0aa; border: 1px solid rgba(255, 95, 86, 0.5); }
.form__status.is-error::before { content: "[!!] "; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.foot { background: rgba(5, 6, 7, 0.95); border-top: 1px solid var(--line); color: var(--dim); font-size: 0.92rem; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 68px);
}
.foot__logo { width: auto; height: 24px; }
.foot__brand p { margin-top: 16px; max-width: 26em; line-height: 1.55; }
.foot__title { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--text); }
.foot__title::before { content: "// "; color: var(--yellow); }
.foot__col ul { margin-top: 14px; display: grid; gap: 9px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot__bottom { padding-bottom: 28px; font-family: var(--mono); font-size: 0.8rem; }
.foot__bottom p { padding-top: 18px; border-top: 1px solid var(--line); }

/* Páginas de texto (privacidad, 404) */
.doc { padding-block: clamp(56px, 8vw, 104px) var(--section); min-height: 60vh; }
.doc__inner { max-width: 46rem; }
.doc h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.doc h1::before { content: "> "; color: var(--yellow); }
.doc h2 { margin-top: 38px; font-family: var(--mono); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.doc h2::before { content: "## "; color: var(--yellow); }
.doc p { margin-top: 12px; color: var(--soft); }
.doc ul { margin-top: 12px; display: grid; gap: 8px; color: var(--soft); }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: "-"; position: absolute; left: 0; color: var(--yellow); font-family: var(--mono); }
.doc a:not(.btn) { color: var(--text); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.doc .btn { margin-top: 28px; }
.doc__meta { font-family: var(--mono); font-size: 0.85rem; color: var(--dim); }

/* Adaptación */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .term__body { min-height: 0; }
  .hero__title { font-size: clamp(1.5rem, 4.6vw, 2.3rem); }
  .hero__title span { white-space: normal; }
  .diag__grid, .about__grid, .contact__grid, .result__inner { grid-template-columns: minmax(0, 1fr); }
  .status__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .status__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(5, 6, 7, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
  .nav__cta { margin-top: 16px; min-height: 50px; }
}
@media (max-width: 760px) {
  .services__grid, .cases__grid, .facts, .form { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .brand__logo { height: 22px; }
  .hero__title { font-size: clamp(1.4rem, 6.4vw, 2.2rem); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .status__grid { grid-template-columns: minmax(0, 1fr); }
  .status__item, .status__item:nth-child(3) { border-left: 0; padding: 14px 0; }
  .status__item + .status__item { border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .result__actions .btn { width: 100%; }
  .term__body { padding: 16px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .fx__scan { display: none; }
}

@media print {
  .fx, .top, .diag, .form, .foot nav, .hero__actions, .term { display: none; }
  body { background: #fff; color: #000; }
}
