/* ==========================================================================
   JOSE VALDIVIA GUZMAN - PORTAFOLIO & LANDING DE SERVICIOS
   DISEÑO: PREMIUM LIGHT EDITORIAL (BLANCO PREDOMINANTE & BLEND DE COLOR)
   ========================================================================== */

:root {
  /* Surface & Base - Blanco Predominante */
  --bg-base: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-hover: #94a3b8;
  --border-focus: #0284c7;

  /* Typography - Negro Profundo & Slates */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand Accents (Blended with White) */
  --cyan-primary: #0284c7;
  --cyan-subtle: #e0f2fe;
  --cyan-glow: rgba(2, 132, 199, 0.15);

  --emerald-primary: #059669;
  --emerald-subtle: #dcfce7;
  --emerald-glow: rgba(5, 150, 105, 0.15);

  --purple-primary: #6366f1;
  --purple-subtle: #ede9fe;
  --purple-glow: rgba(99, 102, 241, 0.15);

  --whatsapp-green: #25d366;
  --whatsapp-dark: #15803d;
  --whatsapp-subtle: #dcfce7;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);

  /* Space Blue Palette Tokens */
  --space-blue-bg: #070d1e;
  --space-blue-card: #0c1634;
  --space-blue-surface: #112048;
  --space-blue-border: #1e3366;
  --space-blue-text: #f1f5f9;
  --space-blue-muted: #94a3b8;
  --space-blue-glow: rgba(56, 189, 248, 0.2);

  /* Shadows - Suaves y de Alta Definición */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-featured: 0 20px 40px -8px rgba(2, 132, 199, 0.14), 0 8px 16px -4px rgba(2, 132, 199, 0.06);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s var(--ease-spring);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   TEXTURA DE MALLA DE NODOS (PREMIUM TECH WATERMARK)
   ========================================================================== */
.bg-node-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(2, 132, 199, 0.06) 0%, transparent 60%),
    radial-gradient(rgba(100, 116, 139, 0.38) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(203, 213, 225, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px, 36px 36px;
}

/* Background Ambient Lighting (Soft Blend on White) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
}
.glow-cyan {
  width: 650px;
  height: 650px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}
.glow-purple {
  width: 700px;
  height: 700px;
  bottom: 5%;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 10%, var(--cyan-primary) 65%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-arrow, .btn-icon {
  width: 18px;
  height: 18px;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: all var(--transition-fast);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border-medium);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-badge {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-family: var(--font-mono);
}
.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-subdomain {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.accent-dot { color: var(--cyan-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.nav-item:hover {
  color: var(--cyan-primary);
  background: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Currency Toggle */
.currency-toggle {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px;
}
.currency-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.currency-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* WhatsApp Nav Button */
.btn-whatsapp-nav {
  background: var(--whatsapp-subtle);
  color: var(--whatsapp-dark);
  border: 1px solid rgba(37, 211, 102, 0.3);
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
}
.btn-whatsapp-nav:hover {
  background: var(--whatsapp-green);
  color: #000;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
  transform: translateY(-2px);
}
.icon-whatsapp {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   SECCIÓN 1: HERO (Elegante & Confiable)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.04) 0%, transparent 60%), #ffffff;
  position: relative;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin-bottom: 1.3rem;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.68;
  margin-bottom: 1.8rem;
}
.hero-subtitle strong { color: var(--text-primary); font-weight: 700; }

