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

:root {
  --hero-min: 72vh;
  --indigo: #1E2A4A;
  --indigo-deep: #151E37;
  --teal: #00B4A6;
  --amber: #F59E0B;
  --offwhite: #F8F9FC;
  --dark: #0B1220;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --green: #10B981;
  --red: #EF4444;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--indigo); }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%; max-width: 100vw; overflow: visible;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,18,32,0.0);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(11,18,32,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-left { display: flex; align-items: center; gap: 48px; min-width: 0; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-image {
  width: 136px;
  height: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none; transition: color 0.18s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active {
  color: white;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px;
  background: var(--teal);
}
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.nav-ghost {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none; transition: color 0.18s;
}
.nav-ghost:hover { color: white; }
.nav-cta {
  background: linear-gradient(120deg, #35E0D0 0%, #00B4A6 100%);
  color: #062A2C;
  font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: 999px;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  letter-spacing: -0.005em;
  box-shadow: 0 10px 30px rgba(0,180,166,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,180,166,0.38), inset 0 1px 0 rgba(255,255,255,0.4);
}
@media (min-width: 1200px) {
  nav { padding: 0 64px; }
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); gap: 28px; }
}
.nav-mobile-only { display: none; }
.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  background: rgba(255,255,255,0.06); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  width: 18px; height: 2px; border-radius: 999px;
  background: white; transition: transform 0.18s, opacity 0.18s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: var(--hero-min);
  background: var(--dark);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 80px;
}

/* organic gradient background */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(245,158,11,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 85% 55%, rgba(245,158,11,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 65% 75%, rgba(0,180,166,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 20% 85%, rgba(30,42,74,0.6) 0%, transparent 60%),
    linear-gradient(135deg, var(--indigo-deep) 0%, #1A1530 60%, #2A1A3A 100%);
  filter: blur(0px);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 45% at 85% 30%, rgba(255,200,100,0.25), transparent 60%),
    radial-gradient(ellipse 35% 30% at 70% 85%, rgba(0,180,166,0.2), transparent 60%);
  mix-blend-mode: screen;
}
/* grain overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 28px;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--teal);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 400;
  line-height: 1.0;
  color: white;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 14ch;
  animation: rise 1s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
}

.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  animation: rise 1s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-sub strong { color: white; font-weight: 500; }

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: rise 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.btn-hero-primary {
  background: white; color: var(--indigo);
  font-weight: 500; font-size: 16px;
  padding: 16px 36px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
  background: var(--amber);
  transform: translateY(-1px);
}
.btn-hero-secondary {
  background: transparent; color: white;
  font-weight: 500; font-size: 16px;
  padding: 16px 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ LOGOS MARQUEE ═══════════ */
.marquee-section {
  background: var(--dark);
  padding: 48px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.marquee-section::before,
.marquee-section::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.marquee-section::after { right: 0; background: linear-gradient(-90deg, var(--dark), transparent); }

.marquee-label {
  max-width: 1400px; margin: 0 auto 28px;
  padding: 0 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 14px;
}
.marquee-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

.marquee-wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 60px;
  flex-shrink: 0;
  animation: marquee 42s linear infinite;
  padding-right: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 22px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee-item:hover { color: rgba(255,255,255,0.85); }
.marquee-logo {
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.marquee-logo img {
  height: 34px; width: auto; display: block;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .78;
  transition: opacity 0.2s;
}
.marquee-logo:hover img { opacity: 1; }

/* ═══════════ SECTION BASE ═══════════ */
.section {
  padding: 140px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.section-eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--teal);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  color: var(--indigo); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 20ch;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--teal); }
.section-sub {
  font-size: 18px; color: var(--muted); margin-top: 20px;
  max-width: 560px; line-height: 1.65; font-weight: 300;
}

/* ═══════════ RESULTADOS STRIP ═══════════ */
.results-section {
  background: var(--offwhite);
  padding: 120px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.results-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 48px;
}
.results-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 80px; align-items: end;
}
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.results-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-cell {
  padding: 56px 40px 52px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
  transition: background 0.2s;
}
.result-cell:hover { background: #FAFBFE; }
.result-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px; font-weight: 400;
  color: var(--indigo); line-height: 0.95;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline;
}
.result-num sup { font-size: 28px; color: var(--teal); margin-left: 2px; font-weight: 500; }
.result-num .unit { font-size: 22px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.result-desc {
  font-size: 14px; color: var(--muted);
  margin-top: 20px; line-height: 1.55;
}
.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}

