/* ==========================================================================
   SwarmTrade — swarmtrade.trade
   Sistema: Agentic (azul #60a5fa sobre azul muy oscuro).
   Sin dependencias externas: ni CDN, ni fuentes de terceros. Las tipografías
   se sirven desde assets/fonts/.
   ========================================================================== */

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #0a1020;
  --surface: #131b2f;
  --surface-2: #18223a;
  --fg: #f8fafc;
  --fg-2: #b9c3d6;
  --muted: #8792a8;
  --border: rgba(248, 250, 252, 0.10);
  --border-strong: rgba(248, 250, 252, 0.20);
  --border-soft: rgba(248, 250, 252, 0.06);
  --accent: #60a5fa;
  --accent-hover: #8fc0ff;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --ok: #22c55e;

  /* tipografía */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* medidas */
  --container: 1160px;
  --gutter: 32px;
  --section-y: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* malla hexagonal de fondo (misma técnica que el sitio hermano) */
  --hex-mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2360a5fa' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45);
  border-radius: 4px;
}

/* ---------- utilidades ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06101f;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- cabecera ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: var(--accent);
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }
.brand svg { width: 28px; height: 28px; grid-row: 1 / 3; flex: none; }

.brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand .brand__name {
  grid-column: 2;
  grid-row: 1;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -3px;
}

.brand .brand__sub {
  grid-column: 2;
  grid-row: 2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav__link {
  font-size: 14px;
  color: var(--fg-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.nav__link:hover {
  color: var(--fg);
  border-bottom-color: var(--border-strong);
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease),
              box-shadow 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, #7ab5fb, #4f93ee);
  color: #06101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 12px 26px -14px rgba(96, 165, 250, 0.85);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #93c2ff, #5da0f5);
  color: #06101f;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(248, 250, 252, 0.03);
  border-color: var(--border);
  color: var(--fg);
}
.btn--ghost:hover {
  background: rgba(248, 250, 252, 0.07);
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- héroe ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: url("assets/swarm-hero.jpg") 72% 34% / cover no-repeat;
  opacity: 0.48;
  filter: saturate(0.68) brightness(0.9) contrast(1.06);
  -webkit-mask-image: radial-gradient(112% 92% at 78% 45%, #000 0%, rgba(0, 0, 0, 0.55) 46%, transparent 80%);
  mask-image: radial-gradient(112% 92% at 78% 45%, #000 0%, rgba(0, 0, 0, 0.55) 46%, transparent 80%);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image: var(--hex-mesh);
  background-size: 56px 100px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 78%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 78%);
  pointer-events: none;
}

.hero__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 4%, rgba(10, 16, 32, 0.94) 38%, rgba(10, 16, 32, 0.42) 72%, rgba(10, 16, 32, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.15) 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 84px;
}

.hero__copy { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
  flex: none;
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 50px);
  max-width: 22ch;
  margin-bottom: 22px;
}

.lead {
  max-width: 55ch;
  font-size: 17px;
  color: var(--fg-2);
  text-wrap: pretty;
}
.lead strong { color: var(--fg); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__actions--center { justify-content: center; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 620px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero__fact .mono { display: block; margin-bottom: 4px; }
.hero__fact .v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.hero__fact .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex: none;
}

/* ---------- panel del enjambre (volumen en perspectiva) ---------- */

.hud {
  --tilt-y: -8deg;
  --tilt-x: 3deg;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 462px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 34, 58, 0.9), rgba(10, 16, 32, 0.92));
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(96, 165, 250, 0.10),
    0 44px 90px -44px rgba(2, 6, 16, 0.95);
  transform: perspective(1200px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 240ms var(--ease), box-shadow 320ms var(--ease);
}

/* segundo plano detrás: da la sensación de pila */
.hud::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.07), transparent 70%);
  transform: translateZ(-48px);
}

.hud:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(96, 165, 250, 0.22),
    0 54px 100px -44px rgba(2, 6, 16, 0.95);
}

.hud__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.03);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hud__bar .mono { font-size: 11px; letter-spacing: 0.12em; color: var(--fg-2); }
.hud__tick { margin-left: auto; color: var(--accent); }

.hud__leds { display: flex; gap: 5px; }
.hud__leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.75);
}
.hud__leds i:nth-child(2) { background: rgba(248, 250, 252, 0.22); }
.hud__leds i:nth-child(3) { background: rgba(248, 250, 252, 0.12); }

.hud__panal {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px 12px 8px;
  overflow: hidden;
}

.hud__panal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.panal {
  position: relative;
  display: block;
  width: auto;
  height: clamp(220px, 25vw, 300px);
  max-width: 100%;
  transform: perspective(900px) rotateX(14deg) translateZ(18px);
  transform-origin: 50% 100%;
}

