/* ============================================================
   SCRUMYDOO — Premium Landing Page Stylesheet
   Design System: Dark Premium with Cyan/Purple Accents
   Following "PLANTILLA SECCIONES SILUETAS" layout
   ============================================================ */

/* ---- CSS Reset & Custom Properties ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-tertiary: #141422;
  --bg-card: rgba(20, 20, 40, 0.6);
  --bg-card-hover: rgba(30, 30, 60, 0.8);
  
  --text-primary: #f0ede8;
  --text-secondary: #a8a3b8;
  --text-muted: #6b6580;
  
  --accent-cyan: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-magenta: #d946ef;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --accent-gradient-hover: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 212, 255, 0.2);
  
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.15);
  --glow-purple: 0 0 40px rgba(139, 92, 246, 0.15);
  
  /* Typography */
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Newsreader', Georgia, serif;
  
  /* Spacing */
  --section-pad: clamp(80px, 12vh, 160px);
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 80px);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html {
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

em, i {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent-cyan);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ---- Loader ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo-img {
  width: 200px;
  margin: 0 auto 20px;
}

.loader-tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

#loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}

#loader-percent {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

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

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
}

.btn-large {
  padding: 20px 40px;
  font-size: 16px;
}

/* ---- Section Common ---- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.section-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-subhead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.section-body {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* ---- Wave Separators ---- */
.wave-separator {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-dark-to-light {
  background: var(--bg-primary);
}

.wave-light-to-dark {
  background: var(--bg-secondary);
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
  transform: scale(1.05);
  transition: transform 8s var(--ease-smooth);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.4) 40%, rgba(10,10,15,0.92) 80%, var(--bg-primary) 100%),
    linear-gradient(90deg, rgba(10,10,15,0.7) 0%, transparent 60%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 140px var(--container-pad) 100px;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  opacity: 0;
  animation: heroFadeIn 0.8s 0.5s var(--ease-out) forwards;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

.hero-heading {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordUp 0.9s var(--ease-out) forwards;
}

.hero-word:nth-child(1) { animation-delay: 0.6s; }
.hero-word:nth-child(2) { animation-delay: 0.75s; }
.hero-word:nth-child(3) { animation-delay: 0.9s; }

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}

.hero-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 36px;
  opacity: 0;
  animation: heroFadeIn 0.8s 1.2s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeIn 0.8s 1.4s var(--ease-out) forwards;
}

/* Trust Bar */
.hero-trust-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: heroFadeIn 0.8s 1.7s var(--ease-out) forwards;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroFadeIn 0.8s 2s var(--ease-out) forwards;
}

.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 3px;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---- Pain Points Section ---- */
.section-pain {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.section-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4d6d, #ff758f);
  opacity: 0;
  transition: opacity 0.4s;
}

.pain-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 109, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(255, 77, 109, 0.1);
}

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

.pain-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ff758f;
  background: rgba(255, 77, 109, 0.08);
  border-radius: var(--radius-md);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}

.pain-card:hover .pain-icon {
  background: rgba(255, 77, 109, 0.15);
  transform: scale(1.05);
}

.pain-icon svg {
  width: 26px;
  height: 26px;
}

.pain-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pain-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.pain-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #ff758f;
  line-height: 1;
}

.pain-stat-unit {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Solutions / Before-After Section ---- */
.section-solutions {
  background: var(--bg-primary);
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.comparison-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.comparison-before,
.comparison-after {
  padding: 32px 28px;
}

.comparison-before {
  background: rgba(255, 77, 109, 0.04);
  border-right: 1px solid var(--border-subtle);
}

.comparison-after {
  background: rgba(0, 212, 255, 0.04);
  border-left: 1px solid var(--border-subtle);
}

.comparison-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.tag-before {
  background: rgba(255, 77, 109, 0.15);
  color: #ff758f;
}

.tag-after {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
}

.comparison-before p,
.comparison-after p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.comparison-after p strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
}

/* ---- Catalog Section ---- */
.section-catalog {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.catalog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.catalog-tab:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.catalog-tab.active {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 600;
}

.catalog-tab svg {
  flex-shrink: 0;
}

.catalog-panels {
  position: relative;
}

.catalog-panel {
  display: none;
}

.catalog-panel.active {
  display: block;
}

.catalog-service-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-service {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
}

.catalog-service:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: var(--glow-cyan);
}

.catalog-service-num {
  font-size: 36px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.catalog-service:hover .catalog-service-num {
  opacity: 1;
}

.catalog-service-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.catalog-service-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- About Section ---- */
.section-about {
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
}

.about-split {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s var(--ease-smooth);
}

.about-image-wrap:hover .about-img {
  transform: scale(1.05);
}

.about-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 212, 255, 0.1) 100%);
  pointer-events: none;
}