/* Deployment Pills */
.deployment-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.dep-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.dep-pill strong { color: var(--text-primary); }
.dep-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cloud-dot { background: var(--cyan-primary); }
.local-dot { background: var(--emerald-primary); }
.hybrid-dot { background: var(--purple-primary); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

/* Badges debajo de las acciones */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.badge-pulse {
  background: var(--emerald-subtle);
  color: var(--emerald-primary);
  border-color: rgba(5, 150, 105, 0.2);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
  animation: pulseBeacon 2s infinite;
}
@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.badge-framework {
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  border-color: rgba(2, 132, 199, 0.2);
  font-family: var(--font-mono);
}

/* Dev Terminal Card - Dark Precision Accent amidst White */
.dev-terminal-card {
  width: 100%;
  max-width: 800px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-align: left;
  margin-bottom: 3.5rem;
}
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 0.65rem 1.2rem;
  border-bottom: 1px solid #334155;
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}
.terminal-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
}
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  background: #090e1a;
  min-height: 170px;
  color: #f1f5f9;
}
.term-prompt { color: #38bdf8; font-weight: 700; }
.term-cmd { color: #ffffff; }
.term-response {
  color: #94a3b8;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}
.term-response .key { color: #7dd3fc; }
.term-response .str { color: #4ade80; }
.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}
.term-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.term-btn:hover {
  background: #334155;
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Metrics Ribbon */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  width: 100%;
}
.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.metric-card.highlight-cyan {
  border-top: 3px solid var(--cyan-primary);
}
.metric-card.highlight-emerald {
  border-top: 3px solid var(--emerald-primary);
}
.metric-val {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.highlight-cyan .metric-val { color: var(--cyan-primary); }
.highlight-emerald .metric-val { color: var(--emerald-primary); }
.metric-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.metric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections Common Header */
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-primary);
  background: var(--cyan-subtle);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 740px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

/* ==========================================================================
   SECCIÓN 2: DESPLIEGUE FLEXIBLE (Estilo Blueprint / Blanco con Matiz Gris)
   ========================================================================== */
.section-deployment {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}
.dep-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.dep-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}
.dep-card.featured-dep {
  border: 2px solid var(--emerald-primary);
  box-shadow: 0 10px 30px -4px rgba(5, 150, 105, 0.12);
}
.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--emerald-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.dep-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.dep-card-icon svg { width: 24px; height: 24px; }
.cloud-icon { background: var(--cyan-subtle); color: var(--cyan-primary); }
.local-icon { background: var(--emerald-subtle); color: var(--emerald-primary); }
.hybrid-icon { background: var(--purple-subtle); color: var(--purple-primary); }

.dep-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.badge-cloud { color: var(--cyan-primary); }
.badge-local { color: var(--emerald-primary); }
.badge-hybrid { color: var(--purple-primary); }

.dep-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}
.dep-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}
.dep-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.1rem;
}
.dep-list li {
  margin-bottom: 0.45rem;
}

/* ==========================================================================
   SECCIÓN 3: MANIFIESTO DE AGENTES (AZUL ESPACIO CÓSMICO TECH)
   ========================================================================== */
