/* ============================================================
   Mozart Landing — design system
   ============================================================ */
:root {
  --bg: #06070f;
  --bg-soft: #0a0c1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --muted: #9298b3;
  --violet: #7c6cff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --radius: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
}

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

/* ningún medio desborda su contenedor */
img, video, canvas, svg { max-width: 100%; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

.container { width: min(1180px, 92vw); margin: 0 auto; }

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

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

::selection { background: rgba(124, 108, 255, 0.45); }

/* ---------- fondo decorativo ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.bg-glow-1 { width: 560px; height: 560px; top: -180px; left: 8%; background: rgba(124, 108, 255, 0.30); animation: drift 16s ease-in-out infinite alternate; }
.bg-glow-2 { width: 480px; height: 480px; top: 5%; right: -6%; background: rgba(34, 211, 238, 0.18); animation: drift 20s ease-in-out infinite alternate-reverse; }
.bg-glow-3 { width: 520px; height: 520px; bottom: -240px; left: 35%; background: rgba(244, 114, 182, 0.12); animation: drift 24s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 36px, 0) scale(1.08); }
}

/* grid que se resalta alrededor del cursor (foco en los cuadros, no en el glow) */
.bg-grid-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(150, 138, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 200, 230, 0.34) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle 210px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,0.55) 55%, transparent 78%);
  mask-image: radial-gradient(circle 210px at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,0.55) 55%, transparent 78%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* luz de color muy tenue, solo como acento ambiental (sin iluminar de más) */
.bg-spot {
  position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 30%),
    rgba(124, 108, 255, 0.04), rgba(34, 211, 238, 0.02) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.bg-fx.mouse-active .bg-grid-glow { opacity: 0.85; }
.bg-fx.mouse-active .bg-spot { opacity: 0.45; }

/* partículas bokeh flotantes */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* mobile/tablet o punteros táctiles: sin efecto reactivo al cursor */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .bg-grid-glow, .bg-spot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid-glow, .bg-spot { display: none; }
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.07);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.06rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border-radius: 14px; border: 1px solid transparent;
  padding: 13px 26px; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(124, 108, 255, 0.5); }
