/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --bg:       #08090b;
  --surface:  #0e1013;
  --lift:     #141619;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #e2dfd8;
  --muted:    rgba(226,223,216,0.45);
  --dim:      rgba(226,223,216,0.2);
  --teal:     #00c9a7;
  --teal-d:   #00a388;
  --amber:    #f0a500;
  --red:      #e05555;
  --green:    #22c55e;
  --mono:     'IBM Plex Mono', monospace;
  --display:  'Syne', sans-serif;
  --serif:    'Fraunces', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   STAGE TRACKER (fixed top bar)
═══════════════════════════════════════ */
#tracker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 48px;
  background: rgba(8,9,11,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 5%;
  gap: 0;
  transition: opacity .3s;
}
#tracker.hidden { opacity: 0; pointer-events: none; }
.tr-logo {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--teal); letter-spacing: 1px; margin-right: 40px;
  white-space: nowrap;
}
.tr-stages { display: flex; align-items: center; gap: 0; flex: 1; }
.tr-stage {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim); padding: 0 16px; height: 48px;
  border-right: 1px solid var(--border);
  transition: color .3s;
  white-space: nowrap;
}
.tr-stage:first-child { border-left: 1px solid var(--border); }
.tr-stage.active { color: var(--teal); }
.tr-stage.done   { color: rgba(0,201,167,0.4); }
.tr-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.tr-stage.active .tr-dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: dotpulse 1.5s infinite; }
@keyframes dotpulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.tr-cta {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bg); background: var(--teal);
  padding: 7px 18px; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.tr-cta:hover { background: var(--teal-d); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5% 60px;
  position: relative; overflow: hidden;
}
.hero-scan-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scandown 3s ease-in-out forwards;
  opacity: 0;
}
@keyframes scandown { 0%{top:0;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{top:100%;opacity:0} }

.hero-bg-id {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: clamp(120px, 18vw, 220px);
  font-weight: 500; color: rgba(0,201,167,0.04);
  letter-spacing: -4px; user-select: none; pointer-events: none;
  white-space: nowrap;
}
.hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-pre {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--teal); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 32px; display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeup .6s .2s forwards;
}
.hero-pre::before { content: ''; width: 32px; height: 1px; background: var(--teal); }

.hero-id {
  font-family: var(--mono); font-size: clamp(48px, 9vw, 120px);
  font-weight: 500; color: var(--text); letter-spacing: -2px;
  line-height: 1; margin-bottom: 20px;
  opacity: 0; animation: fadeup .6s .4s forwards;
}
.hero-id .cursor {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--teal); margin-left: 6px;
  animation: blink .9s steps(1) infinite; vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 32px);
  font-weight: 300; font-style: italic;
  color: var(--muted); margin-bottom: 16px; line-height: 1.3;
  opacity: 0; animation: fadeup .6s .6s forwards;
}
.hero-tagline strong { color: var(--text); font-style: normal; font-weight: 400; }

.hero-sub {
  font-family: var(--mono); font-size: 13px; color: var(--dim);
  margin-bottom: 56px; letter-spacing: .5px;
  opacity: 0; animation: fadeup .6s .8s forwards;
}

.hero-scroll-hint {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; animation: fadeup .6s 1.2s forwards;
}
.scroll-arrow { animation: bounceY 1.5s ease-in-out infinite; }
@keyframes bounceY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

