/* ============================================================
   digiBoxERP WMS — Tema "Torre de Control"
   ============================================================ */
:root {
  --bg: #0a0f1a;
  --bg-2: #0e1626;
  --surface: #131c2e;
  --surface-2: #182339;
  --line: #1e2c44;
  --line-2: #2b3c5c;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --turq: #2dd4bf;
  --turq-soft: rgba(45, 212, 191, 0.12);
  --amber: #f59e0b;
  --red: #f87171;
  --text: #e8eef7;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(2, 6, 18, 0.55);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Utilidades ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mb-16 { margin-bottom: 64px; }

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turq);
  margin-bottom: 18px;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.body-text { color: var(--muted); font-size: 18px; }
.text-blue { color: var(--blue); }

.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); }

.reveal-item { opacity: 0; transform: translateY(28px); }
.reveal-item.revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--blue); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 15, 26, 0.94); }

.nav-container {
  width: min(1180px, 92%); margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark { height: 34px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.nav-logo-text em { font-style: normal; color: var(--blue); }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  text-decoration: none; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); text-decoration: none; }

.nav-cta {
  flex-shrink: 0;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 14.5px;
  padding: 10px 20px; border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #2f6fe0; transform: translateY(-1px); text-decoration: none; }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
  margin-left: auto;
}
.hamburger-line { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 18px 5%;
  display: none;
  flex-direction: column; gap: 4px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  color: var(--text); font-weight: 500; font-size: 17px;
  padding: 12px 10px; border-radius: 8px; text-decoration: none;
}
.mobile-nav-link:hover { background: var(--surface); text-decoration: none; }
.mobile-nav-cta {
  margin-top: 10px;
  background: var(--blue); color: #fff; text-align: center;
  font-weight: 600; padding: 13px; border-radius: 10px; text-decoration: none;
}
.mobile-nav-cta:hover { text-decoration: none; background: #2f6fe0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; border-radius: 12px;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2f6fe0; transform: translateY(-2px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(19, 28, 46, 0.5);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.btn-full { width: 100%; padding: 15px; font-size: 16px; border: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 82% 12%, rgba(59, 130, 246, 0.13), transparent 65%),
    radial-gradient(520px 380px at 8% 88%, rgba(45, 212, 191, 0.08), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero-subheadline { color: var(--muted); font-size: 18.5px; max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { color: var(--muted-2); font-size: 14px; }

.hero-anim { opacity: 0; transform: translateY(24px); }
.hero-anim.revealed { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

/* ---------- Almacén SVG ---------- */
.hero-visual { position: relative; }
.warehouse {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.warehouse-svg { width: 100%; height: auto; display: block; }

.wh-zone > rect:first-child {
  opacity: 0;
  animation: zoneIn .8s ease forwards;
  animation-delay: var(--d, 0s);
}
.wh-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  fill: var(--muted);
  opacity: 0;
  animation: fadeIn .6s ease forwards;
  animation-delay: calc(var(--d, 0s) + .25s);
}
.wh-box { fill: var(--surface-2); stroke: var(--line-2); }
.wh-barcode rect { fill: var(--turq); opacity: .85; }
.wh-racks rect { fill: var(--surface-2); stroke: var(--line-2); }
.wh-dot-static { fill: var(--blue); opacity: .9; }
.wh-dot-static.dim { fill: var(--line-2); }
.wh-arrowline { stroke: var(--turq); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.wh-check {
  stroke: var(--turq); stroke-width: 6; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: drawCheck 1.2s ease forwards;
  animation-delay: calc(var(--d, 0s) + .5s);
}
.wh-truck rect, .wh-truck path { fill: var(--surface-2); stroke: var(--line-2); }
.wh-truck circle { fill: var(--bg); stroke: var(--blue); stroke-width: 2; }
.wh-route {
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: .45;
}
.wh-package {
  fill: var(--turq);
  filter: drop-shadow(0 0 7px rgba(45, 212, 191, 0.9));
}

@keyframes zoneIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- Panel operativo del hero ---------- */
.hero-panel {
  position: absolute;
  right: -14px; bottom: -34px;
  width: min(330px, 84%);
  background: rgba(14, 22, 38, 0.96);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.hero-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .08em; color: var(--muted);
  margin-bottom: 12px;
}
.hero-panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 8px var(--turq); animation: pulseDot 2s infinite; }
.hero-panel-tag {
  margin-left: auto;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .4);
  padding: 3px 8px; border-radius: 999px;
}
.hero-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; }
.hp-value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--text); }
.hp-item.warn .hp-value { color: var(--amber); }
.hp-label { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 3px; }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Franja de valor ---------- */
.value-strip {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.value-phrase {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.value-items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px;
}
.value-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 15.5px; }

