/* ============================================================
   NEXLABS — styles.css
   Dark premium SaaS design system
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #08090f;
  --bg-2:         #0d0e1c;
  --bg-card:      #0f1120;
  --bg-card-2:    #111428;
  --purple:       #7B6CF6;
  --purple-dark:  #5B4BD4;
  --blue:         #4F8EF7;
  --teal:         #2DD4BF;
  --white:        #FFFFFF;
  --text:         rgba(255,255,255,0.87);
  --text-2:       rgba(255,255,255,0.55);
  --text-3:       rgba(255,255,255,0.35);
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.12);
  --grad:         linear-gradient(90deg, #7C3AED, #A855F7);
  --grad-glow:    linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.08));
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---- SECTION EYEBROW ---- */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.9rem;
  box-shadow: 0 0 24px rgba(123,108,246,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(123,108,246,0.45);
}

.btn-primary-sm {
  background: var(--grad);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(123,108,246,0.2);
}
.btn-primary-sm:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  color: var(--text-2);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-ghost-sm {
  color: var(--text-2);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-ghost-sm:hover { color: var(--text); }

.btn-outline {
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: rgba(123,108,246,0.5);
  color: var(--text);
  background: rgba(123,108,246,0.05);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full { width: 100%; justify-content: center; }

/* ---- SCROLL FADE-IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease 0.15s, transform 0.65s ease 0.15s;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-delay { transition-delay: 0.2s; }


/* ============================================================
   PAGE HERO (subpages: integraciones, contacto)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.page-hero-content > p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.page-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,9,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo img { opacity: 0.95; height: 60px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 1.5rem;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 16px;
  background: rgba(8,9,15,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.nav-drawer a {
  padding: 12px 0;
  color: var(--text-2);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer.open { display: flex; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 160px 24px 40px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
}
.orb-1 { width: 600px; height: 600px; background: rgba(123,108,246,0.18); top: -100px; left: 50%; transform: translateX(-50%); }
.orb-2 { width: 400px; height: 400px; background: rgba(79,142,247,0.12); top: 200px; left: -100px; }
.orb-3 { width: 350px; height: 350px; background: rgba(45,212,191,0.08); top: 300px; right: -100px; }

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,108,246,0.1);
  border: 1px solid rgba(123,108,246,0.25);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.badge-pulse {
  width: 8px; height: 8px;
  background: #4F8EF7;
  border-radius: 50%;
  animation: pulse-badge 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-badge {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.7); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.br-desktop { display: block; }

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 3rem;
}
.trust-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.trust-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logos span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.trust-logos span:hover { color: var(--text-2); }

/* Video wrap — no frame, dentro de hero-content */
.hero-video-wrap {
  position: relative;
  width: 100%;
  margin: 1.5rem 0 0.5rem;
  z-index: 1;
}
.hero-video-wrap video {
  width: 100%;
  display: block;
  border-radius: 0;
  filter: brightness(0.9) saturate(1.1);
}
.hero-video-fade {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.hero-video-fade.top {
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, var(--bg) 20%, transparent);
}
.hero-video-fade.bottom {
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg) 20%, transparent);
}
.hero-video-fade.left-side {
  top: 0; bottom: 0; left: 0;
  width: 120px;
  background: linear-gradient(to right, var(--bg), transparent);
}
.hero-video-fade.right-side {
  top: 0; bottom: 0; right: 0;
  width: 120px;
  background: linear-gradient(to left, var(--bg), transparent);
}


/* ============================================================
   LOGOS BAND
   ============================================================ */
.logos-band {
  padding: 40px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-align: center;
}
.logos-static {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}
.logo-chip:hover {
  border-color: rgba(123,108,246,0.3);
  color: var(--text);
}
.logo-chip svg { opacity: 0.6; }


/* ============================================================
   SECTION SPLIT (Sync)
   ============================================================ */
.section-split {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.split-desc {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: rgba(123,108,246,0.12);
  border: 1px solid rgba(123,108,246,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-top: 2px;
}
.feature-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.feature-list p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Mockup Card */
.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }
.mockup-title-text {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 6px;
}
.mockup-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #28C840;
}
.status-dot {
  width: 7px; height: 7px;
  background: #28C840;
  border-radius: 50%;
  animation: pulse-badge 2s ease-in-out infinite;
}
.mockup-body { padding: 20px; }

