/* =============================================
   VALTOR — styles.css
   Presencia Digital Inteligente
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  /* Tipografía */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colores principales */
  --white: #ffffff;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-dark: #09090b;
  --bg-dark-2: #111113;
  --bg-dark-surface: #18181b;

  /* Texto */
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-light: #fafafa;
  --text-light-secondary: #a1a1aa;

  /* Azul tecnológico */
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-light: #60a5fa;
  --blue-lighter: #93c5fd;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --blue-glow-strong: rgba(59, 130, 246, 0.25);

  /* Bordes */
  --border-light: #e5e7eb;
  --border-lighter: #f1f5f9;
  --border-dark: #27272a;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-blue: 0 0 30px rgba(59, 130, 246, 0.18);
  --shadow-blue-strong: 0 0 50px rgba(59, 130, 246, 0.28);

  /* Espaciado */
  --section-pad: 120px;
  --container-max: 1200px;
  --nav-height: 72px;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transiciones */
  --transition-fast: 0.18s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- UTILITIES ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.section-label-light {
  color: var(--blue-light);
}

.section-label-light::before {
  background: var(--blue-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title em {
  font-style: normal;
  color: var(--blue);
}

.section-title-light {
  color: var(--text-light);
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 56px;
}

.section-subtitle.section-subtitle-light {
  color: var(--text-light-secondary);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-med);
  border-radius: inherit;
}

/* Primary (blue) */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-strong);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ghost (dark outline) */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

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

/* Blue for dark sections */
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-strong);
}

/* White for dark backgrounds */
.btn-white {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

/* Ghost light (for dark backgrounds) */
.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

/* Sizes */
.btn-lg {
  font-size: 0.95rem;
  padding: 14px 28px;
}

.btn-xl {
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius-md);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: all var(--transition-med);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--bg-dark);
  color: var(--blue-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  transition: transform var(--transition-med);
}

.nav-logo:hover .logo-mark {
  transform: scale(1.06);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.nav-cta {
  margin-left: 16px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-med);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--border-light);
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-lighter);
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

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

.nav-mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: var(--nav-height);
}

/* Canvas for node animation */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* Grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0;
  animation: gridReveal 1.2s ease 0.5s forwards;
}

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

/* Glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat 14s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
  padding: 80px 32px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 36px;
  opacity: 0;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line > span,
.title-line {
  opacity: 0;
  transform: translateY(30px);
}

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

/* Hero subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 44px;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollFadeIn 1s ease 3s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--blue));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* Hero reveal animations (JS-triggered) */
.hero-badge.revealed { animation: revealFadeUp 0.7s ease forwards; }
.hero-title .title-line.revealed { animation: revealFadeUp 0.7s ease forwards; }
.hero-subtitle.revealed { animation: revealFadeUp 0.7s ease forwards; }
.hero-actions.revealed { animation: revealFadeUp 0.6s ease forwards; }
.hero-stats.revealed { animation: revealFadeUp 0.6s ease forwards; }

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

/* =============================================
   SECTION: PROBLEMA
   ============================================= */
.section-problem {
  background: var(--bg-primary);
}

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

.problem-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

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

.problem-card:hover {
  border-color: rgba(59,130,246,0.25);
  box-shadow: var(--shadow-md), var(--shadow-blue);
  transform: translateY(-3px);
}

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

.problem-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
  transition: all var(--transition-med);
}

.problem-card:hover .problem-icon {
  background: rgba(59,130,246,0.14);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.problem-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* =============================================
   SECTION: SOLUCIÓN
   ============================================= */
.section-solution {
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.solution-list {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  font-weight: 400;
}

.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.check-icon::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.5px solid var(--blue-light);
  border-bottom: 1.5px solid var(--blue-light);
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}

/* Diagram */
.solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-diagram {
  position: relative;
  width: 300px;
  height: 300px;
}

.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px rgba(59,130,246,0.4);
}

.diagram-center span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.diagram-node {
  position: absolute;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--transition-med);
  animation: diagramPulse 4s ease-in-out infinite;
}

.diagram-node:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 14%; right: 0; animation-delay: 0.5s; }
.node-3 { bottom: 14%; right: 0; animation-delay: 1s; }
.node-4 { bottom: 5%; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.node-5 { top: 14%; left: 0; animation-delay: 2s; }

@keyframes diagramPulse {
  0%, 100% { border-color: var(--border-dark); }
  50% { border-color: rgba(59,130,246,0.4); }
}

/* =============================================
   SECTION: SERVICIOS
   ============================================= */
.section-services {
  background: var(--white);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: border-color var(--transition-med);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-blue);
}

.service-card:hover::after {
  border-color: rgba(59,130,246,0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue);
  transition: all var(--transition-med);
  border: 1px solid var(--border-light);
}

.service-card:hover .service-icon {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  box-shadow: var(--shadow-blue);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  border-top: 1px solid var(--border-lighter);
  padding-top: 16px;
}

.benefit-icon {
  font-style: normal;
  font-size: 1rem;
}

/* =============================================
   SECTION: POR QUÉ VALTOR / DIFERENCIA
   ============================================= */
.section-why {
  background: var(--bg-primary);
}

.why-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.why-inner .section-label {
  justify-content: center;
}

