:root {
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --surface: #ffffff;
  --surface2: #f9f9fb;
  --navy: #000000;
  --navy2: #111111;
  --accent: #000000;
  --accent2: #2867f0;
  --accent3: #e5e7eb;
  --text: #4b5563;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border2: #d1d5db;
  --glow: transparent;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
}

/* ────── NAV ────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-dot { color: var(--accent2); }
.nav-center { display: flex; align-items: center; gap: 0; }
.nav-item {
  position: relative;
}
.nav-item > a, .nav-item > button {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 18px;
  height: 72px;
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  transition: color .2s;
  font-family: 'Space Mono', monospace;
}
.nav-item > a:hover, .nav-item > button:hover { color: var(--navy); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 20px 60px rgba(13,31,60,0.12);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all .22s ease;
  z-index: 300;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.dropdown-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .2s;
}
.dropdown-link:hover { background: var(--surface2); }
.dropdown-link .dd-icon {
  width: 32px; height: 32px;
  background: var(--glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dropdown-link small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; margin-top: 1px; }
.dd-sep { height: 1px; background: var(--border); margin: 6px 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-lang {
  font-size: 0.82rem; color: var(--muted);
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  font-family: 'Space Mono', monospace;
}
.nav-cta {
  background: var(--accent);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--accent2); color: #ffffff !important; }
.chevron { font-size: 0.65rem; margin-left: 2px; }

/* ────── HERO ────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f9f9f8 40%, #f5f4ef 100%);
}
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(40,103,240,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(17,17,17,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,31,60,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,31,60,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: #111111;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: fadeUp .6s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
h1 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: clamp(3.5rem, 8.5vw, 8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  max-width: 70vw;
  color: var(--navy);
  animation: fadeUp .7s .1s ease both;
}
h1 em {
  font-style: normal;
  color: var(--accent2);
}
h1 .txt-blue {
  color: #111111;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 900px;
  margin: 24px auto 44px;
  line-height: 1.75;
  font-weight: 400;
  animation: fadeUp .7s .2s ease both;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .7s .3s ease both;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none; cursor: pointer;
  padding: 16px 34px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, background .2s, color .2s;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent2); color: #ffffff; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  cursor: pointer;
  padding: 16px 34px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.btn-secondary:hover { background: #eae7df; border-color: var(--navy); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 80px;
  animation: fadeUp .7s .4s ease both;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}
.stat-num span { color: var(--accent2); }
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ────── TRUSTED LOGOS BAR ────── */
#logos-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  overflow: hidden;
}
.logos-track {
  display: flex;
  width: max-content;
}
.logos-track:hover .logos-group { animation-play-state: paused; }
.logos-group {
  display: flex; gap: 64px; align-items: center;
  padding-right: 64px;
  animation: scrollLogos 40s linear infinite;
}
@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.logo-item {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--muted);
  opacity: 0.55;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

