/* ============================================
   BILLY IDP — LANDING PAGE CSS
   Brand: Deep Navy + Cyan + Purple
   Font: Inter (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --navy-900: #030d1e;
  --navy-800: #071535;
  --navy-700: #0b1f4a;
  --navy-600: #102461;
  --cyan:     #00d4ff;
  --cyan-dim: #00a8cc;
  --purple:   #7c3aed;
  --purple-light: #a855f7;
  --green:    #22c55e;
  --white:    #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.4);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  font-size: 18px; 
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-900);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── UTILITIES ──────────────────────────────── */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tag-purple {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.3);
  color: var(--purple-light);
}

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(3.2rem, 6.5vw, 5.2rem); }
.h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); }
.h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.text-cyan   { color: var(--cyan); }
.text-purple { color: var(--purple-light); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* Gradient text */
.grad-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: clamp(60px, 9vw, 80px); /* incremento para mayor presencia */
  width: auto;
  display: block;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099bb 100%);
  color: var(--navy-900);
  box-shadow: 0 8px 32px rgba(0,212,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,212,255,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.1);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
}
.btn-lg { padding: 22px 52px; font-size: 1.25rem; }
.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}
.btn-purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(124,58,237,0.6);
}

/* ─── NAVBAR ──────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(3,13,30,0.98);
  backdrop-filter: blur(24px);
  padding: 10px 0;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.6), 
    0 8px 25px rgba(0, 212, 255, 0.25),
    0 12px 50px rgba(124, 58, 237, 0.18);
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Muy sutil para no cortar el brillo */
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}
.logo-text span {
  color: var(--cyan);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); display: block; }

/* ─── HERO ────────────────────────────────────── */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 50%, rgba(0,212,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 50% 80% at 20% 80%, rgba(124,58,237,0.1) 0%, transparent 60%),
              linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,212,255,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 30%, black 0%, transparent 70%);
  animation: dotsPulse 4s ease-in-out infinite alternate;
}
@keyframes dotsPulse {
  from { opacity: 0.4; }
  to   { opacity: 0.9; }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0; /* Reducido de 60px */
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s ease both;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}
.hero-h1 {
  margin-bottom: 24px;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}
.hero-ctas .btn {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  justify-content: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
  margin-top: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}
.hero-trust-item svg { 
  color: var(--green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
.hero-robot-wrap {
  position: relative;
  width: 100%;
  max-width: 565pt;
  min-height: 696pt;
}
.hero-robot-glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  50%       { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}
.hero-robot {
  position: relative;
  z-index: 1;
  width: 565pt;
  height: 696pt;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.hero-stat-badge {
  position: absolute;
  background: rgba(11,31,74,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  z-index: 2;
}
.hero-stat-badge.left  { left: -20px; top: 30%; }
.hero-stat-badge.right { right: -20px; bottom: 25%; }
.hero-stat-badge .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.hero-stat-badge .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── PROBLEM SECTION ─────────────────────────── */
#problem {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  position: relative;
}
.problem-intro {
  max-width: 950px;
  margin: 0 auto 50px; /* Reducido de 70px */
  text-align: center;
}
@media (min-width: 1400px) { .problem-intro { max-width: 1150px; } }
.problem-intro p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 16px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.problem-card {
  background: var(--navy-800);
  padding: 48px 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-card:hover { background: var(--navy-700); }

.problem-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  transition: var(--transition);
}
.problem-card:hover .problem-icon {
  background: rgba(0,212,255,0.2);
  transform: scale(1.1) rotate(-5deg);
}
.problem-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.problem-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ─── COST REALITY ────────────────────────────── */
#cost {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.cost-bg-accent {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  left: -200px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.cost-intro { 
  text-align: center; 
  max-width: 1000px; 
  margin: 0 auto 64px; 
}
@media (min-width: 1400px) {
  .cost-intro { max-width: 1200px; }
}
.cost-intro p { color: var(--text-muted); font-size: 1.1rem; margin-top: 16px; }

.cost-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.stat-card {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.35);
  box-shadow: var(--shadow-glow-cyan);
}
.stat-card .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-number.purple { color: var(--purple-light); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }
.stat-card .stat-sub {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
}

.cost-warning {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(239,68,68,0.04) 100%);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.cost-warning-icon { font-size: 2rem; flex-shrink: 0; }
.cost-warning-text { color: #fca5a5; font-weight: 500; font-size: 1rem; line-height: 1.6; }
.cost-warning-text strong { color: #f87171; }

/* ─── SOLUTION / PRODUCT INTRO ────────────────── */
#solution {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
}
.solution-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  right: -200px; top: 50%;
  transform: translateY(-50%);
}
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-robot-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
}
.solution-robot-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: glowPulse 3s 1s ease-in-out infinite;
}
.solution-robot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.solution-robot:hover {
  transform: translateY(-8px) scale(1.02);
}
.solution-chip {
  position: absolute;
  background: rgba(11,31,74,0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--cyan);
  z-index: 3;
  white-space: nowrap;
}
.solution-chip.top    { top: 5%; left: -20px; }
.solution-chip.bottom { bottom: 5%; right: -20px; }

