/* =========================================================
   Drivetor — Sistema de diseno premium
   Dark-first, tipografia refinada, spacing generoso
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Neutros */
  --bg-0: #050810;
  --bg-1: #0A0E1A;
  --bg-2: #0F1420;
  --bg-3: #141A2A;
  --surface: #111827;
  --surface-2: #1A2234;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.04);

  /* Texto */
  --fg: #F8FAFC;
  --fg-muted: #94A3B8;
  --fg-dim: #64748B;
  --fg-faint: #475569;

  /* Marca */
  --brand: #3B82F6;
  --brand-strong: #2563EB;
  --brand-soft: #60A5FA;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  --grad-brand-text: linear-gradient(135deg, #93C5FD 0%, #3B82F6 50%, #60A5FA 100%);
  --grad-radial-brand: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 60%);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);

  /* Radios */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Transiciones */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Tipografia */
  --f-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

/* ---------- Base ---------- */
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 30% at 100% 30%, rgba(99, 102, 241, 0.05), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* Grid pattern decorativo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 80%);
  z-index: 0;
}

/* ---------- Contenedor ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Tipografia utilitaria ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 10px var(--brand-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

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

.display-serif {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all var(--t-base);
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 24px -8px rgba(59, 130, 246, 0.5);
}

.btn--primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 12px 32px -8px rgba(59, 130, 246, 0.65);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--r-md);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn__arrow {
  transition: transform var(--t-base);
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--t-base);
  padding: 16px 0;
}

.nav.is-scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.nav__logo svg {
  width: 28px;
  height: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}

.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: var(--r-sm);
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--fg-muted);
  border-radius: var(--r-sm);
}

.nav__mobile a:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg); }

.nav__mobile .nav__mobile-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.nav__mobile .nav__mobile-cta .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero__content { max-width: 580px; }

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 20px 0 24px;
}

.hero__title em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-dim);
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-soft);
  flex-shrink: 0;
}

/* ---------- Hero mockup ---------- */
.hero__mockup {
  position: relative;
  perspective: 2000px;
}

.mockup {
  background: linear-gradient(180deg, #0F1420 0%, #0A0E1A 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 100px -20px rgba(59, 130, 246, 0.25);
  transform: perspective(2000px) rotateY(-6deg) rotateX(2deg);
  transition: transform var(--t-slow);
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 480px;
  font-size: 12px;
}

.hero__mockup:hover .mockup {
  transform: perspective(2000px) rotateY(-3deg) rotateX(1deg) translateY(-4px);
}

.mockup__sidebar {
  background: linear-gradient(180deg, #050810 0%, #0A0E1A 100%);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mockup__brand svg { width: 18px; height: 18px; }

.mockup__nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  padding: 10px 10px 6px;
}

.mockup__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--fg-muted);
  font-size: 12px;
}

.mockup__nav-item svg { width: 13px; height: 13px; opacity: 0.7; }

.mockup__nav-item.is-active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--fg);
  box-shadow: inset 2px 0 0 var(--brand);
}

.mockup__nav-item.is-active svg { opacity: 1; color: var(--brand-soft); }

.mockup__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.mockup__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mockup__topbar-title {
  font-size: 13px;
  font-weight: 600;
}

.mockup__topbar-crumb {
  font-size: 10px;
  color: var(--fg-faint);
  margin-top: 2px;
}

.mockup__topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r-pill);
  font-size: 10px;
  color: var(--success);
  font-weight: 500;
}

.mockup__topbar-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.mockup__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mockup__kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
}

