/* ============================================================
   DESIGN TOKENS — edit these for Claude Code integration
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-base:        #060810;
  --bg-surface:     #0c0f1a;
  --bg-elevated:    #111627;
  --bg-card:        rgba(255,255,255,0.03);

  /* Accents */
  --accent-cyan:    oklch(0.72 0.18 200);
  --accent-purple:  oklch(0.72 0.18 280);
  --accent-cyan-dim: oklch(0.72 0.18 200 / 0.15);
  --accent-purple-dim: oklch(0.72 0.18 280 / 0.15);

  /* Typography */
  --text-primary:   oklch(0.96 0.01 220);
  --text-secondary: oklch(0.65 0.03 220);
  --text-muted:     oklch(0.45 0.02 220);

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.06);
  --border-glow:    rgba(99,179,237,0.25);

  /* Fonts */
  --font-display:   'Space Grotesk', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad:    120px;
  --container:      1200px;
  --radius-card:    16px;
  --radius-sm:      8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   GRID BACKGROUND (canvas layer)
   ============================================================ */
#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-subtle);
}

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

.nav-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.nav-logo-top {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* keep dot class for footer compat */
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

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

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

.nav-cta {
  padding: 9px 22px;
  background: var(--accent-cyan);
  color: var(--bg-base) !important;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px oklch(0.72 0.18 200 / 0.4) !important;
  color: var(--bg-base) !important;
}

/* ============================================================
   HERO
   ============================================================ */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.type-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--accent-cyan);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-cyan);
}

.hero-title {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.btn-primary {
  padding: 16px 36px;
  background: var(--accent-cyan);
  color: var(--bg-base);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: box-shadow 0.25s, transform 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  box-shadow: 0 0 40px oklch(0.72 0.18 200 / 0.5);
  transform: translateY(-1px);
}

.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  padding: 16px 36px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  padding: 20px 0;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Hero right — integration network */
.hero-visual {
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#network-canvas {
  width: 100%;
  max-width: 540px;
  height: 480px;
  display: block;
}

/* Floating metric badges on top of canvas */
.hero-metric-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.metric-badge {
  position: absolute;
  background: rgba(12,15,26,0.9);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 4s ease-in-out infinite;
}

.metric-badge:nth-child(2) { animation-delay: -1.5s; }
.metric-badge:nth-child(3) { animation-delay: -3s; }

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

.metric-badge-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.metric-badge-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

/* Floating connection nodes */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.glow-1 {
  width: 400px; height: 400px;
  background: oklch(0.72 0.18 200 / 0.12);
  top: -100px; right: -100px;
}

.glow-2 {
  width: 300px; height: 300px;
  background: oklch(0.72 0.18 280 / 0.1);
  bottom: -50px; left: 50px;
}

/* ============================================================
   TICKER — TRUST BAR
   ============================================================ */
.ticker-bar {
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.01);
}

.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

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

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ticker-item::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.5;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 72px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   WHY US — VALUE PROPS
   ============================================================ */
#value {
  padding: var(--section-pad) 40px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.value-card {
  background: var(--bg-surface);
  padding: 48px 40px;
  transition: background 0.3s;
}

.value-card:hover { background: var(--bg-elevated); }

.value-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg { width: 24px; height: 24px; }

.value-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.value-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
#servicios {
  padding: var(--section-pad) 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01) 50%, transparent);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: var(--border-glow);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}

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

.service-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon svg { width: 20px; height: 20px; stroke: var(--accent-cyan); fill: none; stroke-width: 1.5; }

.service-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================================
   AI SECTION
   ============================================================ */
#ia {
  padding: var(--section-pad) 40px;
}

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

.ai-visual {
  position: relative;
}

.ai-diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.ai-diagram-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.flow-nodes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.flow-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: calc(50% + 18px);
  bottom: calc(-50% + 18px);
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.4;
  height: 28px;
}

.node-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid;
}