/* ────── SECTION COMMONS ────── */
section { padding: 100px 24px; position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #111111;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  line-height: 1.1;
  color: var(--navy);
}
.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ────── BPA PLATFORM SECTION ────── */
#plataforma { background: var(--navy); color: white; overflow: hidden; }
#plataforma .section-label { color: var(--accent2); }
#plataforma .section-title { color: white; }
#plataforma .section-sub { color: rgba(255,255,255,0.55); }
.plataforma-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 90% 50%, rgba(40,103,240,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 80%, rgba(17,17,17,0.08) 0%, transparent 60%);
}
.bpa-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 44px 0 52px;
}
.bpa-tab {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  transition: all .2s;
  font-family: 'Space Mono', monospace;
}
.bpa-tab.active, .bpa-tab:hover { background: var(--surface); color: var(--navy); border-color: var(--surface); }
.bpa-content-area {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px; align-items: start;
}
.bpa-panel { display: none; }
.bpa-panel.active { display: contents; }
.bpa-features { list-style: none; }
.bpa-features li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bpa-features li:last-child { border: none; }
.bpa-feat-icon {
  width: 36px; height: 36px;
  background: rgba(40,103,240,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.bpa-feat-text strong { display: block; font-weight: 700; margin-bottom: 3px; font-size: 0.95rem; }
.bpa-feat-text span { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.6; }
.bpa-visual-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.bpa-visual-card::before {
  content:''; position: absolute;
  width: 200px; height: 200px;
  display: none;
  top: -40px; right: -40px;
  pointer-events: none;
}

/* Interactive Process Flow */
.flow-builder {
  display: flex; flex-direction: column; gap: 8px;
}
.flow-step-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all .25s;
  font-size: 0.88rem;
}
.flow-step-item:hover, .flow-step-item.active-step {
  background: rgba(40,103,240,0.12);
  border-color: rgba(40,103,240,0.4);
}
.flow-step-item .step-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.flow-conn { text-align: center; color: var(--accent2); font-size: 1rem; margin: -2px 0; }
.flow-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* No-code drag interface */
.nc-canvas {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(40,103,240,0.2);
  border-radius: 16px;
  padding: 20px;
  min-height: 200px;
}
.nc-component {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: grab; font-size: 0.85rem;
  transition: all .2s;
}
.nc-component:hover {
  background: rgba(40,103,240,0.1);
  border-color: rgba(40,103,240,0.3);
  transform: translateX(4px);
}
.nc-handle { color: var(--muted); font-size: 0.8rem; margin-right: 2px; }

/* Data chart */
.mini-chart { padding-top: 8px; }
.chart-bars {
  display: flex; align-items: flex-end; gap: 8px;
  height: 120px;
}
.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: rgba(40,103,240,0.2);
  position: relative;
  transition: all .4s ease;
  cursor: pointer;
}
.chart-bar:hover { background: var(--accent2); }
.chart-bar .bar-val {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 700; color: var(--accent2); white-space: nowrap;
}
.chart-labels {
  display: flex; gap: 8px; margin-top: 8px;
}
.chart-labels span { flex: 1; text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.35); }

/* AI doc extraction */
.doc-extract-demo {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px;
}
.doc-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.83rem;
}
.doc-field:last-child { border: none; }
.doc-field label { color: rgba(255,255,255,0.45); font-size: 0.75rem; }
.doc-field .extracted { color: var(--accent2); font-weight: 600; }
.confidence {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(40,103,240,0.12);
  color: var(--accent2);
}

/* ────── SERVICIOS ────── */
#servicios { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  transition: all .3s;
  position: relative; overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent2);
  transform: scaleX(0);
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--surface2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.service-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(40,103,240,0.1);
  color: #111111;
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.3px;
}

/* ────── SERVICE DETAIL SECTIONS ────── */
.svc-section { padding: 100px 24px; }
.svc-section:nth-child(odd) { background: white; }
.svc-section:nth-child(even) { background: var(--bg2); }
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.svc-layout.reverse { direction: rtl; }
.svc-layout.reverse > * { direction: ltr; }
.svc-demo-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.svc-demo-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.svc-demo-body { padding: 24px; }

/* Onboarding Demo */
.onboarding-form .form-step {
  display: none;
}
.onboarding-form .form-step.visible { display: block; }
.step-indicator {
  display: flex; gap: 6px; margin-bottom: 22px;
}
.step-dot {
  height: 4px; flex: 1; border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}
