/* ============================================================
   AUTOMATEKT — Design tokens & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Color */
  --bg: #0a0d16;
  --bg-alt: #0e1220;
  --surface: rgba(255,255,255,0.045);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --text: #F5F7FA;
  --text-muted: #9AA3B5;
  --text-faint: #6B7280;
  --blue: #0EA5E9;
  --blue-soft: #38BDF8;
  --purple: #8B5CF6;
  --purple-soft: #A78BFA;
  --green: #10B981;

  /* Type */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}

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

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--purple); color: #fff; }

a, button, .pill, .chat-bubble, .nav-burger, summary, input[type="range"]::-webkit-slider-thumb {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 132px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-soft); box-shadow: 0 0 12px var(--blue-soft); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
}
.section-sub { color: var(--text-muted); font-size: 17px; max-width: 560px; margin-top: 16px; }
.section-head { margin-bottom: 68px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.grad-text {
  background: linear-gradient(135deg, var(--blue-soft), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ SCROLL-DRIVEN REVEAL ============ */
/* Firma de entrada por defecto: fade + subida (usada en encabezados de sección) */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(0px);
  transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out), filter 750ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Servicios: pop con ligero rebote de escala */
[data-animate][data-anim="pop"] { transform: scale(0.86) translateY(18px); }
[data-animate][data-anim="pop"].is-visible { transform: scale(1) translateY(0); transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Resultados: las cifras "suben" con un leve zoom */
[data-animate][data-anim="rise"] { transform: translateY(48px) scale(0.96); }
[data-animate][data-anim="rise"].is-visible { transform: translateY(0) scale(1); }

/* Proceso: pasos alternan entrada izquierda/derecha, como una línea de tiempo */
[data-animate][data-anim="slide-left"] { transform: translateX(-54px); }
[data-animate][data-anim="slide-left"].is-visible { transform: translateX(0); }
[data-animate][data-anim="slide-right"] { transform: translateX(54px); }
[data-animate][data-anim="slide-right"].is-visible { transform: translateX(0); }

/* Antes/Después: se enfoca, como una transformación que se revela */
[data-animate][data-anim="blur-in"] { transform: scale(1.04); filter: blur(14px); }
[data-animate][data-anim="blur-in"].is-visible { transform: scale(1); filter: blur(0); }

/* Calculadora: zoom tipo panel encendiéndose */
[data-animate][data-anim="scale-in"] { transform: scale(0.9); }
[data-animate][data-anim="scale-in"].is-visible { transform: scale(1); }

/* CTA final: destello + pop, para el momento de conversión */
[data-animate][data-anim="glow-pop"] { transform: scale(0.92); }
[data-animate][data-anim="glow-pop"].is-visible { transform: scale(1); animation: glow-pop-flash 1100ms var(--ease-out) var(--reveal-delay, 0ms); }
@keyframes glow-pop-flash {
  0% { box-shadow: 0 0 0 rgba(14,165,233,0); }
  35% { box-shadow: 0 0 70px rgba(14,165,233,0.3); }
  100% { box-shadow: 0 0 0 rgba(14,165,233,0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none !important; animation: none !important;
    opacity: 1 !important; transform: none !important; filter: none !important; box-shadow: none !important;
  }
}

/* ============ TEXTO: utilidades de accesibilidad ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ TEXTO: reveal por palabras (titular del hero) ============ */
.word-reveal-item {
  display: inline-block; opacity: 0; transform: translateY(0.65em) scale(0.96);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 130ms);
}
[data-word-reveal].is-visible .word-reveal-item { opacity: 1; transform: translateY(0) scale(1); }

/* ============ TEXTO: máquina de escribir (insignia del hero) ============ */
[data-typewriter].is-typing { border-right: 2px solid var(--blue-soft); animation: tw-caret 0.85s steps(1) infinite; padding-right: 2px; }
@keyframes tw-caret { 50% { border-right-color: transparent; } }

/* ============ TEXTO: subrayado animado (tarjetas de Servicios) ============ */
.text-underline-anim { position: relative; display: inline-block; }
.text-underline-anim::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2.5px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-soft), var(--purple-soft));
  box-shadow: 0 0 10px rgba(56,189,248,0.5);
  transition: width 650ms var(--ease-out);
}
.bento-card:hover .text-underline-anim::after { width: 100%; }