.mockup__kpi-label {
  font-size: 9px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mockup__kpi-value {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mockup__kpi-delta {
  font-size: 10px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 3px;
}

.mockup__kpi-delta.is-down { color: var(--danger); }

.mockup__kpi-spark {
  margin-top: 8px;
  width: 100%;
  height: 24px;
}

.mockup__kpi-spark path.spark-line {
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mockup__kpi-spark path.spark-fill {
  fill: url(#spark-grad);
  opacity: 0.3;
}

.mockup__chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  flex: 1;
}

.mockup__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mockup__chart-title {
  font-size: 11px;
  font-weight: 600;
}

.mockup__chart-legend {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: var(--fg-dim);
}

.mockup__chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup__chart-legend span::before {
  content: '';
  width: 7px; height: 2px;
  background: var(--brand-soft);
  border-radius: 2px;
}

.mockup__chart-legend .leg-2::before { background: var(--accent); }

.mockup__chart svg {
  width: 100%;
  height: 100px;
}

.mockup__table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.mockup__table-head {
  display: grid;
  grid-template-columns: 1fr 70px 60px 60px;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.mockup__table-row {
  display: grid;
  grid-template-columns: 1fr 70px 60px 60px;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
  align-items: center;
}

.mockup__table-row:last-child { border-bottom: 0; }

.mockup__table-row span:nth-child(2),
.mockup__table-row span:nth-child(3) { color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pill--success { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.pill--warn    { background: rgba(245, 158, 11, 0.12); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.2); }
.pill--info    { background: rgba(59, 130, 246, 0.12); color: var(--brand-soft); border: 1px solid rgba(59, 130, 246, 0.2); }
.pill--muted   { background: rgba(148, 163, 184, 0.08); color: var(--fg-muted); border: 1px solid rgba(148, 163, 184, 0.15); }

/* Flotantes decorativos del mockup */
.mockup__float {
  position: absolute;
  padding: 12px 14px;
  background: linear-gradient(180deg, #141A2A 0%, #0F1420 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.mockup__float--tl {
  top: 10%;
  left: -20px;
  animation: float-y 6s ease-in-out infinite;
}

.mockup__float--br {
  bottom: 12%;
  right: -16px;
  animation: float-y 6s ease-in-out -3s infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mockup__float-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-soft);
  flex-shrink: 0;
}

.mockup__float-icon svg { width: 16px; height: 16px; }

.mockup__float-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
}

.mockup__float-sub {
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 2px;
}

/* ---------- Secciones genericas ---------- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section--tight { padding: 80px 0; }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section__head .eyebrow { margin-bottom: 16px; }

.section__title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__title em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-soft);
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Logo bar ---------- */
.logo-bar {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-bar__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 28px;
}

.logo-bar__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
}

.logo-bar__item {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity var(--t-base), color var(--t-base);
}

.logo-bar__item:hover { opacity: 1; color: var(--fg-muted); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.bento__card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}

.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.bento__card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.bento__card:hover::before { opacity: 1; }

.bento__card--wide { grid-column: span 2; }

.bento__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-soft);
  margin-bottom: 20px;
}

.bento__icon svg { width: 20px; height: 20px; }

.bento__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.bento__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.bento__viz {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.bento__viz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.bento__viz-row:last-child { border-bottom: 0; }

.bento__viz-row span:first-child { color: var(--fg-muted); }
.bento__viz-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }

.bento__viz-chart {
  width: 100%;
  height: 72px;
  margin-top: 6px;
}

/* ---------- Workstations ---------- */
.workstations {
  position: relative;
}

.workstations__tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: fit-content;
  margin: 0 auto 48px;
}

.workstations__tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  transition: color var(--t-fast), background var(--t-fast);
}

.workstations__tab:hover { color: var(--fg); }

.workstations__tab.is-active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.workstations__panel {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.workstations__panel.is-active {
  display: grid;
  animation: panel-in 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.workstations__content h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.workstations__content h3 em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--brand-soft);
}

.workstations__content p {
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.workstations__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workstations__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}

.workstations__list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-soft);
}

.workstations__preview {
  background: linear-gradient(180deg, #0F1420 0%, #0A0E1A 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
}

.ws-row__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-row__title { font-weight: 500; }
.ws-row__sub { color: var(--fg-dim); font-size: 11px; }

.ws-row__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ws-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.ws-head__title { font-size: 13px; font-weight: 600; }
.ws-head__sub { font-size: 11px; color: var(--fg-dim); }

/* ---------- Flow timeline ---------- */
.flow {
  position: relative;
  padding: 48px 0;
}

.flow__track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  position: relative;
}

.flow__step {
  position: relative;
  padding: 20px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-base), border-color var(--t-base);
}

.flow__step:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

.flow__step-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: var(--r-sm);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-soft);
}

.flow__step-icon svg { width: 16px; height: 16px; }

.flow__step-num {
  font-size: 10px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.flow__step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.flow__arrow {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--fg-faint);
  z-index: 1;
  background: var(--bg-1);
  padding: 2px;
}