/* canvas 3D: cubre la misma caja que el SVG de respaldo */
.enjambre3d {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms var(--ease);
  pointer-events: none;
}

.is-3d .enjambre3d { opacity: 1; }

/* el SVG sigue en el árbol de accesibilidad, pero deja de verse en cuanto
   el <head> confirma que hay WebGL (evita el parpadeo panal→3D) */
.js-3d .panal {
  visibility: hidden;
}

.panal__cells use {
  fill: rgba(96, 165, 250, 0.05);
  stroke: rgba(96, 165, 250, 0.26);
  stroke-width: 1;
  animation: cellPulse 4.4s linear infinite;
}

@keyframes cellPulse {
  0%, 100% { fill: rgba(96, 165, 250, 0.05); stroke: rgba(96, 165, 250, 0.24); }
  4% { fill: rgba(96, 165, 250, 0.46); stroke: rgba(96, 165, 250, 0.92); }
  14% { fill: rgba(96, 165, 250, 0.06); stroke: rgba(96, 165, 250, 0.24); }
}

/* la señal sale del centro y se abre en anillo */
.panal__cells use:nth-child(1) { animation-delay: 0s; }
.panal__cells use:nth-child(2) { animation-delay: 0.25s; }
.panal__cells use:nth-child(3) { animation-delay: 0.5s; }
.panal__cells use:nth-child(4) { animation-delay: 0.75s; }
.panal__cells use:nth-child(5) { animation-delay: 1s; }
.panal__cells use:nth-child(6) { animation-delay: 1.25s; }
.panal__cells use:nth-child(7) { animation-delay: 1.5s; }
.panal__cells use:nth-child(8) { animation-delay: 1.78s; }
.panal__cells use:nth-child(9) { animation-delay: 1.94s; }
.panal__cells use:nth-child(10) { animation-delay: 2.1s; }
.panal__cells use:nth-child(11) { animation-delay: 2.26s; }
.panal__cells use:nth-child(12) { animation-delay: 2.42s; }
.panal__cells use:nth-child(13) { animation-delay: 2.58s; }
.panal__cells use:nth-child(14) { animation-delay: 2.74s; }
.panal__cells use:nth-child(15) { animation-delay: 2.9s; }
.panal__cells use:nth-child(16) { animation-delay: 3.06s; }
.panal__cells use:nth-child(17) { animation-delay: 3.22s; }
.panal__cells use:nth-child(18) { animation-delay: 3.38s; }
.panal__cells use:nth-child(19) { animation-delay: 3.54s; }

.hud__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hud__stats div {
  background: rgba(10, 16, 32, 0.62);
  padding: 12px 14px;
}
.hud__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud__stats dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  color: var(--fg);
}

.hud__note {
  margin: 0;
  padding: 12px 14px 15px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* entrada del héroe */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow,
  .hero h1,
  .hero .lead,
  .hero__actions,
  .hero__facts,
  .hud {
    animation: rise 640ms var(--ease) both;
  }
  .hero h1 { animation-delay: 110ms; }
  .hero .lead { animation-delay: 190ms; }
  .hero__actions { animation-delay: 270ms; }
  .hero__facts { animation-delay: 350ms; }
  .hud { animation-delay: 220ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* la animación no debe pisar la perspectiva del panel */
@media (prefers-reduced-motion: no-preference) and (min-width: 921px) {
  .hud { animation-name: riseHud; }
  @keyframes riseHud {
    from {
      opacity: 0;
      transform: perspective(1200px) rotateY(calc(var(--tilt-y) + 4deg)) rotateX(var(--tilt-x)) translateY(18px);
    }
    to {
      opacity: 1;
      transform: perspective(1200px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x));
    }
  }
}

/* ---------- secciones ---------- */

.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.section--panel {
  background: linear-gradient(180deg, rgba(19, 27, 47, 0.72), rgba(10, 16, 32, 0.25));
}

.section--cta {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(96, 165, 250, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg), #070c18);
  border-bottom: 0;
  text-align: center;
}

.section__head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section__head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 14px;
}
.section__head .lead { margin-top: 0; font-size: 17px; }

.split .section__head { margin-bottom: 0; }