/* ============ TEXTO: brillo animado (CTA final) ============ */
.shiny-text {
  background: linear-gradient(100deg, var(--text) 30%, rgba(255,255,255,0.4) 42%, #fff 50%, rgba(255,255,255,0.4) 58%, var(--text) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-position: 160% 0;
}
[data-animate].is-visible .shiny-text { animation: shiny-sweep 1.8s ease-in-out 1; }
@keyframes shiny-sweep { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* ============ TEXTO: letras que se voltean (logo del navbar) ============ */
.logo-word { display: inline-flex; }
.swap-letter { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; vertical-align: top; }
.swap-letter-inner { display: flex; flex-direction: column; transition: transform 600ms var(--ease-out); }
.swap-letter-line { display: block; height: 1.2em; line-height: 1.2; }
.letter-swap-host:hover .swap-letter-inner { transform: translateY(-50%); }

/* ============ BACKGROUND FX ============ */
#fx-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025; mix-blend-mode: overlay; }
.orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.32; will-change: transform; }
.orb-blue { width: 520px; height: 520px; background: var(--blue); top: -12%; left: -8%; animation: drift1 28s ease-in-out infinite alternate; }
.orb-purple { width: 580px; height: 580px; background: var(--purple); top: 28%; right: -14%; animation: drift2 34s ease-in-out infinite alternate; }
.orb-green { width: 420px; height: 420px; background: var(--green); bottom: -14%; left: 24%; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 80px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px, 50px) scale(0.92); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, -60px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ============ GLASS & BUTTONS ============ */
.glass {
  position: relative;
  --spot-x: -999px; --spot-y: -999px;
  background-color: var(--surface);
  background-image:
    radial-gradient(240px circle at var(--spot-x) var(--spot-y), rgba(255,255,255,0.10), transparent 70%),
    radial-gradient(130% 150% at 0% 0%, rgba(255,255,255,0.07), transparent 55%);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 44px rgba(0,0,0,0.28);
}
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(155deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(255,255,255,0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.glass::after {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1.5px;
  background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(255,255,255,0.85), rgba(139,92,246,0.4) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  opacity: 0; transition: opacity 280ms ease;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn-glow { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(14,165,233,0.4); }
.btn-glow:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--blue-soft); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }

/* ============ NAVBAR ============ */
.nav-wrap { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 100; display: flex; justify-content: center; }
#navbar {
  width: 100%; max-width: 1180px; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 14px 0 18px;
  border-radius: 999px;
  background: rgba(10,13,22,0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
#navbar.scrolled { background: rgba(10,13,22,0.82); border-color: var(--border-strong); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; min-width: 0; }
.nav-logo-mark { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 18px rgba(14,165,233,0.4); }
.nav-links { display: flex; align-items: center; gap: 8px; position: relative; }
.nav-links a { position: relative; z-index: 1; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 200ms ease; padding: 9px 16px; border-radius: 999px; }
.nav-links a:hover { color: var(--text); }
.nav-limelight {
  position: absolute; top: 50%; left: 0; z-index: 0; width: 100px; height: 36px;
  margin-top: -18px; margin-left: -50px; border-radius: 999px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(56,189,248,0.5), rgba(139,92,246,0.4) 55%, transparent 75%);
  filter: blur(4px);
  transition: opacity 220ms ease, transform 90ms linear;
}
.nav-links:hover .nav-limelight { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.04); align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); transition: transform 220ms var(--ease-out); }
.nav-burger span::before { top: -5px; } .nav-burger span::after { top: 5px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(5px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile-panel { display: none; position: fixed; top: calc(var(--nav-h) + 28px); left: 16px; right: 16px; z-index: 99; flex-direction: column; gap: 4px; padding: 14px; }
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a { padding: 13px 12px; border-radius: var(--radius-sm); font-size: 15.5px; color: var(--text); transition: background-color 200ms ease; }
.nav-mobile-panel a:hover { background: rgba(255,255,255,0.06); }

/* ============ HERO COPY (reused inside scroll-hero-content) ============ */
.hero-title { font-family: var(--font-head); font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.hero-text { color: var(--text-muted); font-size: 18.5px; max-width: 480px; margin: 24px auto 36px; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; color: var(--text-faint); font-size: 13.5px; flex-wrap: wrap; }
.hero-trust strong { color: var(--text); font-family: var(--font-head); }

/* ============ SCROLL-EXPAND HERO ============ */
.scroll-hero { position: relative; z-index: 1; overflow: hidden; }
.scroll-hero-bg { position: absolute; inset: 0; z-index: 0; }
.scroll-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scroll-hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,22,0.55), rgba(10,13,22,0.85) 70%, var(--bg)); }