.step-dot.done { background: var(--accent); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--navy);
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn-form-next, .btn-form-back {
  padding: 10px 22px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none;
  font-family: 'Space Mono', monospace;
  transition: all .2s;
}
.btn-form-next { background: var(--accent); color: #ffffff; }
.btn-form-next:hover { background: var(--accent2); color: #ffffff; }
.btn-form-back { background: var(--border); color: var(--muted); }
.success-state {
  text-align: center; padding: 24px 0;
  display: none;
}
.success-state.visible { display: block; }
.success-check {
  width: 64px; height: 64px;
  background: rgba(40,103,240,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

/* Invoice Approval Demo */
.invoice-list { display: flex; flex-direction: column; gap: 8px; }
.invoice-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all .2s;
}
.invoice-row:hover { border-color: var(--accent2); background: rgba(40,103,240,0.03); }
.invoice-row.selected { border-color: var(--accent2); background: rgba(40,103,240,0.06); }
.inv-vendor { font-weight: 600; color: var(--navy); flex: 1; }
.inv-amount { font-weight: 700; color: var(--navy); }
.inv-status {
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.7rem; font-weight: 700;
}
.status-pending { background: rgba(255,183,0,0.12); color: #b48000; }
.status-approved { background: rgba(40,103,240,0.12); color: #111111; }
.status-rejected { background: rgba(255,90,90,0.1); color: #c0392b; }
.invoice-detail {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  display: none;
}
.invoice-detail.visible { display: block; }
.inv-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-approve {
  flex: 1; padding: 9px; border-radius: 8px;
  background: var(--accent); border: none; cursor: pointer;
  font-weight: 700; font-size: 0.82rem;
  font-family: 'Space Mono', monospace;
  transition: all .2s; color: #ffffff;
}
.btn-reject {
  flex: 1; padding: 9px; border-radius: 9px;
  background: #fff0f0; border: 1px solid #ffd0d0; cursor: pointer;
  font-weight: 700; font-size: 0.82rem; color: #c0392b;
  font-family: 'Space Mono', monospace;
  transition: all .2s;
}
.btn-approve:hover { background: var(--accent2); }

/* Customer Service Bot Demo */
.chatbox {
  height: 220px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 8px;
}
.chat-msg {
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
  background: var(--surface2);
}
.chat-bubble-inner {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble-inner { background: var(--bg); color: var(--navy); border-bottom-left-radius: 3px; }
.chat-msg.user .chat-bubble-inner {
  background: var(--navy); color: white;
  border-bottom-right-radius: 3px;
}
.chat-input-row {
  display: flex; gap: 8px; margin-top: 14px;
}
.chat-input-row input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-family: 'Space Mono', monospace;
  outline: none; color: var(--navy);
  transition: border-color .2s;
}
.chat-input-row input:focus { border-color: var(--accent2); }
.btn-chat-send {
  background: var(--accent);
  color: #ffffff; border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-chat-send:hover { background: var(--accent2); color: #ffffff; }
.typing-indicator {
  display: flex; gap: 4px; align-items: center;
  padding: 9px 13px;
  background: var(--bg);
  border-radius: 12px; border-bottom-left-radius: 3px;
  width: fit-content; display: none;
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: typing .9s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px);} }

/* Process Mining Demo */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.kpi-val {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy);
}
.kpi-val.up { color: #111111; }
.kpi-val.down { color: #e74c3c; }
.kpi-lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.process-timeline {
  display: flex; gap: 0; align-items: center; flex-wrap: nowrap; overflow-x: auto;
  padding: 16px 0; margin-top: 4px;
}
.pt-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.pt-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; text-align: center;
  border: 2px solid var(--border);
  background: white;
  color: var(--navy);
  cursor: pointer;
  transition: all .2s;
}
.pt-circle:hover, .pt-circle.bottleneck { border-color: #e74c3c; background: rgba(231,76,60,0.05); color: #e74c3c; }
.pt-circle.ok { border-color: var(--accent2); background: rgba(40,103,240,0.06); color: #111111; }
.pt-lbl { font-size: 0.62rem; color: var(--muted); text-align: center; max-width: 54px; line-height: 1.3; }
.pt-arrow {
  width: 28px; height: 2px; background: var(--border);
  flex-shrink: 0; position: relative;
}
.pt-arrow::after {
  content: '›'; position: absolute;
  right: -5px; top: -10px;
  color: var(--muted); font-size: 0.9rem;
}

/* OCR / Doc processing demo */
.ocr-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.doc-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}
.doc-preview strong { color: var(--navy); }
.highlight-field {
  background: rgba(40,103,240,0.15);
  color: #111111;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
}
.extracted-fields {
  display: flex; flex-direction: column; gap: 8px;
}
.ext-field {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.ext-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.ext-val { font-size: 0.84rem; font-weight: 700; color: var(--navy); }
.ext-conf { font-size: 0.65rem; color: #111111; }

/* ────── DEMOS INTERACTIVOS ────── */
#demos { background: var(--surface); }
.demos-intro { text-align: center; margin-bottom: 60px; }
.demos-intro .section-sub { max-width: 580px; margin: 0 auto; }
.demos-tab-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.demo-tab-btn {
  padding: 12px 22px;
  border-radius: 10px 10px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--muted);
  background: none;
  font-family: 'Space Mono', monospace;
  transition: all .2s;
  margin-bottom: -1px;
}
.demo-tab-btn.active {
  border-color: var(--border);
  border-bottom-color: white;
  background: white;
  color: var(--navy);
}
.demo-panel-wrap { background: white; border: 1px solid var(--border); border-radius: 0 16px 16px 16px; overflow: hidden; }
.demo-panel { display: none; padding: 36px; }
.demo-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.demo-description h3 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--navy); margin-bottom: 12px;
}
.demo-description p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; margin-bottom: 20px; }
.demo-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.demo-pill {
  padding: 5px 13px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(40,103,240,0.1);
  color: #111111;
}

/* Chatbot WhatsApp Demo */
.wa-demo {
  background: #e5ddd5;
  border-radius: 12px;
  overflow: hidden;
}
.wa-header {
  background: #075e54;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: white;
}
.wa-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #128c7e;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.wa-name { font-size: 0.88rem; font-weight: 700; }
.wa-status { font-size: 0.72rem; opacity: .7; }
.wa-body {
  padding: 14px;
  height: 200px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.wa-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
}
.wa-bubble.bot {
  background: white;
  border-radius: 0px 10px 10px 10px;
  align-self: flex-start;
}
.wa-bubble.user {
  background: #dcf8c6;
  border-radius: 10px 10px 0px 10px;
  align-self: flex-end;
}
.wa-bubble time { display: block; font-size: 0.62rem; color: #999; text-align: right; margin-top: 3px; }
.wa-input-bar {
  background: #f0f0f0;
  padding: 8px;
  display: flex; gap: 6px;
}
.wa-input-bar input {
  flex: 1; background: white; border: none; border-radius: 12px;
  padding: 9px 14px; font-size: 0.82rem;
  outline: none;
  font-family: 'Space Mono', monospace;
}
.wa-send-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #075e54; border: none; cursor: pointer;
  color: white; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.wa-send-btn:hover { background: #128c7e; }

/* Yape OCR Demo */
.yape-demo-wrap {
  display: flex; flex-direction: column; gap: 10px;
}
.yape-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.yape-upload-zone:hover { border-color: var(--accent2); background: rgba(40,103,240,0.02); }
.yape-entries {
  display: flex; flex-direction: column; gap: 6px;
}
.yape-entry {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.82rem;
}
.yape-dot2 { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.yape-name { flex: 1; font-weight: 600; color: var(--navy); }
.yape-amt { font-weight: 700; color: var(--navy); }
.yape-date { color: var(--muted); font-size: 0.72rem; }

/* ────── CASOS DE USO (SOLUCIONES) ────── */
#soluciones { background: var(--bg2); }
.solutions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.solution-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 16px 40px rgba(40,103,240,0.1);
}
.sol-icon {
  width: 44px; height: 44px;
  background: var(--surface2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.solution-card h4 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.solution-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.sol-arrow { color: var(--accent2); font-size: 0.9rem; margin-top: 14px; display: block; font-weight: 700; }

/* ────── PROCESS SECTION ────── */
#proceso { background: white; }
.steps-timeline {
  margin-top: 60px;
  position: relative;
}
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 32px; bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent3));
  border-radius: 2px;
}
.timeline-step {
  display: flex; gap: 32px; align-items: flex-start;
  margin-bottom: 44px;
  position: relative;
}
.timeline-step:last-child { margin-bottom: 0; }
.ts-circle {
  width: 66px; height: 66px; border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--accent2);
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: all .3s;
}
.timeline-step:hover .ts-circle {
  background: var(--accent);
  color: white;
}
.ts-body { padding-top: 12px; }
.ts-body h4 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--navy); margin-bottom: 6px;
}
.ts-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; max-width: 600px; }

/* ────── INDUSTRIAS ────── */
#industrias { background: var(--navy); padding: 80px 24px; }
#industrias .section-label { color: var(--accent2); }
#industrias .section-title { color: white; }
.ind-marquee-wrap { overflow: hidden; margin-top: 48px; }
.ind-track {
  display: flex; gap: 12px;
  animation: scrollLogos 20s linear infinite;
  width: max-content;
}
.ind-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: all .2s;
  cursor: default;
  flex-shrink: 0;
}
.ind-tag:hover {
  background: rgba(40,103,240,0.1);
  border-color: rgba(40,103,240,0.35);
  color: var(--accent2);
}

