/* =========================================================
   Rocket Code — Website Redesign (v4 · "landing page v2" spec)
   Brand: Dark Navy #0B0F19 · Blue #2F5EFF · Purple #7C3AED · Cyan #22D3EE
   Base = light (blanco/gris). Azul/morado/cian son acentos.
   ========================================================= */

:root {
  /* Fonts */
  --f-display: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Colors — base clara (blanco/gris) */
  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --bg-card: #FFFFFF;

  --ink: #0B0F19;
  --ink-2: #1B2340;
  --gray-text: #4B5573;
  --gray-muted: #8891AA;
  --line: #E1E5F0;
  --line-strong: #C7CEE0;

  /* Acentos de marca */
  --blue: #2F5EFF;
  --blue-deep: #1E3FCC;
  --blue-soft: #EAF0FF;

  --purple: #7C3AED;
  --purple-deep: #6425C9;
  --purple-soft: #F2EBFF;

  --cyan: #22D3EE;
  --cyan-deep: #0EA5C4;
  --cyan-soft: #E3FBFF;

  --green-dark: #1D7A46;
  --ok: #1D7A46;

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: 24px;

  /* Radii */
  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --r-xl: 8px;

  /* Motion — mistral-style: longer, expo-out easing, not linear */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: 200ms;
  --dur: 380ms;
  --dur-slow: 600ms;

  /* Backwards-compat aliases (used by existing components) */
  --muted: var(--gray-text);
  --muted-2: var(--gray-muted);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--purple); color: var(--ink); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: 132px 0;
  border-top: 1px solid var(--line);
}
section.no-border { border-top: none; }
@media (max-width: 1024px) { section { padding: 96px 0; } }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* Card hover-lift — mistral-style elevation on interactive cards */
.pillar, .case, .usecase, .cat-card, .office, .team-member,
.svc-row, .prod-row, .price, .app-card, .industry,
.mega-item {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  will-change: transform;
}
.pillar:hover, .case:hover, .usecase:hover, .cat-card:hover:not(.core), .office:hover,
.team-member:hover, .svc-row:hover, .prod-row:hover, .price:hover, .app-card:hover, .industry:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(5, 15, 42, 0.10);
}
.nav-top { transition: color var(--dur-fast) var(--ease-out); }
section.soft { background: var(--bg-soft); }
section.dark {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--ink);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.3em;
  color: var(--ink);
  line-height: 0.95;
}

.eyebrow {
  display: none;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
}
.eyebrow.no-dot::before { display: none; }
.eyebrow.dark { color: var(--purple); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 20ch;
}

h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: 0;
  line-height: 1.3;
}

.lead {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Palabra-ancla highlight — color sólido, sin caja de fondo */
.highlight {
  color: var(--blue);
  display: inline;
  line-height: 1.05;
}

.kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}

.text-blue { color: var(--blue); }
.text-muted { color: var(--gray-text); }
.text-mono { font-family: var(--f-mono); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
  transition: height var(--dur) var(--ease-out);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .dot {
  width: 10px; height: 10px;
  background: var(--purple);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  color: #333;
  align-items: center;
  height: 100%;
}
.nav-links a {
  height: 100%;
  display: flex; align-items: center;
  position: relative;
  font-weight: 400;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }

.nav-cta {
  margin-left: auto;
  display: flex; gap: 14px; align-items: center;
}

.lang-toggle {
  display: inline-flex; gap: 4px;
  align-items: center;
  font-size: 13px;
  font-family: var(--f-body);
}
.lang-toggle button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--gray-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
}
.lang-toggle button.active {
  color: var(--ink);
  font-weight: 600;
}
.lang-toggle .sep { color: var(--line-strong); padding: 0 2px; }

/* ---------- Nav: brand logo, mega-menu, burger ---------- */

.brand { color: var(--ink); }
.brand-logo { height: 22px; width: auto; display: block; }

.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-top {
  height: 36px;
  display: flex; align-items: center; gap: 6px;
  position: relative;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-top:hover, .nav-top[aria-expanded="true"] { color: var(--blue); }
.nav-top.active { color: var(--blue); font-weight: 600; }

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -10px) scale(.96);
  transform-origin: top center;
  min-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 64px rgba(5,15,42,0.16);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  z-index: 60;
}
.nav-item.has-mega.open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.mega-col { min-width: 220px; padding: 6px 4px 4px; }
.mega-label {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gray-muted);
  padding: 4px 10px 10px;
}
.mega-list { display: flex; flex-direction: column; }
.mega-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: var(--r-lg);
  color: var(--ink);
  font-family: var(--f-body);
  opacity: 0;
  transform: translateY(6px);
  transition: background var(--dur-fast) ease, opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mega-item:hover { background: var(--blue-soft); }
.mega-item-icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: var(--r);
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
}
.mega-item-icon svg { width: 17px; height: 17px; }
.mega-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-item-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mega-item-desc { font-size: 12.5px; color: var(--gray-muted); line-height: 1.4; }
.mega-item-arrow { flex: 0 0 auto; color: var(--gray-muted); font-size: 20px; transition: transform var(--dur-fast) var(--ease-out); }
.mega-item:hover .mega-item-arrow { transform: translateX(3px); color: var(--blue); }
.nav-item.has-mega.open .mega-item { opacity: 1; transform: translateY(0); }
.nav-item.has-mega.open .mega-item:nth-child(1) { transition-delay: 30ms; }
.nav-item.has-mega.open .mega-item:nth-child(2) { transition-delay: 55ms; }
.nav-item.has-mega.open .mega-item:nth-child(3) { transition-delay: 80ms; }
.nav-item.has-mega.open .mega-item:nth-child(4) { transition-delay: 105ms; }
.nav-item.has-mega.open .mega-item:nth-child(5) { transition-delay: 130ms; }
.nav-item.has-mega.open .mega-item:nth-child(6) { transition-delay: 155ms; }
.nav-item.has-mega.open .mega-item:nth-child(7) { transition-delay: 180ms; }
.mega-all {
  display: block;
  margin-top: 8px; padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.mega-all-top {
  display: block;
  margin: 0 0 8px; padding: 11px 12px;
  border-top: none; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: color var(--dur-fast) ease;
}
.mega-all-top:hover { color: var(--blue); }

.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 32px; height: 32px;
  background: transparent; border: none; cursor: pointer;
  margin-left: 6px;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav--scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(5,15,42,0.06); }
.nav--scrolled .nav-inner { height: 60px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary {
  background: #fff; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-purple:hover { background: var(--purple-deep); }
.btn-ghost { background: transparent; color: var(--ink); padding: 13px 14px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { font-size: 15px; padding: 16px 26px; }

.arrow {
  display: inline-block;
  width: 13px; height: 13px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease;
}
.btn .arrow, .cta .arrow, .pillar-cta .arrow, .cat-link .arrow { transition: transform .15s ease; }
.btn:hover .arrow, .cta:hover .arrow, .quick-link:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 80px;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hero > .container-wide, .hero > .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-grid.center { grid-template-columns: 1fr; text-align: left; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 32px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--purple); border-radius: 50%; }
.hero-eyebrow .sep { color: var(--gray-muted); }

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 84px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero-title span { display: block; }
.hero-title span.highlight,
.hero-title span span.highlight { display: inline; }
.hero-title .highlight { line-height: inherit; }

.hero-sub {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--gray-text);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--gray-text);
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--f-display);
  display: block;
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
}

/* ---------- Section header ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head .lead { margin: 0; }
.section-head.center {
  display: block; text-align: center;
  max-width: 720px; margin: 0 auto 56px;
}
.section-head.center .lead { margin: 16px auto 0; }
.section-head.center h2.section-title { max-width: none; margin-left: auto; margin-right: auto; }

/* ---------- Placeholders ---------- */

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      #f4f5f5 0 14px,
      #ededed 14px 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray-text);
  font-family: var(--f-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 280px;
  padding: 24px;
  text-align: center;
}
.placeholder .ph-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff; border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.placeholder .ph-label {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
}
.placeholder-dark {
  background:
    repeating-linear-gradient(135deg,
      #0f0f0f 0 14px,
      #131313 14px 28px);
  border-color: #2a2a2a;
  color: rgba(255,255,255,0.6);
}
.placeholder-dark .ph-tag,
.placeholder-dark .ph-label {
  background: #0a0a0a;
  border-color: #2a2a2a;
  color: rgba(255,255,255,0.8);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: #fff;
  padding: 32px 28px 40px;
  position: relative;
}
.step-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--purple);
  background: var(--ink);
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  line-height: 1;
  margin-bottom: 22px;
}
.step h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.step p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Use case grid ---------- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: #fff;
  transition: border-color .15s ease;
}
.usecase:hover { border-color: var(--ink); }
.usecase-icon {
  width: 40px; height: 40px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
}
.usecase h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}
.usecase p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Benefits ---------- */

.benefits {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.benefits-list { display: flex; flex-direction: column; gap: 0; }
.benefit {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.benefit:last-child { border-bottom: none; }
.benefit-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--blue);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}
.benefit h4 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
  letter-spacing: 0;
  color: var(--ink);
}
.benefit p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Demo video ---------- */

.demo-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

/* ---------- Industries ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.industry {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.industry-img {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg,
      #f4f5f5 0 14px,
      #ededed 14px 28px);
  position: relative;
  display: grid; place-items: center;
  color: var(--gray-text);
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.industry-body { padding: 24px 24px 28px; }
.industry .eyebrow { margin-bottom: 12px; font-size: 11px; }
.industry h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.industry p { font-size: 14px; color: var(--gray-text); margin: 0; }

/* ---------- Compare ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare-col { padding: 40px 36px 44px; }
.compare-col.before { background: var(--bg-soft); border-right: 1px solid var(--line); }
.compare-col.after { background: var(--ink); color: #fff; }
.compare-col .tag {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
}
.compare-col.before .tag { color: var(--gray-muted); }
.compare-col.after .tag { color: var(--purple); }
.compare-col h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.compare-col.after h3 { color: #fff; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.compare-col.after .compare-list li { border-bottom-color: rgba(255,255,255,0.08); }
.compare-list li:last-child { border-bottom: none; }
.compare-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  margin-top: 3px;
  font-weight: 700;
}
.compare-col.before .compare-mark { background: #e0e0e0; color: var(--gray-muted); }
.compare-col.after .compare-mark { background: var(--purple); color: var(--ink); }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: #fff; padding: 36px 28px; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 88px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.stat-num .unit { font-size: 0.45em; color: var(--blue); margin-left: 4px; font-weight: 600; }
.stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.4;
}
.stat.featured { background: var(--ink); color: #fff; }
.stat.featured .stat-num { color: #fff; }
.stat.featured .stat-num .unit { color: var(--purple); }
.stat.featured .stat-label { color: rgba(255,255,255,0.7); }

/* ---------- Case studies ---------- */

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
}
.case-img {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg,
      #f4f5f5 0 12px,
      #ededed 12px 24px);
  display: grid; place-items: center;
  color: var(--gray-text);
  font-family: var(--f-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-img .logo-ph {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 500;
}
.case-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.case-meta {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 16px;
  display: flex; justify-content: space-between;
}
.case-meta .industry-tag { color: var(--blue); }
.case h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--ink);
}
.case p { font-size: 14px; color: var(--gray-text); margin: 0 0 20px; }
.case-result {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; gap: 32px;
}
.case-result .big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.case-result .big .unit { color: var(--blue); font-size: 0.55em; margin-left: 2px; font-weight: 600; }
.case-result .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- No brainer block ---------- */

.no-brainer {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 88px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.no-brainer .eyebrow { color: var(--purple); }
.no-brainer .eyebrow::before { background: var(--purple); }
.no-brainer h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 72px);
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
  color: #fff;
  line-height: 0.95;
}
.no-brainer h2 .purple {
  color: var(--purple);
  display: inline;
  line-height: 1.05;
}
.no-brainer p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 50ch;
}
.nb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); border-radius: var(--r-sm); overflow: hidden; }
.nb-stat {
  padding: 24px;
  background: var(--ink);
}
.nb-stat .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--purple);
}
.nb-stat .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ---------- Security ---------- */