.why-inner .section-label::before {
  display: none;
}

.why-inner .section-subtitle {
  margin: 0 auto 0;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comp-col {
  padding: 44px;
}

.comp-col-common {
  background: var(--white);
}

.comp-col-valtor {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.comp-col-valtor::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.comp-header {
  margin-bottom: 32px;
}

.comp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.comp-tag-common {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.comp-tag-valtor {
  background: rgba(59,130,246,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,0.3);
}

.comp-col-common .comp-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
}

.comp-col-valtor .comp-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.comp-item-bad {
  color: var(--text-muted);
}

.comp-item-good {
  color: var(--text-light-secondary);
}

.comp-icon {
  font-size: 0.8rem;
  font-style: normal;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 1px;
}

.comp-item-bad .comp-icon {
  background: rgba(0,0,0,0.05);
  color: var(--text-muted);
}

.comp-icon-good {
  background: rgba(59,130,246,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,0.25);
}

.comp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: relative;
  background: linear-gradient(to bottom, var(--white), var(--bg-dark));
}

.comp-vs {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  z-index: 1;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* =============================================
   SECTION: PROCESO
   ============================================= */
.section-process {
  background: var(--white);
}

.process-steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 4px;
  transition: all var(--transition-med);
}

.process-step:hover .step-number {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.step-content {
  padding-bottom: 48px;
  position: relative;
}

.step-connector {
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -4px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(59,130,246,0.3), rgba(59,130,246,0.05));
}

.process-step:last-child .step-connector {
  display: none;
}

.process-step:last-child .step-content {
  padding-bottom: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   SECTION: FRASES
   ============================================= */
.section-phrases {
  background: var(--bg-primary);
  padding: 80px 0;
}

.phrases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.phrase-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.phrase-card:hover {
  border-color: rgba(59,130,246,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.phrase-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.phrase-card-large {
  grid-column: span 1;
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.phrase-card-large blockquote p {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.04em;
}

.phrase-card-dark {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.phrase-card-dark blockquote p {
  color: var(--text-light-secondary);
}

/* =============================================
   SECTION: CLIENTES IDEALES
   ============================================= */
.section-clients {
  background: var(--white);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 100px;
  transition: all var(--transition-med);
  cursor: default;
}

.client-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-lighter);
  border-radius: 50%;
  flex-shrink: 0;
}

.client-tag:hover {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.25);
  color: var(--blue);
  transform: translateY(-1px);
}

/* =============================================
   SECTION: CTA FINAL
   ============================================= */
.section-cta {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  padding: 140px 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.cta-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.cta-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-light-secondary);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark-2);
  color: var(--text-light-secondary);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-brand .logo-mark {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
}

.footer-brand .logo-text {
  color: var(--text-light);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  margin-bottom: 6px;
}

.footer-domain {
  font-size: 0.8rem;
  color: var(--blue-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-secondary);
  transition: all var(--transition-med);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(59,130,246,0.08);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col li a {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav-col li a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-phrase {
  font-style: italic;
  color: rgba(255,255,255,0.2);
}

/* =============================================
   SCROLL REVEAL (JS-triggered)
   ============================================= */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.problem-grid [data-scroll-reveal]:nth-child(1),
.services-grid [data-scroll-reveal]:nth-child(1),
.phrases-grid [data-scroll-reveal]:nth-child(1) { transition-delay: 0s; }

.problem-grid [data-scroll-reveal]:nth-child(2),
.services-grid [data-scroll-reveal]:nth-child(2),
.phrases-grid [data-scroll-reveal]:nth-child(2) { transition-delay: 0.08s; }

.problem-grid [data-scroll-reveal]:nth-child(3),
.services-grid [data-scroll-reveal]:nth-child(3),
.phrases-grid [data-scroll-reveal]:nth-child(3) { transition-delay: 0.16s; }

.problem-grid [data-scroll-reveal]:nth-child(4),
.services-grid [data-scroll-reveal]:nth-child(4),
.phrases-grid [data-scroll-reveal]:nth-child(4) { transition-delay: 0.24s; }

.problem-grid [data-scroll-reveal]:nth-child(5),
.services-grid [data-scroll-reveal]:nth-child(5) { transition-delay: 0.32s; }

.problem-grid [data-scroll-reveal]:nth-child(6),
.services-grid [data-scroll-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-pad: 90px;
  }

  .container {
    padding: 0 24px;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .solution-visual {
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
    --nav-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  /* Navbar mobile */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  /* Hero mobile */
  .hero-content {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats .stat-item strong {
    font-size: 0.95rem;
  }

  /* Problem grid */
  .problem-grid {
    grid-template-columns: 1fr;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Solution */
  .solution-visual {
    display: none;
  }

  /* Comparison */
  .comparison {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .comp-divider {
    display: none;
  }

  .comp-col-valtor::before {
    display: none;
  }

  .comp-col {
    padding: 32px 28px;
  }

  /* Process */
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }

  /* Phrases */
  .phrases-grid {
    grid-template-columns: 1fr;
  }

  .phrase-card-large {
    grid-column: span 1;
  }

  /* CTA */
  .cta-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
    text-align: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 1;
  }

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

  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.7rem;
  }
}