.solution-chip::before {
  content: '✓ ';
  color: var(--green);
}

.solution-text .tag { margin-bottom: 16px; }
.solution-text h2 { margin-bottom: 12px; }
.solution-tagline {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.solution-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.solution-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pillar-body h4 {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}
.pillar-body p { font-size: 0.88rem; color: var(--text-muted); }

/* ─── HOW IT WORKS ────────────────────────────── */
#how {
  background: var(--navy-800);
  position: relative;
}
.how-intro { 
  text-align: center; 
  max-width: 900px; 
  margin: 0 auto 70px; 
}
@media (min-width: 1400px) { .how-intro { max-width: 1100px; } }
.how-intro p { color: var(--text-muted); font-size: 1.05rem; margin-top: 16px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.6% + 28px);
  right: calc(16.6% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  z-index: 0;
}
.step {
  background: var(--navy-700);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  z-index: 1;
}
.step:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
  margin: 0 auto 24px;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.step-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }

/* ─── BENEFITS / FEATURES ─────────────────────── */
#benefits {
  background: var(--navy-900);
}
.benefits-intro { 
  text-align: center; 
  max-width: 950px; 
  margin: 0 auto 70px; 
}
@media (min-width: 1400px) { .benefits-intro { max-width: 1150px; } }
.benefits-intro p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--navy-800);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  }
.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-card);
}
.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}
.benefit-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.benefit-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── ROI CALCULATOR ──────────────────────────── */
#roi {
  background: var(--navy-800);
  border-top: 1px solid rgba(0,212,255,0.1);
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.roi-text h2 { margin-bottom: 16px; }
.roi-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }
.roi-calc {
  background: var(--navy-800);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  }
.roi-calc h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
}
.roi-field { margin-bottom: 24px; }
.roi-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.roi-field input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0,212,255,0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.roi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.range-vals {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.result-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  text-align: right;
  margin-top: 6px;
}
.roi-result {
  background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(124,58,237,0.1) 100%);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
  text-align: center;
}
.roi-result p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.roi-result .savings {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.roi-result .savings-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── SOCIAL PROOF / TESTIMONIALS ─────────────── */
#social {
  background: var(--navy-900);
  overflow: hidden;
}
.social-top {
  text-align: center;
  margin-bottom: 60px;
}
.social-top p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--navy-800);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  }
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-glow-cyan);
}
.quote-icon {
  font-size: 3rem;
  color: var(--cyan);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  flex-shrink: 0;
}
.author-info h5 { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.author-info p  { font-size: 0.8rem; color: var(--text-muted); }
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.stars span { color: #f59e0b; font-size: 0.9rem; }

/* ─── INDUSTRIES ──────────────────────────────── */
#industries {
  background: var(--navy-800);
}
.industries-intro { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.industries-intro p { color: var(--text-muted); margin-top: 16px; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--navy-800);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  }
.industry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}
.industry-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.industry-card h4 {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.industry-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ─── LEAD CAPTURE / CTA FORM ─────────────────── */
#lead {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.lead-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 70%);
}
.lead-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,212,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}
.lead-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lead-text h2 { margin-bottom: 18px; }
.lead-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }
.lead-features { display: flex; flex-direction: column; gap: 14px; }
.lead-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.lead-feature-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lead-form-wrap {
  background: var(--navy-800);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  }