.node-circle.cyan {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.node-circle.purple {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.node-label {
  font-size: 14px;
  font-weight: 500;
}

.node-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.ai-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--accent-cyan-dim), var(--accent-purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ai-feature {
  display: flex;
  gap: 20px;
}

.ai-feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-feature-icon svg { width: 18px; height: 18px; stroke: var(--accent-cyan); fill: none; stroke-width: 1.5; }

.ai-feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.ai-feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
#tecnologias {
  padding: var(--section-pad) 40px;
  background: var(--bg-surface);
}

.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tech-category-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tech-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* ============================================================
   PROCESS
   ============================================================ */
#proceso {
  padding: var(--section-pad) 40px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}

.process-step:hover .step-number {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   B2B BANNER
   ============================================================ */
#b2b {
  padding: var(--section-pad) 40px;
}

.b2b-inner {
  background: linear-gradient(135deg, rgba(99,179,237,0.07), rgba(159,122,234,0.07));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.b2b-inner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, oklch(0.72 0.18 200 / 0.12), transparent 70%);
}

.b2b-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.b2b-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.b2b-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.b2b-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contacto {
  padding: var(--section-pad) 40px;
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 16px; height: 16px; stroke: var(--accent-cyan); fill: none; stroke-width: 1.5; }

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 500;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(99,179,237,0.04);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 340px;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   FLOATING WIDGETS — WhatsApp + Social
   ============================================================ */

/* WhatsApp button */
.wa-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  border: none;
  position: relative;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.wa-btn svg { width: 28px; height: 28px; }

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-tooltip {
  background: rgba(12,15,26,0.95);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.wa-widget:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Social sidebar */
.social-sidebar {
  position: fixed;
  left: 24px;
  bottom: 32px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-sidebar::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--border-subtle), transparent);
  margin-top: 4px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-link svg { width: 18px; height: 18px; }

.social-link.linkedin:hover {
  border-color: #0A66C2;
  background: rgba(10,102,194,0.12);
  transform: translateX(3px);
}

.social-link.instagram:hover {
  border-color: #E1306C;
  background: rgba(225,48,108,0.12);
  transform: translateX(3px);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.lang-btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }

.lang-flag { font-size: 14px; line-height: 1; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
}

.lang-option:hover { background: var(--bg-elevated); color: var(--text-primary); }
.lang-option.active { color: var(--accent-cyan); }

.lang-option-name { font-weight: 500; }
.lang-option-native { font-size: 11px; color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); }

@media (max-width: 768px) {
  .wa-widget { bottom: 20px; right: 20px; }
  .social-sidebar { display: none; }
  .lang-btn span.lang-label { display: none; }
}

/* --- Hamburger menu --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(6,8,16,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 32px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text-primary); }
.nav-mobile-cta {
  margin-top: 16px;
  padding: 16px !important;
  background: var(--accent-cyan) !important;
  color: var(--bg-base) !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 600 !important;
  border-bottom: none !important;
}

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  #network-canvas { height: 360px; }

  .ai-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps::before { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }

  .b2b-inner { padding: 64px 48px; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  .container { padding: 0 20px; }
  nav { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-top { font-size: 13px; }
  .nav-logo-sub { font-size: 8px; }
  .nav-logo-mark { width: 26px; height: 26px; }

  #inicio { padding: 100px 20px 72px; }
  .hero-inner { gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(36px, 9vw, 52px); }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-number { font-size: 28px; }

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

  .value-card { padding: 32px 24px; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
  .step-number { margin: 0; flex-shrink: 0; }

  .b2b-inner { padding: 40px 24px; }
  .b2b-actions { flex-direction: column; align-items: stretch; }
  .b2b-actions a { text-align: center; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 48px 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-desc { font-size: 15px; }

  .ai-diagram { padding: 28px 20px; }
  .ai-badge { display: none; }

  .ticker-item { font-size: 11px; }

  .tech-pill { font-size: 11px; padding: 6px 14px; }

  #contacto { padding: var(--section-pad) 20px; }
}

/* --- Small mobile (≤420px) --- */
@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 14px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 24px; }
  .services-grid { grid-template-columns: 1fr; }
}