/* ═══════════ PAIN POINTS ═══════════ */
.pain-points-section .results-header {
  margin-bottom: 56px;
}
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.pain-point-card {
  min-width: 0;
  position: relative;
  padding: 36px 32px 40px;
  background: white;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.pain-point-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.pain-point-card:hover {
  z-index: 1;
  background: #FCFDFE;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(30,42,74,0.09);
}
.pain-point-card:hover::before { transform: scaleX(1); }
.pain-point-index {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,180,166,0.09);
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  margin-bottom: 28px;
}
.pain-point-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.pain-point-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  font-weight: 500; line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.035em;
  color: var(--indigo);
  overflow-wrap: break-word;
}
.pain-point-desc {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px; line-height: 1.6;
  font-weight: 300;
}
.pain-points-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  background: var(--indigo);
  color: rgba(255,255,255,0.72);
}
.pain-points-footer p {
  max-width: 760px;
  font-size: 15px; line-height: 1.55;
}
.pain-points-footer a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: white; text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.pain-points-footer a:hover { color: var(--amber); }
.pain-points-footer svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .pain-points-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pain-points-grid { grid-template-columns: 1fr; }
  .pain-point-card { padding: 30px 24px 34px; }
  .pain-points-footer { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}

/* ═══════════ FEATURE SPLIT ═══════════ */
.feature-section {
  padding: 112px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.feature-section.dark {
  background: var(--dark); color: white;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-section.dark .section-title { color: white; }
.feature-section.dark .section-title em { color: var(--amber); }
.feature-section.dark .section-sub { color: rgba(255,255,255,0.6); }

.feature-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px;
  align-items: center;
}
.feature-section.reversed .feature-inner {
  grid-template-columns: 1.1fr 1fr;
}
.feature-section.reversed .feature-visual {
  order: -1;
}

.feature-checks {
  margin-top: 32px;
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-check {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text);
}
.feature-section.dark .feature-check { color: rgba(255,255,255,0.85); }
.check-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-icon svg { width: 14px; height: 14px; stroke: var(--indigo); stroke-width: 3; }

.feature-cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--indigo); font-weight: 500; font-size: 15px;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--indigo);
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.feature-section.dark .feature-cta {
  color: white; border-bottom-color: rgba(255,255,255,0.4);
}
.feature-cta:hover { gap: 14px; color: var(--teal); border-bottom-color: var(--teal); }
.feature-cta svg { width: 14px; height: 14px; }

/* VISUAL — Workflow mockup */
.feature-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--indigo) 0%, #2A3560 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(30,42,74,0.15);
}
.feature-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245,158,11,0.25), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(0,180,166,0.25), transparent 50%);
}
.feature-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}

/* Foto editorial en el slot de feature.
   Regla: foto = personas y su operación; vector = sistemas y procesos.
   El slot pasa a 3/2 (ratio nativo de la imagen) y se retiran gradiente y rejilla. */
.feature-visual--photo {
  display: block;
  margin: 0;
  aspect-ratio: 3/2;
  background: #0B1220;
  box-shadow: 0 34px 90px rgba(21,30,55,0.22);
}
.feature-visual--photo::before,
.feature-visual--photo::after { content: none; }
.feature-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .feature-visual--photo img {
    transform: scale(1.001);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .feature-visual--photo:hover img { transform: scale(1.025); }
}