.security {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sec-item { background: #fff; padding: 28px 24px; }
.sec-badge {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  display: inline-block;
  margin-bottom: 14px;
}
.sec-item h4 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: 0;
  color: var(--ink);
}
.sec-item p { font-size: 13px; color: var(--gray-text); margin: 0; line-height: 1.55; }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 36px;
  background: #fff;
  display: flex; flex-direction: column;
  position: relative;
}
.price.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-tag {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 20px;
}
.price.featured .price-tag { color: var(--purple); }
.price-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1;
}
.price.featured .price-name { color: #fff; }
.price-amount {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 16px 0 4px;
}
.price-amount .unit {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-muted);
  margin-left: 8px;
}
.price.featured .price-amount .unit { color: rgba(255,255,255,0.6); }
.price-sub { font-size: 13px; color: var(--gray-text); margin-bottom: 28px; }
.price.featured .price-sub { color: rgba(255,255,255,0.6); }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-features li {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  align-items: start;
}
.price.featured .price-features li { border-bottom-color: rgba(255,255,255,0.08); }
.price-features li::before {
  content: '✓';
  color: var(--blue);
  font-size: 13px;
  margin-top: 2px;
}
.price.featured .price-features li::before { color: var(--purple); }
.price .btn-secondary, .price .btn-purple { width: 100%; justify-content: center; }
.featured-ribbon {
  position: absolute; top: -1px; right: 28px;
  background: var(--purple); color: var(--ink);
  font-family: var(--f-body); font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--bg-soft);
  border-radius: var(--r-xl);
  padding: 80px 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: end;
}
.final-cta h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 80px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  margin: 16px 0 16px;
}
.final-cta p { color: var(--gray-text); font-size: 17px; margin: 0; max-width: 48ch; line-height: 1.55; }
.final-cta-form { display: flex; flex-direction: column; gap: 12px; }
.final-cta-form .btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
.final-cta-form .field {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
}
.final-cta-form .field:focus { outline: none; border-color: var(--blue); }
.final-cta-form textarea.field { min-height: 96px; resize: vertical; font-family: inherit; }
.final-cta-note {
  font-size: 12px; color: var(--gray-muted);
  text-align: center; margin-top: 4px;
}

/* ---------- Footer ---------- */

.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h5 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; font-size: 14px; color: var(--gray-text); }
.footer a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--gray-muted);
}

/* ---------- Misc ---------- */

.divider { height: 1px; background: var(--line); margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill.blue { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.pill.purple { background: var(--purple-soft); border-color: var(--purple-soft); color: var(--ink); }
.pill.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tech badges */
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
  letter-spacing: 0.02em;
}

/* ---------- Catalog (Product hub cards) ---------- */

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cat-card {
  background: #fff;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background .15s ease;
  position: relative;
}
.cat-card:hover { background: var(--bg-soft); }
.cat-card.core {
  background: var(--ink);
  color: #fff;
}
.cat-card.core:hover { background: var(--ink-2); }
.cat-card .top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--ink);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.cat-card.core .cat-icon {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--ink);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
}
.cat-card.core .cat-name { color: #fff; }
.cat-name .light { font-weight: 600; opacity: 0.6; }
.cat-card .category {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-top: 4px;
}
.cat-card.core .category { color: var(--purple); }
.cat-card p {
  color: var(--gray-text);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.55;
  flex: 1;
}
.cat-card.core p { color: rgba(255,255,255,0.75); }
.cat-metric {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--blue);
  padding: 6px 10px;
  background: var(--blue-soft);
  border-radius: var(--r-sm);
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}
.cat-card.core .cat-metric { color: var(--purple); background: rgba(124,58,237,0.12); }
.cat-card .cat-link {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-card.core .cat-link { color: var(--purple); }
.cat-card .cat-link .arrow { transition: transform .15s ease; }
.cat-card:hover .cat-link .arrow { transform: translateX(3px); }

.cat-card .badge-core {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--f-body); font-weight: 600;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--purple);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* Product filter pills */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.filter-pill {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Carousels ---------- */

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 1024px) {
  .carousel-track > * { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  .carousel-track > * { flex-basis: 86%; }
}
.carousel-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 32px;
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 24px; height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  border: none; padding: 0;
  cursor: pointer;
  transition: all .15s ease;
}
.carousel-dot.active { background: var(--ink); width: 40px; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .15s ease;
  color: var(--ink);
}
.carousel-arrow:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.carousel-arrow:disabled {
  opacity: 0.3; cursor: not-allowed;
  border-color: var(--line); background: #fff; color: var(--ink);
}
.carousel-progress {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray-muted);
}
.carousel-progress strong { color: var(--ink); font-weight: 700; }

/* Logos marquee */
.logos-marquee {
  overflow: hidden; position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 42s linear infinite;
  align-items: center;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item {
  display: flex; align-items: center;
  padding: 4px 36px;
  border-left: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--gray-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.logo-item:hover { color: var(--ink); }
.logo-item:first-child { border-left: none; }

.logos-marquee--lg { padding: 40px 0; }
.logos-marquee--lg .logo-item {
  padding: 4px 48px;
  font-size: 28px;
}
@media (max-width: 900px) {
  .logos-marquee--lg .logo-item { padding: 4px 28px; font-size: 22px; }
}
.logos-intro {
  text-align: center;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 18px;
}

/* App card for aplicativos carousel */
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.app-card-img {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg,
      #f4f5f5 0 14px,
      #ededed 14px 28px);
  position: relative;
  display: grid; place-items: center;
  color: var(--gray-text);
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-card-img .ph-tag {
  position: absolute; top: 14px; left: 14px;
  background: #fff; border: 1px solid var(--line);
  padding: 4px 8px; border-radius: var(--r-sm);
  font-size: 10px; color: var(--ink-2); font-weight: 500;
}
.app-card-body { padding: 26px 26px 28px; }
.app-card .num {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.app-card h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--ink);
}
.app-card p { font-size: 14px; color: var(--gray-text); margin: 0; line-height: 1.55; }
.app-card .tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}

/* ---------- Hero mockup wrap ---------- */
.hero-mock {
  position: relative;
  aspect-ratio: 1/1;
  min-height: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.hero-mock .ph-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* ============================================================
   Animated diagrams (kept from v1 — re-themed via tokens)
   ============================================================ */

.diagram-wrap {
  margin: 56px 0 0;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at top, rgba(24,95,165,0.04), transparent 60%),
    #fff;
  position: relative;
  overflow: hidden;
}
.diagram-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.diagram-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.diagram-head .label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-muted);
}
.diagram-head .live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.diagram-head .live::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.diagram {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}

.d-node {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 14px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(10,10,10,0.04);
}
.d-node.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-node.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.d-node.purple { background: var(--purple); color: var(--ink); border-color: var(--purple); }
.d-mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--gray-text); }

/* ---------- ORBIT ECOSYSTEM DIAGRAM ---------- */

.orbit-eco {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1/1;
}
.orbit-eco svg { width: 100%; height: 100%; overflow: visible; }
.orbit-line {
  stroke: var(--line);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 0;
  animation: orbitDash 24s linear infinite;
}
@keyframes orbitDash { to { stroke-dashoffset: -200; } }
.orbit-line.active { stroke: var(--purple); }
.orbit-hub-node {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 2;
}
.orbit-hub-text {
  fill: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-anchor: middle;
}
.orbit-hub-text.acc { fill: var(--purple); font-weight: 700; font-size: 14px; }
.orbit-pulse {
  fill: var(--blue);
  opacity: 0.18;
  transform-origin: center;
  animation: orbitPulse 2.4s ease-out infinite;
}
@keyframes orbitPulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.orbit-sat {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  transition: all .2s ease;
  cursor: pointer;
}
.orbit-sat:hover { stroke: var(--purple); stroke-width: 2.5; }
.orbit-sat.active { stroke: var(--purple); stroke-width: 2.5; }
.orbit-sat-text {
  fill: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-anchor: middle;
  pointer-events: none;
}
.orbit-sat-cat {
  fill: var(--gray-muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 9px;
  text-anchor: middle;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-transform: uppercase;
}
.orbit-sat-fade {
  opacity: 0;
  animation: orbitFadeIn 0.6s ease forwards;
}

@keyframes orbitFadeIn {
  to { opacity: 1; }
}

/* ---------- Diagram: orbit-assist (chat) ---------- */
.d-assist {
  width: 100%; max-width: 760px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
}
.d-assist .phone {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 22px 18px;
  box-shadow: 0 16px 48px rgba(10,10,10,0.06);
}
.d-assist .phone-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.d-assist .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink); color: var(--purple);
  display: grid; place-items: center;
  font-family: var(--f-body); font-size: 11px; font-weight: 700;
}
.d-assist .name { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--ink); }
.d-assist .status {
  margin-left: auto;
  font-family: var(--f-body); font-size: 11px; color: var(--ok);
  display: flex; align-items: center; gap: 6px;
}
.d-assist .status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--ok); border-radius: 50%;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  opacity: 0;
  animation: bubbleIn 6s ease forwards infinite;
}
.bubble.user { background: var(--bg-soft); color: var(--ink); border-bottom-right-radius: 4px; margin-left: auto; }
.bubble.bot { background: var(--ink); color: #fff; border-bottom-left-radius: 4px; }
.bubble.bot .dots { display: inline-flex; gap: 4px; }
.bubble.bot .dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: dotPulse 1s ease-in-out infinite;
}
.bubble.bot .dots span:nth-child(2) { animation-delay: 0.15s; }
.bubble.bot .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.bubble:nth-child(2) { animation-delay: 0.4s; }
.bubble:nth-child(3) { animation-delay: 1.6s; }
.bubble:nth-child(4) { animation-delay: 2.6s; }
.bubble:nth-child(5) { animation-delay: 3.6s; }
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(8px); }
  8%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
.d-assist .side { display: flex; flex-direction: column; gap: 14px; }
.d-pill {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 16px;
  font-family: var(--f-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.02em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content; opacity: 0;
  animation: slideUp 6s ease forwards infinite;
}
.d-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.d-pill.emotion::before { background: var(--purple); }
.d-pill.escalate { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-pill.escalate::before { background: var(--purple); }
.d-pill:nth-child(1) { animation-delay: 0.6s; }
.d-pill:nth-child(2) { animation-delay: 2s; }
.d-pill:nth-child(3) { animation-delay: 3.4s; }
@keyframes slideUp {
  0% { opacity: 0; transform: translateX(-12px); }
  10%, 88% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}

/* ---------- Diagram: orbit-mail (inbox → case) ---------- */
.d-mailroom {
  width: 100%; max-width: 820px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px; align-items: center;
}
.d-mail {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 16px; position: relative;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(10,10,10,0.04);
}
.d-mail.stack::before, .d-mail.stack::after {
  content: ''; position: absolute; inset: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  z-index: -1;
}
.d-mail.stack::before { transform: translate(6px, 6px); opacity: 0.5; }
.d-mail.stack::after { transform: translate(12px, 12px); opacity: 0.25; }
.d-mail .from { font-family: var(--f-body); font-size: 10px; color: var(--gray-muted); }
.d-mail .subj { font-weight: 700; margin: 4px 0 6px; font-size: 12px; color: var(--ink); }
.d-mail .body { color: var(--gray-text); font-size: 11px; line-height: 1.4; }
.d-mail .attach {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 10px;
  color: var(--blue); font-weight: 600;
}
.d-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--blue); }
.d-arrow svg { width: 28px; height: 14px; }
.d-arrow .lbl {
  font-family: var(--f-body); font-weight: 500; font-size: 10px;
  color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.08em;
}
.d-arrow .lbl strong { color: var(--blue); font-weight: 700; }
.d-classify {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 14px;
  font-size: 11px;
}
.d-classify .ttl { color: var(--gray-text); margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.d-classify .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
}
.d-classify .row span:first-child { color: var(--ink); }
.d-classify .bar {
  width: 60px; height: 4px; background: var(--bg-soft); border-radius: 2px;
  position: relative; overflow: hidden;
}
.d-classify .bar::after {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform-origin: left;
  animation: barFill 4s ease-in-out infinite;
}
.d-classify .row:nth-child(2) .bar::after { background: var(--purple); transform: scaleX(0.92); animation-delay: 0.2s; }
.d-classify .row:nth-child(3) .bar::after { transform: scaleX(0.18); animation-delay: 0.4s; }
.d-classify .row:nth-child(4) .bar::after { transform: scaleX(0.08); animation-delay: 0.6s; }
@keyframes barFill {
  0% { transform: scaleX(0); }
  40%, 100% { /* stays */ }
}
.d-case {
  background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 14px;
  font-family: var(--f-body); font-size: 11px;
}
.d-case .ttl {
  letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 8px;
  text-transform: uppercase; font-size: 10px; font-weight: 500;
}
.d-case .id { color: var(--purple); font-weight: 700; }
.d-case .row { display: flex; justify-content: space-between; padding: 4px 0; }
.d-case .row span:first-child { opacity: 0.6; }