.btn-ghost {
  border-color: var(--border-strong); color: var(--text); background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
.logo-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  flex: none;
}
.logo-mark img, .logo-mark svg {
  width: 22px; height: 22px; object-fit: contain; object-position: center;
  display: block;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- redes sociales ---------- */
.social-links { display: inline-flex; align-items: center; gap: 6px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
}
.social-link svg { width: 18px; height: 18px; flex: none; }
.social-link-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.social-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.social-link:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}
.social-link--github:hover { color: #f0f6fc; }
.social-link--linkedin:hover { color: #0a66c2; }

.social-links--nav { gap: 4px; }
.nav-v2 .social-link { width: 34px; height: 34px; border-radius: 9px; }
.nav-v2 .social-link svg { width: 17px; height: 17px; }

/* copia de redes dentro del menú hamburger: oculta en desktop, se activa en ≤1024px */
.social-links--menu { display: none; }

.social-links--footer { gap: 10px; margin-top: 2px; }
.social-links--footer .social-link {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border-color: var(--border);
}
.social-links--footer .social-link svg { width: 20px; height: 20px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 4px; border-radius: 999px; line-height: 0;
  display: grid; place-items: center;
}
.lang-switch .flag {
  display: block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0.5; filter: saturate(0.7);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, filter 0.18s ease;
}
.lang-switch .flag svg { width: 100%; height: 100%; display: block; }
.lang-switch button:hover .flag { opacity: 0.85; filter: none; transform: scale(1.1); }
.lang-switch button:focus-visible { outline: none; }
.lang-switch button:focus-visible .flag { box-shadow: 0 0 0 2px var(--cyan); opacity: 1; }
.lang-switch button.active .flag {
  opacity: 1; filter: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 2px var(--violet), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ============================================================
   NAV V2 — variante flotante glassmorphism (modificador aditivo)
   Activar agregando la clase .nav-v2 al <header class="nav">.
   No altera la V1: todo lo de abajo solo aplica con .nav-v2.
   ============================================================ */
.nav-v2 {
  height: auto;
  padding-top: 14px;
  border-bottom: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* la cápsula flotante es el inner */
.nav-v2 .nav-inner {
  height: 56px;
  max-width: 1100px;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  border-radius: 16px;
  background: rgba(20, 22, 34, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* al hacer scroll, la cápsula se vuelve un poco más sólida */
.nav-v2.scrolled .nav-inner {
  background: rgba(12, 14, 24, 0.66);
  border-color: rgba(255, 255, 255, 0.12);
}

/* logo un toque más compacto dentro de la cápsula */
.nav-v2 .logo-img { height: 28px; max-width: 176px; }

/* links centrados con hover tipo pill */
.nav-v2 .nav-links {
  margin-left: auto; margin-right: auto;
  gap: 6px;
}
.nav-v2 .nav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-v2 .nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* acciones derecha: lang-switch y CTA un poco más finos */
.nav-v2 .nav-right { gap: 10px; }
.nav-v2 .lang-switch { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.nav-v2 .btn-sm { box-shadow: 0 4px 16px rgba(124, 108, 255, 0.28); }

/* burger dentro de la cápsula */
.nav-v2 .nav-burger { padding: 6px; }

@media (max-width: 1024px) {
  /* menú mobile: panel flotante redondeado debajo de la cápsula */
  .nav-v2 .nav-links {
    top: calc(100% + 8px);
    left: 4vw; right: 4vw;
    margin: 0;
    padding: 8px 14px 14px;
    border-radius: 16px;
    background: rgba(12, 14, 24, 0.92);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-v2 .nav-links a { border-radius: 10px; padding: 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-v2 .nav-links a:last-child { border-bottom: 0; }

  /* <1024px: las redes salen de la barra principal y pasan al menú desplegable */
  .social-links--nav { display: none; }
  .nav-v2 .social-links--menu {
    display: flex; gap: 10px; margin-top: 6px; padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-v2 .social-links--menu .social-link {
    flex: 1; width: auto; height: auto; gap: 8px;
    padding: 12px 10px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text); font-size: 14.5px; font-weight: 500;
  }
  .nav-v2 .social-links--menu .social-link svg { width: 18px; height: 18px; }
  /* etiqueta visible dentro del menú (en la barra va oculta para accesibilidad) */
  .nav-v2 .social-links--menu .social-link-label {
    position: static; width: auto; height: auto; margin: 0;
    overflow: visible; clip: auto; white-space: nowrap;
  }
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 88px) 0 90px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 8px 18px; margin-bottom: 30px;
}

/* ============================================================
   HERO V2 — cinematográfico, layout asimétrico + escena 3D
   Paleta refinada (índigo → violeta → teal). Self-contained:
   quitar .hero-v2 del <section> revierte al hero clásico.
   ============================================================ */
.hero-v2 {
  --hero-grad: linear-gradient(108deg, #8b7bff 0%, #b89dff 42%, #5eead4 100%);
  position: relative;
  text-align: left;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 48px;
  overflow: hidden;
}
.hero-v2 .gradient-text { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* fondo de video cinematográfico */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-video.is-active { opacity: 0.55; }
/* poster (LCP): mismo encuadre que el video; visible hasta que el video toma el relevo */
.hero-poster {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55; transition: opacity 0.8s ease;
}
.hero-poster.poster-hidden { opacity: 0; }
/* poster estático solo con reduce-motion o save-data (accesibilidad / ahorro de datos) */
.hero-has-video.poster-mode .hero-bg {
  background-image: image-set(url('media/hero-poster.avif') type('image/avif'), url('media/hero-poster-opt.jpg') type('image/jpeg'));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-has-video.poster-mode .hero-poster { opacity: 0 !important; }
.hero-has-video.poster-mode .hero-video { opacity: 0 !important; }
/* overlay para mantener legibilidad del texto (más oscuro a la izquierda) */
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,7,15,0.92) 0%, rgba(6,7,15,0.6) 42%, rgba(6,7,15,0.35) 100%),
    linear-gradient(180deg, rgba(6,7,15,0.55) 0%, transparent 28%, transparent 70%, var(--bg) 100%);
}
.hero-has-video .hero-aurora { opacity: 0.7; }

/* aurora cinematográfica de fondo */
.hero-aurora { position: absolute; inset: -10% -5% 0; z-index: 0; pointer-events: none; filter: blur(60px); }
.hero-aurora .aurora { position: absolute; border-radius: 50%; opacity: 0.5; mix-blend-mode: screen; }
.aurora-1 { width: 620px; height: 620px; top: -180px; right: -60px; background: radial-gradient(circle, rgba(139,123,255,0.55), transparent 65%); animation: auroraDrift 18s ease-in-out infinite alternate; will-change: transform; }
.aurora-2 { width: 520px; height: 520px; top: 120px; right: 240px; background: radial-gradient(circle, rgba(94,234,212,0.32), transparent 65%); animation: auroraDrift 22s ease-in-out infinite alternate-reverse; will-change: transform; }
.aurora-3 { width: 460px; height: 460px; bottom: -160px; left: -80px; background: radial-gradient(circle, rgba(184,157,255,0.30), transparent 65%); animation: auroraDrift 26s ease-in-out infinite alternate; will-change: transform; }
/* con video de fondo, una sola aurora liviana alcanza para el acento de color */
.hero-has-video .hero-aurora { filter: blur(38px); }
.hero-has-video .aurora-2, .hero-has-video .aurora-3 { display: none; }
@keyframes auroraDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px,30px,0) scale(1.12); } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 56px;
}
.hero-copy { max-width: 600px; }

/* jerarquía de texto reforzada */
.hero-v2 .hero-badge { margin-bottom: 26px; }
.hero-v2 .hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.03em; max-width: none; margin-bottom: 22px;
}
.hero-v2 .hero-sub { font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 540px; margin-bottom: 36px; }
.hero-v2 .hero-ctas { justify-content: flex-start; margin-bottom: 44px; }

/* stats como fila inline minimalista (sin caja pesada) */
.hero-v2 .hero-stats {
  background: none; border: 0; backdrop-filter: none; padding: 0;
  width: auto; gap: 0; display: flex; flex-wrap: wrap;
}
.hero-v2 .stat { flex: 0 0 auto; padding: 0 24px; }
.hero-v2 .stat:first-child { padding-left: 0; }
.hero-v2 .stat-value { font-size: 1.7rem; }
.hero-v2 .stat-label { font-size: 12.5px; max-width: 150px; }

/* ---------- escena 3D ---------- */
.hero-visual { perspective: 1400px; display: flex; justify-content: center; }
.scene {
  position: relative; width: min(440px, 100%); aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.scene-glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,123,255,0.35), rgba(94,234,212,0.12) 55%, transparent 72%);
  filter: blur(14px); transform: translateZ(-60px);
}
.scene-ring {
  position: absolute; inset: -2%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(139,123,255,0.65), transparent 32%, rgba(94,234,212,0.6), transparent 64%, rgba(184,157,255,0.55), transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 14s linear infinite; transform: translateZ(-30px);
  will-change: transform;
}
@keyframes spin { to { transform: translateZ(-30px) rotate(360deg); } }

.scene-panel {
  position: absolute; top: 50%; left: 50%;
  width: 78%; transform: translate(-50%, -50%) translateZ(40px) rotateY(-16deg) rotateX(7deg);
  padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(28,30,48,0.85), rgba(14,15,28,0.78));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 54px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: floatPanel 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatPanel {
  0%,100% { transform: translate(-50%,-50%) translateZ(40px) rotateY(-16deg) rotateX(7deg) translateY(0); }
  50%     { transform: translate(-50%,-50%) translateZ(40px) rotateY(-13deg) rotateX(6deg) translateY(-10px); }
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-dots { display: inline-flex; gap: 5px; }
.panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.panel-dots i:first-child { background: rgba(251,113,133,0.7); }
.panel-dots i:nth-child(2) { background: rgba(251,191,36,0.7); }
.panel-dots i:nth-child(3) { background: rgba(52,211,153,0.7); }
.panel-tag { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); white-space: nowrap; }
.panel-metric-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.panel-metric-row { display: flex; align-items: baseline; gap: 10px; }
.panel-metric-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.panel-trend { font-size: 12px; font-weight: 600; color: #5eead4; }
.panel-chart { width: 100%; height: 78px; margin: 10px 0 14px; display: block; }
.chart-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; animation: drawLine 2.6s ease forwards 0.4s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.panel-bars { display: flex; align-items: flex-end; gap: 8px; height: 40px; }
.panel-bars span {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(139,123,255,0.85), rgba(94,234,212,0.3));
  transform-origin: bottom; animation: growBar 0.8s cubic-bezier(0.16,1,0.3,1) backwards;
}
.panel-bars span:nth-child(1) { animation-delay: 0.5s; }
.panel-bars span:nth-child(2) { animation-delay: 0.62s; }
.panel-bars span:nth-child(3) { animation-delay: 0.74s; }
.panel-bars span:nth-child(4) { animation-delay: 0.86s; }
.panel-bars span:nth-child(5) { animation-delay: 0.98s; }
@keyframes growBar { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* nodos orbitando */
.scene-node {
  position: absolute; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--text); padding: 8px 14px; border-radius: 999px;
  background: rgba(22,24,40,0.88); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  white-space: nowrap; animation: floatNode 6s ease-in-out infinite;
  will-change: transform;
}
.node-1 { top: 6%; left: 2%; transform: translateZ(90px); }
.node-2 { top: 22%; right: -4%; transform: translateZ(120px); animation-delay: 1.2s; }
.node-3 { bottom: 14%; left: -6%; transform: translateZ(110px); animation-delay: 2.1s; }
.node-4 { bottom: -2%; right: 6%; transform: translateZ(80px); animation-delay: 0.6s; }
@keyframes floatNode { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* hero v2 responsive */
@media (max-width: 960px) {
  /* en mobile el layout apila el visual arriba y empuja CTAs/stats fuera del fold inicial */
  .hero .reveal { opacity: 1; transform: none; }
  .hero-v2 { text-align: center; padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 620px; margin: 0 auto; order: 2; }
  .hero-visual { order: 1; }
  .hero-v2 .hero-ctas { justify-content: center; }
  .hero-v2 .hero-stats { justify-content: center; }
  .hero-v2 .stat:first-child { padding-left: 24px; }
  .scene { width: min(360px, 78vw); }
}
@media (max-width: 960px) {
  /* overlay simétrico cuando el texto pasa a estar centrado */
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(6,7,15,0.7) 0%, rgba(6,7,15,0.55) 45%, rgba(6,7,15,0.8) 75%, var(--bg) 100%);
  }
}
@media (max-width: 560px) {
  /* mobile: escena simplificada (sin nodos), foco en el panel */
  .scene-node { display: none; }
  .scene { width: min(300px, 84vw); }
  .hero-v2 .hero-stats { gap: 4px 0; }
  .hero-v2 .stat { padding: 0 14px; }
  .hero-v2 .stat:first-child { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .scene-ring, .scene-panel, .panel-bars span, .chart-stroke, .scene-node { animation: none; }
  .chart-stroke { stroke-dashoffset: 0; }
  .scene { transform: rotateX(4deg) rotateY(-10deg); }
  /* el video queda en pausa (poster) — gestionado en hero.js */
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.4); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 700; max-width: 980px; margin-bottom: 26px; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 680px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 70px; }

.hero-stats {
  display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(10px);
  padding: 26px 10px; width: min(820px, 100%);
}
.stat { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 26px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 13.5px; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden; padding: 18px 0; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; flex-wrap: nowrap; width: max-content;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}
.marquee-group { display: flex; flex-wrap: nowrap; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted);
  margin: 0 17px; flex: none;
}
/* desplaza exactamente el ancho de un grupo → reinicio invisible */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}