.form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  text-align: center;
}
.form-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--navy-800);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group select option { background: var(--navy-800); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.form-success h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }

/* ─── FAQ ─────────────────────────────────────── */
#faq {
  background: var(--navy-900);
}
.faq-intro { text-align: center; max-width: 1000px; margin: 0 auto 60px; }
.faq-intro p { color: var(--text-muted); margin-top: 16px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(0,212,255,0.3); }
.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  background: var(--navy-800);
  transition: var(--transition);
  gap: 20px;
}
.faq-question:hover { background: var(--navy-700); }
.faq-item.open .faq-question { color: var(--cyan); }
.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 0.9rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: rgba(0,212,255,0.2); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--navy-800);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 28px 24px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

/* ─── FOOTER ──────────────────────────────────── */
#footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(0,212,255,0.1);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h5 {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--cyan); }

/* ─── STICKY CTA BAR ──────────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-800);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--cyan);
  padding: 18px 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -15px 40px rgba(0,0,0,0.3);
}
#sticky-cta.visible { transform: translateY(0); }

#reopen-sticky-cta {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
  transform: translateY(100vh) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#reopen-sticky-cta.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
#reopen-sticky-cta:hover {
  background: var(--cyan);
  color: var(--navy-900);
  box-shadow: var(--shadow-glow-cyan);
}
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.sticky-cta-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--white);
}
.sticky-cta-text span { 
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2px;
}

/* ─── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── RESPONSIVE (BREAKPOINTS) ────────────────── */

/* Escritorio Grande: 1440px - 1920px (Default styles) */

/* Portátiles: 1024px - 1200px */
@media (max-width: 1200px) {
  .container { width: 92%; }
  .hero-content { gap: 40px; }
  .h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
}

/* Tablets: 768px - 992px */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .section { padding: 50px 0; } /* Menos espacio arriba/abajo */
  #navbar { padding: 8px 0; } /* Navbar más compacto */

  .hamburger { 
    display: flex;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px; /* Área táctil */
  }
  .hamburger span { background: var(--white); } /* Botón de menú blanco */

  /* Botón CTA más pequeño en móvil */
  #nav-cta-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: auto;
    width: auto;
  }
  
  .hero-content { 
    grid-template-columns: 1fr; 
    text-align: center;
    padding: 10px 0; /* Menos espacio en el contenido del hero */
  }
  #hero { padding-top: 60px; min-height: auto; } /* Reducir padding superior del hero */
  
  .hero-robot-wrap { 
    min-height: auto; 
    max-width: 100%; 
    display: flex;
    justify-content: center;
  }
  .hero-robot { 
    width: 80%; 
    max-width: 320px; 
    height: auto; 
  }

  .hero-stat-badge.left  { top: 5%; left: 5px; } /* Mover hacia arriba */
  .hero-stat-badge.right { bottom: 10%; right: 5px; }
  
  .hero-text { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: 1; max-width: 100%; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { 
    justify-content: center; 
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-trust-item {
    font-size: 1rem;
  }
  
  .problem-grid { grid-template-columns: 1fr; }
  .solution-layout { grid-template-columns: 1fr; text-align: center; }
  .solution-visual { max-width: 320px; margin: 0 auto; }
  .cost-stats { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 40px; }
  
  .steps { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .steps::before { display: none; }
  
  .benefits-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  
  .testimonials { grid-template-columns: 1fr; }
  
  .roi-layout { grid-template-columns: 1fr; }
  .roi-calc { padding: 24px 20px; }
  .roi-field label { font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.03em; }
  .result-val { display: block; text-align: left; margin-top: 6px; font-size: 1rem; }
  .roi-result { padding: 20px 16px; margin-top: 20px; }
  .roi-result .savings { font-size: 1.6rem; }
  .roi-result p { font-size: 0.8rem; }
  .lead-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* Mobile Nav */
  .nav-mobile {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: var(--navy-900);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0,212,255,0.1);
    padding: 100px 40px;
    gap: 12px;
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
  }
  .nav-mobile.open { right: 0; }
  .nav-mobile a { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--white); 
    padding: 12px 0; 
    display: block;
    border-bottom: 1px solid rgba(0,212,255,0.1);
  }

  /* Estética premium tipo Pop-up Flotante para la barra fija en móvil/tablet */
  #sticky-cta {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b1f4a 0%, #003a8c 100%);
    border: 1px solid rgba(0,212,255,0.4);
    box-shadow: 0 15px 45px rgba(0,0,0,0.7), var(--shadow-glow-cyan);
    padding: 24px 20px;
    transform: translateY(130%);
    z-index: 1100;
  }
  #sticky-cta.visible { transform: translateY(0); }

  .sticky-cta-inner {
    flex-direction: column !important;
    gap: 16px;
    text-align: center;
    padding: 0;
    align-items: center !important;
  }
  .sticky-cta-text { 
    display: block !important; 
    font-family: var(--font-heading);
    font-size: 1.15rem; 
    width: 100%;
    line-height: 1.3;
    text-align: center !important;
    font-weight: 800;
    color: var(--white);
  }
  .sticky-cta-text span {
    display: block;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 8px;
  }
  #sticky-cta-btn {
    width: 100%;
    max-width: 240px;
    padding: 16px 24px;
    font-size: 1rem;
    justify-content: center;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  /* Subir WA en móviles/tablets cuando la barra está visible */
  #sticky-cta.visible ~ .whatsapp-float {
    bottom: 220px !important;
  }
}