/* Workflow diagram */
.workflow {
  position: relative; z-index: 1;
  width: 85%; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.wf-node {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.3s;
}
.wf-node:hover {
  background: rgba(0,180,166,0.15);
  border-color: rgba(0,180,166,0.4);
  transform: translateY(-2px);
}
.wf-node-icon {
  width: 36px; height: 36px;
  background: rgba(0,180,166,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.wf-node-icon svg { width: 14px; height: 14px; stroke: var(--teal); stroke-width: 1.5; }
.wf-node-title { font-size: 11px; font-weight: 600; color: white; }
.wf-node-desc { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.5); }
.wf-node.amber .wf-node-icon { background: rgba(245,158,11,0.2); }
.wf-node.amber .wf-node-icon svg { stroke: var(--amber); }

/* Chat mockup */
.chat-mock {
  position: relative; z-index: 1;
  width: 78%; max-width: 380px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 12px;
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 18px; height: 18px; stroke: white; stroke-width: 2; }
.chat-name { font-weight: 600; font-size: 13px; color: var(--indigo); }
.chat-status { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chat-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.5;
  max-width: 85%;
}
.chat-bubble.them {
  background: var(--offwhite); color: var(--text);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.me {
  background: var(--indigo); color: white;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.chat-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  align-self: flex-end;
}
.chat-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

/* Dashboard mockup */
.dashboard-mock {
  position: relative; z-index: 1;
  width: 88%;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; gap: 14px;
}
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.dash-title { font-weight: 600; font-size: 13px; color: var(--indigo); }
.dash-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--teal);
  background: rgba(0,180,166,0.1); padding: 3px 8px; border-radius: 4px;
}
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-stat {
  background: var(--offwhite); border-radius: 10px; padding: 14px;
}
.dash-stat-label { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.dash-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 22px; color: var(--indigo); margin-top: 4px;
  display: flex; align-items: baseline; gap: 4px;
}
.dash-stat-val .up { font-size: 11px; color: var(--green); font-weight: 500; }
.dash-chart { height: 60px; position: relative; }
.dash-chart svg { width: 100%; height: 100%; }

/* Code-ish mockup */
.code-mock {
  position: relative; z-index: 1;
  width: 88%;
  background: #0D1117;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.75;
  color: #E6EDF3;
  border: 1px solid rgba(255,255,255,0.06);
}
.code-dots {
  display: flex; gap: 6px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.r { background: #FF5F57; }
.code-dot.y { background: #FFBD2E; }
.code-dot.g { background: #28CA42; }
.code-dot.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.4);
  margin-left: 12px; width: auto;
}
.code-line { display: block; }
.code-keyword { color: #FF7B72; }
.code-string { color: #A5D6FF; }
.code-num { color: #79C0FF; }
.code-fn { color: var(--teal); }
.code-comment { color: #8B949E; }
.code-indent { padding-left: 22px; }

/* ═══════════ TECH GRID ═══════════ */
.tech-section {
  padding: 140px 48px;
  max-width: 1400px; margin: 0 auto;
}
.tech-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: end; margin-bottom: 72px;
}
.tech-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.tech-grid-report { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 40px auto 0; }
.tech-cell-report { padding: 32px; align-items: flex-start; justify-content: flex-start; gap: 16px; }
.tech-grid-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-cell-team { min-height: 160px; justify-content: flex-start; gap: 14px; }
.tech-cell-span-2 { grid-column: span 2; }
.tech-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 130px;
  transition: all 0.2s;
  cursor: default;
}
.tech-cell:hover {
  background: var(--offwhite);
}
.tech-cell:hover .tech-name { color: var(--teal); }
.tech-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 18px; color: var(--indigo);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.tech-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em;
}

/* ═══════════ CASO ESTELAR ═══════════ */
.case-section {
  background: var(--indigo);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 160px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.case-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 30%, rgba(245,158,11,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(0,180,166,0.1) 0%, transparent 60%);
}
.case-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
}
.case-layout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px;
  align-items: center;
}
.case-eyebrow {
  color: var(--teal);
}
.case-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400; color: white; line-height: 1.02;
  letter-spacing: -0.03em; margin-bottom: 32px;
}
.case-title em { font-style: italic; font-weight: 300; color: var(--amber); }
.case-body {
  font-size: 17px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,0.7); margin-bottom: 36px;
  max-width: 520px;
}
.case-quote {
  border-left: 2px solid var(--teal);
  padding: 4px 0 4px 24px;
  margin-bottom: 40px;
  max-width: 520px;
}
.case-quote-text {
  font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.85);
  font-style: italic; font-weight: 300;
}
.case-quote-author {
  font-size: 13px; color: var(--teal); margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.case-metrics-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.case-metric {
  padding: 26px 28px;
  display: flex; align-items: flex-start; gap: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}
.case-metric:hover { background: rgba(0,180,166,0.06); }
.case-metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 500; color: white;
  line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.case-metric-num sup { color: var(--amber); font-size: 20px; margin-left: 2px; font-weight: 500; }
.case-metric-num .unit { color: rgba(255,255,255,0.4); font-size: 17px; margin-left: 6px; }
.case-metric-label {
  font-size: 14px; color: rgba(255,255,255,0.55);
  line-height: 1.55; font-weight: 300;
}

.btn-case {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-weight: 500; font-size: 15px;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.btn-case:hover { gap: 14px; color: var(--amber); border-bottom-color: var(--amber); }
.btn-case svg { width: 14px; height: 14px; }

/* Feature CTA arrows */
.feature-cta svg { width: 14px; height: 14px; }

/* Hero button arrows */
.btn-hero-primary svg, .btn-hero-secondary svg { width: 16px; height: 16px; }

/* ═══════════ TESTIMONIOS MARQUEE ═══════════ */
.testi-section {
  padding: 140px 0;
  overflow: hidden;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
}
.testi-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 48px;
  margin-bottom: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end;
}
.testi-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.testi-marquee {
  display: flex; gap: 20px; padding: 0 20px;
  animation: slide 55s linear infinite;
  width: max-content;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testi-card {
  flex-shrink: 0;
  width: 380px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
  transition: all 0.25s;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(30,42,74,0.1);
  border-color: var(--teal);
}
.testi-stars {
  display: flex; gap: 3px; margin-bottom: 18px;
}
.testi-stars svg { width: 14px; height: 14px; fill: var(--amber); }
.testi-text {
  font-size: 15px; color: var(--text); line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 400;
  flex: 1;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 14px; color: white;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 14px; color: var(--indigo); }
.testi-role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ═══════════ BIG CTA ═══════════ */
.bigcta-section {
  background: var(--dark);
  position: relative; overflow: hidden;
  padding: 160px 48px;
  text-align: center;
}
.bigcta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,158,11,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,180,166,0.12) 0%, transparent 55%);
}
.bigcta-section::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6; mix-blend-mode: overlay;
}
.bigcta-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}
.bigcta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6.5vw, 92px);
  font-weight: 400; color: white; line-height: 1.0;
  letter-spacing: -0.04em; margin-bottom: 28px;
}
.bigcta-title em { font-style: italic; font-weight: 300; color: var(--amber); }
.bigcta-sub {
  font-size: 18px; color: rgba(255,255,255,0.6);
  max-width: 540px; margin: 0 auto 44px; font-weight: 300;
  line-height: 1.65;
}
.bigcta-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.bigcta-assurances {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.bigcta-ass { display: flex; align-items: center; gap: 6px; }
.bigcta-ass svg { width: 13px; height: 13px; stroke: var(--teal); }

.hero-services,
.service-hero { min-height: var(--hero-min); }

/* ═══════════ CONTACTO — formulario de la home ═══════════ */
.contact-section { padding: 130px 48px; text-align: left; }

/* Fuera de la home el CTA no va dentro de .bigcta-section, así que trae su propio
   fondo oscuro; si no, el texto blanco del formulario queda sobre blanco. */
.contact-section:not(.bigcta-section) {
  background: var(--dark);
  position: relative; overflow: hidden;
}
.contact-section:not(.bigcta-section)::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,158,11,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,180,166,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.contact-section:not(.bigcta-section) > .contact-inner {
  position: relative; z-index: 1;
}
.contact-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px; align-items: start; text-align: left;
}
.contact-section .bigcta-title { font-size: clamp(32px, 4.2vw, 58px); margin-bottom: 22px; }
.contact-section .bigcta-sub { margin: 0 0 28px; max-width: 44ch; }
.contact-assurances { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.contact-assurances li {
  position: relative; padding-left: 28px;
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.72); line-height: 1.55;
}
.contact-assurances li::before {
  content: ''; position: absolute; left: 2px; top: 0.5em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.contact-alt { font-size: 14px; color: rgba(255,255,255,0.5); }
.contact-alt a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(0,180,166,0.35); }