.scroll-hero-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: calc(var(--nav-h) + 40px) 24px 60px; text-align: center; }

.scroll-hero-media { position: relative; width: 300px; height: 400px; max-width: 95vw; max-height: 78vh; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08); background: linear-gradient(160deg, rgba(14,165,233,0.22), rgba(139,92,246,0.22)); }
.scroll-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scroll-hero-media-overlay { position: absolute; inset: 0; background: rgba(5,7,14,0.45); transition: opacity 100ms linear; }

.scroll-hero-title { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.scroll-hero-title-l, .scroll-hero-title-r {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(34px, 6vw, 64px); color: var(--text);
}
.scroll-hero-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--text-muted);
  transition: opacity 200ms ease;
}
.scroll-hero-hint svg { width: 16px; height: 16px; animation: shero-bounce 1.6s ease-in-out infinite; }
@keyframes shero-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.scroll-hero-content { position: relative; z-index: 1; padding: 90px 24px 110px; opacity: 0; transition: opacity 700ms var(--ease-out); pointer-events: none; overflow: hidden; }
.scroll-hero-content.is-visible { opacity: 1; pointer-events: auto; }
.scroll-hero-content .hero-copy { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.scroll-hero-content .eyebrow { justify-content: center; }
.scroll-hero-content-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hero-hint svg { animation: none; }
}
@media (max-width: 640px) {
  .scroll-hero-stage { padding-top: calc(var(--nav-h) + 24px); }
  .scroll-hero-title-l, .scroll-hero-title-r { font-size: clamp(30px, 9vw, 44px); }
}