/* Workflow */
.workflow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}
.wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  min-width: 72px;
}
.wf-trigger {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.25);
  color: #4F8EF7;
}
.wf-ai {
  background: rgba(123,108,246,0.1);
  border-color: rgba(123,108,246,0.3);
  color: var(--purple);
}
.wf-action {
  background: rgba(45,212,191,0.08);
  border-color: rgba(45,212,191,0.25);
  color: var(--teal);
}
.wf-arrow { color: var(--border-2); flex-shrink: 0; }

@keyframes wf-heartbeat {
  0%   { transform: scale(1);    }
  10%  { transform: scale(1.22); }  /* primer golpe */
  22%  { transform: scale(1.06); }  /* breve caída */
  34%  { transform: scale(1.16); }  /* segundo golpe */
  52%  { transform: scale(1);    }  /* vuelta a normal */
  100% { transform: scale(1);    }  /* pausa hasta el siguiente */
}

.wf-node.beating {
  animation: wf-heartbeat 2s ease-in-out;
  transform-origin: center;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mstat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.mstat-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mstat-lbl {
  display: block;
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 2px;
}

.mockup-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.log-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
  padding: 7px 10px;
  border-radius: 6px;
}
.log-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.log-dot.ok { background: #28C840; }
.log-dot.warn { background: #FEBC2E; animation: pulse-badge 1.5s infinite; }

.mini-cards-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.mini-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.mini-card svg { color: var(--purple); flex-shrink:0; }


/* ============================================================
   PLATFORM ORB
   ============================================================ */
.platform-section {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.platform-bg-orb {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,108,246,0.08) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.platform-inner { position: relative; z-index: 1; }

.orb-wrap { margin-bottom: 3rem; }

.platform-orb {
  width: 200px; height: 200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(123,108,246,0.2);
  animation: orb-spin 8s linear infinite;
}
.orb-ring-1 { width: 200px; height: 200px; border-color: rgba(123,108,246,0.15); }
.orb-ring-2 { width: 160px; height: 160px; border-color: rgba(79,142,247,0.2); animation-duration: 6s; animation-direction: reverse; }
.orb-ring-3 { width: 120px; height: 120px; border-color: rgba(123,108,246,0.3); animation-duration: 4s; }
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.orb-logo {
  width: 80px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(123,108,246,0.4));
}

.platform-text {
  max-width: 680px;
  margin: 0 auto 3rem;
}
.platform-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.platform-text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.pf-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.pf-item:hover { border-color: rgba(123,108,246,0.3); transform: translateY(-2px); }
.pf-item > svg { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.pf-item strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.pf-item p { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }


/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 120px 0;
  background: var(--bg-2);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.feat-card:hover { border-color: rgba(123,108,246,0.3); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feat-card:hover::before { opacity: 1; }

.feat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.feat-icon-wrap.purple { background: rgba(123,108,246,0.15); border: 1px solid rgba(123,108,246,0.25); color: var(--purple); }
.feat-icon-wrap.blue { background: rgba(79,142,247,0.12); border: 1px solid rgba(79,142,247,0.2); color: var(--blue); }
.feat-icon-wrap.teal { background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.2); color: var(--teal); }

.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; position: relative; }
.feat-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; position: relative; }
.feat-visual { margin-top: auto; position: relative; }

.feat-flow { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; }
.ff-step {
  padding: 5px 10px;
  background: rgba(123,108,246,0.08);
  border: 1px solid rgba(123,108,246,0.15);
  border-radius: 6px;
  color: var(--text-2);
}
.ff-arr { color: var(--text-3); }

/* Animación de entrada: estado inicial oculto */
.ff-step.ff-hidden,
.ff-arr.ff-hidden {
  opacity: 0;
  transform: translateY(14px);
}

/* Transición al aparecer */
.ff-step,
.ff-arr {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ai-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.ai-bar {
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  overflow: hidden;
  font-size: 0.72rem;
  color: var(--text-2);
}
.ai-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(123,108,246,0.3), rgba(79,142,247,0.2));
  border-radius: 4px;
}
.ai-bar span { position: relative; flex: 1; }
.ai-bar strong { position: relative; font-weight: 600; color: var(--text); }