.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 30px;
  backdrop-filter: blur(10px);
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-full { grid-column: 1 / -1; }
.cf-field label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.86); }
.cf-req { color: var(--amber); }
.cf-opt { color: rgba(255,255,255,0.42); font-weight: 400; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--teal); background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(0,180,166,0.18);
}
.cf-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B4A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.cf-field select option { color: #1E2A4A; background: #fff; }
.cf-field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.cf-field [aria-invalid="true"] { border-color: #EF4444; background: rgba(239,68,68,0.08); }
.cf-error { margin: 0; font-size: 12.5px; color: #FCA5A5; }

.cf-consent { margin-top: 18px; display: grid; gap: 12px; }
.cf-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.cf-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }
.cf-check label { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.cf-check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.cf-hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cf-submit {
  margin-top: 20px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal); color: #062A2C;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 15px 20px; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.cf-submit:hover { background: #35E0D0; transform: translateY(-1px); }
.cf-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cf-submit:disabled { opacity: 0.55; cursor: progress; transform: none; }
.cf-submit svg { width: 16px; height: 16px; }
.cf-note { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,0.45); text-align: center; }
.cf-status { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,0.75); }
.cf-status.is-error { color: #FCA5A5; }

.cf-success {
  grid-column: 2; background: rgba(0,180,166,0.08);
  border: 1px solid rgba(0,180,166,0.35); border-radius: 18px; padding: 38px 32px;
}
.cf-success svg { width: 34px; height: 34px; stroke: var(--teal); margin-bottom: 14px; }
.cf-success h3 { color: #fff; font-size: 22px; font-weight: 500; margin: 0 0 10px; line-height: 1.25; }
.cf-success p { color: rgba(255,255,255,0.6); font-size: 14.5px; font-weight: 300; margin: 0; line-height: 1.65; }

/* ═══════════ FOOTER ═══════════ */
footer {
  background: var(--dark);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr 1fr 0.85fr;
  gap: 40px 44px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-row {
  display: flex; align-items: center; margin-bottom: 18px;
}
.footer-logo-image {
  width: 154px;
  height: auto;
  display: block;
  object-fit: contain;
}
.footer-blurb {
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.65;
  max-width: 300px; margin-bottom: 24px; font-weight: 300;
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(0,180,166,0.12);
  border-color: rgba(0,180,166,0.4);
  transform: translateY(-1px);
}
.social-btn svg { width: 15px; height: 15px; fill: none; }
.social-btn svg * { stroke: currentColor; }
.social-btn:hover { color: var(--teal); }

.footer-col-title {
  font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.18s;
  line-height: 1.45; display: inline-block;
}
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal-row { display: flex; gap: 20px; }
.footer-legal-row a,
.footer-legal-row span {
  font-size: 13px; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.18s;
}
.footer-legal-row a:hover { color: rgba(255,255,255,0.6); }

/* ═══════════ REVEAL ═══════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }


/* ═══════════ FEATURE EYEBROW (número + etiqueta) ═══════════ */
.feature-eyebrow {
  display: inline-flex; align-items: baseline; gap: 14px;
  margin-bottom: 20px;
}
.feature-eyebrow-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 46px; font-weight: 400;
  color: rgba(30,42,74,0.14);
  line-height: 1; letter-spacing: -0.04em;
}
.feature-section.dark .feature-eyebrow-num { color: rgba(255,255,255,0.16); }
.feature-eyebrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
}

/* ═══════════ CTA INTERMEDIA ═══════════ */
.all-services-cta {
  text-align: center;
  padding: 104px 48px;
  background: var(--offwhite);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.all-services-cta-inner { max-width: 720px; margin: 0 auto; }
.all-services-cta .section-eyebrow { justify-content: center; }
.all-services-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400; color: var(--indigo);
  margin-bottom: 20px; letter-spacing: -0.03em; line-height: 1.08;
  text-wrap: balance;
}
.all-services-cta p {
  font-size: 18px; color: var(--muted); margin: 0 auto 36px;
  font-weight: 300; max-width: 520px; line-height: 1.65;
}
.all-services-cta .hero-ctas { justify-content: center; animation: none; }
.all-services-cta .btn-hero-primary { background: var(--indigo); color: white; }
.all-services-cta .btn-hero-primary:hover { background: var(--amber); color: var(--indigo); }
.all-services-cta .btn-hero-secondary { color: var(--indigo); border-color: rgba(30,42,74,0.25); }
.all-services-cta .btn-hero-secondary:hover { background: rgba(30,42,74,0.05); border-color: rgba(30,42,74,0.5); }

/* ═══════════ TECH — logos reales ═══════════ */
.tech-cell { gap: 20px; min-height: 152px; padding: 30px 24px; }
.tech-logo {
  width: 32px; height: 32px;
  color: var(--indigo);
  transition: color 0.2s;
}
.tech-logo svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.tech-cell:hover .tech-logo { color: var(--teal); }
.tech-cell-wide {
  grid-column: span 5;
  background: var(--offwhite);
  padding: 30px 32px;
}
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 15px; color: var(--indigo);
  background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px;
  transition: border-color 0.2s, color 0.2s;
}
.tech-chip:hover { border-color: var(--teal); color: var(--teal); }
.tech-chip-more {
  font-size: 15px; color: var(--muted); font-style: italic;
  padding: 7px 4px; align-self: center;
}
.tech-cell-note { font-size: 13.5px; color: var(--muted); font-weight: 300; line-height: 1.5; }

/* ═══════════ CASE METRIC — índice ═══════════ */
.case-metric-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; color: var(--teal);
  padding-top: 5px; flex: 0 0 28px;
}