/* ============ MARQUEE ============ */
.marquee-section { position: relative; z-index: 1; padding: 54px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-label { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-head); }
.marquee-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--text-faint); white-space: nowrap; opacity: 0.65; transition: opacity 200ms ease, color 200ms ease; }
.marquee-logo:hover { opacity: 1; color: var(--text); }
.marquee-logo .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* ============ FONDO: LÍNEAS FLUYENDO (Servicios) ============ */
.bg-paths-host { overflow: hidden; }
.bg-paths { position: absolute; inset: -5% -5%; z-index: 0; pointer-events: none; opacity: 0.55; }
.bg-paths svg { width: 100%; height: 100%; }
.bg-paths path { fill: none; stroke-width: 1.4; stroke-dasharray: 10 16; opacity: 0.5; animation: bg-path-flow 24s linear infinite; }
.bg-paths path:nth-child(odd) { stroke: url(#bgPathBlue); animation-duration: 26s; }
.bg-paths path:nth-child(even) { stroke: url(#bgPathPurple); animation-duration: 32s; animation-direction: reverse; }
@keyframes bg-path-flow { to { stroke-dashoffset: -520; } }
#servicios .section-head, #servicios .bento-grid { position: relative; z-index: 1; }

/* ============ FONDO: SPIRAL (Resultados + Proceso) ============ */
.spiral-host { overflow: hidden; }
.spiral-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; }
#proceso .section-head, #proceso .stats-row, #proceso .process-flow, #proceso .before-after { position: relative; z-index: 1; }

/* ============ FONDO: FALLING PATTERN (Calculadora) ============ */
.falling-host { overflow: hidden; }
.falling-bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
#calculadora .section-head, #calculadora .roi-card, #calculadora .compare-panel { position: relative; z-index: 1; }

/* ============ FONDO: DOTTED SURFACE (Industrias) ============ */
.dotted-host { overflow: hidden; }
.dotted-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
#industrias .section-head, #industrias .industry-pills, #industrias .industry-panel { position: relative; z-index: 1; }

/* ============ COMPARATIVA AGENTE IA VS HUMANO ============ */
.compare-panel { margin-top: 28px; padding: 40px; }
.compare-head { text-align: center; margin-bottom: 30px; }
.compare-head .eyebrow { justify-content: center; }
.compare-note { color: var(--text-muted); font-size: 13.5px; max-width: 460px; margin: 0 auto; }
.compare-rows { display: flex; flex-direction: column; gap: 22px; }
.compare-row { padding: 14px; border-radius: var(--radius-md); transition: background-color 220ms ease; }
.compare-row:hover { background: rgba(255,255,255,0.04); }
.compare-row-label { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.compare-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: visible; }
.compare-bar span { position: absolute; inset: 0; width: 0; border-radius: inherit; transition: width 900ms var(--ease-out); }
.compare-panel.is-visible .compare-bar span { width: var(--val); }
.compare-human span { background: linear-gradient(90deg, var(--purple), var(--purple-soft)); }
.compare-agent span { background: linear-gradient(90deg, var(--blue), var(--green)); }
.compare-bar em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); margin-top: 9px; }
.compare-row:hover .compare-human span { box-shadow: 0 0 14px rgba(139,92,246,0.5); }
.compare-row:hover .compare-agent span { box-shadow: 0 0 14px rgba(14,165,233,0.5); }
@media (max-width: 640px) {
  .compare-bars { grid-template-columns: 1fr; gap: 10px; }
  .compare-panel { padding: 26px; }
}

/* ============ BENTO ============ */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 20px; }
.bento-card { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out); position: relative; overflow: hidden; }
.bento-card:hover { transform: translateY(-6px); }
.bento-card[data-glow="blue"]:hover { box-shadow: 0 22px 60px rgba(14,165,233,0.22); border-color: rgba(14,165,233,0.35); }
.bento-card[data-glow="purple"]:hover { box-shadow: 0 22px 60px rgba(139,92,246,0.22); border-color: rgba(139,92,246,0.35); }
.bento-card[data-glow="green"]:hover { box-shadow: 0 22px 60px rgba(16,185,129,0.22); border-color: rgba(16,185,129,0.35); }
.bento-card::after { content: ''; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%; filter: blur(70px); opacity: 0.38; z-index: 0; pointer-events: none; transition: opacity 300ms ease; }
.bento-card:hover::after { opacity: 0.6; }
.bento-card[data-glow="blue"]::after { background: var(--blue); }
.bento-card[data-glow="purple"]::after { background: var(--purple); }
.bento-card[data-glow="green"]::after { background: var(--green); }
.bento-card .icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: auto; border: 1px solid transparent; backdrop-filter: blur(6px); }
.bento-card .icon svg { width: 24px; height: 24px; }
.bento-card[data-glow="blue"] .icon { background: rgba(14,165,233,0.14); color: var(--blue-soft); border-color: rgba(14,165,233,0.3); box-shadow: 0 0 22px rgba(14,165,233,0.25); }
.bento-card[data-glow="purple"] .icon { background: rgba(139,92,246,0.14); color: var(--purple-soft); border-color: rgba(139,92,246,0.3); box-shadow: 0 0 22px rgba(139,92,246,0.25); }
.bento-card[data-glow="green"] .icon { background: rgba(16,185,129,0.14); color: var(--green); border-color: rgba(16,185,129,0.3); box-shadow: 0 0 22px rgba(16,185,129,0.25); }
.bento-card h3 { font-family: var(--font-head); font-size: 19.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.bento-card p { color: var(--text-muted); font-size: 14.5px; }
.bento-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.4; pointer-events: none; -webkit-mask-image: linear-gradient(to top, transparent 0%, black 55%); mask-image: linear-gradient(to top, transparent 0%, black 55%); }
.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 1; }
.bento-5 { grid-column: span 2; }

/* ============ RESULTADOS + PROCESO ============ */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 96px; }
.stat-card { padding: 32px 24px; text-align: center; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 140px; height: 140px; border-radius: 50%; filter: blur(50px); opacity: 0.3; z-index: 0; pointer-events: none; background: var(--blue); }
.stat-card:nth-child(2)::after { background: var(--purple); }
.stat-card:nth-child(3)::after { background: var(--green); }
.stat-card:nth-child(4)::after { background: var(--purple); }
.stat-number { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--text-muted); font-size: 13.5px; margin-top: 9px; }

.process-flow { display: flex; flex-direction: column; gap: 0; max-width: 660px; margin: 0 auto; position: relative; }
.process-step { display: flex; gap: 24px; padding-bottom: 50px; position: relative; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before { content: ''; position: absolute; left: 23px; top: 52px; bottom: 0; width: 1px; background: linear-gradient(var(--border), transparent); }
.process-step:last-child::before { display: none; }
.process-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; background: var(--surface); border: 1px solid var(--border); z-index: 1; }
.process-step h3 { font-family: var(--font-head); font-size: 17.5px; font-weight: 700; margin-bottom: 7px; }
.process-step p { color: var(--text-muted); font-size: 14.5px; max-width: 460px; }