/* ---------- Antes / Después ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  height: 100%;
}
.compare-before { border-top: 3px solid var(--red); }
.compare-after { border-top: 3px solid var(--turq); background: linear-gradient(180deg, rgba(45,212,191,.06), var(--surface) 40%); }
.compare-title { margin-bottom: 20px; }
.compare-badge {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.badge-red { color: var(--red); border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); }
.badge-green { color: var(--turq); border: 1px solid rgba(45, 212, 191, .4); background: var(--turq-soft); }
.compare-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 15.5px;
}
.compare-before .compare-list li::before {
  content: '✕'; position: absolute; left: 0; top: 0;
  color: var(--red); font-size: 13px; font-weight: 700;
}
.compare-after .compare-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--turq); font-weight: 700;
}
.compare-arrow { display: flex; align-items: center; justify-content: center; }

/* ---------- Recorrido (7 etapas) ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  counter-reset: step;
}
.journey-step {
  display: flex; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.journey-step:hover { border-color: var(--blue); transform: translateY(-3px); }
.journey-step:last-child { grid-column: 1 / -1; }
.journey-num {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500;
  color: var(--blue);
  border: 1px solid var(--line-2);
  background: var(--blue-soft);
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.journey-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.journey-desc { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.journey-quote { color: var(--turq); font-size: 14.5px; font-style: italic; }

/* ---------- Capacidades ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cap-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color .25s ease;
}
.cap-block:hover { border-color: var(--line-2); }
.cap-wide { grid-column: 1 / -1; }
.cap-wide-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.cap-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  margin-bottom: 20px;
}
.cap-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  border: 1px solid var(--line-2);
  border-radius: 11px;
}
.cap-list li {
  position: relative; padding-left: 20px;
  margin-bottom: 10px;
  color: var(--muted); font-size: 15.5px;
}
.cap-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--blue);
}
.cap-figure { text-align: center; }
.cap-figure img {
  width: min(260px, 70%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.cap-figure figcaption { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }

/* ---------- Integración ---------- */
.section-dark {
  background:
    radial-gradient(720px 400px at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-diagram {
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 34px;
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-width: 128px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.flow-node-hl {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(59,130,246,.18), var(--surface));
  box-shadow: 0 0 24px rgba(59, 130, 246, .25);
}
.flow-node-label { font-weight: 700; font-size: 14.5px; font-family: var(--font-display); }
.flow-node-sub { font-size: 11.5px; color: var(--muted); }
.flow-connector {
  align-self: center;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--line-2), var(--blue));
  position: relative;
  flex-shrink: 0;
}
.flow-connector::after {
  content: ''; position: absolute; right: -1px; top: -3.5px;
  border-left: 8px solid var(--blue);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.flow-closing { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* ---------- Torre de control ---------- */
.section-tower {
  background:
    radial-gradient(800px 480px at 50% 110%, rgba(45, 212, 191, 0.07), transparent 70%),
    #070b13;
}
.tower {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tower-head {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tower-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tower-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  transition: all .2s ease;
}
.tower-tab:hover { color: var(--text); border-color: var(--line-2); }
.tower-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .4);
  padding: 4px 10px; border-radius: 999px;
}
.tower-panel { padding: 26px 22px 30px; }
.tower-panel[hidden] { display: none; }
.tower-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}
.kpi-value {
  display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 27px;
  color: var(--turq);
}
.kpi-label { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.tower-rows { display: flex; flex-direction: column; gap: 8px; }
.tower-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
}
.tower-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--turq); box-shadow: 0 0 7px rgba(45,212,191,.7); }
.dot-blue { background: var(--blue); box-shadow: 0 0 7px rgba(59,130,246,.7); }
.dot-amber { background: var(--amber); box-shadow: 0 0 7px rgba(245,158,11,.7); }
.tower-row-name { color: var(--text); }
.tower-row-state {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 12px;
  white-space: nowrap;
}
.tower-row-state.ok { color: var(--turq); }
.tower-row-state.run { color: var(--blue); }
.tower-row-state.warn { color: var(--amber); }
.tower-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.tower-bar { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.tower-bar-label { width: 110px; color: var(--muted); flex-shrink: 0; }
.tower-bar-track {
  flex: 1; height: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.tower-bar-fill {
  display: block; height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--blue), var(--turq));
  border-radius: 999px;
  transition: width 1s ease;
}
.tower-bar-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--turq); width: 44px; text-align: right; }
.tower-note { font-size: 12.5px; color: var(--muted-2); margin-top: 18px; }