.about-content-col .section-heading {
  font-size: clamp(32px, 4vw, 52px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.about-stat {
  display: flex;
  flex-direction: column;
}

.about-stat-number {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.about-stat-suffix {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ---- Benefits Section ---- */
.section-benefits {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 32px;
  align-items: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.5s var(--ease-out);
  cursor: default;
}

.benefit-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: var(--glow-cyan);
}

.benefit-number {
  font-size: 42px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.benefit-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.benefit-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefit-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 212, 255, 0.15);
  border-radius: 50%;
  position: relative;
  transition: all 0.5s var(--ease-out);
}

.benefit-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  transition: all 0.5s var(--ease-out);
}

.benefit-item:hover .benefit-ring {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: rotate(90deg);
}

.benefit-item:hover .benefit-ring::after {
  border-color: var(--accent-purple);
}

/* ---- Client Section ---- */
.section-client {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.client-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--glow-cyan);
}

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

.client-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: background 0.4s, transform 0.4s var(--ease-out);
}

.client-card:hover .client-icon {
  background: rgba(0, 212, 255, 0.15);
  transform: scale(1.1);
}

.client-icon svg {
  width: 30px;
  height: 30px;
}

.client-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.client-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Process Section ---- */
.section-process {
  background: var(--bg-primary);
  position: relative;
}

.section-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
  pointer-events: none;
}

.process-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  position: relative;
}

.process-step {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-out);
}

.process-step:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

.process-step:nth-child(even) {
  margin-top: 60px;
}

.process-step-number {
  font-size: 64px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.process-step:hover .process-step-number {
  opacity: 1;
}

.process-step-line {
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  margin-bottom: 20px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.process-step:hover .process-step-line {
  transform: scaleX(1);
}

.process-step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Stats Section ---- */
.section-stats {
  position: relative;
  padding: clamp(100px, 14vh, 180px) 0;
  overflow: hidden;
}

.stats-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 15, 0.88);
}

.stats-content {
  position: relative;
  z-index: 2;
}

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

.stat {
  padding: 32px 16px;
}