.before-after { margin-top: 96px; max-width: 760px; margin-left: auto; margin-right: auto; }
.ba-wrap { position: relative; height: 220px; border-radius: var(--radius-lg); overflow: hidden; user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; }
.ba-after { background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(14,165,233,0.12)); clip-path: inset(0 0 0 var(--pos, 50%)); align-items: flex-end; text-align: right; }
.ba-before { background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(255,255,255,0.04)); clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); align-items: flex-start; text-align: left; }
.ba-layer .tag { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.ba-after .tag { color: var(--green); } .ba-before .tag { color: var(--purple-soft); }
.ba-layer p { color: var(--text-muted); font-size: 14.5px; max-width: 280px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; cursor: ew-resize; z-index: 2; }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.5); }
.ba-handle-grip { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 1; }
.ba-handle-grip svg { width: 16px; height: 16px; }

/* ============ ROI CALCULATOR ============ */
.roi-card { padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; overflow: hidden; }
.roi-card::after { content: ''; position: absolute; top: -60px; left: -60px; width: 240px; height: 240px; border-radius: 50%; filter: blur(80px); opacity: 0.28; z-index: 0; pointer-events: none; background: var(--purple); }
.roi-field { margin-bottom: 30px; }
.roi-field:last-child { margin-bottom: 0; }
.roi-field label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.roi-field label span { color: var(--blue-soft); font-weight: 700; }
.roi-currency-field select { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); font-size: 14.5px; outline: none; transition: border-color 200ms ease, background-color 200ms ease; }
.roi-currency-field select:focus { border-color: var(--blue-soft); background: rgba(255,255,255,0.07); }
.roi-currency-field select option { background: #0a0d16; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 0 14px rgba(14,165,233,0.6); border: 2px solid var(--bg); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bg); background: linear-gradient(135deg, var(--blue), var(--purple)); cursor: pointer; box-shadow: 0 0 14px rgba(14,165,233,0.6); }
.roi-results { padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.roi-result-item { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.roi-result-item:last-child { border-bottom: none; padding-bottom: 0; }
.roi-result-label { color: var(--text-muted); font-size: 14px; }
.roi-result-value { font-family: var(--font-head); font-size: 27px; font-weight: 700; }
.roi-bar-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 8px; }
.roi-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--green)); width: 0%; transition: width 450ms var(--ease-out); }

/* ============ TESTIMONIOS ============ */
.testimonials-section { position: relative; z-index: 1; padding: 110px 0; overflow: hidden; }
.testimonials-section > .container,
.testimonials-section > .testimonials-track-wrap { position: relative; z-index: 1; }