.code-snippet {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-2);
}
.code-snippet .code-fn { color: #7B6CF6; }
.code-snippet .code-str { color: #4ade80; }
.code-snippet .code-kw { color: #60a5fa; }
.code-snippet em { font-style: normal; color: #f472b6; }

.code-cursor {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: #a89bf8;
  vertical-align: middle;
  margin-left: 1px;
  animation: cur-blink 0.65s step-end infinite;
}
@keyframes cur-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Big feature cards */
.features-big-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.feat-big-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.feat-big-card:hover { border-color: rgba(123,108,246,0.3); transform: translateY(-3px); }
.feat-big-left {
  display: flex;
  flex-direction: column;
}
.feat-big-content {
  padding: 28px 28px 20px;
}
.feat-big-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feat-big-content p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.feat-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.feat-tags li {
  padding: 3px 10px;
  background: rgba(123,108,246,0.08);
  border: 1px solid rgba(123,108,246,0.15);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-2);
}
.feat-big-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  display: block;
}

.feat-big-right { padding: 28px; }
.feat-big-right h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }
.feat-big-right p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }
.integration-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.integration-mini-grid span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-2);
  font-weight: 500;
}


/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.testimonial-alt { background: var(--bg); }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 56px 60px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.5;
}
.quote-icon { color: var(--purple); margin-bottom: 16px; opacity: 0.6; }
.testimonial-card blockquote {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; font-weight: 600; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-2); }


/* ============================================================
   DETAIL SECTIONS
   ============================================================ */
.detail-section {
  padding: 120px 0;
  background: var(--bg);
}
.advisory-section {
  padding: 120px 0;
  background: var(--bg);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail-grid-reverse { direction: rtl; }
.detail-grid-reverse > * { direction: ltr; }

.detail-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  height: 380px;
  filter: brightness(0.65) saturate(0.9);
}
.detail-img-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,108,246,0.25), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}
.detail-img-glow-blue {
  background: radial-gradient(circle, rgba(79,142,247,0.2), transparent 70%);
}
.detail-visual { position: relative; }

.detail-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.detail-text > p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.detail-points { display: flex; flex-direction: column; gap: 12px; }
.dp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.dp svg { color: var(--purple); flex-shrink: 0; }

.advisory-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
.adv-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color var(--transition);
}
.adv-card:hover { border-color: rgba(123,108,246,0.3); }
.adv-card svg { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.adv-card strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.adv-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }


/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations-section {
  padding: 120px 0;
  background: var(--bg-2);
}
.integrations-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-center {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 40px rgba(123,108,246,0.2);
}
.hub-logo { width: 48px; filter: brightness(0) invert(1); opacity: 0.8; }

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 780px;
}
.int-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: border-color var(--transition), transform var(--transition);
}
.int-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.int-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.int-card strong { font-size: 0.875rem; font-weight: 600; }
.int-card span { font-size: 0.75rem; color: var(--text-2); }


/* ============================================================
   OVERVIEW / DASHBOARD
   ============================================================ */
.overview-section {
  padding: 120px 0;
  background: var(--bg-2);
}
.split-grid-reverse { direction: rtl; }
.split-grid-reverse > * { direction: ltr; }

.overview-stats {
  display: flex;
  gap: 32px;
  margin-top: 2rem;
}
.ov-stat { text-align: left; }
.ov-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.ov-stat span:last-child { font-size: 0.8rem; color: var(--text-2); }

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dash-body { padding: 16px; }
.dash-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.dash-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  position: relative;
}
.dm-val { display: block; font-size: 1.25rem; font-weight: 700; color: var(--white); }
.dm-lbl { display: block; font-size: 0.68rem; color: var(--text-3); margin: 2px 0; }
.dm-trend { font-size: 0.68rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.dm-trend.up { background: rgba(40,200,64,0.12); color: #28C840; }

.dash-chart-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}
.dash-flows { display: flex; flex-direction: column; gap: 5px; }
.df-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-2);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.df-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.df-dot.on { background: #28C840; }
.df-dot.warn { background: #FEBC2E; }
.df-count { margin-left: auto; color: var(--text-3); }


/* ============================================================
   HIGHLIGHTS
   ============================================================ */
.highlights-section {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.hl-card:hover { border-color: rgba(123,108,246,0.3); transform: translateY(-3px); }
.hl-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}
.hl-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hl-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }


/* ============================================================
   TRUSTED BY
   ============================================================ */
.trusted-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.trusted-inner { text-align: center; }
.trusted-logos-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.trusted-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}
.trusted-logo-item:hover { border-color: rgba(123,108,246,0.3); color: var(--text-2); }


/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 140px 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.cta-orb-1 { width: 500px; height: 500px; background: rgba(123,108,246,0.15); top: -100px; left: 50%; transform: translateX(-60%); }
.cta-orb-2 { width: 400px; height: 400px; background: rgba(79,142,247,0.1); bottom: -100px; right: -50px; }