/* ═══════════ DIAGNÓSTICO — página analizar proceso ═══════════ */
.diag-hero {
  min-height: var(--hero-min);
  padding-top: 140px;
  justify-content: center;
  text-align: center;
}
.diag-hero .hero-content { max-width: 900px; }
.diag-hero .section-eyebrow { justify-content: center; }
.diag-hero .hero-title {
  max-width: 100%;
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 24px;
  text-wrap: balance;
}
.diag-hero .hero-sub {
  max-width: 700px;
  margin: 0 auto 40px;
}
.diag-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.diag-assurance {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 13px;
}
.diag-assurance svg { width: 16px; height: 16px; stroke: var(--teal); stroke-width: 2; fill: none; }

/* encabezado centrado (reutilizado en 3 secciones de esta página) */
.section-header-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.section-header-center .section-eyebrow { justify-content: center; }
.section-header-center .section-title { max-width: 22ch; margin: 0 auto; }

/* "¿cuándo tiene sentido?" — la card, no el .result-cell numérico */
.diag-case-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 500; color: var(--indigo);
  letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 14px;
}

/* pasos numerados — .feature-check espera un .check-icon, no un "1." escrito */
.diag-steps {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 0;
  counter-reset: diagstep;
}
.diag-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px; color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.diag-step:last-child { border-bottom: none; }
.diag-step::before {
  counter-increment: diagstep;
  content: counter(diagstep, decimal-leading-zero);
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,180,166,0.12);
  border: 1px solid rgba(0,180,166,0.3);
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
}