/* ---------- pasos ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
}

.step {
  position: relative;
  padding-top: 22px;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(96, 165, 250, 0));
}

.step__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  margin: 10px 0 10px;
  font-size: 20px;
}
.step p {
  color: var(--fg-2);
  font-size: 15px;
  max-width: 40ch;
}
.step p strong { color: var(--fg); font-weight: 600; }

/* ---------- dos columnas ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.split--tight { align-items: center; gap: 56px; }
.split--reverse { align-items: center; }
.split--reverse .split__copy { order: 2; }
.split--reverse > :not(.split__copy) { order: 1; }

.split__copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 20ch;
  margin-bottom: 18px;
}
.split__copy > p {
  color: var(--fg-2);
  font-size: 16px;
  text-wrap: pretty;
}
.split__copy > p strong { color: var(--fg); font-weight: 600; }

.checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
  color: var(--fg-2);
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  text-wrap: pretty;
}
.checklist li::before {
  content: "—";
  color: var(--muted);
  font-family: var(--font-mono);
  flex: none;
}
.checklist li strong { color: var(--fg); font-weight: 600; }

/* ---------- esquema de exposición ---------- */

.schematic {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 34, 58, 0.6), rgba(10, 16, 32, 0.6));
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9);
}

.schematic__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.schematic__hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.schematic__hub .mono {
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 12px;
}
.schematic__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.schematic__accounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.account {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.025);
}

.account__name {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.pos {
  display: block;
  padding: 5px 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
}

.schematic__foot {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- recorrido de una orden ---------- */

.trace {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.trace__label {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.trace__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trace__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  color: var(--fg-2);
  text-wrap: pretty;
}
.trace__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

/* ---------- consola: genoma, comité, abejas ---------- */

.console {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 34, 58, 0.72), rgba(10, 16, 32, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.panel:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.panel__label {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.panel__value {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.panel__value span {
  margin-left: 4px;
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--muted);
}

.panel__desc {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--fg-2);
  text-wrap: pretty;
}

.tick {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(10, 16, 32, 0.5);
  overflow: hidden;
}
.tick li {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-2);
}
.tick li:last-child { border-right: 0; }
.tick .mono {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ---------- especificaciones ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec {
  padding: 24px;
  background: rgba(10, 16, 32, 0.55);
  transition: background 160ms var(--ease);
}
.spec:hover { background: rgba(19, 27, 47, 0.85); }

.spec h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.spec p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- lista de hechos ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.facts li {
  display: grid;
  grid-template-columns: minmax(120px, 36%) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.facts li span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.facts li span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  text-align: right;
}

/* ---------- preguntas ---------- */

.faq { border-top: 1px solid var(--border); }

.faq__item { border-bottom: 1px solid var(--border); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 150ms var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 180ms var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }

.faq__item p {
  padding: 0 0 22px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--fg-2);
  text-wrap: pretty;
}
.faq__item p strong { color: var(--fg); font-weight: 600; }

/* ---------- cierre ---------- */

.section--cta .lead { margin: 18px auto 0; }

.notice {
  max-width: 68ch;
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
  text-wrap: pretty;
}
.notice strong { color: var(--fg); }

/* ---------- imágenes de apoyo ---------- */

.media { margin: 0; }

.media img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  filter: saturate(0.85);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
}

.media figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- pie ---------- */

.foot {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #070c18;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.foot__brand { display: grid; gap: 2px; }
.foot__brand .brand__name { font-size: 16px; }
.foot__sub { font-size: 13px; color: var(--muted); }
.foot__sub a { color: var(--muted); }
.foot__sub a:hover { color: var(--accent); }

.foot__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__nav a {
  font-size: 13px;
  color: var(--muted);
}
.foot__nav a:hover { color: var(--accent); }

/* ---------- adaptación ---------- */

@media (max-width: 1040px) {
  .nav__link--hide { display: none; }
}

@media (max-width: 920px) {
  :root { --section-y: 72px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .hero h1 { max-width: 18ch; }

  .hud {
    justify-self: stretch;
    max-width: 100%;
    transform: none;
  }
  .hud::before { display: none; }

  .steps { grid-template-columns: 1fr; gap: 24px; }
  .split,
  .split--reverse { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__copy { order: 0; }
  .split--reverse > :not(.split__copy) { order: 0; }
  .split__copy h2,
  .section__head h2 { max-width: none; }

  .console { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 60px; }

  .nav__link { display: none; }
  .nav__inner { height: 60px; gap: 12px; }

  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .hero__facts { gap: 18px 28px; }

  h2 { font-size: 26px; }

  .specs { grid-template-columns: 1fr; }
  .schematic__accounts { grid-template-columns: 1fr; }
  .account { grid-template-columns: auto 1fr 1fr; align-items: center; }
  .account__name { margin-bottom: 0; }

  .tick li { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .tick li:last-child { border-bottom: 0; }

  .facts li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }
  .facts li span:last-child { text-align: left; }

  .foot__inner { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .panal__cells use { fill: rgba(96, 165, 250, 0.10); }
}