.flow__arrow svg { width: 14px; height: 14px; }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(180deg, #0A0E1A 0%, #050810 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.08), transparent 50%);
  pointer-events: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.stats__item {
  text-align: center;
  padding: 32px 20px;
}

.stats__value {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  font-family: var(--f-display);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.stats__label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ---------- Integraciones ---------- */
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.integration {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}

.integration:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.integration__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.integration__icon svg { width: 18px; height: 18px; }

.integration__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.integration__meta {
  font-size: 11px;
  color: var(--fg-dim);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.faq__item[open] { border-color: rgba(59, 130, 246, 0.25); }

.faq__summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  list-style: none;
  user-select: none;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform var(--t-base);
}

.faq__item[open] .faq__chev { transform: rotate(180deg); color: var(--brand-soft); }

.faq__content {
  padding: 0 24px 20px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 680px;
}

/* ---------- CTA final ---------- */
.cta-banner {
  position: relative;
  margin: 0 24px;
  padding: 96px 48px;
  background: linear-gradient(180deg, #0F1420 0%, #050810 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.3), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-banner__inner { position: relative; }

.cta-banner__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__title em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cta-banner__sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

.cta-banner__link {
  color: var(--fg-muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}

.cta-banner__link:hover { color: var(--fg); }

.cta-banner__link svg { width: 14px; height: 14px; transition: transform var(--t-base); }

.cta-banner__link:hover svg { transform: translateX(3px); }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.contact__info h2 em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--brand-soft);
}

.contact__info p {
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg);
}

.contact__points svg {
  width: 18px;
  height: 18px;
  color: var(--brand-soft);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__points span { color: var(--fg-muted); line-height: 1.5; }

/* ---------- Form ---------- */
.form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form__row--full { grid-template-columns: 1fr; }

.field {
  position: relative;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 20px 14px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-size: 14px;
  transition: border-color var(--t-base), background var(--t-base);
  caret-color: var(--brand-soft);
}

.field__textarea { padding: 24px 14px 10px; min-height: 120px; resize: vertical; }
.field__select { appearance: none; padding-right: 36px; cursor: pointer; }

.field__select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fg-dim);
  width: 16px;
  height: 16px;
}

.field__label {
  position: absolute;
  left: 14px;
  top: 15px;
  font-size: 14px;
  color: var(--fg-dim);
  pointer-events: none;
  transition: all var(--t-fast);
  background: transparent;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field__textarea:focus + .field__label,
.field__textarea:not(:placeholder-shown) + .field__label,
.field__select:focus + .field__label,
.field__select.has-value + .field__label {
  top: 6px;
  font-size: 11px;
  color: var(--brand-soft);
  letter-spacing: 0.02em;
}

/* Trick para floating labels sin placeholder */
.field__input::placeholder,
.field__textarea::placeholder { color: transparent; }

.form__disclaimer {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 16px;
  line-height: 1.5;
}

.form__disclaimer a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }

.form .btn { width: 100%; margin-top: 20px; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--bg-0);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.footer__brand svg { width: 28px; height: 28px; }

.footer__tagline {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  transition: all var(--t-base);
}

.footer__social a:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.footer__social svg { width: 16px; height: 16px; }

.footer__col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color var(--t-fast);
}

.footer__col a:hover { color: var(--fg); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--fg-dim);
}

/* ---------- Fade in on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Pagina thanks ---------- */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  position: relative;
}

.thanks__card {
  max-width: 560px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
}

.thanks__badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.1) 60%, transparent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: grid;
  place-items: center;
  color: var(--brand-soft);
}

.thanks__badge svg { width: 32px; height: 32px; }

.thanks__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.thanks__title em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--brand-soft);
}

.thanks__sub {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.thanks__meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.thanks__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}

.thanks__meta-item svg { width: 16px; height: 16px; color: var(--brand-soft); }

.thanks__ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { max-width: 100%; }
  .hero__mockup { margin-top: 20px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }

  .workstations__panel { grid-template-columns: 1fr; gap: 32px; }

  .flow__track { grid-template-columns: repeat(4, 1fr); }
  .flow__step:nth-child(4n) .flow__arrow { display: none; }
  .flow__step:last-child .flow__arrow { display: none; }

  .integrations__grid { grid-template-columns: repeat(2, 1fr); }

  .contact { grid-template-columns: 1fr; gap: 48px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; }

  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }

  .mockup { grid-template-columns: 1fr; min-height: auto; }
  .mockup__sidebar { display: none; }
  .mockup__kpis { grid-template-columns: repeat(2, 1fr); }
  .mockup__float { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }

  .stats__grid { grid-template-columns: 1fr; gap: 8px; }

  .flow__track { grid-template-columns: repeat(2, 1fr); }
  .flow__step:nth-child(2n) .flow__arrow { display: none; }

  .integrations__grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 64px 28px; margin: 0 16px; }

  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .thanks__card { padding: 40px 28px; }
}

/* ---------- iPhone SE y breakpoints muy pequeños ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero: tipografía bajada y botones full width */
  .hero { padding: 110px 0 48px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__sub { font-size: 15px; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 16px; }

  /* CTA banner con márgenes menores */
  .cta-banner { margin: 0 8px; padding: 56px 20px; border-radius: 20px; }
  .cta-banner__ctas { flex-direction: column; gap: 14px; }
  .cta-banner__ctas .btn { width: 100%; }

  /* Mockup table: achica columnas y oculta columna "Local" para evitar overflow */
  .mockup__table-head,
  .mockup__table-row { grid-template-columns: 1.3fr 60px 60px; }
  .mockup__table-head span:nth-child(2),
  .mockup__table-row span:nth-child(2) { display: none; }

  /* Pills del mockup más chicas para no romper el layout */
  .pill { font-size: 8px; padding: 2px 6px; }

  /* Secciones con padding reducido */
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 48px; }

  /* FAQ con menos padding horizontal */
  .faq__summary { padding: 18px 18px; font-size: 14.5px; gap: 14px; }
  .faq__content { padding: 0 18px 18px; }

  /* Logo bar: menor espaciado */
  .logo-bar { padding: 44px 0; }
  .logo-bar__row { gap: 24px; }

  /* Form con padding reducido */
  .form { padding: 20px; border-radius: 16px; }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--fg);
}

/* ---------- Focus visible global ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