.section-manifesto {
  background: linear-gradient(180deg, #070d1e 0%, #0c1634 50%, #080f24 100%);
  border-top: 1px solid var(--space-blue-border);
  border-bottom: 1px solid var(--space-blue-border);
  color: var(--space-blue-text);
  position: relative;
}
.section-manifesto .section-title {
  color: #ffffff;
}
.section-manifesto .manifesto-intro {
  font-size: 1.12rem;
  color: #94a3b8;
  line-height: 1.7;
}
.section-manifesto .manifesto-intro strong { color: #38bdf8; }

.manifesto-box {
  background: rgba(12, 22, 52, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  padding: 3.2rem 2.6rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(2, 132, 199, 0.12);
}
.manifesto-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.8rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}
.level-card {
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.level-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}
.level-bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.level-bad .level-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.level-bad h4 { color: #ffffff; }
.level-bad .level-desc { color: #cbd5e1; }

.level-mid {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.level-mid .level-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.level-mid h4 { color: #ffffff; }
.level-mid .level-desc { color: #cbd5e1; }

.level-god {
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}
.level-god .level-badge {
  background: #10b981;
  color: #ffffff;
}
.level-god h4 { color: #ffffff; }
.level-god .level-desc { color: #e2e8f0; }

.level-highlight {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}
.level-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.level-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.3rem;
  flex-grow: 1;
}
.level-outcome {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.level-bad .level-outcome { color: #f87171; }
.level-mid .level-outcome { color: #fbbf24; }
.level-god .level-outcome { color: #34d399; }

/* Workflow Visual */
.agent-workflow-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(7, 13, 30, 0.85);
  border: 1px solid #1e3366;
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 2.8rem;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #112048;
  border: 1px solid #1e3366;
  color: #38bdf8;
  font-weight: 800;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.flow-info strong { display: block; font-size: 0.92rem; color: #ffffff; }
.flow-info small { color: #94a3b8; font-size: 0.78rem; }
.flow-arrow {
  color: var(--cyan-primary);
  font-weight: 700;
  font-size: 1.2rem;
}
.highlight-step .flow-num {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}
.verified-step .flow-num {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
}

/* ==========================================================================
   SIMULADOR EN VIVO DE AGENTES Y CODING (LIVE SWARM ENGINE)
   ========================================================================== */
.agent-simulation-card {
  background: #060c1c;
  border: 1px solid #1e3366;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}
.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 1.6rem;
}
.sim-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sim-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseSimDot 1.6s infinite;
}
@keyframes pulseSimDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.sim-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.sim-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}
.sim-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sim-task-btn {
  background: #112048;
  border: 1px solid #1e3366;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sim-task-btn:hover {
  background: #1e3164;
  color: #ffffff;
  border-color: #38bdf8;
}
.sim-task-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
}
.sim-agents-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.sim-agent-card {
  background: #0b1536;
  border: 1px solid #1e2e5c;
  border-radius: 12px;
  padding: 1.1rem;
  transition: all var(--transition-normal);
}
.sim-agent-card.active-card {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15);
}
.agent-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.agent-avatar {
  font-size: 1.3rem;
}
.agent-meta {
  flex-grow: 1;
}
.agent-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}
.agent-role {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}
.agent-pulse-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}
.tag-planning { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.tag-coding { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.tag-verifying { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.agent-speech {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(7, 13, 30, 0.7);
  border-left: 3px solid #0284c7;
  padding: 0.55rem 0.75rem;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  line-height: 1.5;
}

/* Realtime IDE Window */
.sim-ide-window {
  background: #030712;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sim-ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1120;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #1e293b;
}
.ide-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
}
.ide-tab-status {
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 700;
}
.sim-code-body {
  padding: 1.2rem;
  flex-grow: 1;
  overflow-y: auto;
  min-height: 230px;
  max-height: 290px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  background: #040817;
  color: #f8fafc;
}
.sim-code-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.sim-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #38bdf8;
  vertical-align: middle;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sim-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: #090e1f;
  border-top: 1px solid #1e293b;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.telemetry-label { color: #64748b; }
.telemetry-val { color: #cbd5e1; font-weight: 700; }
.highlight-val { color: #34d399; }

/* ==========================================================================
   SECCIÓN 4: SERVICIOS & PRECIOS (White Studio con Pestañas Temáticas Dinámicas)
   ========================================================================== */
.section-services {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

/* Título con "Necesidades" resaltado */
.text-highlight-needs {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: inline-block;
  position: relative;
  letter-spacing: -0.015em;
}

.text-highlight-needs::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.6), rgba(99, 102, 241, 0.6));
  border-radius: 9999px;
}

/* Contenedor y Carril de Navegación Dinámica */
.tabs-nav-wrapper {
  width: 100%;
  margin-bottom: 2.75rem;
}

.tabs-dynamic-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Tarjeta Dinámica de Pestaña */
.tabs-dynamic-nav .tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  font-family: var(--font-sans);
}

.tabs-dynamic-nav .tab-btn:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

/* Fila Superior: Icono y Micro-Tag */
.tab-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.85rem;
}

.tab-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 1.25rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.tabs-dynamic-nav .tab-btn:hover .tab-icon-box {
  transform: scale(1.1);
}

.tab-pill-tag {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Variantes Cromáticas de Iconos y Tags */
.icon-cyan { background: #e0f2fe; }
.tag-cyan { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.25); }

.icon-slate { background: #f1f5f9; }
.tag-slate { background: rgba(51, 65, 85, 0.1); color: #334155; border: 1px solid rgba(51, 65, 85, 0.2); }

.icon-amber { background: #fef3c7; }
.tag-amber { background: rgba(217, 119, 6, 0.12); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.25); }

.icon-emerald { background: #d1fae5; }
.tag-emerald { background: rgba(5, 150, 105, 0.12); color: #047857; border: 1px solid rgba(5, 150, 105, 0.25); }

.icon-blue { background: #dbeafe; }
.tag-blue { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; border: 1px solid rgba(37, 99, 235, 0.25); }

/* Textos de la Tarjeta */
.tab-title-main {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.tab-subtitle-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
  transition: color 0.2s ease;
}

/* Indicador luminoso inferior */
.tab-glow-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  transition: all 0.28s ease;
  border-radius: 4px 4px 0 0;
}

/* Estados Activos por Especialidad */
.tabs-dynamic-nav .tab-btn.active {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tabs-dynamic-nav .tab-btn[data-tab="tab-ai"].active {
  border-color: #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-ai"].active .tab-glow-indicator {
  background: #0284c7;
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-ai"].active .tab-title-main {
  color: #0369a1;
}

.tabs-dynamic-nav .tab-btn[data-tab="tab-erp"].active {
  border-color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-erp"].active .tab-glow-indicator {
  background: #0f172a;
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-erp"].active .tab-title-main {
  color: #0f172a;
}

.tabs-dynamic-nav .tab-btn[data-tab="tab-data"].active {
  border-color: #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-data"].active .tab-glow-indicator {
  background: #d97706;
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-data"].active .tab-title-main {
  color: #b45309;
}

.tabs-dynamic-nav .tab-btn[data-tab="tab-infra"].active {
  border-color: #059669;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-infra"].active .tab-glow-indicator {
  background: #059669;
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-infra"].active .tab-title-main {
  color: #047857;
}

.tabs-dynamic-nav .tab-btn[data-tab="tab-budget"].active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-budget"].active .tab-glow-indicator {
  background: #2563eb;
}
.tabs-dynamic-nav .tab-btn[data-tab="tab-budget"].active .tab-title-main {
  color: #1d4ed8;
}

/* Responsividad Dinámica */
@media (max-width: 1080px) {
  .tabs-dynamic-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tabs-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
  }
  .tabs-dynamic-nav {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    scroll-snap-type: x mandatory;
  }
  .tabs-dynamic-nav .tab-btn {
    min-width: 210px;
    max-width: 240px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

/* Contenedor de contenido de pestañas con transición suave */
@keyframes dynamicPaneFade {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: dynamicPaneFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-intro-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
}
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.badge-tech {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}
.badge-deploy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--emerald-subtle);
  color: var(--emerald-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.tab-service-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.tab-service-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Triple Card Pricing (White Dominant with Distinct Borders) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured-card {
  border: 2px solid var(--cyan-primary);
  box-shadow: var(--shadow-featured);
}
.pricing-card.flagship-card {
  border: 2px solid var(--purple-primary);
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.12);
}
.card-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px var(--cyan-glow);
  white-space: nowrap;
}
.card-flagship-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px var(--purple-glow);
  white-space: nowrap;
}

.pricing-tier-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.pricing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.pricing-target {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.3rem;
}
.pricing-price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.curr-symbol { font-size: 1.25rem; color: var(--cyan-primary); }
.curr-code { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.pricing-timeline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}
.pricing-features {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-features li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.pricing-features strong { color: var(--text-primary); }

.btn-card-cta {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
}
.btn-card-cta:hover {
  background: var(--cyan-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}
.btn-glow {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: #ffffff;
}
.btn-glow:hover {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--purple-glow);
}

/* Guidance Box */
.guidance-box {
  margin-top: 3.5rem;
  background: #f0fdf4;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 18px;
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.guidance-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 680px;
}
.guidance-icon { font-size: 2.2rem; }
.guidance-text h4 { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.3rem; }
.guidance-text p { color: var(--text-secondary); font-size: 0.92rem; }

.btn-whatsapp-large {
  background: var(--whatsapp-green);
  color: #000;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
  transition: all var(--transition-fast);
}
.btn-whatsapp-large:hover {
  transform: translateY(-2px);
  background: #16a34a;
  color: #fff;
}

/* ==========================================================================
   SECCIÓN 5: PROYECTOS / PROOF OF WORK (Minimalista & Confiable)
   ========================================================================== */
.section-projects {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}
.compact-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.proj-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}
.proj-card:nth-child(1) { border-left: 4px solid var(--emerald-primary); }
.proj-card:nth-child(2) { border-left: 4px solid var(--cyan-primary); }
.proj-card:nth-child(3) { border-left: 4px solid var(--purple-primary); }
.proj-card:nth-child(4) { border-left: 4px solid #f59e0b; }
.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.proj-client {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cyan-primary);
}
.proj-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.proj-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}
.proj-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.3rem;
  flex-grow: 1;
}
.proj-metrics {
  display: flex;
  gap: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}
.p-metric {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.p-metric strong { color: var(--emerald-primary); }
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.proj-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN 6: TRAYECTORIA & CREDENCIALES
   ========================================================================== */
.section-bio {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
  border-top: 1px solid #e7e5e4;
  border-bottom: 1px solid #e7e5e4;
}
.section-bio .section-title {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}
.section-bio .section-desc {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 3rem;
}
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}
.bio-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}
.bio-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.bio-degree {
  color: var(--cyan-primary);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}
.bio-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}
/* Node Cloud Animation & Interactive Constellation (Full Space) */
.bio-col.bio-col-cloud {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.bio-col.bio-col-cloud .node-cloud-box {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  flex: 1 1 auto;
}

.node-cloud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.cloud-toolbar-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-cloud-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cloud-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #475569;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cloud-filter-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
.cloud-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 700;
}

/* Canvas Wrapper - Occupies Full Space */
.node-cloud-canvas-wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 520px;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  cursor: grab;
}
.node-cloud-canvas-wrapper:active {
  cursor: grabbing;
}

.skills-node-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Dedicated Info Strip Between Canvas & Legend */
.node-cloud-info-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  transition: background-color 0.25s ease;
  min-height: 46px;
}

.tooltip-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.tooltip-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tooltip-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.tooltip-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* Legend */
.node-cloud-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #64748b;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-frameworks { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.dot-ai { background: #6366f1; box-shadow: 0 0 6px #6366f1; }
.dot-software { background: #0284c7; box-shadow: 0 0 6px #0284c7; }
.dot-infra { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-web { background: #8b5cf6; box-shadow: 0 0 6px #8b5cf6; }

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
}
.cert-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  background: var(--purple-subtle);
  color: var(--purple-primary);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  line-height: 1;
}
.cert-item strong { display: block; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.cert-item small { color: var(--text-muted); font-size: 0.78rem; display: block; line-height: 1.4; }

/* ==========================================================================
   FOOTER (4-COLUMN CORPORATE LUXURY TECH - SPACE BLUE)
   ========================================================================== */
.site-footer {
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, #070d1e 0%, #050a17 100%);
  color: #f8fafc;
  position: relative;
}
.footer-cta-card {
  background: #0b1536;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 3.5rem 2.2rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 3.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.1);
}
.footer-title {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.9rem;
}
.footer-subtitle {
  color: #94a3b8;
  font-size: 1.02rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}
.footer-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.btn-whatsapp-hero {
  background: var(--whatsapp-green);
  color: #000;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px var(--whatsapp-glow);
  transition: all var(--transition-normal);
}
.btn-whatsapp-hero:hover {
  transform: translateY(-3px);
  background: #16a34a;
  color: #ffffff;
}
.icon-whatsapp-lg { width: 24px; height: 24px; }

/* 4-Column Grid */
.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-col-identity .footer-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-col-identity .logo-text {
  color: #ffffff;
}
.footer-bio-text {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}
.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseSimDot 1.8s infinite;
}

.footer-col-title {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 1.2rem;
}
.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-block;
}
.footer-menu a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #0e1a3a;
  border: 1px solid #1e3366;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: all var(--transition-fast);
}
.footer-contact-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-contact-pill.highlight-wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #4ade80;
  font-weight: 700;
}
.footer-contact-pill:hover {
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
}
.footer-sla {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.8rem;
}
.sla-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* Footer Payment Methods Bar */
.footer-payments-bar {
  margin: 2.8rem 0 2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(14, 26, 58, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.payments-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.payments-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.payments-subtext {
  font-size: 0.76rem;
  color: #94a3b8;
}

.payments-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.payment-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.payment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Individual Payment Themes */
.payment-card.pay-visa {
  border-color: rgba(30, 58, 138, 0.6);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(14, 26, 58, 0.6) 100%);
}
.pay-logo-visa {
  font-family: var(--font-sans);
  font-weight: 900;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.payment-card.pay-yape {
  border-color: rgba(126, 34, 206, 0.55);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.3) 0%, rgba(14, 26, 58, 0.6) 100%);
}
.pay-logo-yape {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: #c084fc;
}
.pay-dot-yape {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #a855f7;
}

.payment-card.pay-plin {
  border-color: rgba(20, 184, 166, 0.55);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25) 0%, rgba(14, 26, 58, 0.6) 100%);
}
.pay-logo-plin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 900;
  font-size: 1.02rem;
  color: #2dd4bf;
  letter-spacing: -0.02em;
}
.pay-dot-plin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}

