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

:root {
  --blue: #0066FF;
  --blue-glow: rgba(0, 102, 255, 0.15);
  --blue-hover: #0052cc;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --surface: #16161f;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f0f5;
  --text-dim: #9a9ab4;
  --text-muted: #555570;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-option {
  transition: color var(--transition);
}

.lang-option.active {
  color: var(--blue);
}

.lang-divider {
  color: var(--text-muted);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--text);
}

.mobile-lang {
  margin-top: 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 100px;
  padding: 10px 24px;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--blue) 0%, #3399ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-tagline-bold {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-proof-stars {
  color: #FFB800;
  font-size: 1rem;
  letter-spacing: 2px;
}

.hero-proof-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 102, 255, 0.3), 0 0 60px rgba(0, 102, 255, 0.1);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(0, 102, 255, 0.3), 0 0 60px rgba(0, 102, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.45), 0 0 80px rgba(0, 102, 255, 0.15); }
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ===== TECH STACK ===== */
.tech-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: 0.01em;
  transition: all var(--transition);
}

.tech-tag:hover {
  border-color: rgba(0, 102, 255, 0.2);
  color: var(--text);
  background: rgba(0, 102, 255, 0.06);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 60px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-glow);
  border-radius: 16px;
  margin-bottom: 24px;
}

/* Unique accent per service card */
/* Card 1: Automatización (featured) — blue, handled by .service-featured */
.service-card:nth-child(1) .service-icon { background: rgba(0, 102, 255, 0.15); }
/* Card 2: Servidores — purple */
.service-card:nth-child(2) .service-icon { background: rgba(139, 92, 246, 0.12); }
.service-card:nth-child(2) .service-icon svg { stroke: #8B5CF6; }
.service-card:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.2); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, #8B5CF6, transparent); }
/* Card 3: WordPress — green */
.service-card:nth-child(3) .service-icon { background: rgba(16, 185, 129, 0.12); }
.service-card:nth-child(3) .service-icon svg { stroke: #10B981; }
.service-card:nth-child(3):hover { border-color: rgba(16, 185, 129, 0.2); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, #10B981, transparent); }
/* Card 4: Apps Web — amber */
.service-card:nth-child(4) .service-icon { background: rgba(245, 158, 11, 0.12); }
.service-card:nth-child(4) .service-icon svg { stroke: #F59E0B; }
.service-card:nth-child(4):hover { border-color: rgba(245, 158, 11, 0.2); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, transparent, #F59E0B, transparent); }

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== SERVICE FEATURED ===== */
.service-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 102, 255, 0.04) 100%);
  border-color: rgba(0, 102, 255, 0.15);
  position: relative;
}

.service-featured .service-icon {
  background: rgba(0, 102, 255, 0.15);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 100px;
  padding: 4px 14px;
}

/* ===== RESULTS / CASE STUDIES ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.result-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #3399ff);
  opacity: 0;
  transition: opacity var(--transition);
}

.result-card:hover {
  border-color: rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-card:hover::after {
  opacity: 1;
}

.result-metric {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, #3399ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.results-grid .result-card:nth-child(2) { transition-delay: 0.1s; }
.results-grid .result-card:nth-child(3) { transition-delay: 0.2s; }

/* ===== FOUNDER / ABOUT ===== */
.founder-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 720px;
  margin: 0 auto;
}

.founder-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), #3399ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.founder-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

.trust-icon {
  font-size: 0.9rem;
}

/* ===== INTAKE QUALIFIER ===== */
.intake-options {
  margin-bottom: 32px;
}

.intake-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.intake-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.intake-chip {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.intake-chip:hover {
  border-color: rgba(0, 102, 255, 0.3);
  color: var(--text);
  background: rgba(0, 102, 255, 0.06);
}

.intake-chip.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(0, 102, 255, 0.3);
}

/* ===== STATS ===== */
.section-stats {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  transition: all var(--transition);
}

.stat-item:hover {
  border-color: rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-plus {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.stat-stars {
  color: #FFB800;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.stat-globe {
  margin-bottom: 4px;
}

/* ===== STEPS / PROCESS ===== */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-connector {
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.section-contact {
  text-align: center;
  padding-bottom: 120px;
}

.contact-text {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-top-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-top-link:hover {
  color: var(--blue);
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Hide WhatsApp when chat is open */
.chat-widget.open ~ .whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

/* ===== ANIMATIONS ===== */
.anim-fade,
.anim-slide-up {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-slide-up {
  transform: translateY(30px);
}

.anim-fade.visible,
.anim-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }

.steps-grid .step-card:nth-child(3) { transition-delay: 0.1s; }
.steps-grid .step-card:nth-child(5) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-featured {
    grid-column: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .founder-trust {
    justify-content: center;
  }

  .steps-grid {
    flex-direction: column;
    gap: 20px;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Tablet: 641–900px */
@media (min-width: 641px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 100px 0 70px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .section {
    padding: 80px 0;
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 16px;
  }

  .section {
    padding: 70px 0;
  }

  .service-card {
    padding: 28px 24px;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-number, .stat-plus {
    font-size: 2.25rem;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 0.95rem;
  }

  .result-metric {
    font-size: 2.5rem;
  }

  .founder-card {
    padding: 28px 24px;
  }

  .founder-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .founder-avatar-text {
    font-size: 1.25rem;
  }

  .intake-chips {
    gap: 8px;
  }

  .intake-chip {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

/* ===== CHATBOT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 95;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
  transition: all var(--transition);
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

.chat-icon-close {
  display: none;
}

.chat-widget.open .chat-icon-open {
  display: none;
}

.chat-widget.open .chat-icon-close {
  display: block;
}

/* Notification badge */
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #FF3B3B;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.chat-badge.hidden {
  display: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Bounce attention animation on the toggle button */
.chat-toggle.attention {
  animation: chatBounceAttention 1.5s ease-in-out;
}

@keyframes chatBounceAttention {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-10px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
}

.chat-widget.open .chat-badge {
  display: none;
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 370px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-widget.open .chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-status {
  font-size: 0.75rem;
  color: #25D366;
}

.chat-close,
.chat-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  transition: color var(--transition);
}

.chat-close:hover,
.chat-clear:hover {
  color: var(--text);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

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

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

.chat-msg-bubble {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  word-break: break-word;
}

.chat-msg-bot .chat-msg-bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-msg-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing .chat-msg-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 20px;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chatBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes chatBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--blue);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--blue-hover);
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Chat error */
.chat-msg-error .chat-msg-bubble {
  background: rgba(255, 60, 60, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 60, 60, 0.15);
}

/* Responsive chat */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 20px;
    left: 20px;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
  }

  .chat-window {
    width: calc(100vw - 40px);
    max-height: 70vh;
    left: 0;
    bottom: 66px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}
