body {
  color: #111827;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #FFFFFF;
}
.text-balance {
  text-wrap: balance;
}
.bg-grid-subtle {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(229, 231, 235, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229, 231, 235, 0.4) 1px, transparent 1px);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F7FF;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}
.animate-soft-pulse {
  animation: softPulse 2.4s infinite ease-in-out;
}

/* ------------------------------------------------------------------
   Hanging section tabs — they tuck under the header shelf and drop
   a little further on hover / when the matching section is in view.
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
}

.site-header__bar {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
}

.site-header__bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.12), transparent);
  pointer-events: none;
  z-index: 3;
}

.site-header__tabs {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1;
  margin-top: -1px;
  padding-bottom: 8px;
  pointer-events: none;
}

.site-tabs {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 0;
  padding-bottom: 16px;
  pointer-events: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-tabs::-webkit-scrollbar {
  display: none;
}

.site-tab {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 22px 15px 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #6B7280;
  white-space: nowrap;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 13px 13px;
  box-shadow:
    inset 0 14px 12px -12px rgba(17, 24, 39, 0.16),
    0 8px 12px -10px rgba(17, 24, 39, 0.14);
  transform: translateY(-16px);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-tab:hover {
  color: #1E56FF;
  background: #F5F7FF;
  transform: translateY(-10px);
}

.site-tab.is-active {
  color: #1E56FF;
  background: #FFFFFF;
  font-weight: 700;
  padding-bottom: 11px;
  transform: translateY(-8px);
  box-shadow:
    inset 0 14px 12px -12px rgba(30, 86, 255, 0.14),
    0 10px 16px -10px rgba(30, 86, 255, 0.22);
}

.site-tab.is-active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: #1E56FF;
}

.site-tab:focus-visible {
  outline: 2px solid #1E56FF;
  outline-offset: 3px;
  z-index: 2;
}

.site-tab__nodes {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
}

.site-tab__nodes i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.site-tab__chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1E56FF;
  background: #EAF0FF;
  padding: 2px 7px;
  border-radius: 999px;
}

.site-tab.is-active .site-tab__chip {
  background: #1E56FF;
  color: #FFFFFF;
}

.site-tab__short {
  display: none;
}

@media (max-width: 1100px) {
  .site-tab {
    font-size: 12px;
    padding: 22px 12px 7px;
  }

  .site-tab__full {
    display: none;
  }

  .site-tab__short {
    display: inline;
  }

  .site-tab__chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-tab {
    transition: none;
  }
}

#hero,
#solucion,
#por-que,
#modulos,
#demostracion,
#despliegue,
#precios,
#faq {
  scroll-margin-top: 136px;
}