/* ---------- Beneficios por perfil ---------- */
.profiles {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  max-width: 860px;
  margin: 0 auto;
}
.profile-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.profile-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  transition: all .2s ease;
}
.profile-tab:hover { color: var(--text); border-color: var(--line-2); }
.profile-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.profile-panel[hidden] { display: none; }
.profile-list li {
  position: relative; padding-left: 26px;
  margin-bottom: 15px;
  color: var(--muted); font-size: 16px;
}
.profile-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--turq); font-weight: 700;
}

/* ---------- Industrias ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.industry:hover { border-color: var(--turq); transform: translateY(-3px); }
.industry h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.industry p { color: var(--muted); font-size: 14.5px; }

/* ---------- Implementación ---------- */
.impl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: impl;
}
.impl-step {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.impl-num {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: #fff; background: var(--blue);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.impl-step h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; margin-bottom: 7px; }
.impl-step p { color: var(--muted); font-size: 14px; }

/* ---------- Impacto ---------- */
.section-impact {
  background:
    radial-gradient(700px 380px at 50% 40%, rgba(59, 130, 246, 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.impact-list { margin: 38px 0 26px; }
.impact-item {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.impact-item:first-child { border-top: 1px solid var(--line); }
.impact-note { color: var(--muted-2); font-size: 13.5px; }

/* ---------- Demo interactiva ---------- */
.demo {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.demo-progress {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.demo-step {
  display: flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  padding: 7px 14px 7px 8px;
  white-space: nowrap;
  transition: all .2s ease;
  flex-shrink: 0;
}
.demo-step:hover { border-color: var(--line-2); color: var(--text); }
.demo-step.active { border-color: var(--blue); background: var(--blue-soft); color: var(--text); }
.demo-step.done { border-color: rgba(45,212,191,.5); color: var(--turq); }
.demo-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11.5px;
  flex-shrink: 0;
}
.demo-step.active .demo-step-num { background: var(--blue); color: #fff; }
.demo-step.done .demo-step-num { background: var(--turq); color: var(--bg); }

.demo-stage { min-height: 300px; position: relative; }
.demo-slide[hidden] { display: none; }
.demo-slide.active { animation: slideIn .4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 680px;
  margin: 0 auto;
}
.demo-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.demo-doc { font-family: var(--font-mono); font-size: 14.5px; font-weight: 500; color: var(--turq); }
.demo-card-head .demo-tag { margin-left: auto; }
.demo-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.demo-line {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 14.5px;
}
.demo-line span:last-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: right; }
.demo-line .ok { color: var(--turq); }
.demo-line .warn { color: var(--amber); }
.demo-line .run { color: var(--blue); }
.demo-expl { color: var(--muted); font-size: 15px; }

.demo-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 26px;
}
.demo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 14.5px; font-weight: 600;
  padding: 11px 20px; border-radius: 10px;
  transition: all .2s ease;
}
.demo-btn:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.demo-btn:disabled { opacity: .4; cursor: not-allowed; }
.demo-counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.demo-cta-line { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.testi-placeholder { border-style: dashed; border-color: var(--line-2); background: rgba(19, 28, 46, 0.5); }
.testi-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .4);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.testi-quote { color: var(--muted); font-size: 15.5px; font-style: italic; margin-bottom: 16px; }
.testi-author { font-size: 13px; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 600; font-size: 16px;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--turq); }
.faq-question:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.faq-icon {
  position: relative;
  width: 20px; height: 20px; flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--turq);
  border-radius: 2px;
  transition: transform .25s ease;
}
.faq-icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq-icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA / Contacto ---------- */
.section-cta {
  background:
    radial-gradient(700px 420px at 20% 20%, rgba(59, 130, 246, 0.12), transparent 65%),
    radial-gradient(600px 380px at 85% 85%, rgba(45, 212, 191, 0.07), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.cta-direct { margin-top: 30px; }
.cta-direct p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.cta-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(45, 212, 191, .1);
  border: 1px solid rgba(45, 212, 191, .45);
  color: var(--turq);
  font-weight: 600; font-size: 15.5px;
  padding: 12px 20px; border-radius: 10px;
  text-decoration: none;
  transition: all .2s ease;
  margin-bottom: 12px;
}
.cta-wa:hover { background: rgba(45, 212, 191, .2); text-decoration: none; }
.cta-mail { display: block; color: var(--muted); font-size: 15px; }
.cta-mail:hover { color: var(--text); }

.cta-form {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.cta-form-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}
.form-row input.invalid, .form-row textarea.invalid { border-color: var(--red); }
.form-row textarea { resize: vertical; min-height: 76px; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-consent { margin: 20px 0 6px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-label input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.consent-label span { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.form-error { color: var(--red); font-size: 13.5px; margin: 8px 0 14px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-desc { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-nav a, .footer-contact a {
  display: block;
  color: var(--muted); font-size: 14.5px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--muted);
  margin-bottom: 0;
  transition: all .2s ease;
}
.footer-social a:hover { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted-2); font-size: 13.5px;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--muted-2); font-size: 13.5px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- CTA fija móvil ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  padding: 13px 10px; border-radius: 10px;
  text-decoration: none !important;
}
.sticky-demo { background: var(--blue); color: #fff; }
.sticky-wa { border: 1px solid rgba(45, 212, 191, .5); color: var(--turq); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero { padding-bottom: 120px; }
  .hero-panel { right: 0; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .impl-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .mb-16 { margin-bottom: 42px; }
  .nav-cta { display: none; }
  .compare-grid { grid-template-columns: 1fr; gap: 18px; }
  .compare-arrow { transform: rotate(90deg); }
  .journey { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .cap-wide-grid { grid-template-columns: 1fr; }
  .tower-kpis { grid-template-columns: repeat(2, 1fr); }
  .tower-row { flex-wrap: wrap; }
  .tower-row-state { margin-left: 21px; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-cols { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .impl-steps { grid-template-columns: 1fr; }
  .flow-diagram { flex-direction: column; align-items: center; gap: 0; }
  .flow-node { width: 100%; max-width: 300px; }
  .flow-connector {
    width: 2px; height: 26px;
    background: linear-gradient(180deg, var(--line-2), var(--blue));
  }
  .flow-connector::after {
    right: -3.5px; top: auto; bottom: -1px;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 8px solid var(--blue);
    border-bottom: none;
  }
  .hero-panel { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 18px; }
  .hero { padding-bottom: 80px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .demo { padding: 18px; }
  .demo-card { padding: 20px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 66px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item, .hero-anim { opacity: 1 !important; transform: none !important; }
  .wh-zone > rect:first-child, .wh-label { opacity: 1; }
  .wh-check { stroke-dashoffset: 0; }
  .wh-package { display: none; }
}