/* ---------- Diagram: orbit-vision (scan) ---------- */
.d-ocr {
  width: 100%; max-width: 780px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
}
.d-doc {
  position: relative; background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 24px 20px;
  aspect-ratio: 3/4; overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,10,10,0.06);
}
.d-doc .hdr {
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0; color: var(--ink); margin-bottom: 10px;
}
.d-doc .line { height: 5px; background: var(--bg-soft); border-radius: 2px; margin-bottom: 8px; }
.d-doc .line.s60 { width: 60%; }
.d-doc .line.s40 { width: 40%; }
.d-doc .line.s90 { width: 90%; }
.d-doc .line.s75 { width: 75%; }
.d-doc .field {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 9px;
  color: var(--blue); font-weight: 600;
  margin: 12px 0 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.d-doc .field-val {
  font-family: var(--f-body); font-size: 12px;
  color: var(--ink); font-weight: 600;
  padding: 5px 8px; background: var(--blue-soft);
  border-radius: var(--r-sm); display: inline-block;
  position: relative; opacity: 0;
  animation: fieldPop 5s ease infinite;
}
.d-doc .field-val:nth-of-type(1) { animation-delay: 1.3s; }
.d-doc .field-val:nth-of-type(2) { animation-delay: 1.8s; }
.d-doc .field-val:nth-of-type(3) { animation-delay: 2.3s; }
@keyframes fieldPop {
  0%, 20% { opacity: 0; transform: scale(0.9); }
  30%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}
.d-doc .scanline {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  box-shadow: 0 0 16px var(--purple), 0 0 32px var(--purple);
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  10%, 75% { opacity: 1; }
  100% { transform: translateY(420px); opacity: 0; }
}
.d-output {
  background: var(--ink); border-radius: var(--r);
  padding: 20px;
  font-family: var(--f-mono); font-size: 11px;
  color: #fff; line-height: 1.7;
}
.d-output .key { color: var(--purple); }
.d-output .str { color: #93c5fd; }
.d-output .num { color: #fbbf24; }
.d-output .row { opacity: 0; animation: typeIn 5s ease infinite; }
.d-output .row:nth-child(1) { animation-delay: 0.6s; }
.d-output .row:nth-child(2) { animation-delay: 1.4s; }
.d-output .row:nth-child(3) { animation-delay: 1.9s; }
.d-output .row:nth-child(4) { animation-delay: 2.4s; }
.d-output .row:nth-child(5) { animation-delay: 2.9s; }
.d-output .row:nth-child(6) { animation-delay: 3.4s; }
@keyframes typeIn {
  0%, 10% { opacity: 0; transform: translateX(-6px); }
  20%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
.d-output .conf {
  display: inline-block; margin-left: 8px;
  background: rgba(124,58,237,0.16); color: var(--purple);
  padding: 1px 6px; border-radius: 3px; font-size: 9px;
}

/* ---------- Diagram: orbit-trace (timeline) ---------- */
.d-trace { width: 100%; max-width: 600px; position: relative; }
.d-trace::before {
  content: ''; position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
.d-trace-event {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  margin-bottom: 16px;
  align-items: center;
  opacity: 0;
  animation: traceIn 7s ease infinite;
}
.d-trace-event:nth-child(1) { animation-delay: 0.2s; }
.d-trace-event:nth-child(2) { animation-delay: 1.4s; }
.d-trace-event:nth-child(3) { animation-delay: 2.6s; }
.d-trace-event:nth-child(4) { animation-delay: 3.8s; }
.d-trace-event:nth-child(5) { animation-delay: 5.0s; }
@keyframes traceIn {
  0%, 5% { opacity: 0; transform: translateX(-8px); }
  15%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
.d-trace-dot {
  width: 44px; height: 44px;
  background: #fff; border: 2px solid var(--blue);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--blue); position: relative; z-index: 1;
}
.d-trace-event:last-child .d-trace-dot {
  background: var(--purple); border-color: var(--purple); color: var(--ink);
}
.d-trace-card {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 4px 12px rgba(10,10,10,0.04);
}
.d-trace-card .ttl { font-weight: 600; font-size: 13px; color: var(--ink); }
.d-trace-card .ts {
  font-family: var(--f-mono); font-size: 10px; color: var(--gray-muted);
  letter-spacing: 0.04em;
}
.d-trace-card .hash {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 6px; border-radius: var(--r-sm);
  margin-top: 4px; display: inline-block;
}

/* ---------- Diagram: orbit-catalog (fan out) ---------- */
.d-catalog {
  width: 100%; max-width: 800px;
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 24px; align-items: center;
}
.d-input-vehicle {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 20px;
  box-shadow: 0 8px 24px rgba(10,10,10,0.06);
}
.d-input-vehicle .lbl {
  font-family: var(--f-body); font-weight: 500; font-size: 10px;
  letter-spacing: 0.08em; color: var(--gray-muted);
  margin-bottom: 8px; text-transform: uppercase;
}
.d-input-vehicle .text {
  font-family: var(--f-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.005em; color: var(--ink); margin-bottom: 4px; line-height: 1;
}
.d-input-vehicle .meta { font-size: 12px; color: var(--gray-text); }
.d-fan { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.d-fan svg { width: 100%; height: 100%; overflow: visible; }
.d-fan-line {
  stroke: var(--blue); stroke-width: 1.5; fill: none;
  stroke-dasharray: 4 4; stroke-dashoffset: 0;
  animation: dashFlow 1.6s linear infinite;
  opacity: 0.6;
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
.d-asegs { display: flex; flex-direction: column; gap: 8px; }
.d-aseg {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0;
  animation: asegIn 4s ease infinite;
}
.d-aseg:nth-child(1) { animation-delay: 0.4s; }
.d-aseg:nth-child(2) { animation-delay: 0.7s; }
.d-aseg:nth-child(3) { animation-delay: 1.0s; }
.d-aseg:nth-child(4) { animation-delay: 1.3s; }
.d-aseg:nth-child(5) { animation-delay: 1.6s; }
@keyframes asegIn {
  0% { opacity: 0; transform: translateX(8px); }
  20%, 90% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
.d-aseg .name { font-weight: 600; color: var(--ink); }
.d-aseg .code {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--blue); background: var(--blue-soft);
  padding: 2px 6px; border-radius: 3px;
}
.d-aseg .score { font-family: var(--f-mono); font-size: 10px; color: var(--ok); }
.d-aseg:last-child .code { background: var(--purple); color: var(--ink); }

/* ---------- Diagram: orbit-hub (network) ---------- */
.d-orbit { width: 100%; max-width: 600px; height: 360px; position: relative; }
.d-orbit svg { width: 100%; height: 100%; overflow: visible; }
.d-orbit-node {
  fill: #fff; stroke: var(--line-strong); stroke-width: 1.5;
}
.d-orbit-node.active { fill: var(--ink); stroke: var(--ink); }
.d-orbit-node.purple { fill: var(--purple); stroke: var(--purple); }
.d-orbit-edge { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.d-orbit-edge.active {
  stroke: var(--blue); stroke-dasharray: 4 4;
  animation: dashFlow 1.4s linear infinite;
}
.d-orbit text {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 10px;
  letter-spacing: 0.02em; fill: var(--ink); text-anchor: middle;
}
.d-orbit text.lbl-light { fill: #fff; }
.d-orbit .center-pulse {
  fill: var(--blue); opacity: 0.15;
  animation: pulseRing 2s ease-out infinite;
  transform-origin: center;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* ---------- Diagram: orbit-code (knowledge graph) ---------- */
.d-knowledge {
  width: 100%; max-width: 720px;
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 24px; align-items: center;
}
.d-source-list {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 16px;
}
.d-source-list .ttl {
  font-family: var(--f-body); font-weight: 500; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-muted); margin-bottom: 12px;
}
.d-source-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink);
}
.d-source-item:last-child { border-bottom: none; }
.d-source-item .ico {
  width: 24px; height: 24px;
  background: var(--bg-soft); border-radius: 4px;
  display: grid; place-items: center;
  color: var(--blue);
}
.d-source-item .name { flex: 1; font-weight: 500; }
.d-source-item .status {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ok); display: flex; align-items: center; gap: 4px;
}
.d-source-item .status::before {
  content: ''; width: 5px; height: 5px;
  background: var(--ok); border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
.d-knowledge .answer {
  background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 18px;
}
.d-knowledge .answer .q {
  font-family: var(--f-body); font-weight: 500;
  font-size: 11px; color: var(--purple);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.d-knowledge .answer .text {
  font-size: 13px; line-height: 1.5; margin-bottom: 14px;
}
.d-knowledge .answer .sources {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);
}
.d-knowledge .answer .src-pill {
  font-family: var(--f-mono); font-size: 9px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 3px 7px; border-radius: 3px;
}

/* ---------- Diagram: orbit-connect (API bridge) ---------- */
.d-connect {
  width: 100%; max-width: 820px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px; align-items: center;
}
.d-stack {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 16px;
  text-align: center; font-size: 12px;
}
.d-stack .icon {
  width: 40px; height: 40px; margin: 0 auto 10px;
  background: var(--bg-soft); border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--blue);
}
.d-stack .ttl {
  font-family: var(--f-body); font-weight: 600;
  font-size: 14px; color: var(--ink); margin-bottom: 4px;
}
.d-stack .sub {
  font-family: var(--f-body); font-weight: 500; font-size: 10px;
  color: var(--gray-muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.d-stack.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-stack.dark .ttl { color: #fff; }
.d-stack.dark .icon { background: rgba(255,255,255,0.08); color: var(--purple); }
.d-stack.dark .sub { color: rgba(255,255,255,0.6); }
.d-flow { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.d-flow-pkt {
  height: 3px; width: 40px;
  background: var(--blue); border-radius: 2px;
  animation: pktFlow 2s ease-in-out infinite;
}
.d-flow-pkt:nth-child(2) { animation-delay: 0.3s; background: var(--ink); }
.d-flow-pkt:nth-child(3) { animation-delay: 0.6s; background: var(--purple); }
@keyframes pktFlow {
  0% { transform: translateX(-30px); opacity: 0; }
  40%, 60% { opacity: 1; }
  100% { transform: translateX(30px); opacity: 0; }
}

/* ---------- Diagram: orbit-search (search results) ---------- */
.d-search {
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column; gap: 12px;
}
.d-search-bar {
  background: #fff; border: 2px solid var(--ink);
  border-radius: var(--r); padding: 14px 18px;
  display: flex; gap: 12px; align-items: center;
  font-family: var(--f-mono); font-size: 13px;
}
.d-search-bar .ico { color: var(--gray-muted); }
.d-search-bar .typed { color: var(--ink); position: relative; }
.d-search-bar .typed::after {
  content: '|';
  color: var(--blue);
  animation: caret 0.8s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.d-search-meta {
  font-family: var(--f-body); font-size: 11px;
  color: var(--gray-muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.d-search-meta strong { color: var(--ink); font-weight: 700; }
.d-search-result {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 18px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  opacity: 0;
  animation: searchIn 5s ease infinite;
}
.d-search-result:nth-child(3) { animation-delay: 0.4s; }
.d-search-result:nth-child(4) { animation-delay: 0.7s; }
.d-search-result:nth-child(5) { animation-delay: 1.0s; }
@keyframes searchIn {
  0%, 5% { opacity: 0; transform: translateY(6px); }
  15%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}
.d-search-result .ref {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--blue); background: var(--blue-soft);
  padding: 4px 8px; border-radius: var(--r-sm);
}
.d-search-result .desc { font-size: 13px; color: var(--ink); font-weight: 500; }
.d-search-result .ts {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--gray-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bubble, .d-pill, .field-val, .d-output .row,
  .d-trace-event, .d-aseg, .d-flow-pkt,
  .d-classify .bar::after, .scanline,
  .center-pulse, .logos-track, .orbit-line,
  .d-orbit-edge.active, .d-search-result, .orbit-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid, .benefits, .section-head,
  .no-brainer, .final-cta, .d-assist, .d-ocr,
  .d-catalog, .d-knowledge { grid-template-columns: 1fr; gap: 40px; }
  .steps, .usecase-grid, .industries,
  .cases, .pricing, .security, .catalog,
  .stats, .nb-stats, .footer-grid, .compare,
  .d-mailroom, .d-connect { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .no-brainer, .final-cta { padding: 48px 28px; }
  .steps, .usecase-grid, .industries,
  .cases, .pricing, .security, .catalog,
  .stats, .nb-stats, .footer-grid, .compare,
  .d-mailroom, .d-connect { grid-template-columns: 1fr; }

  .nav-burger { display: flex; }
  .nav-cta .lang-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 60px; left: 0; right: 0;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(5,15,42,0.10);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-item { height: auto; display: block; }
  .nav-top { height: auto; width: 100%; padding: 14px var(--gutter); justify-content: space-between; }
  .mega-panel {
    position: static;
    min-width: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-soft);
    display: none;
    padding: 4px var(--gutter) 10px;
  }
  .nav-item.has-mega.open .mega-panel { display: block; transform: none; left: auto; }
  .mega-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.97);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================================================
   Corporate home additions: globe, numbered list, pills
   ========================================================= */

/* Globe / Presencia global card (hero right side) */
.globe-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: var(--r-xl);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
}
.globe-label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.globe-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 220px;
}
.globe-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}
.globe-orbit {
  animation: globeOrbitSpin 30s linear infinite;
  transform-origin: 200px 200px;
}
.globe-orbit-2 { animation-duration: 42s; animation-direction: reverse; }
@keyframes globeOrbitSpin {
  to { transform: rotate(360deg); transform-origin: 200px 200px; }
}
.city-pulse {
  animation: cityPulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes cityPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(5); opacity: 0; }
}
.globe-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.globe-city {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.globe-city .flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.globe-city .city-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
}
.globe-city .city-meta {
  font-family: var(--f-body);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Make hero grid match globe card */
.hero-grid.with-globe > div:first-child { padding-right: 0; }

/* Numbered list (PPT-style, lima outlined numbers) */
.numbered-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.num-item {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: block;
  background: #fff;
  transition: background .15s ease;
}
.num-item:hover { background: var(--bg-soft); }
.num-item .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--purple);
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.num-item h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: 0;
}
.num-item .num-tag {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-muted);
  text-transform: uppercase;
}
.num-item p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}

/* Segment pills (Aseguradoras, Bancos, etc.) */
.segment-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all .15s ease;
}
.segment-pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.segment-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* Purple accent inside no-brainer */
.no-brainer h2 .purple {
  color: var(--purple);
  display: inline;
  line-height: 1.05;
}

/* ---------- Timeline (Nosotros) ---------- */

.timeline {
  position: relative;
  padding: 32px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--line);
}
.timeline-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
  padding: 0 24px;
}
.timeline-track::-webkit-scrollbar { display: none; }
.timeline-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  position: relative;
  padding: 0 16px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.timeline-item .year {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  text-align: center;
}
.timeline-item .dot {
  width: 14px; height: 14px;
  background: var(--purple);
  border: 3px solid #fff;
  border-radius: 50%;
  margin: 16px auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.timeline-item.featured .dot {
  background: var(--ink);
  width: 20px; height: 20px;
  margin: 13px auto;
}
.timeline-item .body {
  text-align: center;
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
  margin-top: 4px;
}
.timeline-item .body strong {
  display: block;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Home timeline block (stat cards + location ribbon + zigzag timeline) */
/* La fila de stats del timeline es la banda de cifras del kit (ver capa v4 al final);
   aquí solo el respiro hacia las oficinas. */
.tl-stats-row { margin-bottom: clamp(48px, 6vw, 72px); }

.tl-locations { display: flex; align-items: flex-start; gap: 0; margin-bottom: 64px; padding: 8px 0; }
.tl-loc { flex: 1; text-align: center; padding: 0 12px; }
.tl-loc .flag { font-size: 22px; }
.tl-loc .city { font-family: var(--f-body); font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 8px; }
.tl-loc .addr { font-family: var(--f-body); font-size: 12px; color: var(--gray-muted); margin-top: 4px; line-height: 1.5; }
.tl-loc-sep { flex: 0 0 auto; width: 60px; height: 1px; background: var(--line-strong); margin-top: 30px; position: relative; }
.tl-loc-sep::before, .tl-loc-sep::after {
  content: ''; position: absolute; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.tl-loc-sep::before { left: -3px; }
.tl-loc-sep::after { right: -3px; }

/* rc-tl-grid: static, no-scroll timeline grid — brand blue, no library */
.rc-tl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 8px;
}
.rc-tl-card {
  background: #fff;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s ease;
}
.rc-tl-card:hover { background: var(--blue-soft); }
.rc-tl-year {
  font-family: var(--f-display); font-weight: 700; font-size: 22px;
  color: var(--blue); line-height: 1;
}
.rc-tl-card p {
  font-family: var(--f-body); font-weight: 500; font-size: 13px;
  color: var(--ink); line-height: 1.45; margin: 0;
}
.rc-tl-card.rc-tl-featured { background: var(--ink); grid-column: span 2; justify-content: center; }
.rc-tl-card.rc-tl-featured .rc-tl-year { color: var(--cyan); font-size: 30px; }
.rc-tl-card.rc-tl-featured p { color: rgba(255,255,255,0.92); font-size: 15px; }
@media (max-width: 900px) {
  .rc-tl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .rc-tl-grid { grid-template-columns: 1fr; }
  .rc-tl-card.rc-tl-featured { grid-column: auto; }
}

@media (max-width: 720px) {
  .tl-locations { flex-wrap: wrap; }
  .tl-loc-sep { display: none; }
}

/* Offices grid */
.offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.office {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.office .flag {
  font-size: 28px;
  width: 48px; height: 48px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.office .city {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.office .country {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.office .addr {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.55;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.team-member {
  background: #fff;
  padding: 24px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 18px;
}
.team-member.lead .team-avatar { background: var(--ink); color: var(--purple); border-color: var(--ink); }
.team-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 2px;
}
.team-role {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--gray-text);
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Responsive tweaks for new components */
@media (max-width: 1024px) {
  .numbered-list { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .globe-cities { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .numbered-list { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .num-item .num { font-size: 56px; }
}


/* =========================================================
   v3: Bubble cluster diagram (Productos intro)
   ========================================================= */

.bubble-cluster {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at center, rgba(124,58,237,0.06), transparent 65%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.bubble-cluster svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bc-cluster {
  fill: rgba(124,58,237,0.10);
  stroke: var(--purple-deep);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.bc-bubble {
  fill: #fff;
  stroke: var(--green-dark);
  stroke-width: 1.5;
  opacity: 0;
  animation: bcFadeIn 0.6s ease forwards;
}
.bc-bubble-text {
  fill: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
  opacity: 0;
  animation: bcFadeIn 0.6s ease forwards;
}
.bc-line {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.5;
}
.bc-core {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 2;
}
.bc-core-text {
  fill: var(--purple);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.bc-core-sub {
  fill: rgba(255,255,255,0.7);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  text-anchor: middle;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bc-cluster-label {
  fill: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-anchor: middle;
}
.bc-cluster-pulse {
  fill: var(--blue);
  opacity: 0.15;
  transform-origin: center;
  animation: bcPulse 2.5s ease-out infinite;
}
@keyframes bcPulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes bcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   v3: Methodology funnel (Servicios)
   ========================================================= */

.funnel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 12 / 5;
  background:
    radial-gradient(ellipse at center, rgba(24,95,165,0.04), transparent 70%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 24px;
}
.funnel svg { width: 100%; height: 100%; display: block; overflow: visible; }
.funnel-cone {
  fill: url(#funnelGradient);
  stroke: var(--blue);
  stroke-width: 1.5;
  opacity: 0.85;
}
.funnel-cone-2 {
  fill: url(#funnelGradient2);
  stroke: var(--ink);
  stroke-width: 1.5;
  opacity: 0.5;
}
.funnel-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.funnel-phase {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: 0;
}
.funnel-side-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.funnel-side-cap {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  fill: var(--gray-muted);
  text-anchor: middle;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.funnel-bullet {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  fill: var(--ink);
}
.funnel-dot {
  fill: var(--blue);
  r: 4;
  opacity: 0;
  animation: bcFadeIn 0.6s ease forwards;
}
.funnel-dot.ink { fill: var(--ink); }
.funnel-bullet-line {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.funnel-flow {
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: dashFlow 1.8s linear infinite;
}

/* =========================================================
   v3: Editorial / section-per-service layouts
   ========================================================= */

.service-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.service-section.dark {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--ink);
}
.service-section.dark h2,
.service-section.dark h3 { color: #fff; }
.service-section.dark .eyebrow { color: var(--purple); }
.service-section.dark .eyebrow::before { background: var(--purple); }
.service-section.soft { background: var(--bg-soft); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.service-block.flip { grid-template-columns: 1.25fr 1fr; }
.service-block .left .num-huge {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin: 0 0 12px;
}
.service-block .left .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 20px;
}
.service-block.dark .left .name { color: #fff; }
.service-block.dark .left .num-huge { -webkit-text-stroke-color: var(--purple); }
.service-block .left .pitch {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-text);
  max-width: 44ch;
  margin: 0 0 28px;
}
.service-block.dark .left .pitch { color: rgba(255,255,255,0.75); }
.service-block .left .cta {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  padding-top: 12px;
  border-top: 2px solid var(--purple);
}
.service-block.dark .left .cta { color: var(--purple); }

.service-block .right { padding-top: 20px; }
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.svc-detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.service-block.dark .svc-detail { border-bottom-color: rgba(255,255,255,0.1); }
.svc-detail:last-child { border-bottom: none; }
.svc-detail-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.06em;
  font-weight: 600;
  padding-top: 2px;
}
.service-block.dark .svc-detail-num { color: var(--purple); }
.svc-detail h4 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: 0;
}
.service-block.dark .svc-detail h4 { color: #fff; }
.svc-detail p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.55;
}
.service-block.dark .svc-detail p { color: rgba(255,255,255,0.65); }

.svc-result {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--purple);
}
.service-block.dark .svc-result {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--purple);
}
.svc-result .label {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.service-block.dark .svc-result .label { color: rgba(255,255,255,0.5); }
.svc-result .value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.service-block.dark .svc-result .value { color: #fff; }
.svc-result .value strong { color: var(--blue); }
.service-block.dark .svc-result .value strong { color: var(--purple); }

/* Quick service nav (sticky pills under hero on Servicios) */
.quick-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.quick-nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.quick-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: all .15s ease;
  flex-shrink: 0;
}
.quick-link:hover { border-color: var(--ink); background: var(--bg-soft); }
.quick-link .qn-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--purple-deep);
}

/* Agnostic stack section */
.agnostic-band {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}
.agnostic-pitch {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.agnostic-pitch .strike {
  position: relative;
  color: var(--gray-muted);
}
.agnostic-pitch .strike::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  top: 52%;
  height: 4px;
  background: var(--purple);
  transform: rotate(-2deg);
}
.agnostic-pitch em {
  font-style: normal;
  background: var(--purple);
  padding: 0 8px;
  display: inline;
  line-height: 1.05;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.agnostic-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.agnostic-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.agnostic-row:first-child { border-top: 1px solid var(--line); }
.agnostic-row .layer {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}
.agnostic-row .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agnostic-row .tool {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
}
.agnostic-row .tool.plus {
  color: var(--gray-muted);
  border-style: dashed;
}

/* Big number callout (editorial accent) */
.callout-number {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.callout-number .n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.callout-number .n .unit {
  font-size: 0.4em;
  color: var(--blue);
  vertical-align: super;
  margin-left: 4px;
}
.callout-number .txt h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 12px;
}
.callout-number .txt p {
  font-size: 16px;
  color: var(--gray-text);
  margin: 0;
  max-width: 52ch;
}

/* Capability cluster cards (Productos page) */
.capability-clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap-cluster {
  border: 1.5px dashed var(--purple-deep);
  border-radius: var(--r-lg);
  background: rgba(124,58,237, 0.05);
  padding: 28px 24px 28px;
  position: relative;
}
.cap-cluster h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1;
}
.cap-cluster p {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0 0 18px;
  line-height: 1.55;
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-list li {
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cap-list li a {
  color: var(--ink);
  font-weight: 600;
}
.cap-list li a:hover { color: var(--blue); }
.cap-list li .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gray-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .service-block,
  .service-block.flip { grid-template-columns: 1fr; gap: 32px; }
  .agnostic-band { grid-template-columns: 1fr; }
  .capability-clusters { grid-template-columns: 1fr; }
  .callout-number { grid-template-columns: 1fr; gap: 24px; }
}


/* =========================================================
   v4: Editorial hero card (replaces globe)
   ========================================================= */

.glance-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.05;
  min-height: 460px;
}
.glance-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: var(--blue);
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.glance-card::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 280px; height: 280px;
  background: var(--purple);
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}
.glance-eyebrow {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.glance-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
.glance-year {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(120px, 13vw, 188px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin: 12px 0 4px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.glance-year .accent {
  color: var(--purple);
}
.glance-tag {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin-top: 8px;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}
.glance-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.glance-fact {
  background: var(--ink);
  padding: 18px 18px;
}
.glance-fact .n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.glance-fact .n .unit {
  font-size: 14px;
  color: var(--purple);
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 500;
}
.glance-fact .lbl {
  margin-top: 6px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.glance-divider {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}
.glance-cities {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  line-height: 1.55;
}
.glance-cities .sep { color: var(--purple); margin: 0 6px; }
.glance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.glance-badge::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--purple);
}

/* =========================================================
   v4: Quiénes somos section (editorial intro)
   ========================================================= */

.about-band {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 96px;
  align-items: start;
}
.about-band .left .eyebrow { margin-bottom: 18px; }
.about-band .left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.2vw, 72px);
  letter-spacing: -0.015em;
  line-height: 0.96;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 18ch;
}
.about-band .left p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-text);
  margin: 0 0 28px;
  max-width: 48ch;
}
.about-band .left a.btn {
  margin-top: 4px;
}
.about-moments {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-moment {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.about-moment:last-child {
  border-bottom: 1px solid var(--line);
}
.about-moment .yr {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.about-moment.now .yr {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple);
}
.about-moment .what {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
.about-moment .what em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  color: var(--gray-text);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .about-band { grid-template-columns: 1fr; gap: 40px; }
  .glance-card { aspect-ratio: auto; min-height: 360px; }
  .glance-facts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .glance-facts { grid-template-columns: 1fr 1fr; }
  .about-moment { grid-template-columns: 72px 1fr; }
  .about-moment .yr { font-size: 32px; }
}


/* =========================================================
   v5: Hero single column (no side card)
   ========================================================= */

.hero-single {
  text-align: left;
  max-width: 1080px;
}
.hero-single .hero-title {
  font-size: clamp(42px, 6vw, 92px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 36px;
}
.hero-single .hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  max-width: 60ch;
  margin-bottom: 40px;
}

/* Visual marker row below hero (subtle anchor strip) */
.hero-marker-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--gray-text);
  align-items: center;
}
.hero-marker-row .group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.hero-marker-row .group strong {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.hero-marker-row .sep {
  width: 1px;
  height: 24px;
  background: var(--line);
}

/* Hero network diagram (home hero, right side) */
.hero-network-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero-network {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-network-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-network-lines line { stroke: var(--line-strong); stroke-width: 1.5; }
.hero-network-core {
  position: absolute; left: 50%; top: 50%;
  width: 90px; height: 90px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, var(--cyan), var(--blue) 55%, var(--purple) 100%);
  box-shadow: 0 0 0 16px var(--blue-soft), 0 20px 50px rgba(124, 58, 237, 0.35);
  animation: heroCorePulse 3.2s ease-in-out infinite;
}
@keyframes heroCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
.hero-network-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow-sm, 0 8px 20px rgba(11,15,25,0.08));
  animation: heroNodeFloat 5s ease-in-out infinite;
}
.hero-network-node:nth-child(odd) { animation-delay: -1.5s; }
@keyframes heroNodeFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@media (max-width: 1024px) {
  .hero-network-grid { grid-template-columns: 1fr; }
  .hero-network { max-width: 380px; margin-top: 32px; }
}
@media (max-width: 720px) {
  .hero-network { display: none; }
}

/* =========================================================
   v5: Segments carousel (Para quién construimos)
   ========================================================= */

.seg-carousel-wrap {
  position: relative;
  padding: 32px 0;
  overflow: hidden;
}
.seg-carousel-wrap::before,
.seg-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 480px);
  min-width: 80px;
  height: 360px;
  transform: translateY(-50%);
  border: 1.5px dashed rgba(124,58,237, 0.5);
  pointer-events: none;
  z-index: 0;
}
.seg-carousel-wrap::before {
  left: 0;
  border-right: none;
  border-radius: 8px 0 0 8px;
}
.seg-carousel-wrap::after {
  right: 0;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.seg-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 16px 24px 16px;
  position: relative;
  z-index: 1;
}
.seg-track::-webkit-scrollbar { display: none; }

.seg-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(10,10,10,0.04);
}
.seg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,10,10,0.10);
}
.seg-card .ico {
  width: 44px; height: 44px;
  border: 1.5px solid var(--purple-deep);
  color: var(--green-dark);
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: #fff;
}
.seg-card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--green-dark);
  margin: 0 0 12px;
}
.seg-card .keyp {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(10,10,10,0.04);
}
.seg-card p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.55;
  margin: 0;
}

/* Featured (middle highlighted) — solid purple */
.seg-card.featured {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--ink);
}
.seg-card.featured .ico {
  background: rgba(255,255,255,0.4);
  border-color: var(--ink);
  color: var(--ink);
}
.seg-card.featured h3 {
  color: var(--ink);
  font-size: 30px;
}
.seg-card.featured .keyp {
  background: #fff;
  border-color: #fff;
}
.seg-card.featured p {
  color: rgba(10,10,10,0.75);
  font-weight: 500;
}

.seg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}
.seg-nav .arrows { display: flex; gap: 10px; }

@media (max-width: 720px) {
  .seg-card { flex-basis: 78%; }
  .hero-marker-row .sep { display: none; }
  .hero-marker-row { gap: 20px; }
}


/* =========================================================
   v6: Boost orbit-code + orbit-search animations
   ========================================================= */

/* orbit-code: thinking dots + typewriter answer */
.d-knowledge .text.typewriter {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.45;
  position: relative;
}
.d-knowledge .text.typewriter::after {
  content: '|';
  color: var(--purple);
  animation: caret 0.8s steps(2) infinite;
  margin-left: 2px;
}
.d-knowledge .answer-body {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
  line-height: 1.5;
  position: relative;
  min-height: 48px;
}
.d-knowledge .thinking-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 18px;
  opacity: 1;
  animation: dotsFade 7s linear infinite;
}
.d-knowledge .thinking-dots span {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: dotPulse 1s ease-in-out infinite;
}
.d-knowledge .thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.d-knowledge .thinking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotsFade {
  0%, 25% { opacity: 1; }
  30%, 100% { opacity: 0; display: none; }
}
.d-knowledge .answer-text {
  display: inline-block;
  opacity: 0;
  animation: answerReveal 7s linear infinite;
}
@keyframes answerReveal {
  0%, 28% { opacity: 0; transform: translateY(4px); }
  35%, 95% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}
.d-knowledge .sources {
  opacity: 0;
  animation: answerReveal 7s linear infinite;
  animation-delay: 0.6s;
}
.d-knowledge .d-source-item {
  opacity: 0;
  animation: sourceAppear 7s ease-in-out infinite;
}
@keyframes sourceAppear {
  0%, 5% { opacity: 0; transform: translateX(-6px); }
  15%, 95% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0.5; }
}
.d-knowledge .d-source-item:nth-child(2) { animation-delay: 0.1s; }
.d-knowledge .d-source-item:nth-child(3) { animation-delay: 0.3s; }
.d-knowledge .d-source-item:nth-child(4) { animation-delay: 0.5s; }
.d-knowledge .d-source-item:nth-child(5) { animation-delay: 0.7s; }
.d-knowledge-pulse {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(124,58,237,0.6);
  animation: knowPulse 1.8s ease-out infinite;
}
@keyframes knowPulse {
  0% { box-shadow: 0 0 0 0 rgba(124,58,237,0.6); }
  100% { box-shadow: 0 0 0 18px rgba(124,58,237,0); }
}