.payment-card.pay-transfer {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.3) 0%, rgba(14, 26, 58, 0.6) 100%);
}
.pay-icon-bank {
  width: 20px;
  height: 20px;
  color: #38bdf8;
  flex-shrink: 0;
}
.pay-transfer-info {
  display: flex;
  flex-direction: column;
}
.pay-logo-transfer {
  font-weight: 800;
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.2;
}

.payment-card .pay-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.2;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
}
.footer-copyright p {
  font-size: 0.85rem;
  color: #64748b;
}
.footer-copyright .footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #475569;
  margin-top: 0.3rem;
}
.footer-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.f-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
  background: #0e1a3a;
  border: 1px solid #1e3366;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}
.footer-tech-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 26, 58, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.25);
  transition: all var(--transition-fast);
  cursor: default;
}
.footer-tech-stamp:hover {
  border-color: #38bdf8;
  background: #112048;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}
.footer-tech-stamp .pc-icon {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  flex-shrink: 0;
}
.footer-tech-stamp .stamp-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
}
.footer-tech-stamp .stamp-text strong {
  color: #38bdf8;
  font-weight: 700;
}

/* Floating WhatsApp Action Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.floating-whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: all var(--transition-normal);
}
.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  background: #16a34a;
}
.icon-whatsapp-float {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.whatsapp-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: pingRing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pingRing {
  75%, 100% {
    transform: scale(1.55);
    opacity: 0;
  }
}
.float-tooltip {
  position: absolute;
  right: 70px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}
.float-tooltip strong { color: var(--emerald-primary); }
.floating-whatsapp-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   MOBILE MENU & DRAWER NAVIGATION
   ========================================================================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 101;
}
.mobile-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}
.hamburger-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.22s ease;
}
.mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer - Compacto y Minimalista */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  max-width: 75vw;
  background: #ffffff;
  z-index: 999;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.1);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.15rem;
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
}
.mobile-drawer.active {
  transform: translateX(0);
}
body.menu-open {
  overflow: hidden;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.65rem;
}
.mobile-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}
.mob-brand-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}
.mobile-currency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.15rem;
}
.mobile-currency-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-currency-toggle {
  padding: 2px;
}
.mobile-currency-toggle .currency-btn {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}
.btn-whatsapp-mobile {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.btn-whatsapp-mobile:hover {
  background: #1e293b;
  color: #38bdf8;
}
.btn-whatsapp-mobile .icon-whatsapp {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (POLISHED FOR TABLETS & SMARTPHONES)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-whatsapp-nav { display: none; }
  .mobile-toggle { display: flex; }

  /* Smooth horizontal scrollable tabs */
  .tabs-nav-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem 0.6rem;
    margin: 0 -1.5rem 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-nav-wrapper::-webkit-scrollbar { display: none; }
  .tabs-nav {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .tab-btn {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 0.65rem 1.1rem;
  }

  /* Manifesto & Diagram */
  .manifesto-box { padding: 2.2rem 1.6rem; }
  .agent-workflow-visual { flex-direction: column; align-items: flex-start; }
  .flow-arrow { transform: rotate(90deg); margin: 0.4rem 0; }
  .flow-step { width: 100%; }

  .guidance-box { flex-direction: column; text-align: center; gap: 1.2rem; }
  .guidance-content { flex-direction: column; }

  /* Simulation & Footer 900px */
  .sim-grid { grid-template-columns: 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .site-header { padding: 0.65rem 0; }
  .logo-text { font-size: 1.05rem; }
  .currency-btn { padding: 0.3rem 0.55rem; font-size: 0.75rem; }

  .hero-section { padding: 3.2rem 0 2.2rem; }
  .hero-title {
    font-size: clamp(1.75rem, 6.2vw, 2.2rem);
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.4rem;
  }
  
  .deployment-pills {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }
  .dep-pill {
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }
  .badge { width: 100%; justify-content: center; text-align: center; }

  /* Dev Terminal Mobile */
  .dev-terminal-card {
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
    max-height: 220px;
  }
  .terminal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
  }
  .term-btn {
    text-align: center;
    font-size: 0.72rem;
    padding: 0.45rem 0.5rem;
  }

  /* Metrics Ribbon Mobile */
  .metrics-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .metric-card {
    padding: 1.1rem 0.7rem;
    border-radius: 12px;
  }
  .metric-val {
    font-size: 1.65rem;
  }
  .metric-label {
    font-size: 0.82rem;
  }
  .metric-desc {
    font-size: 0.74rem;
  }

  /* Sections */
  .section { padding: 3.8rem 0; }
  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Pricing Cards */
  .tab-intro-card { padding: 1.4rem 1.2rem; }
  .pricing-card { padding: 1.6rem 1.2rem; }
  .pricing-price { font-size: 1.8rem; }
  .btn-card-cta { min-height: 48px; }

  /* Footer Mobile */
  .site-footer { padding: 3.8rem 0 2rem; }
  .footer-cta-card { padding: 2.2rem 1.2rem; border-radius: 16px; }
  .btn-whatsapp-hero {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
    min-height: 48px;
  }
  .footer-columns-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-bar { flex-direction: column; text-align: center; gap: 1rem; align-items: center; }
  .footer-badges-list { justify-content: center; }

  /* Footer Payments Mobile */
  .footer-payments-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1rem;
    gap: 1rem;
  }
  .payments-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .payment-card {
    justify-content: center;
    padding: 0.55rem 0.5rem;
    gap: 0.45rem;
  }

  /* Floating WhatsApp Mobile */
  .floating-whatsapp {
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .float-tooltip { display: none; }
}