/* ---------- cards servicios ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 108, 255, 0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.12rem; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-violet { background: rgba(124, 108, 255, 0.14); color: var(--violet); }
.icon-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.icon-pink   { background: rgba(244, 114, 182, 0.12); color: var(--pink); }
.icon-amber  { background: rgba(251, 191, 36, 0.12); color: var(--amber); }

/* ---------- sección IA ---------- */
.ai-section {
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.05) 30%, rgba(34, 211, 238, 0.04) 70%, transparent);
}
.ai-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
.ai-copy .section-title { margin-bottom: 16px; }
.ai-copy .section-sub { margin-bottom: 28px; }

.ai-bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.ai-bullets li { display: flex; gap: 12px; align-items: flex-start; color: #c9cde4; font-size: 15.5px; }
.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(52, 211, 153, 0.14); color: var(--green); margin-top: 2px;
}

.chat-card {
  background: rgba(13, 15, 30, 0.85); border: 1px solid var(--border-strong); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 108, 255, 0.08);
  overflow: hidden; max-width: 440px; margin: 0 auto;
  transform: rotate(1.2deg);
  transition: transform 0.3s ease;
}
.chat-card:hover { transform: rotate(0deg) scale(1.01); }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  background: var(--grad); color: #fff;
}
.chat-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); }