/* ---- formas geométricas flotantes (fondo decorativo) ---- */
.shape-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.shape-el {
  position: absolute; width: var(--sw); height: var(--sh);
  opacity: 0; transform: translateY(-70px) rotate(calc(var(--srot) - 14deg));
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--sdelay, 0ms);
}
.shape-field.in-view .shape-el { opacity: 1; transform: translateY(0) rotate(var(--srot)); }
.shape-el-float { width: 100%; height: 100%; animation: shape-bob 18s ease-in-out infinite; }
@keyframes shape-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.shape-el-inner {
  position: absolute; inset: 0; border-radius: 999px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 34px rgba(0,0,0,0.25);
}
.shape-el-inner::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
}
.shape-blue .shape-el-inner { background: linear-gradient(100deg, rgba(14,165,233,0.12), transparent 70%); }
.shape-purple .shape-el-inner { background: linear-gradient(100deg, rgba(139,92,246,0.12), transparent 70%); }
.shape-green .shape-el-inner { background: linear-gradient(100deg, rgba(16,185,129,0.1), transparent 70%); }
@media (max-width: 640px) {
  .shape-el { transform: scale(0.7) translateY(-70px) rotate(calc(var(--srot) - 14deg)); }
  .shape-field.in-view .shape-el { transform: scale(0.7) translateY(0) rotate(var(--srot)); }
}
.testimonials-track-wrap { margin-top: 58px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testimonials-track { display: flex; gap: 24px; width: max-content; animation: testimonials-marquee 58s linear infinite; }
.testimonials-track:hover { animation-play-state: paused; }
.testimonials-track.is-paused { animation-play-state: paused; }
@media (max-width: 640px) {
  .testimonials-track-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .testimonials-track-wrap::-webkit-scrollbar { display: none; }
}
@keyframes testimonials-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .testimonials-track { animation: none; overflow-x: auto; } }
.testimonial-card { width: 340px; flex-shrink: 0; padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.testimonial-card::after { content: ''; position: absolute; bottom: -50px; right: -50px; width: 160px; height: 160px; border-radius: 50%; filter: blur(60px); opacity: 0.22; z-index: 0; pointer-events: none; background: var(--green); }
.testimonial-card:nth-child(3n+2)::after { background: var(--blue); }
.testimonial-card:nth-child(3n+3)::after { background: var(--purple); }
.testimonial-stars svg { width: 14px; height: 14px; color: var(--green); }
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-quote { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.testimonial-author-name { font-size: 13.5px; font-weight: 600; }
.testimonial-author-role { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 640px) { .testimonial-card { width: 280px; padding: 22px; } }

/* ============ INDUSTRIAS ============ */
.industry-pills { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.pill {
  display: inline-flex; align-items: center; gap: 11px; padding: 10px 20px 10px 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: all 240ms var(--ease-out);
}
.pill-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--blue-soft);
  transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
}
.pill-icon svg { width: 17px; height: 17px; }
.pill:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.pill:hover .pill-icon { transform: scale(1.08); }
.pill[aria-pressed="true"] {
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); border-color: transparent;
  box-shadow: 0 10px 30px rgba(14,165,233,0.35);
}
.pill[aria-pressed="true"] .pill-icon { background: rgba(255,255,255,0.2); color: #fff; }
.industry-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.industry-example { transition: opacity 250ms ease, transform 250ms ease; }
.industry-example.fade { opacity: 0; transform: translateY(8px); }
.industry-example p { color: var(--text-muted); font-size: 17px; margin-top: 14px; max-width: 460px; }
.industry-tokens { display: flex; flex-direction: column; gap: 14px; }
.industry-token { padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; }
.industry-token .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); flex-shrink: 0; }

/* ============ CTA FINAL ============ */
.cta-final-card { padding: 76px 50px; text-align: center; position: relative; overflow: hidden; }
.cta-final-card::after { content: ''; position: absolute; top: -100px; right: -100px; width: 320px; height: 320px; border-radius: 50%; filter: blur(100px); opacity: 0.3; z-index: 0; pointer-events: none; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.cta-final-card h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; max-width: 600px; margin: 0 auto 16px; }
.cta-final-card .section-sub { margin: 0 auto 42px; }
.cta-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.cta-form-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-form input { flex: 1; min-width: 180px; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); font-size: 14.5px; outline: none; transition: border-color 200ms ease, background-color 200ms ease; }
.cta-form input:focus { border-color: var(--blue-soft); background: rgba(255,255,255,0.07); }
.cta-form input::placeholder { color: var(--text-faint); }
.cta-form textarea {
  width: 100%; padding: 15px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text); font-size: 14.5px; outline: none;
  font-family: var(--font-body); resize: vertical; min-height: 80px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.cta-form textarea:focus { border-color: var(--blue-soft); background: rgba(255,255,255,0.07); }
.cta-form textarea::placeholder { color: var(--text-faint); }
.cta-form .btn { align-self: center; }
.cta-form-msg { margin-top: 16px; font-size: 14px; color: var(--green); min-height: 20px; }