.stat-number {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ---- FAQ Section ---- */
.section-faq {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s;
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.section-cta {
  position: relative;
  background: var(--bg-primary);
  text-align: center;
  padding: clamp(100px, 16vh, 200px) 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: ctaGlowPulse 4s infinite alternate;
}

@keyframes ctaGlowPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.cta-body {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-img {
  width: 140px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Animations (initial hidden state for GSAP) ---- */




/* ---- Mobile Responsive ---- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pain-card:last-child {
    grid-column: span 2;
  }
  
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline {
    gap: 24px 40px;
  }
  
  .catalog-tabs {
    gap: 6px;
  }
  
  .catalog-tab span {
    display: none;
  }
  
  .catalog-tab.active span {
    display: inline;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: clamp(60px, 10vh, 100px);
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Mobile Nav */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  
  .nav-links.active a {
    font-size: 24px;
  }
  
  .hero-heading {
    font-size: clamp(36px, 10vw, 56px);
  }
  
  .hero-content {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  
  .hero-trust-bar {
    flex-direction: column;
    gap: 12px;
  }
  
  .pain-grid {
    grid-template-columns: 1fr;
  }
  
  .pain-card:last-child {
    grid-column: auto;
  }
  
  .comparison-card {
    grid-template-columns: 1fr;
  }
  
  .comparison-arrow {
    width: 100%;
    height: 40px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .comparison-arrow svg {
    transform: rotate(90deg);
  }
  
  .comparison-before {
    border-right: none;
    border-bottom: none;
  }
  
  .comparison-after {
    border-left: none;
    border-top: none;
  }
  
  .catalog-tabs {
    gap: 4px;
    justify-content: center;
  }
  
  .catalog-tab {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .catalog-tab span {
    display: none;
  }
  
  .catalog-tab.active span {
    display: inline;
  }
  
  .catalog-service {
    grid-template-columns: 50px 1fr;
    gap: 16px;
    padding: 20px 20px;
  }
  
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrap {
    aspect-ratio: 16/9;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .benefit-item {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }
  
  .benefit-visual {
    display: none;
  }
  
  .client-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-step:nth-child(even) {
    margin-top: 0;
  }
  
  .section-process::before {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .faq-question {
    font-size: 15px;
    padding: 20px 20px;
  }
  
  .faq-answer p {
    padding: 0 20px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .cta-heading {
    font-size: clamp(32px, 8vw, 52px);
  }
  
  .wave-separator svg {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: clamp(32px, 9vw, 44px);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
    width: 100%;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: auto;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .pain-stat {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---- Prefers Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-word {
    opacity: 1;
    transform: none;
  }
  
  .hero-label, .hero-tagline, .hero-actions, .hero-scroll-indicator, .hero-trust-bar {
    opacity: 1;
  }
}

/* ---- Focus Visible ---- */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---- Selection ---- */
::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
}

/* ===== HERO v4: imagen a la derecha (mitad de la sección), fundida con el fondo ===== */
.site-header { background: rgba(10, 10, 15, 0.82); backdrop-filter: blur(14px); }
.hero-section {
  position: relative; display: flex; align-items: center;
  min-height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse at 78% 50%, rgba(91, 61, 245, 0.22), transparent 62%), var(--bg-primary);
}
.hero-content { position: relative; z-index: 10; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 130px var(--container-pad) 90px; }
.hero-content > *:not(.hero-scroll-indicator) { max-width: min(560px, 44%); }
.hero-heading { font-size: clamp(34px, 4vw, 62px); }
.hero-bg {
  position: absolute; z-index: 1; inset: auto; top: 50%; right: 0; left: auto; bottom: auto; transform: translateY(-50%);
  width: 54%; max-width: 960px; aspect-ratio: 1706 / 1536;
  max-height: 100%;
}
.hero-bg picture, .hero-bg-img { display: block; width: 100%; height: 100%; }
.hero-bg-img {
  object-fit: contain; object-position: right center; opacity: 1; transform: none; transition: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 60% 50%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 60% 50%, #000 52%, transparent 100%);
}
.hero-overlay-gradient { display: none; }
.hero-particles, .hero-scroll-indicator { display: none; }
.hero-trust-bar { margin-bottom: 0; }

/* Tablet / laptop pequeña: texto e imagen lado a lado, en el mismo cuadro */
@media (max-width: 980px) {
  .hero-section { min-height: 100svh; }
  .hero-content { padding: 100px var(--container-pad) 60px; }
  .hero-content > *:not(.hero-scroll-indicator) { max-width: 52%; }
  .hero-heading { font-size: clamp(26px, 4.4vw, 42px); }
  .hero-tagline { font-size: clamp(14px, 2vw, 17px); }
  .hero-trust-bar { display: none; }
  .hero-bg { width: 50%; max-width: none; aspect-ratio: 800 / 940; max-height: 86%; }
  .hero-bg-img {
    object-position: right center;
    -webkit-mask-image: radial-gradient(ellipse 60% 58% at 55% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 60% 58% at 55% 50%, #000 55%, transparent 100%);
  }
}

/* Celular vertical: texto arriba, cerebro debajo, todo dentro de una sola pantalla */
@media (max-width: 640px) {
  .hero-section { flex-direction: column; align-items: stretch; min-height: 100svh; }
  .hero-content { order: 1; flex: 0 0 auto; padding: 84px var(--container-pad) 4px; }
  .hero-content > *:not(.hero-scroll-indicator) { max-width: 100%; }
  .hero-label { margin-bottom: 14px; font-size: 11px; }
  .hero-heading { font-size: clamp(26px, 8vw, 36px); margin-bottom: 12px; line-height: 1.08; }
  .hero-tagline { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
  .hero-actions { gap: 10px; margin-bottom: 0; }
  .hero-actions .btn { padding: 12px 20px; font-size: 14px; }
  .hero-bg {
    order: 2; flex: 1 1 auto; position: relative; top: auto; right: auto; left: auto; bottom: auto;
    transform: none; width: 100%; max-height: none; aspect-ratio: auto; min-height: 240px; margin: 0;
  }
  .hero-bg picture { position: absolute; inset: 0; }
  .hero-bg-img {
    object-fit: contain; object-position: center;
    -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 55%, transparent 100%);
  }
}

/* ===== Logo ===== */
.nav-logo-img { height: 38px; width: auto; aspect-ratio: 250 / 56; display: block; }
.loader-logo-img { height: 64px; width: auto; aspect-ratio: 250 / 56; display: block; margin: 0 auto 12px; }
.footer-logo-img { height: 44px; width: auto; aspect-ratio: 250 / 56; display: block; margin-bottom: 16px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== CTA final: texto + visual ===== */
.cta-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; text-align: left; }
.cta-split .cta-actions { justify-content: flex-start; }
.cta-split .cta-body { max-width: none; margin-left: 0; margin-right: 0; font-size: clamp(15px, 1.4vw, 18px); margin-bottom: 18px; }
.cta-split .cta-heading { font-size: clamp(34px, 4.6vw, 62px); }
.cta-visual { display: flex; flex-direction: column; gap: 18px; }
.cta-card { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px); box-shadow: var(--glow-purple); }
.cta-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.cta-badge { background: var(--accent-gradient); color: #0a0a0f; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 100px; }
.cta-card-title { font-weight: 600; color: var(--text-primary); }
.cta-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cta-steps li { display: flex; gap: 14px; align-items: flex-start; text-align: left; position: relative; }
.cta-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: -14px; width: 2px; background: linear-gradient(var(--accent-cyan), var(--accent-purple)); opacity: .4; }
.cta-step-dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--accent-cyan); border: 1.5px solid var(--accent-cyan); background: var(--bg-primary); z-index: 1; }
.cta-step-live { background: var(--accent-gradient); color: #0a0a0f; border-color: transparent; }
.cta-steps strong { display: block; color: var(--text-primary); font-size: 16px; }
.cta-steps small, .cta-card-agent small { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.cta-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin-top: 22px; overflow: hidden; }
.cta-progress span { display: block; height: 100%; width: 100%; background: var(--accent-gradient); border-radius: 6px; animation: ctaBar 3.5s var(--ease-out) infinite alternate; transform-origin: left; }
@keyframes ctaBar { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
.cta-card-agent { display: flex; align-items: center; gap: 18px; text-align: left; padding: 16px 20px; }
.cta-card-agent strong { color: var(--text-primary); }
.cta-agent-img { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .cta-split { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-split .cta-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cta-progress span { animation: none; } }

/* ===== Fondos con imágenes difuminadas por sección (efecto premium) ===== */
#dolor, #soluciones, #catalogo, #nosotros, #beneficios, #cliente, #proceso, #faq, #contacto { isolation: isolate; }
#dolor::before, #soluciones::before, #catalogo::before, #nosotros::before, #beneficios::before,
#cliente::before, #proceso::before, #faq::before, #contacto::before {
  content: ""; position: absolute; inset: -20px; z-index: -2;
  background-size: cover; background-repeat: no-repeat; background-position: center;
  filter: blur(3px) saturate(1); opacity: .4; pointer-events: none;
}
#dolor::after, #soluciones::after, #catalogo::after, #nosotros::after, #beneficios::after,
#cliente::after, #proceso::after, #faq::after, #contacto::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,15,.84) 0%, rgba(10,10,15,.74) 50%, rgba(10,10,15,.84) 100%);
}
#dolor::before      { background-image: url(../img/ia-dios-hombre.jpg);   background-position: 70% 40%; }
#soluciones::before { background-image: url(../img/ia-automatizando.jpg); background-position: 30% 50%; }
#catalogo::before   { background-image: url(../img/human-ai.jpg);         background-position: 60% 45%; }
#nosotros::before   { background-image: url(../img/human-ai.jpg);         background-position: 20% 60%; }
#beneficios::before { background-image: url(../img/ia-automatizando.jpg); background-position: 75% 40%; }
#cliente::before    { background-image: url(../img/ia-dios-hombre.jpg);   background-position: 25% 50%; }
#proceso::before    { background-image: url(../img/human-ai.jpg);         background-position: 50% 30%; }
#faq::before        { background-image: url(../img/ia-dios-hombre.jpg);   background-position: 60% 60%; }
#contacto::before   { background-image: url(../img/ia-automatizando.jpg); background-position: 50% 50%; }
.section-bg-pattern, .cta-glow { z-index: 0; }