.chat-body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45;
}
.bubble-user { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 5px; }
.bubble-ai { align-self: flex-end; background: linear-gradient(120deg, rgba(124,108,255,0.32), rgba(34,211,238,0.22)); border: 1px solid rgba(124, 108, 255, 0.3); border-bottom-right-radius: 5px; }

.chat-tag {
  align-self: center; margin-top: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--green);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 7px 16px; border-radius: 999px;
}

/* prueba social — inmobiliarias BC */
.ai-proof-wrap { margin-top: 64px; }
.ai-proof {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px 40px;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.06), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-proof-metric {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 88px; padding-right: 32px;
  border-right: 1px solid var(--border);
}
.ai-proof-num {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ai-proof-metric-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-align: center; max-width: 9ch;
}

.ai-proof-body { min-width: 0; }
.ai-proof-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.ai-proof-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
}
.ai-proof-title {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 8px; color: var(--text);
}
.ai-proof-text { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 52ch; }
.ai-proof-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.ai-proof-location,
.ai-proof-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: #aeb4cf;
}
.ai-proof-location svg,
.ai-proof-badge svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }
.ai-proof-badge { color: var(--cyan); }

.ai-proof-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ai-proof-agencies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ai-proof-agency {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(201, 205, 228, 0.55);
}
.ai-proof-agency svg { width: 22px; height: 22px; }
.ai-proof-caption {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); text-align: center; max-width: 14ch;
}