/* orbit-search: typewriter effect on the query */
.d-search .typed {
  position: relative;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}
.d-search .typed-text {
  display: inline-block;
  position: relative;
}
.d-search .typed-text::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--bg);
  animation: typewriter 4s steps(40) infinite;
}
@keyframes typewriter {
  0%, 5% { width: 100%; }
  40%, 85% { width: 0%; }
  95%, 100% { width: 100%; }
}
.d-search .search-time {
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
/* Results fade in cascade */
.d-search-result:nth-child(3) { animation-delay: 1.6s; }
.d-search-result:nth-child(4) { animation-delay: 1.9s; }
.d-search-result:nth-child(5) { animation-delay: 2.2s; }
.d-search-result:nth-child(6) { animation-delay: 2.5s; }

/* =========================================================
   v6: i18n on product page static labels
   ========================================================= */
[lang="en"] .hide-en { display: none; }


/* =========================================================
   v7: Brand mark + geometric iso-cube motif (from logo)
   ========================================================= */

.brand-mark {
  width: 30px; height: 30px;
  color: var(--ink);
  display: inline-flex;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--f-body); font-weight: 400; font-size: 17px; letter-spacing: -0.01em; }
.brand-text .rk-bold { font-weight: 700; }

/* Decorative geometric field (mosaic of iso-rhombi / cubes) */
.geo-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.geo-field svg { position: absolute; }
.geo-rhombus {
  fill: none;
  stroke-width: 1.4;
}
.geo-rhombus.ink { stroke: var(--ink); opacity: 0.10; }
.geo-rhombus.blue { stroke: var(--blue); opacity: 0.22; }
.geo-rhombus.purple-fill { fill: var(--purple); stroke: none; opacity: 0.9; }
.geo-rhombus.ink-fill { fill: var(--ink); stroke: none; }
.geo-rhombus.blue-fill { fill: var(--blue); stroke: none; opacity: 0.12; }

