/* ===== Design tokens ===== */
:root {
  --bg: #0a0c12;
  --bg-alt: #0d1019;
  --surface: #12151e;
  --surface-2: #181c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #9aa3b3;
  --muted-2: #676f80;
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --accent: #38bdf8;
  --brand-rgb: 59, 130, 246;
  --grad: linear-gradient(115deg, #60a5fa 0%, #3b82f6 45%, #2563eb 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; background: #06060b; --scroll: 0; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* El contenido va sobre el fondo dinámico */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ===== Fondo: malla de puntos + foco interactivo (estilo estudio) ===== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--bg);
  /* posición del foco (la mueve el JS con el mouse / scroll) */
  --mx: 50%;
  --my: 28%;
}

/* Capa base: malla de puntos. La animación da un leve acercamiento. */
.bg-dots {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(circle, rgba(150, 175, 220, 0.10) 1.1px, transparent 1.8px);
  background-size: 32px 32px;
  transform: translate3d(0, calc(var(--scroll) * 40px), 0) scale(1);
  animation: bgZoom 22s ease-in-out infinite;
  will-change: transform;
}
@keyframes bgZoom {
  0%, 100% { transform: translate3d(0, calc(var(--scroll) * 40px), 0) scale(1); }
  50%      { transform: translate3d(0, calc(var(--scroll) * 40px), 0) scale(1.08); }
}

/* Puntos brillantes, visibles SOLO bajo el foco (sigue el mouse) */
.bg-dots-bright {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(circle, rgba(130, 185, 255, 1) 1.3px, transparent 1.9px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(440px circle at var(--mx) var(--my), #000 0%, transparent 72%);
  mask-image: radial-gradient(440px circle at var(--mx) var(--my), #000 0%, transparent 72%);
}

/* Tinte cuyo color evoluciona con el scroll (azul → cian → violeta) */
.bg-tint {
  position: absolute;
  inset: 0;
  filter: hue-rotate(calc(var(--scroll, 0) * 70deg));
  transition: filter 0.25s linear;
}

/* Resplandor que viaja verticalmente según el avance del scroll */
.bg-scroll-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    760px 480px at 50% calc(var(--scroll, 0) * 125% - 12%),
    rgba(56, 189, 248, 0.13),
    transparent 62%
  );
}

/* Halo azul ambiental en la posición del foco */
.bg-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(640px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.20), transparent 62%);
  transition: background-position 0.2s ease;
}

/* Segundo halo que deriva solo (vida sin mouse / en móvil) */
.bg-aura-drift {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at 72% 62%, rgba(96, 165, 250, 0.12), transparent 60%);
  animation: auraDrift 19s ease-in-out infinite;
  will-change: transform;
}
@keyframes auraDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(-8%, 6%, 0); }
  66%      { transform: translate3d(6%, -5%, 0); }
}

/* Viñeta para profundidad en los bordes */
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, transparent 55%, rgba(6, 6, 11, 0.45) 100%),
    radial-gradient(ellipse 120% 85% at 50% 100%, transparent 50%, rgba(6, 6, 11, 0.6) 100%);
}