/* ---------- proyectos ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.case-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease;
}
.case-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.case-visual {
  height: 190px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; position: relative; overflow: hidden;
}

.case-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 22px 24px 26px;
}
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.case-body > .case-tag { margin-bottom: 10px; }
.case-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
}
.case-tag-private {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.06em;
}
.case-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: 14.5px; }

/* viz: pampa (mini dashboard) */
.viz-pampa { background: linear-gradient(160deg, rgba(124, 108, 255, 0.12), rgba(13, 15, 30, 0.4)); gap: 14px; }
.viz-ticker { display: flex; gap: 14px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; }
.viz-ticker .up { color: var(--green); }
.viz-ticker .down { color: var(--red); }
.viz-bars { display: flex; align-items: flex-end; gap: 9px; height: 100px; }
.viz-bars i {
  flex: 1; height: var(--h); border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--violet), rgba(124, 108, 255, 0.15));
}
.viz-bars i:nth-child(even) { background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.12)); }

/* viz: vouchera (ticket) */
.viz-vouchera { background: linear-gradient(160deg, rgba(34, 211, 238, 0.10), rgba(13, 15, 30, 0.4)); justify-content: center; align-items: center; }
.voucher {
  width: 78%; background: rgba(13, 15, 30, 0.9); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 16px; transform: rotate(-2deg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.voucher-top { display: flex; justify-content: space-between; align-items: center; }
.voucher-brand { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); }
.voucher-amount { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.voucher-divider { border-top: 2px dashed var(--border-strong); margin: 12px -16px; position: relative; }
.voucher-divider::before, .voucher-divider::after {
  content: ''; position: absolute; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #11142a;
}
.voucher-divider::before { left: -7px; }
.voucher-divider::after { right: -7px; }
.voucher-bottom { display: flex; justify-content: space-between; align-items: center; }
.voucher-qr { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; }
.voucher-qr i { width: 7px; height: 7px; background: var(--text); border-radius: 1.5px; }
.voucher-qr i:nth-child(2n) { opacity: 0.35; }
.voucher-code { font-size: 12px; font-weight: 600; color: var(--green); }

/* viz: league (ranking) */
.viz-league { background: linear-gradient(160deg, rgba(251, 191, 36, 0.09), rgba(13, 15, 30, 0.4)); justify-content: center; gap: 12px; }
.podium-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.podium-row .pos {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #0a0c1a;
}
.gold .pos { background: var(--amber); }
.silver .pos { background: #cbd5e1; }
.bronze .pos { background: #d8a173; }
.podium-row .pname { width: 64px; flex: none; color: #c9cde4; font-weight: 500; }
.podium-row i { display: block; height: 10px; border-radius: 999px; width: var(--w); background: var(--grad); opacity: 0.85; }
.silver i { opacity: 0.55; }
.bronze i { opacity: 0.4; }
.podium-row .pts { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--muted); }

/* viz: shop chellas (mini storefront e-commerce) */
.viz-shop { background: linear-gradient(160deg, rgba(149, 191, 71, 0.12), rgba(13, 15, 30, 0.4)); justify-content: center; align-items: center; }
.shop-card {
  width: 78%; background: rgba(13, 15, 30, 0.9); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.shop-thumb {
  height: 64px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(149, 191, 71, 0.55), rgba(94, 142, 62, 0.25));
}
.shop-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.shop-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text); }
.shop-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #95bf47; }
.shop-cart {
  display: block; text-align: center; font-size: 12px; font-weight: 600; color: #0a0c1a;
  background: #95bf47; border-radius: 8px; padding: 7px 10px;
}

/* viz: carta digital (mini menú QR) */
.viz-carta { background: linear-gradient(160deg, rgba(251, 146, 60, 0.12), rgba(13, 15, 30, 0.4)); justify-content: center; align-items: center; }
.menu-card {
  width: 82%; background: rgba(13, 15, 30, 0.92); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.menu-brand { display: block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: #fb923c; margin-bottom: 10px; }
.menu-section { margin-bottom: 8px; }
.menu-cat { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.menu-item { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #c9cde4; padding: 2px 0; }
.menu-item span:last-child { font-family: var(--font-display); font-weight: 600; color: var(--text); flex: none; }
.menu-qr { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 600; color: var(--green); }

/* viz: travelpro (portal mayorista) */
.viz-travelpro { background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(13, 15, 30, 0.4)); justify-content: center; align-items: center; }
.portal-card {
  width: 78%; background: rgba(13, 15, 30, 0.92); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 18px 16px; text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.portal-logo { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }
.portal-sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin: 4px 0 14px; }
.portal-badges { display: flex; flex-direction: column; gap: 6px; }
.portal-badges span {
  font-size: 11px; font-weight: 600; color: #93c5fd;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 8px; padding: 6px 10px;
}

/* links externos de una card (sitio, stores) */
.case-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: auto; padding-top: 14px;
}
.case-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--cyan);
  transition: color 0.15s ease, gap 0.15s ease;
}
.case-link:hover { color: var(--text); gap: 8px; }

.case-demo-wrap { position: relative; display: inline-flex; align-items: center; }
.case-demo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 8px;
  background: rgba(59, 130, 246, 0.1); color: var(--muted); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.case-demo-btn svg { width: 15px; height: 15px; }
.case-demo-btn:hover,
.case-demo-btn[aria-expanded="true"] { color: var(--cyan); background: rgba(59, 130, 246, 0.18); }
.case-demo-popover {
  position: fixed; z-index: 200; width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  background: #12152a; border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.case-demo-title {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.case-demo-row {
  margin: 0; font-size: 12.5px; color: #c9cde4; line-height: 1.5;
}
.case-demo-row + .case-demo-row { margin-top: 4px; }
.case-demo-row span { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.case-demo-row code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px; color: var(--text); font-weight: 500;
}

/* ---------- proceso ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.9;
}
.step h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- contacto ---------- */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.05));
}
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 26px; align-items: start; }
/* permitir que las pistas 1fr se achiquen por debajo del min-content del contenido */
.contact-aside, .lead-form { min-width: 0; }