.hero-stats {
  display: flex; gap: 48px; margin-top: 80px; padding-top: 40px;
  border-top: 1px solid var(--border);
  opacity: 0; animation: fadeup .6s 1s forwards;
  flex-wrap: wrap;
}
.h-stat {}
.h-stat-num {
  font-family: var(--mono); font-size: 32px; font-weight: 500;
  color: var(--text); letter-spacing: -1px;
}
.h-stat-num span { color: var(--teal); }
.h-stat-label { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

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

/* ═══════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════ */
.stage-section {
  padding: 120px 5%;
  position: relative;
  border-top: 1px solid var(--border);
}
.stage-wrap { max-width: 1200px; margin: 0 auto; }

.stage-header {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; margin-bottom: 72px; align-items: start;
}
.stage-n {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: 3px; text-transform: uppercase; padding-top: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.stage-n-num {
  font-size: 64px; font-weight: 500; line-height: 1;
  color: rgba(0,201,167,0.12); letter-spacing: -2px;
  font-family: var(--mono);
}
.stage-title {
  font-family: var(--display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -1px;
}
.stage-title em { font-style: italic; font-family: var(--serif); font-weight: 300; color: var(--teal); }
.stage-copy {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  color: var(--muted); line-height: 1.7; max-width: 560px;
  margin-bottom: 48px; font-style: italic;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

.section-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--teal); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--teal); }

/* ═══════════════════════════════════════
   TERMINAL / UI MOCKUP SHARED
═══════════════════════════════════════ */
.terminal {
  background: var(--surface); border: 1px solid var(--border2);
  font-family: var(--mono); font-size: 13px;
  overflow: hidden;
}
.terminal-bar {
  background: var(--lift); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot:nth-child(1){background:#ff5f57}.t-dot:nth-child(2){background:#ffbd2e}.t-dot:nth-child(3){background:#28ca41}
.t-title { font-size: 11px; color: var(--dim); margin-left: 8px; letter-spacing: 1px; }
.terminal-body { padding: 20px 24px; }
.t-line { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.t-line:last-child { border-bottom: none; }
.t-key { color: var(--dim); min-width: 140px; flex-shrink: 0; font-size: 11px; letter-spacing: .5px; }
.t-val { color: var(--text); font-size: 12px; }
.t-val.ok  { color: var(--green); }
.t-val.warn{ color: var(--amber); }
.t-val.act { color: var(--teal); }
.t-val.id  { color: var(--teal); letter-spacing: 1px; font-weight: 500; }

/* ═══════════════════════════════════════
   STAGE 1 — RECEPCIÓN
═══════════════════════════════════════ */
.recepcion-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.recepcion-details { display: flex; flex-direction: column; gap: 16px; }
.rd-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px; border: 1px solid var(--border);
  transition: border-color .2s;
}
.rd-item:hover { border-color: var(--teal); }
.rd-num { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: 1px; flex-shrink: 0; padding-top: 2px; }
.rd-text { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ═══════════════════════════════════════
   STAGE 2 — MACROSCOPÍA
═══════════════════════════════════════ */
.macro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.macro-cassettes { display: flex; flex-direction: column; gap: 12px; }
.cassette-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px;
}
.c-id   { color: var(--teal); letter-spacing: 1px; min-width: 80px; }
.c-name { color: var(--muted); flex: 1; }
.c-tag  {
  font-size: 10px; padding: 3px 10px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid; font-weight: 500;
}
.tag-qr   { border-color: var(--teal);  color: var(--teal); }
.tag-2d   { border-color: var(--amber); color: var(--amber); }
.tag-dm   { border-color: var(--dim);   color: var(--dim); }
.portas-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.porta {
  width: 48px; height: 18px; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 8px; color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px; transition: all .2s;
}
.porta.active { border-color: var(--teal); color: var(--teal); background: rgba(0,201,167,0.06); }

/* ═══════════════════════════════════════
   STAGE 3 — PROCESO HISTOLÓGICO
═══════════════════════════════════════ */
.histo-timeline {
  display: flex; gap: 0; margin-bottom: 48px;
  border: 1px solid var(--border); overflow: hidden;
}
.ht-step {
  flex: 1; padding: 24px 20px; border-right: 1px solid var(--border);
  position: relative; transition: background .3s;
}
.ht-step:last-child { border-right: none; }
.ht-step.done    { background: rgba(34,197,94,0.05); }
.ht-step.active  { background: rgba(240,165,0,0.07); }
.ht-step.pending { background: transparent; }
.ht-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 12px;
}
.ht-name { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ht-step.done   .ht-name { color: var(--green); }
.ht-step.active .ht-name { color: var(--amber); }
.ht-step.pending .ht-name { color: var(--dim); }
.ht-time { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.ht-step.done   .ht-time { color: rgba(34,197,94,0.6); }
.ht-step.active .ht-time { color: var(--amber); }
.ht-status {
  position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
}
.ht-step.done   .ht-status { background: var(--green); }
.ht-step.active .ht-status { background: var(--amber); animation: dotpulse 1s infinite; }
.ht-step.pending .ht-status { background: var(--border2); }

.histo-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.hd-card {
  background: var(--surface); border: 1px solid var(--border); padding: 24px;
}
.hd-card-label { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }

/* ═══════════════════════════════════════
   STAGE 4 — DIAGNÓSTICO + IA
═══════════════════════════════════════ */
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.diag-card {
  background: var(--surface); border: 1px solid var(--border); padding: 36px;
  position: relative; overflow: hidden;
}
.diag-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.dc-teal  { background: var(--teal); }
.dc-amber { background: var(--amber); }
.diag-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 20px; display: inline-block;
}
.db-teal  { background: rgba(0,201,167,0.12); color: var(--teal); }
.db-amber { background: rgba(240,165,0,0.12); color: var(--amber); }
.diag-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.diag-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.diag-list { display: flex; flex-direction: column; gap: 8px; }
.diag-list-item {
  font-size: 13px; color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.4;
}
.diag-list-item::before { content: '→'; color: var(--teal); flex-shrink: 0; font-family: var(--mono); }
/* PathGPT */
.pgpt {
  background: #050507; border: 1px solid rgba(0,201,167,0.15);
  margin-top: 20px; padding: 16px; font-family: var(--mono);
}
.pgpt-line { font-size: 12px; line-height: 1.9; }
.pgpt-p { color: var(--teal); }
.pgpt-q { color: rgba(226,223,216,0.6); }
.pgpt-a { color: var(--text); }
.pgpt-hi { color: var(--teal); font-weight: 500; }
.pgpt-cur { display: inline-block; width: 7px; height: 13px; background: var(--teal); animation: blink .9s steps(1) infinite; vertical-align: text-bottom; margin-left: 2px; }

/* ═══════════════════════════════════════
   STAGE 5 — INFORME
═══════════════════════════════════════ */
.report-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.report-mock {
  background: #fff; color: #111; padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  position: relative;
}
.rm-header { border-bottom: 2px solid #111; padding-bottom: 16px; margin-bottom: 20px; }
.rm-title  { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.rm-sub    { font-size: 11px; color: #666; margin-top: 4px; }
.rm-field  { display: flex; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.rm-label  { color: #666; min-width: 120px; }
.rm-value  { color: #111; font-weight: 500; }
.rm-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e0e0e0; }
.rm-sec-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #333; margin-bottom: 10px; }
.rm-text { font-size: 11px; color: #333; line-height: 1.7; }
.rm-cieo { background: #f5f5f5; padding: 8px 12px; margin-top: 12px; font-size: 11px; font-family: var(--mono); color: #333; }
.rm-signature {
  margin-top: 24px; padding-top: 16px; border-top: 2px solid #111;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.rm-sig-line { border-top: 1px solid #333; padding-top: 4px; font-size: 10px; color: #666; min-width: 160px; text-align: center; }
.rm-stamp {
  position: absolute; bottom: 40px; right: 40px;
  width: 70px; height: 70px; border: 2px solid rgba(0,201,167,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: rgba(0,201,167,0.6); text-align: center; line-height: 1.3;
  font-family: var(--mono); letter-spacing: .5px; text-transform: uppercase; font-weight: 500;
  transform: rotate(-15deg);
}
.report-facts { display: flex; flex-direction: column; gap: 24px; }
.rf-item {
  padding: 24px 28px; border: 1px solid var(--border);
  display: flex; gap: 24px; align-items: flex-start;
  transition: border-color .2s;
}
.rf-item:hover { border-color: var(--teal); }
.rf-icon { font-family: var(--mono); font-size: 22px; color: var(--teal); font-weight: 500; flex-shrink: 0; }
.rf-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.rf-body p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ═══════════════════════════════════════
   IMPACTO
═══════════════════════════════════════ */
.impact-section {
  padding: 120px 5%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.impact-wrap { max-width: 1200px; margin: 0 auto; }
.impact-header { margin-bottom: 72px; }
.impact-header h2 {
  font-family: var(--display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; letter-spacing: -1px; margin-bottom: 16px;
}
.impact-header p { font-size: 17px; color: var(--muted); font-family: var(--serif); font-style: italic; }
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); overflow: hidden;
}
.impact-cell {
  padding: 40px 32px; border-right: 1px solid var(--border);
  position: relative;
}
.impact-cell:last-child { border-right: none; }
.ic-arrow { font-family: var(--mono); font-size: 22px; margin-bottom: 8px; }
.ic-arrow.down { color: var(--green); }
.ic-arrow.up   { color: var(--teal); }
.ic-num {
  font-family: var(--mono); font-size: clamp(36px, 4vw, 52px);
  font-weight: 500; letter-spacing: -1px; line-height: 1;
  margin-bottom: 10px;
}
.ic-num.down { color: var(--green); }
.ic-num.up   { color: var(--teal); }
.ic-label { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ic-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ═══════════════════════════════════════
   CLIENTES
═══════════════════════════════════════ */
.clients-section { padding: 120px 5%; border-top: 1px solid var(--border); }
.clients-wrap { max-width: 1200px; margin: 0 auto; }
.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.client-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 36px; position: relative; overflow: hidden;
  transition: border-color .2s;
}
.client-card:hover { border-color: var(--teal); }
.client-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--teal);
}
.client-loc {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal);
  background: rgba(0,201,167,0.1); padding: 4px 10px;
  display: inline-block; margin-bottom: 20px;
}
.client-name {
  font-family: var(--display); font-size: 20px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.2;
}
.client-director {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--muted); margin-bottom: 12px; line-height: 1.4;
}
.client-spec {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  letter-spacing: .5px; line-height: 1.6; text-transform: uppercase;
}
.client-hl7 {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; color: var(--teal);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.client-hl7::before { content: '✓'; }

/* ═══════════════════════════════════════
   CAPACIDADES
═══════════════════════════════════════ */
.caps-section { padding: 120px 5%; border-top: 1px solid var(--border); }
.caps-wrap { max-width: 1200px; margin: 0 auto; }
.caps-header { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.caps-header h2 { font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -1px; }
.caps-header p  { font-size: 16px; color: var(--muted); line-height: 1.7; font-family: var(--serif); font-style: italic; }
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.cap-item {
  padding: 24px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--muted); line-height: 1.5;
  display: flex; gap: 14px; align-items: flex-start;
  transition: background .2s, color .2s;
}
.cap-item:hover { background: rgba(0,201,167,0.04); color: var(--text); }
.cap-item::before { content: '—'; color: var(--teal); flex-shrink: 0; font-family: var(--mono); font-size: 12px; padding-top: 1px; }

/* ═══════════════════════════════════════
   DEMO FORM
═══════════════════════════════════════ */
.demo-section { padding: 120px 5%; background: var(--surface); border-top: 1px solid var(--border); }
.demo-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.demo-left h2 { font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -1px; margin-bottom: 20px; }
.demo-left h2 em { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--teal); }
.demo-left p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; font-family: var(--serif); font-style: italic; }
.demo-checks { display: flex; flex-direction: column; gap: 0; }
.demo-check {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--muted); line-height: 1.5;
}
.demo-check::before { content: '✓'; color: var(--teal); flex-shrink: 0; font-family: var(--mono); font-weight: 500; }
.demo-form { background: var(--lift); border: 1px solid var(--border2); padding: 40px; }
.df-title { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.df-sub { font-size: 13px; color: var(--dim); margin-bottom: 32px; font-family: var(--mono); letter-spacing: .5px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.fg input, .fg select, .fg textarea {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 14px;
  font-family: var(--display); font-size: 14px; outline: none;
  transition: border-color .2s; width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--dim); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); }
.fg select option { background: var(--lift); }
.fg textarea { resize: none; height: 80px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.df-submit {
  width: 100%; padding: 14px; background: var(--teal); color: var(--bg);
  border: none; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background .2s; margin-top: 8px;
}
.df-submit:hover { background: var(--teal-d); }
.df-privacy { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 12px; text-align: center; letter-spacing: .5px; }
.form-success { display: none; text-align: center; padding: 48px 20px; }
.fs-icon { font-family: var(--mono); font-size: 48px; color: var(--teal); margin-bottom: 16px; }
.form-success h4 { font-size: 22px; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: var(--muted); }

/* ═══════════════════════════════════════
   NAV COMERCIAL
═══════════════════════════════════════ */
#nav-commercial {
  position: fixed; top: 0; right: calc(5% + 180px); z-index: 300;
  height: 48px; display: flex; align-items: center; gap: 10px;
}
.nav-cl {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.nav-cl:hover { color: var(--text); }
.nav-sep { font-family: var(--mono); font-size: 11px; color: var(--dim); user-select: none; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: 48px 5% 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-wrap { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand h4 { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--teal); margin-bottom: 8px; letter-spacing: 1px; }
.footer-brand p  { font-size: 13px; color: var(--dim); max-width: 280px; line-height: 1.6; }
.footer-info p   { font-size: 13px; color: var(--dim); line-height: 1.9; }
.footer-info a   { color: var(--teal); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .5px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .recepcion-grid, .macro-grid, .diag-grid, .report-grid, .demo-wrap, .caps-header { grid-template-columns: 1fr; }
  .histo-timeline { flex-direction: column; }
  .ht-step { border-right: none; border-bottom: 1px solid var(--border); }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .tr-stages { display: none; }
  .stage-header { grid-template-columns: 1fr; }
  .stage-n-num { font-size: 40px; }
  .histo-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .impact-grid, .caps-grid { grid-template-columns: 1fr; }
  .fg-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  #nav-commercial { display: none; }
}
/* ═══════════════════════════════════════
   VISOR DE INFORMES
═══════════════════════════════════════ */
.reports-section { padding: 120px 5%; border-top: 1px solid var(--border); }
.reports-wrap { max-width: 1200px; margin: 0 auto; }
.reports-thumbs {
  display: flex; gap: 16px; margin-top: 56px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--teal) var(--border);
}
.r-thumb {
  flex-shrink: 0; width: 160px; cursor: pointer;
  border: 2px solid var(--border); transition: all .25s;
  position: relative; overflow: hidden;
}
.r-thumb:hover, .r-thumb.active { border-color: var(--teal); }
.r-thumb img { width: 100%; display: block; filter: grayscale(20%); transition: filter .25s; }
.r-thumb:hover img, .r-thumb.active img { filter: none; }
.r-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,9,11,0.9));
  padding: 20px 8px 8px;
  font-family: var(--mono); font-size: 9px; color: var(--dim);
  letter-spacing: 1px; text-transform: uppercase;
}
.r-thumb.active .r-thumb-label { color: var(--teal); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative; max-width: 860px; width: 90%;
  max-height: 90vh; display: flex; flex-direction: column;
}
.lightbox-img {
  width: 100%; max-height: calc(90vh - 80px);
  object-fit: contain; display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.lb-label { font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: 2px; text-transform: uppercase; }
.lb-nav { display: flex; gap: 8px; align-items: center; }
.lb-btn {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all .2s;
  font-family: var(--mono);
}
.lb-btn:hover { border-color: var(--teal); color: var(--teal); }
.lb-close {
  background: none; border: 1px solid var(--border2); color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; cursor: pointer; transition: all .2s;
}
.lb-close:hover { border-color: var(--red); color: var(--red); }
.lb-counter { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ═══════════════════════════════════════
   DASHBOARDS SECTION
═══════════════════════════════════════ */
.dashboards-section { padding: 120px 5%; background: var(--surface); border-top: 1px solid var(--border); }
.dashboards-wrap { max-width: 1200px; margin: 0 auto; }
.dashboard-tabs { display: flex; gap: 0; margin-top: 48px; border-bottom: 1px solid var(--border); }
.db-tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 28px; cursor: pointer; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s;
}
.db-tab:hover { color: var(--text); }
.db-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.dashboard-frames { margin-top: 32px; position: relative; }
.db-frame {
  display: none;
  border: 1px solid var(--border2);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.db-frame.active { display: block; }
.db-frame img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.db-frame:hover img { transform: scale(1.02); }
.db-frame-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,9,11,0.85));
  padding: 32px 20px 14px;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.db-zoom-hint { color: var(--teal); font-size: 10px; }

.hero-migration {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 24px; padding: 16px 20px;
  border-left: 2px solid rgba(0,201,167,0.3);
  background: rgba(0,201,167,0.04);
}
.hm-label {
  font-family: var(--mono); font-size: 13px;
  color: rgba(226,223,216,0.7); letter-spacing: .3px;
}
.hm-sub {
  font-family: var(--mono); font-size: 11px;
  color: var(--teal); letter-spacing: .5px;
}