.cta-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.cta-content p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; }
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 120px 0;
  background: var(--bg-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.contact-info > p { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}
.cd-item svg { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.cd-item a { color: var(--text); transition: color var(--transition); }
.cd-item a:hover { color: var(--purple); }
.cd-item small { color: var(--text-2); font-size: 0.8rem; display: block; }
.phone-soon { color: var(--text-3); font-style: italic; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(123,108,246,0.5);
  box-shadow: 0 0 0 3px rgba(123,108,246,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group textarea { resize: vertical; min-height: 100px; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
}
.footer-gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo { opacity: 0.9; height: 72px; width: auto; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 16px 0 20px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-icon:hover { border-color: rgba(123,108,246,0.4); color: var(--purple); background: rgba(123,108,246,0.06); }

.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 0.82rem; color: var(--text-2); }
.footer-col a { color: var(--text-2); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.phone-placeholder-footer { color: var(--text-3); font-style: italic; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a { font-size: 0.8rem; color: var(--text-3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text-2); }


/* ============================================================
   AMBIENT & MOVEMENT ANIMATIONS
   ============================================================ */

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.35; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.65; transform: translate(-50%,-50%) scale(1.22); }
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translateX(-60%) translateY(0) scale(1); }
  50% { transform: translateX(-54%) translateY(-28px) scale(1.07); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  50% { transform: translateX(-16px) translateY(-20px) scale(1.04); }
}

@keyframes grad-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes form-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(123,108,246,0); }
  50%       { box-shadow: 0 0 50px rgba(123,108,246,0.09); }
}

/* Sync section — mockup card floats */
.section-split .mockup-card {
  animation: float-y 6s ease-in-out infinite;
}

/* Features section — ambient background orb */
.features-section {
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,108,246,0.07) 0%, transparent 70%);
  top: 50%; left: 5%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Detail section — image glow breathes */
.detail-img-glow {
  animation: glow-breathe 7s ease-in-out infinite;
}
.detail-img-glow-blue {
  animation: glow-breathe 9s ease-in-out infinite 2s;
}

/* Integrations — hub-center floats */
.hub-center {
  animation: float-y 5s ease-in-out infinite;
}

/* Overview section — ambient orb + dashboard floats */
.overview-section {
  position: relative;
  overflow: hidden;
}
.overview-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.06) 0%, transparent 70%);
  top: 50%; right: -80px;
  transform: translateY(-50%);
  pointer-events: none;
}
.dashboard-mockup {
  animation: float-y 7s ease-in-out infinite 1s;
}

/* Highlights — animated gradient numbers + ambient orb */
.hl-number {
  background-size: 200% 200%;
  animation: grad-sweep 4s ease infinite;
}
.highlights-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,108,246,0.05) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
}

/* Final CTA — orbs drift */
.cta-orb-1 { animation: orb-drift-1 14s ease-in-out infinite; }
.cta-orb-2 { animation: orb-drift-2 11s ease-in-out infinite 2s; }

