/* =====================================================
   AGAI — Landing Page Premium Dark Mode
   Color Principal: Púrpura #A855F7
   ===================================================== */

/* ─── IMPORTS & RESET ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Fondos */
  --bg-primary: #000000;
  --bg-secondary: #09090B;
  --bg-tertiary: #18181B;

  /* Púrpura escala */
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  --primary-300: #d8b4fe;
  --primary-400: #c084fc;
  --primary-500: #a855f7;
  /* BASE */
  --primary-600: #9333ea;
  --primary-700: #7c3aed;
  --primary-800: #6d28d9;
  --primary-900: #4c1d95;
  --primary-rgb: 168, 85, 247;

  /* Textos */
  --text-primary: #FFFFFF;
  --text-secondary: #E4E4E7;
  --text-tertiary: #A1A1AA;
  --text-quaternary: #71717A;

  /* Acentos secundarios */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Bordes */
  --border-glass: rgba(168, 85, 247, 0.15);
  --border-glass-hover: rgba(168, 85, 247, 0.35);

  /* Transition */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-tertiary);
}

strong {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--primary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── GLOW TEXT ─── */
.glow-text {
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.6));
}

/* ─── GLASS CARD ─── */
.glass-card {
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.08) 0%,
      rgba(var(--primary-rgb), 0.04) 50%,
      rgba(var(--primary-rgb), 0.08) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.25);
  transform: translateY(-4px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 48px;
  justify-content: center;
}

/* Neon animated border */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, var(--primary-400) 80%, #fff 100%);
  animation: neon-spin 2.5s linear infinite;
  z-index: -2;
  transition: opacity 0.3s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border-radius: 10px;
  z-index: -1;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.15);
  box-shadow:
    0 0 0 2px rgba(var(--primary-rgb), 0.3),
    0 8px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-primary:hover::after {
  background: var(--primary-600);
}

@keyframes neon-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn-primary.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 14px;
}

.btn-primary.btn-sm {
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 8px;
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 48px;
  justify-content: center;
}

.btn-outline:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-400);
  transform: translateY(-2px);
}

.btn-outline.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 14px;
}

/* ─── SECTION LABELS & HEADERS ─── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-400);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ─── PARTICLES ─── */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.6);
  animation: float-particle 20s infinite ease-in-out;
  will-change: transform, opacity;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  filter: sepia(1) saturate(6) hue-rotate(225deg) brightness(0.65);
}

.logo-img-sm {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  filter: sepia(1) saturate(6) hue-rotate(225deg) brightness(0.65);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 70px;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--primary-400);
}

.mobile-cta {
  margin-top: 8px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-300);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-400);
  line-height: 1;
}

.stat-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-400);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-quaternary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(var(--primary-rgb), 0.2);
}

/* ─── STICKY CTA ─── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 14px 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ─── SHINE EFFECT BUTTON ─── */
.shine-effect {
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  60%,
  100% {
    left: 130%;
  }
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
}

.hero-orb {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  animation: pulse-orb 4s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4));
}

.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  z-index: 2;
}

.badge-icon {
  font-size: 1rem;
}

.badge-float-1 {
  top: 40px;
  left: -20px;
  animation: float-badge 3s ease-in-out infinite;
}

.badge-float-2 {
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  animation: float-badge 3s ease-in-out 1s infinite;
}

.badge-float-3 {
  bottom: 50px;
  left: -10px;
  animation: float-badge 3s ease-in-out 2s infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(var(--primary-rgb), 0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
  margin: 0 auto;
}

/* ─── SOCIAL PROOF ─── */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  background: var(--bg-secondary);
}

.proof-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-quaternary);
  margin-bottom: 32px;
}

.proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-quaternary);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(1);
  cursor: default;
}

.proof-item:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--primary-400);
}

/* ─── SERVICIOS ─── */
.servicios {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Flip cards */
.service-card-flip {
  perspective: 1000px;
  height: 380px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-flip.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.service-card-front {
  background: var(--bg-tertiary);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-flip:hover .service-image {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.service-icon-front {
  font-size: 2rem;
  margin-bottom: 8px;
}

.service-title-front {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
}

.service-card-back:hover {
  transform: rotateY(180deg) translateY(0);
}

.service-icon-back {
  font-size: 2.5rem;
}

.service-title-back {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-400);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px;
  padding: 3px 10px;
}

/* CSS-only service cards */
.service-card-css {
  background: var(--bg-secondary);
}

.service-css-visual {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Neural network visual */
.neural-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.8);
  animation: pulse-node 2s ease-in-out infinite;
}

.neural-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.n1 {
  top: 25%;
  left: 22%;
  animation-delay: 0s;
}

.n2 {
  top: 25%;
  right: 22%;
  animation-delay: 0.3s;
}

.n3 {
  top: 48%;
  left: 17%;
  animation-delay: 0.6s;
}

.n4 {
  top: 48%;
  right: 17%;
  animation-delay: 0.9s;
}

.n5 {
  bottom: 20%;
  left: 22%;
  animation-delay: 1.2s;
}

.n6 {
  bottom: 20%;
  right: 22%;
  animation-delay: 1.5s;
}

/* Center node */
.ai-visual::before {
  content: '';
  position: absolute;
  top: 48%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-400);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 1), 0 0 40px rgba(var(--primary-rgb), 0.5);
  animation: pulse-node 1.5s ease-in-out infinite;
  z-index: 2;
}