a { color: inherit; text-decoration: none; }

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

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.7);
}
.btn-primary:hover { background: #2563eb; box-shadow: 0 12px 30px -8px rgba(59, 130, 246, 0.8); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--text); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; }
.logo-full { height: 36px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.14), rgba(56, 189, 248, 0.06) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { text-align: left; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scene { position: relative; }

/* ===== Trust ===== */
.trust { padding: 30px 0 10px; }
.trust-label { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 20px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; }
.trust-row span { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--muted); opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.trust-row span:hover { opacity: 1; color: var(--text); }

/* ===== Franja de logos de clientes (carrusel solo logos) ===== */
.logo-strip { padding: 40px 0 12px; }
.logo-strip-label {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.logos-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.logos-track.is-animating {
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}
.logos-marquee:hover .logos-track.is-animating { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-logo {
  height: 42px;
  width: auto;
  margin-right: 64px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.strip-logo:hover { opacity: 1; }
.strip-logo-mark { height: 48px; border-radius: 11px; }
.strip-logo-round { border-radius: 50%; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: rgba(12, 13, 22, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Grid + Cards ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card-icon { margin-bottom: 18px; }
/* Íconos SVG de línea (reemplazan emojis) */
.card-icon svg, .mvp-ic svg, .feature-ic svg {
  color: var(--brand-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon svg { width: 30px; height: 30px; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Products ===== */
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.product.featured {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--surface));
  box-shadow: var(--shadow);
}
.product-top { margin-bottom: 14px; }
.product-logo { width: 48px; height: 48px; border-radius: 12px; display: block; margin-bottom: 16px; object-fit: cover; }
.product-shot {
  margin: -30px -30px 24px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.product-shot .browser-bar { padding: 8px 12px; gap: 6px; }
.product-shot .browser-bar span { width: 8px; height: 8px; }
.product-shot .shot-img { height: 152px; overflow: hidden; background: var(--bg); }
.product-shot .shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 12px;
}
.tag-accent { background: rgba(59, 130, 246, 0.18); color: #bfdbfe; }
.product h3 { font-size: 1.4rem; }
.product > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 18px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.checklist li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.link-arrow { margin-top: auto; color: var(--brand-2); font-weight: 600; font-size: 0.95rem; transition: gap 0.2s; }
.link-arrow:hover { color: #93c5fd; }

/* ===== Showcase (producto destacado) ===== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}
/* Marco de navegador (estilo Stripe / Linear / Vercel) */
.shot-stage {
  position: relative;
  margin: 36px 0 0;
  padding: 10px;
}
.shot-stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 10%;
  width: 70%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), 0.45), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.browser-frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
  line-height: 0;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--muted-2);
  background: var(--bg);
  padding: 4px 14px;
  border-radius: 7px;
  line-height: 1.4;
}
.showcase-shot { width: 100%; height: auto; display: block; }
.showcase-info .tag { margin-bottom: 16px; }
.showcase-logo { display: block; height: 46px; width: auto; }
.showcase-title { margin: 0 0 18px; line-height: 0; }

/* Solo para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.showcase-lead { color: var(--text); font-size: 1.05rem; margin-bottom: 14px; }
.showcase-for { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.showcase-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.showcase-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature-ic { line-height: 1; flex-shrink: 0; }
.feature-ic svg { width: 22px; height: 22px; }
.feature strong { display: block; font-family: var(--display); font-size: 0.98rem; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

/* ===== Hero microcopy ===== */
.hero-microcopy { margin-top: 26px; font-size: 0.9rem; color: var(--muted-2); }

/* ===== Métricas ===== */
.metrics { padding: 8px 0 4px; }
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 13, 22, 0.55);
}
.metric { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.metric strong { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { font-size: 0.86rem; color: var(--muted); }

/* ===== Por qué JABEX (diferenciadores) ===== */
.why {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.why:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why-num { font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--brand-2); display: block; margin-bottom: 12px; }
.why h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why p { color: var(--muted); font-size: 0.95rem; }

/* ===== Misión / Visión / Propósito ===== */
.mvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.mvp-card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mvp-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mvp-featured {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), var(--surface));
  box-shadow: var(--shadow);
}
.mvp-ic { margin-bottom: 16px; display: grid; place-items: center; }
.mvp-ic svg { width: 34px; height: 34px; }
.mvp-card .mvp-ic { justify-content: center; }
.mvp-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.mvp-card p { color: var(--muted); font-size: 0.97rem; }
.values-head { text-align: center; margin-bottom: 28px; }
.values-head h3 { font-size: 1.4rem; }
.portfolio-head { text-align: center; margin: 56px 0 28px; }
.portfolio-head h3 { font-size: 1.4rem; }

/* ===== Clientes (grid estático) ===== */
.clients-grid { align-items: stretch; }
.client-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.client-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.client-mark-round { border-radius: 50% !important; }
.client-logo-wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.client-logo { max-height: 56px; max-width: 230px; width: auto; height: auto; object-fit: contain; }
.client-mark { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; }
.client-name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; }
.client-body { display: flex; flex-direction: column; }
.client-body .tag { margin-bottom: 12px; }
.client-body > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 18px; }
.client-body .link-arrow { margin-top: auto; }

/* ===== Testimonios ===== */
.testi {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0;
}
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 0.95rem; }
.testi blockquote { margin: 0; font-size: 1.02rem; color: var(--text); line-height: 1.55; }
.testi figcaption { margin-top: auto; }
.testi figcaption strong { display: block; font-family: var(--display); }
.testi figcaption span { color: var(--muted); font-size: 0.88rem; }

/* ===== FAQ ===== */
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-2);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 0.96rem; padding: 0 0 20px; margin: 0; max-width: 92%; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num { font-family: var(--display); font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 14px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 10px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.value strong { display: block; font-family: var(--display); margin-bottom: 6px; }
.value span { color: var(--muted); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section { padding-bottom: 110px; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 50px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%),
    var(--surface);
}
.cta-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.cta-text p { color: var(--muted); }
.cta-benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cta-benefits li { position: relative; padding-left: 28px; font-size: 0.95rem; color: var(--text); }
.cta-benefits li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form input, .cta-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--muted-2); }
.cta-form input:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.form-note { font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.hidden-field { display: none; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; background: rgba(12, 13, 22, 0.65); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-full { height: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 280px; }
.footer-made { font-size: 0.9rem; }
.footer-made a { color: var(--brand-2); font-weight: 600; }
.footer-made a:hover { color: #93c5fd; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted-2);
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Efecto 3D (tilt interactivo + glare) ===== */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.2s ease;
  will-change: transform;
}
.tilt.is-tilting { transition: transform 0.05s linear, border-color 0.2s ease; }
/* Anula el translateY de hover para que mande el tilt 3D */
.tilt:hover { transform: none; }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.tilt.is-tilting::after { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-card { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .mvp { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 4px; font-size: 16px; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  .footer-cols { grid-template-columns: 1fr; }
  .showcase-features { grid-template-columns: 1fr; }
  .showcase { padding: 28px; }
  .metrics-row { grid-template-columns: 1fr; padding: 22px; }
  .client-card { padding: 26px; }
}

/* ===== Escena 3D interactiva (Three.js propio) ===== */
.spline3d-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(6, 7, 12, 0.96);
  box-shadow: var(--shadow);
  min-height: 460px;
}
/* Spotlight: SVG animado igual que el componente original (aceternity) */
.spline3d-card .spotlight {
  position: absolute;
  top: 0;
  left: 0;
  height: 169%;
  width: 138%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: spotlight 2s ease 0.75s 1 forwards;
}
@keyframes spotlight {
  0%   { opacity: 0; transform: translate(-72%, -62%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -40%) scale(1); }
}
.spline3d-canvas {
  position: relative;
  z-index: 2;
  min-height: 460px;
}
.spline3d-canvas .jabex3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* ===== Video hero (Seedance) — se superpone a la escena 3D al cargar ===== */
.spline3d-video {
  position: absolute;
  inset: 0;
  z-index: 3; /* por encima del canvas 3D (z-index: 2) */
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.spline3d-video.is-ready { opacity: 1; }
.spline3d-video .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Sección video de venta ===== */
.sales-video-wrap {
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: rgba(6, 7, 12, 0.96);
}
.sales-video { width: 100%; height: auto; display: block; }
/* Spinner mientras se descarga la escena 3D (carga diferida) */
.spline3d-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: spline-spin 0.8s linear infinite;
}
.spline3d-canvas.is-loaded .spline3d-loader { display: none; }
@keyframes spline-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .spline3d-card { min-height: 360px; }
  .spline3d-canvas { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-dots { animation: none !important; transform: none !important; }
  .bg-aura-drift { animation: none !important; }
  .bg-tint { filter: none !important; }
  .logos-marquee { overflow-x: auto; }
  .spline3d-card .spotlight { animation: none !important; opacity: 1; transform: translate(-50%, -40%); }
  .spline3d-loader { animation: none !important; }
  /* Sin autoplay: muestra el poster como fondo estático de la card */
  .spline3d-video .hero-video { display: none; }
}

/* ============================================================
   Pulido de diseño "de agencia" (guía ui-ux-pro-max)
   Bento asimétrico · micro-interacciones · foco accesible ·
   ritmo de espaciado · detalles tipográficos
   ============================================================ */

/* Foco visible consistente para navegación con teclado (a11y) */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Más aire entre secciones (ritmo vertical) */
.section { padding: 104px 0; }
.section-head { margin-bottom: 60px; }
.grid { gap: 26px; }
.hero-title { letter-spacing: -0.03em; }

/* Eyebrow con líneas de acento simétricas (detalle de marca) */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2));
}
.section-head .eyebrow::after { transform: scaleX(-1); }