/* "qué vas a recibir" — iconos de trazo, sin emoji */
.diag-report-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0,180,166,0.1);
  display: flex; align-items: center; justify-content: center;
}
.diag-report-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal); stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.tech-cell-span-2 .diag-report-icon { background: rgba(245,158,11,0.12); }
.tech-cell-span-2 .diag-report-icon svg { stroke: var(--amber); }
.diag-report-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600; color: var(--indigo);
  letter-spacing: -0.015em;
}
.diag-report-desc { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }

@media (max-width: 640px) {
  .diag-hero { padding-top: 110px; min-height: var(--hero-min); }
  .diag-step { font-size: 14px; gap: 12px; }
}


/* flujo de la página diagnóstico: 4 nodos, 2 de ellos a doble ancho.
   En la rejilla de 3 columnas de .workflow la tercera quedaba siempre vacía. */
.diag-flow-visual {
  background: transparent;
  border: none;
  box-shadow: none;
  aspect-ratio: auto;
}
.diag-flow {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: none;
}
.diag-flow .wf-node-wide { grid-column: span 2; }
.diag-flow .wf-node-highlight {
  background: rgba(0,180,166,0.18);
  border-color: rgba(0,180,166,0.5);
}
.diag-flow .wf-node-highlight .wf-node-icon { background: var(--teal); }
.diag-flow .wf-node-highlight .wf-node-icon svg { stroke: white; }
.diag-flow .wf-node-highlight .wf-node-title { color: white; }
.diag-section-tight { padding: 100px 0; }

@media (max-width: 640px) {
  .diag-flow { grid-template-columns: 1fr; }
  .diag-flow .wf-node-wide { grid-column: auto; }
}