/* Contact form — subtle glow pulse */
.contact-form {
  animation: form-glow 6s ease-in-out infinite;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .platform-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .detail-grid-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-big-row { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-section .split-grid { grid-template-columns: 1fr; }
  .split-grid-reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 130px 20px 0; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .br-desktop { display: none; }
  .logos-static { gap: 8px; }
  .logo-chip { padding: 7px 14px; font-size: 0.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { padding: 36px 24px; }
  .overview-stats { gap: 20px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .platform-features { grid-template-columns: 1fr; }
  .section-split, .detail-section, .advisory-section, .features-section,
  .integrations-section, .overview-section, .highlights-section,
  .contact-section { padding: 80px 0; }
  .cta-content h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .integrations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .workflow-row { flex-wrap: wrap; justify-content: center; }
  .wf-arrow { display: none; }
  .trust-logos { gap: 14px; }
  .overview-stats { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   ESFERA NEURONAL 3D — HERO
   ============================================================ */

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 85vh !important;
  padding: 0 !important;
  display: block !important;
}

.hero-video-wrap {
  display: none !important;
}

.hero-orb {
  position: absolute !important;
  z-index: 1 !important;
}

.hero-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 820px !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  margin: 0 !important;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem) !important;
  margin-bottom: 2rem !important;
}

.hero-cta {
  margin-top: 0.5rem;
}

@keyframes orb1-move {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(60px, -40px) scale(1.12); }
  50%  { transform: translate(20px, 80px) scale(0.9); }
  75%  { transform: translate(-50px, 30px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb2-move {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-70px, 50px) scale(1.15); }
  66%  { transform: translate(40px, -60px) scale(0.88); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb3-move {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  40%  { transform: translate(50px, 40px) scale(1.1) rotate(15deg); }
  80%  { transform: translate(-30px, -50px) scale(0.92) rotate(-10deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.hero-orb.orb-1 { animation: orb1-move 18s ease-in-out infinite !important; }
.hero-orb.orb-2 { animation: orb2-move 22s ease-in-out infinite !important; }
.hero-orb.orb-3 { animation: orb3-move 15s ease-in-out infinite !important; }

/* ============================================================
   LOGOS TICKER
   ============================================================ */

.logos-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-ticker-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.logos-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECCIÓN #EMPRESA — FONDO PARALLAX
   ============================================================ */

#empresa {
  background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1400&q=70&auto=format');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#empresa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 14, 0.88);
  z-index: 0;
  pointer-events: none;
}

/* ===== DEMO EN VIVO ===== */
.demo-section {
  padding: 6rem 0 8rem;
}

/* Wrapper con posicionamiento relativo para el overlay */
.demo-overlay-wrap {
  position: relative;
  margin-top: 3rem;
  padding-bottom: 80px;
}

/* ---- VS Code window (fondo, grande) ---- */
.demo-vscode-win {
  background: #11121e;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
}

.demo-vscode-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  height: 38px;
  background: #1a1b2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-vscode-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.demo-vscode-dots span { width: 12px; height: 12px; border-radius: 50%; }
.demo-vscode-dots span:nth-child(1) { background: #ff5f56; }
.demo-vscode-dots span:nth-child(2) { background: #febc2e; }
.demo-vscode-dots span:nth-child(3) { background: #28c840; }

.demo-vscode-tabs {
  flex: 1;
  display: flex;
  align-items: center;
}

.demo-vscode-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  height: 38px;
  font-size: 0.78rem;
  color: var(--text);
  background: #11121e;
  border-right: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.demo-vscode-winbtns {
  display: flex;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-3);
  flex-shrink: 0;
}

.demo-vscode-breadcrumb {
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  color: var(--text-3);
  background: #11121e;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bc-sep { margin: 0 0.15rem; }
.bc-active { color: var(--text-2); }

.demo-vscode-body {
  display: flex;
  padding: 1rem 0 1.5rem;
}

.demo-line-nums {
  flex-shrink: 0;
  width: 3rem;
  padding: 0 0.5rem 0 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.18);
  text-align: right;
  user-select: none;
}
.demo-line-nums span { display: block; }

/* ---- Chat window (encima, flotante) ---- */
.demo-chat-win {
  position: absolute;
  right: -1rem;
  top: 1.5rem;
  width: 360px;
  background: #1c1d2e;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 1px rgba(123,108,246,0.12);
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.demo-chat-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-chat-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.demo-chat-btn:hover { color: var(--text); background: rgba(255,255,255,0.07); }

/* Chat panel */
.demo-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0.9rem;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 85%;
}

.chat-msg.human {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg.agent {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-label {
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.chat-bubble {
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
}

.chat-msg.human .chat-bubble {
  background: linear-gradient(135deg, #7B6CF6, #5B4BD4);
  border-bottom-right-radius: 4px;
}

.chat-msg.agent .chat-bubble {
  background: var(--bg-card-2);
  border: 1px solid var(--border-2);
  border-bottom-left-radius: 4px;
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.9rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.chat-typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: ti-bounce 1.2s ease-in-out infinite;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ti-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

.demo-chat-inputbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.demo-chat-icon { color: var(--text-3); flex-shrink: 0; }
.demo-chat-placeholder {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-3);
}
.demo-chat-sendbtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Code panel (dentro del VS Code window) */
.demo-code-panel {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 1.5rem 0 0.25rem !important;
}

/* Responsive */
@media (max-width: 960px) {
  .demo-overlay-wrap { padding-bottom: 0; }
  .demo-chat-win {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
    right: auto;
    top: auto;
  }
}

.code-line {
  display: block;
  white-space: pre;
  min-height: 1.7em;
}

.code-var    { color: #f97316; }
.code-fn     { color: #a89bf8; }
.code-str    { color: #4ade80; }
.code-kw     { color: #60a5fa; }
.code-cmt    { color: #6b7280; font-style: italic; }
.code-op     { color: var(--text-2); }

#empresa .container { position: relative; z-index: 1; }