/* floating subtle bob */
@keyframes geoBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.geo-bob-1 { animation: geoBob 7s ease-in-out infinite; }
.geo-bob-2 { animation: geoBob 9s ease-in-out infinite; }
.geo-bob-3 { animation: geoBob 11s ease-in-out infinite; }

/* Section corner geometric accent (small cube cluster) */
.geo-accent {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
}
.geo-accent .sq {
  width: 14px; height: 14px;
  transform: rotate(45deg);
}
.geo-accent .sq.purple { background: var(--purple); }
.geo-accent .sq.blue { background: var(--blue); }
.geo-accent .sq.ink { background: var(--ink); }
.geo-accent .sq.outline { border: 1.5px solid var(--ink); }

/* =========================================================
   v7: Home — ¿Qué es? hero (geometric)
   ========================================================= */

.hero-geo {
  position: relative;
  overflow: hidden;
}
.hero-geo .container-wide { position: relative; z-index: 2; }
.hero-q {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
}

/* =========================================================
   v7: Soluciones — servicios mosaic + productos list
   ========================================================= */

.sol-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.sol-col-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.sol-col-head .tag {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.svc-mosaic, .prod-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.sol-item {
  background: #fff;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 18px;
  align-items: center;
  transition: background .15s ease;
}
.sol-item:hover { background: var(--bg-soft); }
.sol-item .geo-ico { width: 22px; height: 22px; }
.sol-item-body h4 { font-family: var(--f-body); font-weight: 500; font-size: 16px; color: var(--ink); margin: 0 0 4px; }
.sol-item-body h4 .lt { font-family: var(--f-display); opacity: 0.55; font-weight: 500; }
.sol-item-body p { font-size: 13px; color: var(--gray-text); margin: 0; line-height: 1.5; max-width: 48ch; }
.sol-item .icon-arrow { width: 16px; height: 16px; color: var(--gray-muted); transition: transform .15s ease, color .15s ease; }
.sol-item:hover .icon-arrow { color: var(--blue); transform: translateX(3px); }

/* =========================================================
   v7: Industrias — 3 pilares cards
   ========================================================= */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  background: #fff;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.pillar:hover { border-color: var(--ink); transform: translateY(-3px); }
.pillar .pillar-ico {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 22px;
}
.pillar h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1;
}
.pillar .desc { font-size: 14px; color: var(--gray-text); line-height: 1.55; margin: 0 0 20px; }
.pillar .type-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px;
  margin: 0 0 24px;
}
.pillar .type-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.pillar .type-item .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.pillar:hover .type-item .ico { border-color: var(--line-strong); background: #fff; }
.pillar .type-item span:last-child {
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  color: var(--ink-2); line-height: 1.25;
}
@media (max-width: 480px) {
  .pillar .type-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar .pillar-cta {
  margin-top: auto;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pillar:hover .pillar-cta .arrow { transform: translateX(3px); }

/* =========================================================
   v7: Casos de éxito cards (dual tag)
   ========================================================= */

.case-tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.case-tag {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
}
.case-tag.pilar { background: var(--ink); color: #fff; }
.case-tag.ind { background: var(--purple); color: var(--ink); }

/* =========================================================
   v7: Video band (10 años)
   ========================================================= */

.video-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
}
.video-band .geo-field { opacity: 0.5; }
.video-band .vb-inner { position: relative; z-index: 2; text-align: center; padding: 32px; }
.video-band .vb-play {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--purple);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  cursor: pointer;
  transition: transform .15s ease;
}
.video-band .vb-play:hover { transform: scale(1.06); }
.video-band .vb-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
  margin: 0 0 10px;
}
.video-band .vb-sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }

/* =========================================================
   v7: Contacto — AI agent CTA
   ========================================================= */

.ai-cta {
  background: var(--bg-soft);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ai-cta .left { position: relative; z-index: 2; }
.ai-cta h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 68px);
  letter-spacing: -0.015em;
  line-height: 0.96;
  margin: 16px 0 16px;
}
.ai-cta p { color: var(--gray-text); font-size: 17px; margin: 0 0 28px; max-width: 46ch; line-height: 1.55; }
.ai-agent-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  z-index: 2;
}
.ai-agent-card .ai-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.ai-agent-card .ai-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--purple); color: var(--ink);
  display: grid; place-items: center;
}
.ai-agent-card .ai-avatar svg { width: 20px; height: 20px; }
.ai-agent-card .ai-name { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: #fff; }
.ai-agent-card .ai-status { font-family: var(--f-mono); font-size: 10px; color: var(--purple); margin-top: 2px; }
.ai-agent-card .ai-msg {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  margin-bottom: 16px;
}
.ai-agent-card .ai-input {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 10px 10px 16px;
}
.ai-agent-card .ai-input span { flex: 1; font-size: 13px; color: rgba(255,255,255,0.4); }
.ai-agent-card .ai-send {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple); color: var(--ink);
  border: none; cursor: pointer;
  display: grid; place-items: center;
}