/* Integrations hub */
.int-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.7);
  border: 2px solid var(--primary-400);
  z-index: 2;
}

.int-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 1px;
  background: rgba(var(--primary-rgb), 0.4);
  transform-origin: left center;
}

.s1 {
  transform: translateY(-50%) rotate(0deg);
}

.s2 {
  transform: translateY(-50%) rotate(72deg);
}

.s3 {
  transform: translateY(-50%) rotate(144deg);
}

.s4 {
  transform: translateY(-50%) rotate(216deg);
}

.s5 {
  transform: translateY(-50%) rotate(288deg);
}

.int-icon {
  position: absolute;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: float-icon 3s ease-in-out infinite;
}

.i1 {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.i2 {
  top: 30%;
  right: 8%;
  animation-delay: 0.6s;
}

.i3 {
  bottom: 30%;
  right: 8%;
  animation-delay: 1.2s;
}

.i4 {
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.8s;
}

.i5 {
  top: 30%;
  left: 8%;
  animation-delay: 2.4s;
}

/* ─── RESULTADOS ─── */
.resultados {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.result-card {
  text-align: center;
  padding: 40px 24px;
}

.result-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-400);
  line-height: 1;
  margin-bottom: 12px;
}

.result-label {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin-bottom: 20px;
}

.result-bar {
  height: 4px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.result-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card.in-view .result-fill {
  width: var(--fill);
}

/* ─── PROCESO ─── */
.proceso {
  padding: 120px 0;
  background: var(--bg-primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-500);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-content {
  height: 100%;
  padding: 28px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.step-connector {
  display: none;
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.5), transparent);
  z-index: 1;
}

/* ─── TESTIMONIOS ─── */
.testimonios {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
}

.stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card blockquote::before {
  content: '"';
}

.testimonial-card blockquote::after {
  content: '"';
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  border: 2px solid rgba(var(--primary-rgb), 0.4);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-quaternary);
}

/* ─── SOBRE ─── */
.sobre {
  padding: 120px 0;
  background: var(--bg-primary);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  animation: pulse-orb 4s ease-in-out infinite;
}

.about-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 28px;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  padding: 20px;
  background: rgba(var(--primary-rgb), 0.05);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.3);
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
}

.about-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 300px;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-300);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-points {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.point-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary-400);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── CTA FINAL ─── */
.cta-final {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* ─── STICKY CTA BAR ─── */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 997;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  justify-content: space-between;
}

.sticky-cta-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.sticky-cta-text span {
  color: var(--text-quaternary);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 8px;
}

.sticky-cta-buttons {
  display: flex;
  gap: 12px;
}

.sticky-cta-buttons .btn-primary {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ─── SPOTLIGHT EFFECT ─── */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(var(--primary-rgb), 0.12), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card>* {
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-content .section-label {
  margin-bottom: 16px;
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content>p {
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* Contact form */
.cta-form {
  text-align: left;
  padding: 40px;
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-quaternary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  background: rgba(var(--primary-rgb), 0.08);
}

.form-guarantees {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-quaternary);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-400);
  font-family: var(--font-display);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-quaternary);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-400);
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-quaternary);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-quaternary);
}

/* ─── ANIMATIONS ─── */
@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-particle {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }

  25% {
    transform: translate(80px, -80px);
    opacity: 0.7;
  }

  50% {
    transform: translate(-40px, -160px);
    opacity: 0.5;
  }

  75% {
    transform: translate(-80px, -80px);
    opacity: 0.7;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-16px) rotate(1.5deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }

  75% {
    transform: translateY(-24px) rotate(1deg);
  }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.badge-float-2 {
  animation: float-badge-mid 3s ease-in-out 1s infinite !important;
}

@keyframes float-badge-mid {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 8px));
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes pulse-orb {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulse-node {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.8);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(var(--primary-rgb), 0.4);
  }
}

