/*
  Landing de ECG. La paleta sale de las capturas del motor: fondo negro de verdad
  (el color vive en el carácter, no en un relleno), verde de fósforo, y líneas finas
  y frías como el portal del cliente.
*/

:root {
  --bg: #000;
  --ink: #c9cec9;
  --dim: #6f7670;
  --line: #1e231f;
  --green: #00ff88;
  --green-dim: #0a7f48;
  --amber: #ffb648;
  --red: #ff5544;
  --mono: "Cascadia Mono", "JetBrains Mono", "DejaVu Sans Mono", Consolas, ui-monospace, monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Una trama de puntos muy tenue: la grilla de celdas del motor, insinuada. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 9px 16px;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
code { color: var(--amber); }
em { color: var(--green); font-style: normal; }

/* ---------- barra ---------- */

.bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.mark { color: var(--green); font-weight: 700; }
.bar-sep, .bar-sub { color: var(--dim); }
.bar nav { margin-left: auto; display: flex; gap: 20px; }
.bar nav a { color: var(--dim); }
.bar nav a:hover { color: var(--green); text-decoration: none; }

/* ---------- hero ---------- */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }

.wordmark {
  margin: 0 0 32px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.28);
  overflow-x: auto;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede { max-width: 62ch; margin: 0 0 36px; color: #a9b0a9; }
.lede strong { color: var(--ink); }

.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--green-dim);
  color: var(--green);
  background: rgba(0, 255, 136, 0.04);
  letter-spacing: 0.04em;
  transition: background 120ms linear, border-color 120ms linear, box-shadow 120ms linear;
}
.btn:hover {
  background: rgba(0, 255, 136, 0.11);
  border-color: var(--green);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.16);
  text-decoration: none;
}
.btn[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--dim);
  background: none;
  box-shadow: none;
  cursor: not-allowed;
}

.meta { margin: 0; font-size: 12.5px; color: var(--dim); }
.meta b { color: var(--ink); font-weight: 500; }

.facts {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  font-size: 13.5px;
  color: var(--dim);
}
.facts li::before { content: "▸ "; color: var(--green-dim); }
.facts b { color: var(--ink); font-weight: 500; }

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

h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.section-lede { max-width: 66ch; margin: 0 0 40px; color: #a9b0a9; }

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

/* ---------- capturas ---------- */

.shots figure {
  margin: 0 0 40px;
  border: 1px solid var(--line);
  background: #000;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.shots figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--dim);
}
.shots figcaption b { color: var(--green); font-weight: 600; }

@media (min-width: 860px) {
  .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .shots h2, .shots .section-lede { grid-column: 1 / -1; }
  .shots figure { margin: 0; }
}

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

.cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols h2 { grid-column: 1 / -1; margin-bottom: 20px; }
.col h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-left: 12px;
  border-left: 2px solid var(--green-dim);
}
.col p { margin: 0; color: var(--dim); font-size: 14px; }

/* ---------- terminal ---------- */

.term {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #050705;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
  overflow-x: auto;
}
.term .p { color: var(--green); }
.term .s { color: var(--amber); }
.term .c { color: var(--green-dim); }

.note { max-width: 66ch; color: var(--dim); font-size: 13.5px; margin: 0; }

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

.closing { text-align: center; border-bottom: none; }
.closing .big { font-size: clamp(19px, 2.6vw, 25px); margin: 0 0 26px; color: var(--ink); }
.closing .meta { margin-top: 16px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 48px;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
}
footer p { margin: 2px 0; }
footer .dim { color: #454b46; }

@media (max-width: 560px) {
  .wordmark { font-size: 8px; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0; }
}