@media (max-width: 1024px) {
  .sol-split { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .ai-cta { grid-template-columns: 1fr; gap: 36px; padding: 48px 32px; }
}


/* ---------- Glow-orb decoration — replaces the old isometric cube/rhombus
   motif site-wide with the gradient-orb language established in the hero. ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.4;
  animation: heroCorePulse 7s ease-in-out infinite;
}
.glow-orb.orb-blue { background: radial-gradient(circle at 35% 30%, var(--cyan), var(--blue) 60%, transparent 100%); }
.glow-orb.orb-purple { background: radial-gradient(circle at 35% 30%, var(--blue), var(--purple) 60%, transparent 100%); }
.glow-orb.orb-cyan { background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 70%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .glow-orb { animation: none; } }

/* ---------- Home hero — centered layout (monday.com-style), smaller type ---------- */
.hero-center { text-align: center; padding-top: 88px; }
.hero-center .container { max-width: 860px; }
.hero-title-c {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 auto 20px;
  max-width: 22ch;
}
.hero-sub-c {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.hero-cta-c { justify-content: center; }
.hero-marker-row-c { justify-content: center; margin-top: 40px; }
@media (max-width: 720px) {
  .hero-center { padding-top: 56px; }
  .hero-cta-c { flex-direction: column; align-items: center; }
  .hero-marker-row-c { flex-wrap: wrap; row-gap: 12px; }
}

/* ---------- Confían en nosotros — título + carrusel de logos ---------- */
.trusted-section { padding: 96px 0 40px; }
.trusted-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15;
  color: var(--ink); margin: 0; max-width: 16ch;
}
.trusted-section--simple { text-align: center; }
.trusted-title--lg {
  font-size: clamp(32px, 4.2vw, 52px);
  max-width: none;
  margin: 0 auto 48px;
}

@media (max-width: 900px) {
  .trusted-title { max-width: none; margin: 0 auto; }
}



/* =========================================================
   PUENTE v7 → v4 · "la piel v4, el instrumento debajo"

   La base de esta hoja es el diseño v4 (Plus Jakarta, blanco, azul
   #2F5EFF, tarjetas con elevación). Este puente porta todo lo
   construido después de v4: calculadora, diagramas, formularios
   reales, certificaciones, cifras del hero y el sistema de motion
   v7.1 (física de spring, contadores, press táctil).
   ========================================================= */

:root {
  /* Alias de compatibilidad con el marcado y los módulos posteriores a v4 */
  --bg-deep: var(--ink);
  --surface: var(--bg-card);
  --ink-block: var(--ink);
  --on-deep: #FFFFFF;
  --on-deep-2: rgba(255,255,255,0.72);
  --on-deep-3: rgba(255,255,255,0.46);
  --on-ink: #FFFFFF;
  --on-ink-2: rgba(255,255,255,0.72);
  --on-ink-3: rgba(255,255,255,0.46);
  --line-deep: rgba(255,255,255,0.14);
  --ink-line: var(--line-deep);
  --tick: var(--line-strong);
  --clay: var(--blue);
  --clay-soft: var(--blue-soft);
  --blue-ink: var(--blue-deep);
  --signal: var(--ok);
  --signal-bright: #2EBF6E;
  --signal-soft: #E7F5EC;
  --mark: var(--ok);
  --citrine: var(--cyan);
  --navy: var(--ink);
  --warn: #8A6A18;
  --danger: #B4423A;
  --measure: 68ch;
  --wide: normal;           /* Jakarta no tiene eje de anchura: no-op */

  /* Motion v7.1 — física de spring crítico-amortiguado.
     La curva llega rápido y se asienta sin pasarse jamás; la variante
     --ease-spring (ζ=0.8, +1.4%) se siente, no se ve: solo transforms. */
  --ease: var(--ease-out);
  --ease-spring: cubic-bezier(.3, 1.2, .3, 1);
  --dur-react: var(--dur-fast);
  --dur-enter: 660ms;
  --dur-state: 420ms;
  --dur-read: 1200ms;       /* una lectura llegando al display */
  --stagger: 70ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease: linear(0, 0.004 1%, 0.031 3%, 0.098 5.7%, 0.203 9%, 0.334 12.9%, 0.473 17.2%, 0.604 22.1%, 0.718 27.3%, 0.808 33%, 0.875 39%, 0.922 45.5%, 0.954 52.3%, 0.974 59.4%, 0.986 66.9%, 0.993 74.7%, 0.997 82.8%, 0.999 91.3%, 1);
    --ease-out: var(--ease);
    --ease-spring: linear(0, 0.002 0.8%, 0.02 2.5%, 0.067 4.8%, 0.147 7.6%, 0.258 10.9%, 0.39 14.6%, 0.529 18.6%, 0.662 23.1%, 0.777 27.9%, 0.869 33%, 0.936 38.4%, 0.979 44.2%, 1.003 50.2%, 1.013 56.5%, 1.014 63.1%, 1.012 70%, 1.008 77.1%, 1.004 84.5%, 1.002 92.1%, 1);
  }
}

/* El énfasis del hero: la palabra clave en azul de marca, sin cursiva */
.hero-title em, h1 em, h2 em {
  font-style: normal;
  color: var(--blue);
}

/* Cifras siempre tabulares: el ancho de un dígito no cambia al contar */
.num, .stat-num, .big, .v, .num-huge, .price-amount,
.rc-tl-year, .step-num, .calc-echo, .calc-hero-num, .calc-split .v {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.skip-link {
  position: absolute; left: 16px; top: -70px; z-index: 200;
  background: var(--bg-deep); color: var(--on-deep);
  font-family: var(--f-mono); font-size: 12px;
  padding: 12px 18px;
  transition: top var(--dur-react) var(--ease);
}
.skip-link:focus { top: 16px; }

.figures, .hero-meta, .tl-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 28px 36px;
  margin-top: clamp(46px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.figures > div, .hero-meta > div, .tl-stat-card { display: flex; flex-direction: column; gap: 4px; }
.figures .v, .hero-meta strong, .tl-stat-card .num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 3.1vw, 42px); line-height: 1;
  letter-spacing: -0.035em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.figures .k, .hero-meta > div, .tl-stat-card .lbl {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-muted); line-height: 1.55;
}


.logo-item .lg-name { transition: opacity var(--dur-react) var(--ease), transform var(--dur-react) var(--ease); }
.logo-item .lg-metric {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 6px));
  opacity: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-style: normal; font-size: 11.5px;
  letter-spacing: 0.05em; color: var(--clay);
  transition: opacity var(--dur-react) var(--ease), transform var(--dur-react) var(--ease);
}
.logo-item[data-metric]:hover .lg-name,
.logo-item[data-metric]:focus-visible .lg-name { opacity: 0; transform: translateY(-6px); }
.logo-item[data-metric]:hover .lg-metric,
.logo-item[data-metric]:focus-visible .lg-metric { opacity: 1; transform: translate(-50%, -50%); }

.live, .rc-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--signal);
}
.live::before, .rc-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-bright); flex: none;
  box-shadow: 0 0 0 0 rgba(127,184,0,0.55);
  animation: rcPulse 3.2s var(--ease-soft) infinite;
}
@keyframes rcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(127,184,0,0.5); }
  60%  { box-shadow: 0 0 0 8px rgba(127,184,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,184,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live::before, .rc-live::before { animation: none; }
}

.rc-form, .final-cta-form {
  display: flex; flex-direction: column; gap: 18px;
  background: none; border: none; padding: 0; box-shadow: none;
}
/* El formulario de contacto ES la tarjeta navy de v4 (el lugar del
   chat en aquella maqueta, ocupado ahora por el mecanismo real). */
form.ai-agent-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--ink); border: none; box-shadow: none;
  border-radius: var(--r-lg); padding: 28px;
}
.ai-agent-card .rc-field label { color: rgba(255,255,255,0.68); }
.ai-agent-card .field {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-bottom-color: rgba(255,255,255,0.14);
  border-radius: var(--r); padding: 10px 12px; color: #fff;
}
.ai-agent-card .field::placeholder { color: rgba(255,255,255,0.35); opacity: 1; }
.ai-agent-card .field:focus { border-color: var(--blue); }
.ai-agent-card .rc-status.ok { color: var(--cyan); border-top-color: var(--cyan); }
.ai-agent-card .rc-status.err { color: #FCA5A5; border-top-color: #FCA5A5; }
.ai-agent-card .btn-primary { background: #fff; color: var(--ink); }
.ai-agent-card .btn-primary:hover { background: var(--blue); color: #fff; }
/* El panel .ai-cta de v4 es claro: los colores heredados del marcado
   oscuro se re-resuelven aquí vía custom properties de ámbito. */
.ai-cta { --on-ink-2: var(--gray-text); --on-deep-2: var(--gray-text); --citrine: var(--blue); }
.rc-field { display: flex; flex-direction: column; gap: 7px; }
.rc-field label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gray-muted);
}
.rc-field label .req { color: var(--clay); }
.field {
  width: 100%; background: none; border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 0;
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  color: var(--ink);
  transition: border-color var(--dur-react) var(--ease);
}
.field::placeholder { color: var(--gray-muted); opacity: 0.7; }
.field:focus { outline: none; border-bottom-color: var(--clay); }
textarea.field { min-height: 86px; resize: vertical; }
.field[aria-invalid="true"] { border-bottom-color: var(--danger); }
.rc-error { font-family: var(--f-mono); font-size: 11px; color: var(--danger); margin: 0; }
.rc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rc-note { margin: 0; text-transform: none; letter-spacing: 0.03em; font-size: 11.5px; }
.rc-status {
  display: none; font-family: var(--f-mono); font-size: 12px; line-height: 1.6;
  padding: 12px 0; border-top: 1px solid var(--line); margin: 0;
}
.rc-status.show { display: block; }
.rc-status.ok { color: var(--ok); border-top-color: var(--ok); }
.rc-status.err { color: var(--danger); border-top-color: var(--danger); }
.rc-form .btn[type="submit"] { align-self: flex-start; }
.rc-form .btn[disabled] { opacity: 0.55; pointer-events: none; }

.on-dark .rc-field label, .ai-cta .rc-field label,
.final-cta .rc-field label, .no-brainer .rc-field label {
  color: rgba(255,255,255,0.68);
}
.ai-cta .rc-note, .final-cta .rc-note, .on-dark .rc-note {
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   SISTEMA DE DIAGRAMAS
   Mismo lenguaje que el resto: filete, mono, azul de dato,
   verde de estado. Sin relleno salvo el panel blanco.
   ========================================================= */

.dg {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.dg-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 22px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--gray-muted);
}
.dg-head .dg-live { color: var(--signal); }
.dg svg { overflow: visible; }

/* Tipografía interna */
.dg text { font-family: var(--f-mono); fill: var(--gray-muted); }
.dg-cap { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--gray-muted); }
.dg-key { font-size: 11.5px; fill: var(--ink); font-family: var(--f-body); font-weight: 500; }
.dg-val { font-size: 13px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dg-score { font-size: 10px; fill: var(--signal); letter-spacing: 0.06em; }
.dg-score--low { fill: var(--warn); }
.dg-idx { font-size: 9.5px; fill: var(--gray-muted); letter-spacing: 0.1em; }
.dg-status { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--signal); opacity: 0; transition: opacity 300ms var(--ease); }
.dg-status.is-on { opacity: 1; }