/* ═══════════ HERO — rediseño (portada) ═══════════ */
.hero-w {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 116px 0 56px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(58% 62% at 78% 24%, rgba(0,180,166,0.16) 0%, transparent 62%),
    radial-gradient(60% 65% at 8% 58%, rgba(30,42,74,0.85) 0%, transparent 68%),
    linear-gradient(180deg, #070C17 0%, #0A1324 58%, var(--dark) 100%);
}
.hero-w::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(0deg, var(--dark), transparent);
  pointer-events: none; z-index: 2;
}
.hero-w-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(115% 100% at 50% 28%, #000 32%, transparent 100%);
  mask-image: radial-gradient(115% 100% at 50% 28%, #000 32%, transparent 100%);
  opacity: .8;
}
.hero-w-inner {
  position: relative; z-index: 4;
  width: 100%; max-width: 1520px; margin: 0 auto;
  padding: 0 64px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px; align-items: center;
}
.hero-w-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal);
}
.hero-w-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.hero-w-title {
  margin: 24px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 96px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: #fff;
}
.lw { display: block; overflow: hidden; padding-bottom: 0.06em; }
.lw i {
  display: block; font-style: normal;
  background: linear-gradient(90deg, #fff 42%, rgba(255,255,255,0.62) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lw i.lw-accent {
  background: linear-gradient(100deg, #9FFFF4 0%, #35E0D0 52%, #00A79A 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-w-sub {
  max-width: 520px; margin: 26px 0 0;
  font-size: clamp(15px, 1.18vw, 18px); font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.66);
}
.hero-w-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-w {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  padding: 15px 28px; border-radius: 999px;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-w svg { width: 16px; height: 16px; }
.btn-w--primary {
  color: #062A2C; font-weight: 600;
  background: linear-gradient(120deg, #35E0D0 0%, #00B4A6 100%);
  box-shadow: 0 14px 40px rgba(0,180,166,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-w--primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 18px 46px rgba(0,180,166,0.42); }
.btn-w--ghost {
  color: #fff; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.045);
  -webkit-backdrop-filter: blur(8px) brightness(1.15) saturate(0.8);
  backdrop-filter: blur(8px) brightness(1.15) saturate(0.8);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.06);
}
.btn-w--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.32); }
.hero-w-stats { display: flex; align-items: flex-start; gap: 34px; margin-top: 44px; }
.sw { padding-left: 34px; border-left: 1px solid rgba(255,255,255,0.16); }
.sw:first-child { padding-left: 0; border-left: 0; }
.sw b {
  display: block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.03em; color: #fff;
}
.sw span { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.3; color: rgba(255,255,255,0.52); }

.hero-w-scene {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--fade-x, 44vw) - 9vw), #000 calc(var(--fade-x, 44vw) + 5vw));
  mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--fade-x, 44vw) - 9vw), #000 calc(var(--fade-x, 44vw) + 5vw));
}
.hero-w-scene canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero-w-scene.ready canvas { opacity: 1; }
.no-webgl .hero-w-scene, .no-webgl .hero-w-labels, .no-webgl .hero-w-chips { display: none; }
.hero-w-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-w-chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.hw-node { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .35s; }
.hw-node::before { content: ''; position: absolute; left: 0; bottom: 0; width: 1px; height: var(--lift); background: linear-gradient(to top, #35E0D0, rgba(255,255,255,0.18)); opacity: .45; transition: opacity .35s; }
.hw-card { position: absolute; left: 0; bottom: var(--lift); width: max-content; max-width: 178px; padding: 0 0 2px 12px; border-left: 1px solid rgba(255,255,255,0.22); text-shadow: 0 0 14px #070C17, 0 0 4px #070C17; transition: border-color .35s; }
.hw-kicker { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; color: rgba(255,255,255,0.6); transition: color .35s; }
.hw-card strong { display: block; margin-top: 5px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.hw-card small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.65); }
.hw-node.flip .hw-card { left: auto; right: 0; padding: 0 12px 2px 0; border-left: 0; border-right: 1px solid rgba(255,255,255,0.22); text-align: right; }
.hw-node.flip::before { left: auto; right: 0; }
.hw-node.is-active.flip .hw-card { border-right-color: #35E0D0; }
.hw-node.is-active::before { opacity: 1; }
.hw-node.is-active .hw-card { border-left-color: #35E0D0; }
.hw-node.is-active .hw-kicker { color: #7FF6EC; }

.hw-chip {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid rgba(255,255,255,0.16); border-radius: 99px;
  background: rgba(10,18,32,0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 500; white-space: nowrap; color: #fff;
  will-change: transform, opacity;
}
.hw-chip i { width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }
.hero-w-space { min-height: 620px; }

@keyframes wh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wh-line { from { transform: translateY(112%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.aw { opacity: 0; animation: wh-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
.lw i.aw { animation-name: wh-line; animation-duration: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  .aw { opacity: 1; animation: none; }
  .hero-w-art img { animation: none; }
}

@media (max-width: 1180px) {
  .hero-w { padding: 120px 0 0; min-height: 0; }
  .hero-w-inner { grid-template-columns: 1fr; gap: 0; padding: 0 40px; }
  .hero-w-title { font-size: clamp(42px, 8vw, 76px); }
  .hero-w-sub { max-width: 600px; }
  .hero-w-space { min-height: 400px; }
  .hero-w-scene {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--scene-top, 620px) - 30px), #000 calc(var(--scene-top, 620px) + 80px));
    mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--scene-top, 620px) - 30px), #000 calc(var(--scene-top, 620px) + 80px));
  }
  .hero-w-labels { display: none; }
}
@media (max-width: 640px) {
  .hero-w { padding: 104px 0 0; }
  .hero-w-inner { padding: 0 24px; gap: 0; }
  .hero-w-title { font-size: clamp(38px, 11.4vw, 52px); line-height: 1.03; margin-top: 18px; }
  .hero-w-sub { margin-top: 20px; font-size: 15px; }
  .hero-w-ctas { margin-top: 26px; }
  .btn-w { padding: 14px 22px; font-size: 14px; flex: 1 1 auto; }
  .hero-w-stats { gap: 18px; margin-top: 32px; }
  .sw { padding-left: 18px; }
  .sw b { font-size: 26px; }
  .sw span { font-size: 12px; color: rgba(255,255,255,0.6); }
  .hero-w-space { min-height: 330px; }
  .marquee-track { gap: 36px; padding-right: 36px; }
  .marquee-logo img { height: 28px; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .nav-left { gap: 0; }
  .menu-toggle { display: inline-flex; }
  .nav-mobile-only { display: list-item; }
  .nav-links {
    position: fixed; left: 16px; right: 16px; top: 84px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
    background: rgba(11,18,32,0.96); backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 14px; border-radius: 8px; font-size: 15px; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .nav-links a.active { background: rgba(0,180,166,0.12); color: var(--teal); }
  .nav-links a.active::after { display: none; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-cell-wide { grid-column: span 3; }
  .feature-inner, .feature-section.reversed .feature-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-section.reversed .feature-visual { order: 0; }
  .case-layout { grid-template-columns: 1fr; gap: 64px; }
  .results-header, .tech-header, .testi-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .cf-success { grid-column: 1; }
  .contact-section { padding: 96px 32px; }
}
@media (max-width: 640px) {
  nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 0 16px; }
  .nav-left, .nav-right { min-width: 0; }
  .nav-logo-image { width: 118px; }
  .nav-right { gap: 0; }
  .nav-right > .nav-cta { display: none; }
  .nav-links { display: none; }
  .nav-left { gap: 0; }
  .section, .hero-content, .marquee-label, .results-inner, .feature-inner, .tech-section, .case-inner, .testi-inner, footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 120px 0 64px; }
  .section, .results-section, .feature-section, .case-section, .testi-section, .bigcta-section { padding-top: 80px; padding-bottom: 80px; }
  .results-grid, .results-grid-three { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-cell-wide { grid-column: span 2; }
  .tech-grid-report, .tech-grid-team { grid-template-columns: 1fr; }
  .tech-cell-span-2 { grid-column: auto; }
  .case-metrics-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal-row { flex-wrap: wrap; gap: 14px; }
  .all-services-cta { padding: 80px 24px; }
  .feature-eyebrow-num { font-size: 36px; }
  .testi-card { width: 300px; padding: 24px; }
  .result-num { font-size: 54px; }
  .case-metric-num { font-size: 40px; }
  .feature-visual { aspect-ratio: 3/2; }
  .result-cell { padding: 36px 24px; }
  .workflow { width: 92%; padding: 18px; }
  .contact-section { padding: 72px 24px; }
  .cf-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .cf-success { padding: 28px 22px; }
}