@keyframes float-icon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes scroll-line {

  0%,
  100% {
    opacity: 0;
    transform: scaleY(0) translateY(-100%);
  }

  50% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in-rotate {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Entrance animations */
.animate-fade-up {
  opacity: 0;
  animation: fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scale-in 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-fade-rotate {
  opacity: 0;
  animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-visual-wrapper {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .nav-links,
  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-badge {
    display: none;
  }

  .badge-float-1,
  .badge-float-2,
  .badge-float-3 {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-flip {
    height: 340px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .cta-form {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .proof-logos {
    gap: 24px;
  }

  .particle:nth-child(n+20) {
    display: none;
  }

  .hero-stats .stat-number {
    font-size: 1.4rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── ROI CALCULATOR ─── */
.roi-calc {
  padding: 120px 0;
  background: var(--bg-primary);
}

.roi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px;
}

.roi-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roi-slider-header label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.roi-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-400);
  min-width: 48px;
  text-align: right;
}

.roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(var(--primary-rgb), 0.15);
  outline: none;
  cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
  border: 3px solid #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roi-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.8);
}

.roi-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-500);
  border: 3px solid #fff;
  cursor: pointer;
}

.roi-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-quaternary);
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-result-card {
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.roi-result-card.roi-highlight {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.15);
}

.roi-emoji {
  font-size: 1.6rem;
}

.roi-result-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-400);
  line-height: 1;
  transition: all 0.3s ease;
}

.roi-result-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.roi-cta {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.roi-disclaimer {
  font-size: 0.78rem;
  color: var(--text-quaternary);
  margin-bottom: 20px;
}

/* ─── URGENCY BAR ─── */
.urgency-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: #fb923c;
  margin-bottom: 24px;
  font-weight: 500;
}

.urgency-bar strong {
  color: #fdba74;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── FORM OR DIVIDER / CALENDLY ─── */
.form-or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.form-or-divider::before,
.form-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--primary-rgb), 0.15);
}

.form-or-divider span {
  font-size: 0.75rem;
  color: var(--text-quaternary);
  white-space: nowrap;
}

.btn-calendly {
  width: 100%;
  justify-content: center;
  margin-bottom: 0;
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.wa-tooltip {
  position: absolute;
  right: 66px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
}

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2s ease-in-out infinite;
}

@keyframes wa-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* ─── AI CHAT WIDGET ─── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-glow 3s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.5);
  }

  50% {
    box-shadow: 0 4px 40px rgba(var(--primary-rgb), 0.9);
  }
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.chat-badge.hidden {
  display: none;
}

.chat-window {
  width: 340px;
  max-height: 500px;
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-agent-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.chat-agent-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
  display: inline-block;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.chat-close:hover {
  color: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.3) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  animation: fade-in-up 0.3s ease forwards;
}

.chat-msg.bot {
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg .chat-link {
  color: var(--primary-300);
  text-decoration: underline;
  cursor: pointer;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: typing-bounce 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-quick-replies {
  padding: 0 12px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-reply {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--primary-300);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.5);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

#chat-input {
  flex: 1;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 24px;
  padding: 9px 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

#chat-input:focus {
  border-color: rgba(var(--primary-rgb), 0.4);
}

#chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-600);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

#chat-send:hover {
  background: var(--primary-500);
  transform: scale(1.1);
}

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 1023px) {
  .roi-inner {
    grid-template-columns: 1fr;
  }

  .roi-results {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .roi-result-card {
    flex: 1;
    min-width: 160px;
  }
}

@media (max-width: 767px) {
  .roi-inner {
    padding: 28px;
    gap: 32px;
  }

  .roi-results {
    flex-direction: column;
  }

  .chat-window {
    width: calc(100vw - 32px);
    right: 0;
  }

  .wa-float {
    bottom: 160px;
    right: 16px;
  }

  .chat-widget {
    right: 16px;
    bottom: 90px;
  }

  .urgency-bar {
    font-size: 0.75rem;
  }

  .sticky-cta-text {
    display: none;
  }

  .sticky-cta-content {
    justify-content: center;
  }

  .sticky-cta-buttons {
    width: 100%;
  }

  .sticky-cta-buttons .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Global Mobile Overrides for Inline Styles & Layout */
  section[style*="padding: 140px"],
  section[style*="padding: 120px"],
  section[style*="padding: 100px"] {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }

  .container {
    padding: 0 20px !important;
  }

  .about-inner,
  .roi-inner {
    gap: 32px !important;
  }
}

/* ─── 18. CYBER GRID 3D BACKGROUND ─── */
.cyber-grid-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  perspective: 1000px;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0a1a 0%, #000 60%);
}

.cyber-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -50%;
  top: -50%;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(60deg) translateY(0);
  animation: grid-move 10s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 20%, black 80%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 80%);
}

@keyframes grid-move {
  0% {
    transform: rotateX(60deg) translateY(0);
  }

  100% {
    transform: rotateX(60deg) translateY(60px);
  }
}



/* ─── 20. EXPANDABLE SECTIONS ─── */
.services-grid.collapsed>div:nth-child(n+4) {
  display: none;
}

@media (max-width: 1023px) {
  .services-grid.collapsed>div:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 767px) {
  .services-grid.collapsed>div:nth-child(n+2) {
    display: none;
  }
}

.roi-inner.collapsed {
  display: none;
}

#roi-inner-wrapper {
  transition: all 0.5s ease;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  20%,
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}