/* Tablets pequeñas / Phablets: < 768px */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .h2 { font-size: 2.2rem; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-top { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 48px;
  }
  .footer-brand .logo { justify-content: center; }
  .footer-brand p { margin: 16px auto 0; }
  .footer-bottom { justify-content: center; flex-direction: column; gap: 16px; }
}

/* Móvil Grande: 414px - 480px */
@media (max-width: 480px) {
  .h1 { font-size: 2.4rem; }
  .h2 { font-size: 2rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-ctas .btn { min-width: 100%; }
  .industries-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form-wrap { padding: 30px 20px; }
  
  #sticky-cta-btn {
    width: 100%;
    max-width: 240px;
    padding: 16px 24px;
    font-size: 1rem;
    justify-content: center;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .hero-stat-badge { padding: 10px 14px; }
  .hero-stat-badge .num { font-size: 1.2rem; }
}

/* Móvil Pequeño/Mediano: 360px - 375px */
@media (max-width: 375px) {
  html { font-size: 16px; }
  .h1 { font-size: 2.1rem; }
  .h2 { font-size: 1.8rem; }
  .container { width: 94%; }
  .section { padding: 50px 0; }
  .btn { padding: 14px 24px; font-size: 1.05rem; }
  .btn-lg { padding: 18px 32px; font-size: 1.15rem; }
  .sticky-cta-text { font-size: 0.85rem; }
  #sticky-cta-btn { font-size: 0.95rem; padding: 12px 20px; }
}
/* ─── WHATSAPP FLOATING BUTTON ─────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 25px; /* Posición base */
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 20px rgba(37,211,102,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  animation: waBounce 2s infinite;
}

/* Si la barra sticky esta visible, subimos el WA para evitar traslape (un poco más alto ahora) */
#sticky-cta.visible ~ .whatsapp-float {
  bottom: 145px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 30px rgba(18,140,126,0.6);
}

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

/* Ajuste para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    right: 20px;
    width: 54px;
    height: 54px;
  }
  /* En móvil subimos mucho más el WA para que flote sobre el nuevo diseño tipo "pop-up card" */
  #sticky-cta.visible ~ .whatsapp-float {
    bottom: 240px !important;
  }
}