/* Superficies */
.dg-panel { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.dg-band { fill: none; stroke: var(--line); stroke-width: 1; }
.dg-chip { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.dg-layer.is-accent .dg-chip { fill: var(--blue); stroke: var(--blue); }
.dg-layer.is-accent .dg-key { fill: #fff; }
.dg-rule { stroke: var(--line); stroke-width: 1; }

/* Texto simulado del documento: densidad, no contenido falso */
.dg-textline { fill: var(--line-strong); transition: fill 260ms var(--ease); }
.dg-textline.is-read { fill: var(--blue); }

/* Línea de escaneo */
.dg-scan { fill: var(--signal-bright); opacity: 0; }

/* Conectores */
.dg-link { stroke: var(--line-strong); stroke-width: 1; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; }
.dg-link--v { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.dg svg.is-in .dg-link--v { opacity: 1; }

/* Etapas del pipeline */
.dg-rail { stroke: var(--line-strong); stroke-width: 1; }
.dg-rail--on { stroke: var(--blue); stroke-width: 1.5; }
.dg-dot { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; transition: fill 260ms var(--ease), stroke 260ms var(--ease); }
.dg-step.is-on .dg-dot { fill: var(--blue); stroke: var(--blue); }
.dg-step.is-on .dg-idx { fill: var(--blue); }
.dg-pkt { fill: var(--signal-bright); }

/* Campos extraídos */
.dg-field { opacity: 0; transform: translateY(4px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.dg-field.is-on { opacity: 1; transform: none; }

/* Capas de arquitectura */
.dg-layer { opacity: 0; transform: translateY(10px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.dg svg.is-in .dg-layer { opacity: 1; transform: none; }
.dg svg.is-in .dg-layer[data-i="1"] { transition-delay: 120ms; }
.dg svg.is-in .dg-layer[data-i="2"] { transition-delay: 240ms; }

/* Barras comparativas */
.dg-track { fill: var(--bg-soft); }
.dg-fill { fill: var(--line-strong); transition: width 900ms var(--ease); }
.dg-bar--after .dg-fill { fill: var(--blue); }
.dg-bar--after .dg-val { fill: var(--blue); font-weight: 600; }

/* Sobre bloque oscuro */
.on-dark .dg-panel, .ai-cta .dg-panel, .no-brainer .dg-panel { fill: rgba(255,255,255,0.05); stroke: var(--line-strong); }
.on-dark .dg-key, .on-dark .dg-val { fill: var(--on-deep); }
.on-dark .dg-track { fill: rgba(255,255,255,0.08); }

@media (max-width: 720px) {
  .dg { margin-top: 28px; }
  .dg svg { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-field, .dg-layer, .dg-status { opacity: 1; transform: none; transition: none; }
  .dg-link { stroke-dashoffset: 0; }
  .dg-scan { opacity: 0; }
}

/* El nombre de marca dentro de un rótulo en versalitas conserva su caja baja */
.dg-brand { text-transform: none; }

/* ---------- Certificaciones ----------
   Franja de confianza: para un comité de compra en banca o seguro
   pesa más que cualquier animación. Sin logotipos de terceros hasta
   tener la autorización de uso de marca de cada programa. */

.certs { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.certs-head {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-muted); margin-bottom: 22px;
}
.certs-row {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .certs-row { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } }
.cert {
  display: flex; flex-direction: column; gap: 5px;
  padding: 22px 0 22px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 760px) { .cert { border-bottom: none; } }
.cert::before {
  content: ''; position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 1px; background: var(--blue);
}
.cert-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.cert-role {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--gray-muted);
}

/* Producto responsable de cada etapa del flujo */
.dg-product { font-size: 10.5px; fill: var(--blue); letter-spacing: 0.02em; text-transform: none; }
.dg-tie { stroke: var(--line-strong); stroke-width: 1; }
.dg-owner { opacity: 0; transition: opacity 400ms var(--ease); }
.dg-step.is-on .dg-owner { opacity: 1; }


/* =========================================================
   CALCULADORA · la pieza que se usa, no se lee
   ========================================================= */

.calc {
  display: grid; gap: 44px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
@media (min-width: 980px) { .calc { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }

.calc-ctrls { display: flex; flex-direction: column; gap: 30px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-field-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.calc-field label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gray-muted);
}
.calc-echo {
  font-family: var(--f-display); font-weight: 600;
  font-size: 22px; line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* Control deslizante en el lenguaje del instrumento: riel fino, pulgar cuadrado */
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: none; cursor: pointer; margin: 0;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--line-strong);
}
.calc input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -6px;
  background: var(--blue); border: none; border-radius: 0;
  transition: transform var(--dur-react) var(--ease);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--blue); border: none; border-radius: 0;
}
.calc input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.45); }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 3px; }
.calc-scale {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--gray-muted);
}

/* Resultado: la única superficie de color plano de la página */
.calc-out { background: var(--bg-deep); color: var(--on-deep); padding: clamp(28px, 4vw, 44px); }
.calc-out .calc-lbl {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-deep-3); display: block; margin-bottom: 8px;
}
.calc-hero-num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(38px, 5vw, 62px); line-height: 1;
  letter-spacing: -0.04em; color: var(--on-deep);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 8px;
}
.calc-hero-num .cur { font-size: 0.42em; color: var(--on-deep-3); }
.calc-hero-num .unit { font-size: 0.3em; color: var(--on-deep-3); letter-spacing: 0.1em; }

.calc-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-deep);
}
.calc-split .v {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1;
  letter-spacing: -0.03em; color: var(--on-deep); font-variant-numeric: tabular-nums;
}
.calc-split .v.is-save { color: var(--cyan); }

/* Barra de proporción: cuánto del costo se puede automatizar */
.calc-bar { margin-top: 26px; }
.calc-bar-track { height: 26px; background: rgba(255,255,255,0.10); position: relative; }
/* La barra se dibuja con transform, nunca con width: el layout se
   calcula una vez y cada cuadro intermedio es solo compositor. JS la
   arma (.rc-bar) y la dispara (.rc-bar-in) junto con los contadores,
   con la misma curva y duración: una lectura, un solo beat. */
.calc-bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--cyan); width: 90%;
  transform-origin: left center;
}
.calc-bar-fill.rc-bar { transform: scaleX(0); }
.calc-bar-fill.rc-bar-in {
  transform: scaleX(1);
  transition: transform var(--dur-read) var(--ease);
}
.calc-bar-legend {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-deep-3);
}
.calc-bar-legend .save { color: var(--cyan); }

.calc-note {
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1.7;
  letter-spacing: 0.03em; color: var(--on-deep-3);
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-deep);
}
.calc-out .btn { margin-top: 24px; background: var(--on-deep); color: var(--bg-deep); }
.calc-out .btn:hover { background: var(--cyan); color: var(--bg-deep); }


/* =========================================================
   MOTION v7.1 sobre piel v4 · "el instrumento responde"
   Cada movimiento completa la frase "esto se mueve porque…":
   se calibra, mide, o responde a la mano. Nada decora.
   ========================================================= */

/* --- Calibración del hero: en Jakarta el eje firma es el peso.
   El titular entra asentándose de 450 a 800; una sola vez por carga,
   solo en el hero. El reflow de animar el eje es aceptable ahí. --- */
@keyframes rcCalibrate {
  from { opacity: 0; transform: translateY(10px); font-variation-settings: 'wght' 450; }
  to   { opacity: 1; transform: none;             font-variation-settings: 'wght' 800; }
}
.hero-title {
  font-variation-settings: 'wght' 800;
  animation: rcCalibrate 940ms var(--ease) 60ms both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; }
}

/* El reveal respeta el escalonado por hermanos que asigna el JS */
.reveal { transition-delay: var(--d, 0ms); }

/* --- Lecturas: los contadores en marcha --- */
.rc-counting { will-change: contents; }

/* --- Respuesta: press táctil. El hundimiento es lineal e instantáneo
   (una tecla no amortigua al bajar); el retorno es el spring. --- */
.btn, .carousel-arrow {
  transition: all var(--dur-fast) var(--ease-out), transform var(--dur-state) var(--ease-spring);
}
.btn:active, .carousel-arrow:active {
  transform: scale(0.97);
  transition: transform 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .carousel-arrow:active { transform: none; }
}

/* El eco del control de la calculadora se enciende bajo la mano */
.calc-echo { transition: color var(--dur-fast) var(--ease-out); }
.calc-field:has(input:active) .calc-echo,
.calc-field:has(input:focus-visible) .calc-echo { color: var(--blue); }

/* Cierre global de accesibilidad de motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Utilidad: texto solo para lectores de pantalla y crawlers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================================================
   v8.1 · LA SALA DE MÁQUINAS
   Arquitectura espacial: un mundo navy fijo (el ecosistema orbit
   operando, dibujado en canvas) vive detrás de todo el sitio. Las
   secciones claras son superficies que se deslizan encima; las
   "ventanas" (banda de misión, footer) dejan ver el mundo.
   El mecanismo viene de cerebrium.ai; el contenido del mundo es
   nuestro: rutas, nodos y paquetes de documentos, no listones.
   ========================================================= */

html { background: #0B0F19; }
body { background: transparent; }

#rc-world {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  background: #0B0F19;
  pointer-events: none;
}

/* Las superficies: todo bloque de contenido declara su fondo.
   (Con el body transparente, lo no declarado dejaría ver el mundo.) */
main > section, main > header, header.hero, .nav, section {
  background: var(--bg);
}
section.soft { background: var(--bg-soft); }

/* Ventana: la sección se abre al mundo. La asigna interactions.js a
   las secciones que contienen la banda de misión, y al footer. */
section.rc-window { background: transparent; border-top: none; }
section.rc-window .no-brainer { background: transparent; box-shadow: none; }
.footer { background: transparent; }

/* Bordes de superficie: las esquinas se redondean solo donde la
   superficie toca una ventana, como paneles sobre la máquina. */
.rc-edge-bottom { border-radius: 0 0 24px 24px; }
.rc-edge-top { border-radius: 24px 24px 0 0; border-top: none; }
section.rc-window { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(48px, 8vw, 120px); }

/* El texto de una ventana flota sobre el mundo: sube apenas el
   contraste del contenedor de misión sin devolverle la caja. */
section.rc-window .no-brainer { padding-left: 0; padding-right: 0; }

/* --- Micro v8.1: barrido de luz en el botón primario (clip-path,
   0.3s, la única herencia literal de cerebrium) --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.16);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 300ms var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { clip-path: inset(0 0 0 0); }

/* =========================================================
   SCROLLSPY EDITORIAL · "La prueba, en cuatro lecturas"
   Índice sticky a la izquierda (solo la lectura activa en tinta),
   paneles con diagramas del sistema a la derecha.
   ========================================================= */

.spy-grid { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .spy-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
}
.spy-index { display: none; }
@media (min-width: 980px) {
  .spy-index {
    display: flex; flex-direction: column; gap: 10px;
    position: sticky; top: 140px;
  }
}
.spy-item {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--ink);
  opacity: 0.3;
  transition: opacity 400ms var(--ease);
  cursor: pointer; background: none; border: none;
  padding: 8px 0 8px 20px; text-align: left;
  font-variant-numeric: tabular-nums;
  position: relative;
}
/* Marcador: la lectura activa lleva una barra azul; el hover avisa que se puede dar clic */
.spy-item::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 2px; background: var(--blue);
  opacity: 0; transform: scaleY(0.4);
  transition: opacity 300ms var(--ease), transform 400ms var(--ease-spring);
}
.spy-item.active { opacity: 1; }
.spy-item.active::before { opacity: 1; transform: none; }
.spy-item:hover:not(.active) { opacity: 0.6; }
.spy-item .n {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; color: var(--gray-muted);
  flex: 0 0 auto;
}
.spy-item.active .n { color: var(--blue); }
.spy-item .u { color: var(--blue); }
.spy-hint {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--gray-muted); line-height: 1.6; max-width: 30ch;
  margin-top: 18px; padding-left: 20px;
}
.spy-panels { display: flex; flex-direction: column; gap: clamp(56px, 9vh, 96px); }
/* Cada lectura vive en su propia tarjeta: bullet y diagrama comparten número y título */
.spy-panel {
  scroll-margin-top: 120px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 24px 28px 26px;
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.spy-panel.active { border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 16px 44px rgba(5, 15, 42, 0.08); }
.spy-panel-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.spy-panel-head .n {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--gray-muted);
}
.spy-panel.active .spy-panel-head .n { color: var(--blue); }
.spy-panel-head .t {
  font-family: var(--f-body); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.spy-panel .dg { margin-top: 0; border-top: none; padding-top: 12px; }
.spy-claim {
  font-family: var(--f-body); font-weight: 600;
  font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); margin: 18px 0 6px;
}
.spy-note { font-size: 15px; color: var(--gray-text); max-width: 56ch; margin: 0; }
.spy-src {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-muted); display: inline-block; margin-top: 12px;
}
.spy-src a { color: var(--blue); }

/* =========================================================
   v8.2 · EL HERO EN LA SALA DE MÁQUINAS
   La home abre como ventana al mundo: fondo transparente sobre el
   canvas y texto en claro sobre la sala de máquinas.
   ========================================================= */

header.hero.hero-world {
  background: transparent;
  min-height: min(92vh, 920px);
  display: flex; align-items: center;
  position: relative;
  border-top: none;
}
/* Como hijo flex, el contenedor encoge a su contenido y su margin
   auto lo centraba: ancho completo para alinear con el resto. */
header.hero.hero-world > .container-wide,
header.hero.hero-world > .container { width: 100%; }
/* Rag equilibrado y talla contenida: el titular acompaña, el
   rocket gana jerarquía visual */