/* ============ FOOTER ============ */
footer { position: relative; z-index: 1; padding: 60px 0 38px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.social-icon {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-muted);
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.social-icon::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: 16px;
  background: conic-gradient(from 0deg, var(--blue), var(--purple), var(--green), var(--blue));
  filter: blur(3px); opacity: 0;
  animation: social-ring-spin 5s linear infinite; animation-play-state: paused;
  transition: opacity 220ms ease;
}
.social-icon:hover { color: #fff; transform: translateY(-2px) scale(1.05); }
.social-icon:hover::before { opacity: 0.9; animation-play-state: running; }
@keyframes social-ring-spin { to { transform: rotate(360deg); } }
.footer-payments { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-payments-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.payment-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-icon {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  transition: border-color 220ms ease, transform 220ms ease;
}
.payment-icon:hover { border-color: var(--blue-soft); transform: translateY(-2px) scale(1.05); }
.payment-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-copy { color: var(--text-muted); font-size: 13px; }

/* ============ CHAT WIDGET ============ */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.chat-bubble {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  box-shadow: 0 10px 34px rgba(14,165,233,0.4), 0 2px 10px rgba(139,92,246,0.35), inset 0 1px 1px rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; border: none; color: #fff;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.chat-bubble:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 14px 42px rgba(14,165,233,0.5), 0 4px 16px rgba(139,92,246,0.45), inset 0 1px 1px rgba(255,255,255,0.3); }
.chat-bubble-icon { position: relative; z-index: 2; display: flex; transition: transform 250ms var(--ease-out); }
.chat-bubble:hover .chat-bubble-icon { transform: rotate(8deg); }
.chat-bubble-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft));
  opacity: 0.55;
  animation: chat-ping 2.4s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes chat-ping {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
.chat-panel {
  position: absolute; bottom: 76px; right: 0; width: 320px; max-width: calc(100vw - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(20,24,38,0.92) 0%, rgba(10,13,22,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(56,189,248,0.06), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; transform: translateY(18px) scale(0.92); pointer-events: none;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; animation: chat-pop-in 380ms var(--ease-out); }
@keyframes chat-pop-in {
  0% { opacity: 0; transform: translateY(18px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.chat-header::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--blue-soft), var(--purple-soft), transparent);
  opacity: 0.5;
}
.chat-header strong { font-family: var(--font-head); font-size: 14.5px; display: block; margin-bottom: 4px; }
.chat-header span { font-size: 13px; color: var(--text-muted); }
.chat-close { background: none; border: none; color: var(--text-faint); font-size: 18px; line-height: 1; transition: color 200ms ease, transform 200ms ease; }
.chat-close:hover { color: var(--text); transform: rotate(90deg); }
.chat-body { padding: 16px 20px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; color: var(--text-muted); max-width: 90%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.typing { display: flex; align-items: center; gap: 4px; padding: 13px 16px; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: chat-typing-bounce 1.1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: 150ms; }
.chat-msg.typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes chat-typing-bounce { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .chat-msg.typing span { animation: none !important; opacity: 0.7 !important; }
}
.chat-quick { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 18px; }
.chat-quick button { text-align: left; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); color: var(--text); font-size: 13px; transition: all 200ms ease; }
.chat-quick button:hover { border-color: var(--blue-soft); background: rgba(14,165,233,0.08); transform: translateX(2px); }
.chat-input-wrap { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); font-size: 13.5px; outline: none; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.chat-input-row input:focus { border-color: var(--blue-soft); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.chat-input-row input::placeholder { color: var(--text-faint); }
.chat-char-count { display: block; text-align: right; font-size: 10.5px; color: var(--text-faint); margin-top: 6px; padding-right: 6px; }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 0 rgba(139,92,246,0.5);
  transition: transform 200ms ease, box-shadow 200ms ease;
  animation: chat-send-pulse 2.8s ease-in-out 3;
}
.chat-send:hover { transform: scale(1.1) rotate(-6deg); }
@keyframes chat-send-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 0 rgba(139,92,246,0.35); }
  50% { box-shadow: 0 4px 16px rgba(14,165,233,0.4), 0 0 0 6px rgba(139,92,246,0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-send { animation: none !important; }
  .chat-bubble-ping { animation: none !important; opacity: 0.25 !important; }
}

/* ============ SKIP LINK ============ */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 999; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; transition: top 200ms ease; }
.skip-link:focus { top: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-1 { grid-column: span 2; grid-row: span 1; }
  .bento-2, .bento-5 { grid-column: span 2; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .roi-card { grid-template-columns: 1fr; }
  .industry-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 520px) {
  #navbar { padding: 0 8px 0 16px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-glow { display: none; }
  .nav-logo { font-size: 15.5px; }
}
@media (max-width: 640px) {
  .section { padding: 88px 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 { grid-column: span 1; grid-row: span 1; }
  .bento-card { min-height: 180px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .roi-card, .roi-results { padding: 26px; }
  .cta-final-card { padding: 50px 24px; }
  .orb { opacity: 0.22; filter: blur(60px); }
  .orb-blue, .orb-green, .orb-purple { width: 280px; height: 280px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-wrap { left: 10px; right: 10px; top: 10px; }
}
@media (max-width: 520px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel {
    position: fixed; left: 12px; right: 12px; bottom: 88px; top: auto;
    width: auto; max-width: none; max-height: min(72vh, 560px);
    border-radius: 24px;
  }
  .chat-body { max-height: none; flex: 1; }
}