/* Superficies con un sutil degradado superior (look premium, no plano) */
.card, .why, .mvp-card, .client-card, .testi, .step, .product, .value {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 42%),
    var(--surface);
}

/* Micro-interacción "firma": glow azul al hover (tipo Linear / Vercel) */
.card:hover, .why:hover, .mvp-card:hover, .client-card:hover, .product:hover, .feature:hover, .step:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 20px 44px -26px rgba(59, 130, 246, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.step { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.step:hover { transform: translateY(-4px); }

/* Línea de acento superior que aparece al hover en las tarjetas clave */
.card, .why, .mvp-card { position: relative; overflow: hidden; }
.card::before, .why::before, .mvp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}
.card:hover::before, .why:hover::before, .mvp-card:hover::before { opacity: 1; }

/* Botón primario con degradado + brillo interior sutil */
.btn-primary {
  background: var(--grad);
  box-shadow:
    0 10px 28px -10px rgba(59, 130, 246, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  background: var(--grad);
  filter: brightness(1.06);
  box-shadow:
    0 16px 36px -12px rgba(59, 130, 246, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ---- Bento asimétrico en Servicios (solo desktop) ---- */
@media (min-width: 901px) {
  .services-bento { grid-auto-flow: dense; }
  .services-bento > .card:nth-child(1),
  .services-bento > .card:nth-child(4),
  .services-bento > .card:nth-child(5) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "icon desc";
    column-gap: 26px;
    row-gap: 8px;
    align-content: center;
    background:
      radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 42%),
      var(--surface);
  }
  .services-bento > .card:nth-child(1) .card-icon,
  .services-bento > .card:nth-child(4) .card-icon,
  .services-bento > .card:nth-child(5) .card-icon {
    grid-area: icon;
    align-self: start;
    margin-bottom: 0;
    width: 60px; height: 60px;
  }
  .services-bento > .card:nth-child(1) .card-icon svg,
  .services-bento > .card:nth-child(4) .card-icon svg,
  .services-bento > .card:nth-child(5) .card-icon svg { width: 34px; height: 34px; }
  .services-bento > .card:nth-child(1) h3,
  .services-bento > .card:nth-child(4) h3,
  .services-bento > .card:nth-child(5) h3 { grid-area: title; align-self: end; font-size: 1.35rem; }
  .services-bento > .card:nth-child(1) p,
  .services-bento > .card:nth-child(4) p,
  .services-bento > .card:nth-child(5) p { grid-area: desc; max-width: 54ch; }
}

/* Bento: en tablet/móvil vuelve a tarjetas normales (sobreescribe spans) */
@media (max-width: 900px) {
  .services-bento > .card { grid-column: auto; }
}