.hero-world .hero-title {
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
  font-size: clamp(36px, 4.6vw, 72px);
}
/* El punto de Jakarta trae 0.4em de avance con la tinta centrada:
   se compensa el hombro izquierdo para que cierre pegado a la o. */
.hero-title .tp { display: inline; margin-left: -0.14em; }
.hero-title .nb { display: inline; white-space: nowrap; }
/* (v4 declara .hero-title span como block para sus heroes por líneas;
   estos dos spans tipográficos son la excepción) */
.hero-world .hero-title em { color: var(--cyan); }
.hero-world .hero-sub { color: rgba(255,255,255,0.76); }
.hero-world .hero-q { color: var(--cyan); }
.hero-world .btn-primary { background: #fff; color: #0B0F19; }
.hero-world .btn-primary:hover { background: var(--cyan); color: #0B0F19; }
.hero-world .btn-ghost { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.35); }
/* El hover global de .btn-ghost pone bg-soft (gris claro): sobre el hero
   oscuro dejaba texto blanco sobre gris. Aquí el fondo es un velo blanco. */
.hero-world .btn-ghost:hover { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,0.08); }
.hero-world .figures { border-top-color: rgba(255,255,255,0.16); }
.hero-world .figures .v { color: #fff; }
.hero-world .figures .k { color: rgba(255,255,255,0.55); }
.hero-world .figures > div::before { background: rgba(255,255,255,0.3); }
.hero-world .figures > div:first-child::before { background: var(--cyan); }

#rc-rocket {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* La nav flota transparente sobre el hero-mundo y recupera su
   superficie blanca en cuanto hay scroll. El fondo cambia a la misma
   velocidad que el texto (--dur-fast): si el fondo va más lento, hay un
   instante de texto tinta sobre hero oscuro y el cambio se ve como glitch. */
body.rc-hero-world .nav {
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
body.rc-hero-world .nav .nav-top { transition: color var(--dur-fast) var(--ease-out); }
body.rc-hero-world .nav .brand-logo { transition: filter var(--dur-fast) var(--ease-out); }
body.rc-hero-world .nav .lang-toggle button { transition: color var(--dur-fast) var(--ease-out); }
body.rc-hero-world .nav .nav-burger span { transition: background var(--dur-fast) var(--ease-out), transform .2s ease, opacity .2s ease; }
body.rc-hero-world .nav:not(.nav--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
body.rc-hero-world .nav:not(.nav--scrolled) .nav-top { color: rgba(255,255,255,0.82); }
body.rc-hero-world .nav:not(.nav--scrolled) .nav-top:hover,
body.rc-hero-world .nav:not(.nav--scrolled) .nav-top.active { color: #fff; }
body.rc-hero-world .nav:not(.nav--scrolled) .brand-logo { filter: brightness(0) invert(1); }
body.rc-hero-world .nav:not(.nav--scrolled) .lang-toggle button { color: rgba(255,255,255,0.6); }
body.rc-hero-world .nav:not(.nav--scrolled) .lang-toggle button.active { color: #fff; }
body.rc-hero-world .nav:not(.nav--scrolled) .nav-cta .btn-primary { background: #fff; color: #0B0F19; }
body.rc-hero-world .nav:not(.nav--scrolled) .nav-burger span { background: #fff; }

/* La nav no cabe entre 721 y 1120px con todos sus enlaces + CTA
   (el burger de v4 entra hasta 720): dos tramos de compresión. */
@media (min-width: 900px) and (max-width: 1120px) {
  .nav-inner { gap: 18px; padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-cta .btn { padding: 11px 14px; font-size: 13px; }
}
@media (min-width: 721px) and (max-width: 899px) {
  .nav-inner { gap: 10px; padding: 0 10px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 12px; }
  .brand-logo { height: 18px; }
  .nav-cta .lang-toggle { display: none; }
  .nav-cta .btn { padding: 9px 10px; font-size: 12px; }
}

/* =========================================================
   CONFIANZA v8.2 · el muro de clientes con peso real
   Dos filas en contrasentido con los 39 nombres en tinta, máscaras
   de desvanecido en los bordes, hover en azul de marca, y los
   partners certificados como banda densa — no isla flotante.
   ========================================================= */

.trust-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px 32px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.trust-head .trusted-title--lg { text-align: left; margin: 0; max-width: 22ch; }

.trust-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; white-space: nowrap;
}
.trust-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex: none;
}

/* Los nombres son los logos: tinta con presencia, no gris tímido */
.logos-marquee--lg {
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos-marquee--lg .logo-item {
  font-size: clamp(21px, 2.1vw, 29px);
  color: var(--ink); opacity: 0.78;
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.logos-marquee--lg .logo-item:hover { opacity: 1; color: var(--blue); }
.logos-marquee--lg .logos-track { animation-duration: 130s; }
.logos-marquee--rev .logos-track { animation-direction: reverse; animation-duration: 150s; }

/* Partners: bloque propio, claramente separado del muro de logos */
.trust-partners {
  text-align: left;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 22px clamp(36px, 6vw, 88px);
  border-top: 1px solid var(--line);
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: clamp(26px, 3.5vw, 36px);
}
.tp-label {
  flex-basis: 100%;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 2px;
}
.trust-partners .cert { border-bottom: none; padding: 2px 0 2px 14px; align-items: flex-start; text-align: left; }

/* =========================================================
   MISIÓN v8.2 · el argumento enterprise sobre el mundo
   Copy a la izquierda; a la derecha, el diagrama de capas como
   tarjeta clara flotando en la sala de máquinas.
   ========================================================= */
.nb-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1020px) {
  .nb-grid { grid-template-columns: 0.95fr 1.05fr; gap: clamp(44px, 5vw, 80px); }
}
.nb-copy {
  display: block !important;
  padding: 0 !important;
  max-width: none !important;
  border-radius: 0;
}
.nb-copy h2 {
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.06; margin: 0 0 18px; max-width: 18ch;
}
.nb-copy p { max-width: 54ch; font-size: 16.5px; line-height: 1.6; margin: 0; }
.nb-kicker {
  display: block;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.nb-copy h2 { margin-top: 0; }
.nb-points {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-direction: column; gap: 13px;
}
.nb-points li {
  display: flex; gap: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 15.5px; line-height: 1.55;
  max-width: 54ch;
}
.nb-points li::before {
  content: ''; width: 7px; height: 7px;
  background: var(--cyan); margin-top: 7px; flex: none;
}
.nb-grid .dg { margin: 0; }

/* Misión ultraejecutiva: bullets con filete, voz de CTO */
.nb-exec {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.nb-exec li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,0.68);
}
.nb-exec li:first-child { border-top: none; padding-top: 4px; }
.nb-exec li::before {
  content: ''; width: 7px; height: 7px;
  background: var(--cyan); flex: none;
  transform: translateY(-1px);
}
.nb-exec strong { color: #fff; font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) { .nb-exec strong { white-space: normal; } }

/* Misión visual: los cuatro claims con el kit del sitio —
   tarjetas blancas v4 flotando sobre el mundo, como toda superficie */
.nb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .nb-cards { grid-template-columns: 1fr; } }
.nb-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  will-change: transform;
}
.nb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(5, 15, 42, 0.18);
}
.nb-card svg { color: var(--blue); margin-bottom: 14px; display: block; }
.nb-card strong {
  display: block; color: var(--ink); font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em; margin-bottom: 6px;
}
.nb-card span {
  display: block; color: var(--gray-text);
  font-size: 13.5px; line-height: 1.55;
}

/* Video de producto en casos: tarjeta del kit con cabecera mono */
.case-video {
  margin: 0 0 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.case-video-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-text);
}
.case-video video { display: block; width: 100%; height: auto; }

/* Video dentro de la tarjeta de caso: llena el marco del kit */
.case-img--video { padding: 0; overflow: hidden; }
.case-img--video video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}

/* Video real dentro del marco hero-mock (casos e industrias) */
.hero-mock--video video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   Discovery inmersivo — pantalla completa sobre la sala de
   máquinas. Una pregunta a la vez, tipografía del hero, chips
   del kit. Piel oscura propia: aquí el sitio desaparece.
   ============================================================ */
.dsc {
  position: fixed; inset: 0; z-index: 300;
  background: #0B0F19;
  color: #fff;
  display: none;
  flex-direction: column;
  overscroll-behavior: contain;
}
.dsc.open { display: flex; animation: dsc-in 360ms var(--ease-out); }
@keyframes dsc-in { from { opacity: 0; } to { opacity: 1; } }
.dsc-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.dsc-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 18px;
  padding: 22px clamp(20px, 4vw, 48px);
}
.dsc-brand {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); white-space: nowrap;
}
.dsc-progress {
  flex: 1; height: 2px; background: rgba(255,255,255,0.14); border-radius: 2px;
}
.dsc-progress i {
  display: block; height: 100%; width: 0;
  background: var(--cyan); border-radius: 2px;
  transition: width 600ms var(--ease-spring);
}
.dsc-count { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); min-width: 52px; text-align: right; }
.dsc-close {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--r-sm);
  color: rgba(255,255,255,0.8); width: 34px; height: 34px; font-size: 18px; line-height: 1;
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.dsc-close:hover { border-color: #fff; color: #fff; }

.dsc-exit[hidden] { display: none; }
.dsc-exit {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 20px; background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: var(--f-body); font-size: 14px; color: rgba(255,255,255,0.85);
  flex-wrap: wrap; text-align: center;
}
.dsc-exit .btn { padding: 8px 16px; font-size: 13px; }
.dsc-exit .dsc-exit-yes { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.dsc-exit .dsc-exit-yes:hover { color: #fff; border-color: #fff; }
.dsc-exit .dsc-exit-no { background: #fff; color: #0B0F19; }

.dsc-stage {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 6vw, 96px) 48px;
  overflow-y: auto;
}
.dsc-screen { width: 100%; max-width: 880px; margin: 0 auto; outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .dsc-screen { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-spring); }
  .dsc-screen.in { opacity: 1; transform: none; }
}

.dsc-eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.dsc-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance; margin: 0 0 14px;
  color: #fff; /* el h2 global del sitio pinta var(--ink): aquí sería tinta sobre tinta */
}
.dsc-sub { font-family: var(--f-body); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 60ch; margin: 0 0 10px; }
.dsc-hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-top: 22px; }
.dsc-hint a { color: rgba(255,255,255,0.7); }

.dsc-chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; margin-top: 30px;
}
.dsc-chip {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-sm); color: rgba(255,255,255,0.9);
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  padding: 16px 18px; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .dsc-screen .dsc-chip { opacity: 0; transform: translateY(10px); }
  .dsc-screen.in .dsc-chip { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-spring), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
}
.dsc-chip:hover { border-color: var(--cyan); background: rgba(34,211,238,0.08); }
.dsc-chip.sel { background: #fff; color: #0B0F19; border-color: #fff; }
.dsc-chip.sel .dsc-chip-n { color: #0B0F19; border-color: rgba(11,15,25,0.3); }
.dsc-chip-n {
  flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
}

.dsc-input {
  width: 100%; margin-top: 26px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm); color: #fff;
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  padding: 14px 16px; resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.dsc-input::placeholder { color: rgba(255,255,255,0.38); }
.dsc-input:focus { outline: none; border-color: var(--cyan); }

.dsc-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.dsc-actions .btn-primary { background: #fff; color: #0B0F19; }
.dsc-actions .btn-primary:hover { background: var(--cyan); }
.dsc-actions .btn:not(.btn-primary) { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.25); background: transparent; }
.dsc-actions .btn:not(.btn-primary):hover { color: #fff; border-color: #fff; }

.dsc-cols { display: grid; gap: 28px; margin-top: 26px; }
@media (min-width: 860px) { .dsc-cols { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.dsc-recap-row {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dsc-recap-row span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.dsc-recap-row strong { font-family: var(--f-body); font-size: 14px; font-weight: 600; text-align: right; }
.dsc-map-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.dsc-map-lbl + .dsc-map-lbl, .dsc-tags + .dsc-map-lbl { margin-top: 22px; }
.dsc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dsc-tag {
  font-family: var(--f-mono); font-size: 13px; color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 6px 14px;
}
.dsc-caso { font-family: var(--f-body); font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0; }

.dsc-form { margin-top: 30px; }
.dsc-fields { display: grid; gap: 12px; }
@media (min-width: 860px) { .dsc-fields { grid-template-columns: 1fr 1fr 1.2fr; } }
.dsc-form .dsc-input { margin-top: 0; }
.dsc-err { color: #FCA5A5; font-family: var(--f-body); font-size: 14px; margin: 12px 0 0; }

@media (max-width: 640px) {
  .dsc-top { gap: 12px; }
  .dsc-count { display: none; }
  .dsc-stage { align-items: flex-start; padding-top: 8px; }
  .dsc-recap-row strong { text-align: left; }
  .dsc-recap-row { flex-direction: column; gap: 2px; }
}