/* ────── CLIENTS / TESTIMONIALS ────── */
#clientes { background: var(--bg); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,31,60,0.07); }
.stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.author-role { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

/* ────── MARKETPLACE ────── */
#marketplace { background: white; }
.marketplace-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.market-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all .3s;
}
.market-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(40,103,240,0.08); }
.market-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.market-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.market-name {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--navy);
}
.market-cat { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.market-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.65; margin-bottom: 18px; }
.market-footer { display: flex; align-items: center; justify-content: space-between; }
.market-rating { font-size: 0.78rem; color: var(--muted); }
.market-rating span { color: #f59e0b; margin-right: 4px; }
.btn-install {
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
  font-family: 'Space Mono', monospace;
  transition: all .2s;
}
.btn-install:hover { background: var(--accent); color: white; border-color: var(--accent2); }

/* ────── POR QUÉ LESS ────── */
#por-que { background: var(--bg2); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform .3s;
}
.why-card:hover { transform: translateY(-3px); }
.why-icon {
  font-size: 2rem; margin-bottom: 18px; display: block;
}
.why-card h4 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 10px; color: var(--navy);
}
.why-card p { color: var(--muted); font-size: 0.87rem; line-height: 1.65; }

/* ────── CTA FINAL ────── */
#contacto {
  background: var(--navy);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contacto::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(40,103,240,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box { position: relative; z-index: 1; }
#contacto .section-label { color: var(--accent2); justify-content: center; }
#contacto .section-label::before { display: none; }
#contacto .section-title { color: white; margin: 0 auto 14px; max-width: 700px; font-size: clamp(2rem, 4vw, 3.2rem); }
#contacto p { color: rgba(255,255,255,0.55); font-size: 1rem; max-width: 500px; margin: 0 auto 44px; line-height: 1.75; }
.cta-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.cta-form input {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 20px;
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus { border-color: var(--accent2); }
.btn-cta {
  background: var(--accent);
  color: var(--navy);
  border: none; cursor: pointer;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 0.95rem; font-weight: 700;
  font-family: 'Space Mono', monospace;
  transition: all .2s;
  white-space: nowrap;
}
.btn-cta:hover { background: white; }
.cta-note { margin-top: 18px !important; font-size: 0.82rem !important; color: rgba(255,255,255,0.3) !important; }

/* ────── FOOTER ────── */
footer {
  background: #080f1c;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 60px 36px;
  color: rgba(255,255,255,0.5);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: white; margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.footer-brand span { color: var(--accent2); }
.footer-tagline { font-size: 0.85rem; line-height: 1.65; max-width: 240px; }
.footer-col h5 {
  color: white; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.25); }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all .2s;
}
.footer-socials a:hover { background: rgba(40,103,240,0.1); border-color: var(--accent2); color: var(--accent2); }

/* ────── SCROLL REVEAL ────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ────── MOBILE NAV ────── */
.mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--navy); font-size: 1.4rem;
}
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-center, .nav-lang { display: none; }
  .mobile-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-layout.reverse { direction: ltr; }
  .bpa-content-area { grid-template-columns: 1fr; }
  .demo-panel.active { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1px; max-width: 92vw; }
}
