/* =========================================================
   GrowthNova — Agentes de IA para empresas
   growthnova.es
   ========================================================= */

:root {
  --bg: #08090d;
  --bg-alt: #0c0e15;
  --surface: #12141d;
  --surface-2: #171a25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f9;
  --text-secondary: #a7abbd;
  --text-muted: #6d7285;

  --accent-1: #6d5bff;
  --accent-2: #00d4ff;
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --accent-soft: rgba(109, 91, 255, 0.12);

  --success: #34d399;
  --danger: #f16565;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 60px -20px rgba(109, 91, 255, 0.35);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  --container-w: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; color: var(--text-secondary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ background fx ============ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
}
.bg-glow-1 { top: -24vw; left: -14vw; background: var(--accent-1); }
.bg-glow-2 { top: 8vw; right: -22vw; background: var(--accent-2); opacity: 0.1; }

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 13, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent-gradient);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: var(--bg);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #06070b;
  box-shadow: 0 8px 30px -8px rgba(109, 91, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(109, 91, 255, 0.75); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(0, 212, 255, 0.06); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-xs { padding: 6px 14px; font-size: 0.78rem; border-radius: var(--radius-pill); }

.nav-cta { flex-shrink: 0; }

/* ============ shared typography ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow-center { justify-content: center; width: 100%; }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { position: relative; z-index: 1; padding: 120px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.section-lead { font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.section-lead + .section-lead { margin-top: 10px; }

.callout {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  max-width: 700px;
  margin: 56px auto 0;
  line-height: 1.5;
}
.callout--inline { margin: 28px 0 0; text-align: left; padding: 18px 22px; border-left: 3px solid var(--accent-2); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; }

/* ============ reveal animation ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============ hero ============ */
.hero { padding: 168px 0 120px; position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.hero-sub { font-size: 1.15rem; margin: 26px 0 36px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-family: var(--font-display); font-size: 1.4rem; }
.trust-item span { font-size: 0.8rem; color: var(--text-muted); }
.trust-divider { width: 1px; height: 32px; background: var(--border); }

/* ---- hero visual: agent panel ---- */
.hero-visual { position: relative; }
.agent-panel-glow {
  position: absolute;
  inset: -10%;
  background: var(--accent-gradient);
  filter: blur(90px);
  opacity: 0.2;
  z-index: -1;
  border-radius: 50%;
}

.agent-panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.agent-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.agent-panel-dots { display: flex; gap: 6px; }
.agent-panel-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.agent-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-right: auto;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.agent-panel-clock { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

.agent-feed { padding: 18px 20px; min-height: 268px; display: flex; flex-direction: column; gap: 10px; }
.agent-feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  animation: feedIn 0.5s var(--ease);
}
.agent-feed-item .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.agent-feed-item time { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.mini-stat {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.mini-stat:last-child { border-right: none; }
.mini-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.mini-stat-value { font-family: var(--font-display); font-size: 1.3rem; }

/* ============ compare (no-chatbot) ============ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.compare-card--dim { background: var(--surface); opacity: 0.85; }
.compare-card--glow {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color: rgba(109, 91, 255, 0.4);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.compare-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.compare-icon,
.cap-icon,
.sector-icon,
.trust-card-icon,
.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(109, 91, 255, 0.16), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.compare-icon { font-size: 1.35rem; }
.compare-head h3 { font-size: 1.3rem; }
.compare-list { display: flex; flex-direction: column; gap: 14px; font-size: 0.95rem; }
.compare-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.compare-card--glow .compare-list li { color: var(--text); }

.ico { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.ico-x { background: rgba(241, 101, 101, 0.12); color: var(--danger); }
.ico-check { background: rgba(52, 211, 153, 0.14); color: var(--success); }

.compare-vs {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  writing-mode: horizontal-tb;
}

/* ============ capability cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.cap-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow-card), 0 0 0 1px rgba(109,91,255,0.15); }
.cap-icon { margin-bottom: 16px; }
.cap-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cap-card p { font-size: 0.9rem; }
.cap-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(109,91,255,0.1), rgba(0,212,255,0.05));
  border-color: rgba(109, 91, 255, 0.35);
}
.cap-badge {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.cap-example {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

/* ============ problem flows ============ */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.flow-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.flow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.flow-tag--bad { background: rgba(241,101,101,0.12); color: var(--danger); }
.flow-tag--good { background: rgba(52,211,153,0.12); color: var(--success); }
.flow-steps { display: flex; flex-direction: column; }
.flow-steps li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.flow-steps li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.flow-steps li::after {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}
.flow-steps li:first-child::before { top: 18px; }
.flow-steps li:last-child::before { bottom: auto; height: 18px; }
.flow-end { font-weight: 700; color: var(--text) !important; padding-top: 16px; }
.flow-end::after { background: currentColor; }
.flow-end--bad { color: var(--danger) !important; }
.flow-end--good { color: var(--success) !important; }

/* ============ spotlight (recuperacion) ============ */
.section-spotlight { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(109,91,255,0.1), transparent 70%); }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.spotlight-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 8px 0 20px; }

.chat-mock {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.chat-mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-mock-head strong { display: block; font-size: 0.95rem; }
.chat-mock-head span { font-size: 0.78rem; color: var(--text-muted); }

.chat-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.chat-timestamp { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin: 6px 0; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.5; }
.bubble--user { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble--agent { align-self: flex-end; background: var(--accent-gradient); color: #06070b; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-note { align-self: flex-start; font-size: 0.78rem; color: var(--text-muted); font-style: italic; padding-left: 4px; }
.chat-result {
  align-self: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--success);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

/* ============ 24/7 ============ */
.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 130px;
}
.stat-chip strong { font-family: var(--font-display); font-size: 1.6rem; }
.stat-chip strong { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-chip span { font-size: 0.78rem; color: var(--text-muted); }

.timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.timeline-icon { font-size: 1.3rem; }
.timeline-time { font-family: var(--font-mono); color: var(--accent-2); font-size: 0.95rem; }
.timeline-text { font-size: 0.85rem; color: var(--text-secondary); }

/* ============ before / after ============ */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
}
.ba-card { padding: 30px 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.ba-card--before { background: var(--surface); }
.ba-card--after { background: linear-gradient(135deg, rgba(109,91,255,0.1), rgba(0,212,255,0.05)); border-color: rgba(109,91,255,0.3); }
.ba-card h3 { margin-bottom: 20px; font-size: 1.1rem; }
.ba-list { display: flex; flex-direction: column; gap: 13px; font-size: 0.92rem; }
.ba-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.ba-card--after .ba-list li { color: var(--text); }
.ba-arrow { font-size: 1.6rem; color: var(--text-muted); }

/* ============ benefits ============ */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
.benefit-chip {
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.benefit-chip:hover { border-color: var(--accent-2); color: var(--text); transform: translateY(-2px); }

/* ============ process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.process-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-card p { font-size: 0.88rem; }

/* ============ sectors ============ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sector-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card), 0 0 0 1px rgba(109,91,255,0.15); }
.sector-icon { margin-bottom: 14px; }
.sector-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.sector-card ul { display: flex; flex-direction: column; gap: 8px; }
.sector-card li { font-size: 0.86rem; color: var(--text-secondary); padding-left: 16px; position: relative; }
.sector-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent-2); }
.sector-card--more { background: linear-gradient(135deg, rgba(109,91,255,0.1), rgba(0,212,255,0.05)); border-color: rgba(109,91,255,0.3); display: flex; flex-direction: column; justify-content: center; }
.sector-card--more p { font-size: 0.88rem; }

/* ============ demo ============ */
.demo-panel {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.demo-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.demo-steps { padding: 26px 26px 10px; display: flex; flex-direction: column; }
.demo-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.demo-steps li:last-child { border-bottom: none; }
.demo-steps li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.demo-steps li::after {
  content: attr(data-time);
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.demo-steps li.is-active { opacity: 1; color: var(--text); }
.demo-steps li.is-active::before { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.demo-complete {
  text-align: center;
  margin: 12px 26px 26px;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--success);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.demo-complete.is-visible { opacity: 1; transform: translateY(0); }

/* ============ CTA final ============ */
.cta-final {
  position: relative;
  z-index: 1;
  padding: 140px 0;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(109,91,255,0.18), transparent 70%);
  border-top: 1px solid var(--border);
}
.cta-final-inner { max-width: 760px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 22px; }
.cta-final p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px; }
.cta-final-note { margin-top: 22px; font-size: 0.85rem; color: var(--text-muted); }

/* ============ trust / compromiso ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.trust-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card), 0 0 0 1px rgba(109,91,255,0.15); }
.trust-card-icon { margin-bottom: 16px; }
.trust-card h3 { font-size: 1rem; margin-bottom: 8px; }
.trust-card p { font-size: 0.88rem; }

/* ============ lead form ============ */
.form-wrap { max-width: 640px; margin: 0 auto; }

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { width: 100%; }

.form-field label { font-size: 0.85rem; color: var(--text-secondary); }

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }

.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--text-muted);
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); padding: 56px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand p { width: 100%; font-size: 0.82rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); width: 100%; text-align: center; margin-top: 8px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card--featured { grid-column: span 2; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-row { grid-template-columns: repeat(2, 1fr); }
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav-cta { display: none; }

  .hero { padding: 128px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; }

  .section { padding: 80px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .cap-card--featured { grid-column: span 1; }
  .sector-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; }
  .stat-row { gap: 10px; }
  .stat-chip { min-width: 100px; padding: 16px 20px; }
  .agent-panel-stats { grid-template-columns: 1fr; }
  .mini-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-stat:last-child { border-bottom: none; }

  .lead-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