.contact-aside {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
}
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-line { display: flex; gap: 12px; align-items: center; color: #c9cde4; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
a.contact-line:hover { color: var(--text); }
.contact-ico { width: 24px; text-align: center; flex: none; }
.wa-line { color: var(--green); font-weight: 600; }

.lead-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; position: relative;
}

.btn-wa {
  background: #25d366; color: #062b16; margin-bottom: 18px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.28);
}
.btn-wa svg { flex: none; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(37, 211, 102, 0.42); background: #22c35e; }

.form-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 12.5px; margin-bottom: 22px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: #c9cde4; }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239298b3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-field select option { background: #11142a; color: var(--text); }

.form-error { margin-top: 14px; color: var(--red); font-size: 14px; text-align: center; }

.form-success {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: rgba(10, 12, 26, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 30px; animation: fadeIn 0.4s ease;
}
.form-success[hidden] { display: none; }
.success-emoji { font-size: 44px; margin-bottom: 6px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 50px 0 56px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer .logo-img { height: 40px; max-width: 240px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; }
.footer-rights { color: #5a607c; font-size: 13px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .ai-grid { grid-template-columns: 1fr; gap: 50px; }
  .ai-proof { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 24px; }
  .ai-proof-metric {
    flex-direction: row; gap: 14px; min-width: 0; padding-right: 0;
    border-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  .ai-proof-metric-label { max-width: none; text-align: left; }
  .ai-proof-body { display: flex; flex-direction: column; align-items: center; }
  .ai-proof-text { max-width: none; }
  .ai-proof-meta { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 7, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 4vw 18px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .stat { padding: 0; align-items: center; text-align: center; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-right .btn { display: none; }
  .nav-v2 .nav-inner { padding: 0 8px 0 12px; }
  .nav-v2 .logo-img { height: 24px; max-width: 150px; }
  .nav-v2 .social-link { width: 32px; height: 32px; }
  .nav-v2 .social-link svg { width: 16px; height: 16px; }
  .chat-card { transform: none; }
}

@media (max-width: 460px) {
  .lang-switch button { padding: 5px 8px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .nav-v2 .logo-img { height: 22px; max-width: 132px; }
}
