/* =============================================
   ARTAVIA — Custom Styles
   Dark Precision Tech Aesthetic
   ============================================= */
/* Nota: Google Fonts se carga vía <link> en index.html — no duplicar con @import */

/* ─── CSS Tokens ─────────────────────────────── */
:root {
  --bg-base: #080d1a;
  --bg-surface: #0d1326;
  --bg-panel: #111827;
  --bg-card: #141d30;
  --bg-card-hover: #1a2540;

  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 220, 200, 0.35);

  --text-primary: #f0f4ff;
  --text-secondary: #8a9abf;
  --text-muted: #4a5880;

  --accent-cyan: oklch(0.72 0.18 200);
  --accent-violet: oklch(0.68 0.18 280);
  --accent-cyan-dim: oklch(0.72 0.18 200 / 0.15);
  --accent-violet-dim: oklch(0.68 0.18 280 / 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px oklch(0.72 0.18 200 / 0.25);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-h: 72px;
}

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


html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* overflow-x eliminado aquí: en iOS Safari rompe position:fixed del navbar.
     El overflow-x:hidden necesario está en body, donde es seguro. */
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  color: var(--text-secondary);
  text-wrap: pretty;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

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

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

/* ─── Utility ────────────────────────────────── */
.accent-cyan {
  color: var(--accent-cyan);
}

.accent-violet {
  color: var(--accent-violet);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 6px 14px;
  border: 1px solid oklch(0.72 0.18 200 / 0.3);
  border-radius: 100px;
  background: oklch(0.72 0.18 200 / 0.07);
  margin-bottom: 20px;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: block;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ─── Grid noise texture overlay ─────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Scroll reveal ──────────────────────────── */
/* Hero content never starts hidden — override reveal for above-fold elements */
#hero .reveal,
#hero .hero-content,
#hero .hero-visual {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal.visible {
  opacity: 1;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}


/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
#mainNav {
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(8, 13, 26, 0.88);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--accent-cyan);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.05);
}

.btn-nav-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-base) !important;
  background: var(--accent-cyan);
  border: none;
  padding: 9px 22px !important;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-nav-cta:hover {
  background: oklch(0.80 0.18 200);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,244,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg-base);
}

/* Hero blob background */
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, oklch(0.68 0.18 280) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: blobPulse 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, oklch(0.72 0.18 200) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: blobPulse 10s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, oklch(0.72 0.18 200 / 0.6) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation: blobPulse 7s ease-in-out infinite alternate;
}

@keyframes blobPulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }

  100% {
    transform: scale(1.15) translate(20px, 20px);
    opacity: 0.35;
  }
}

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

.hero-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-microcopy .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 oklch(0.72 0.18 200 / 0.6);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 oklch(0.72 0.18 200 / 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px oklch(0.72 0.18 200 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(0.72 0.18 200 / 0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), oklch(0.65 0.2 230));
  color: var(--bg-base);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px oklch(0.72 0.18 200 / 0.4);
  color: var(--bg-base);
}

.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.btn-ghost-cta:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  min-width: 4ch;
  min-height: 1em;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), 0 0 80px oklch(0.72 0.18 200 / 0.08);
  position: relative;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots span:nth-child(1) {
  background: #ff5f57;
}

.dash-dots span:nth-child(2) {
  background: #febc2e;
}

.dash-dots span:nth-child(3) {
  background: #28c840;
}

.dash-title-bar {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-metric {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
}

.dash-metric-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-metric-val.cyan {
  color: var(--accent-cyan);
}

.dash-metric-val.violet {
  color: var(--accent-violet);
}

.dash-metric-lbl {
  font-size: 0.67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-chart {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  height: 100px;
  position: relative;
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 68px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: barGrow 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom;
}

.chart-bar.b1 {
  background: oklch(0.72 0.18 200 / 0.5);
  height: 40%;
  animation-delay: 0.2s;
}

.chart-bar.b2 {
  background: oklch(0.72 0.18 200 / 0.6);
  height: 60%;
  animation-delay: 0.3s;
}

.chart-bar.b3 {
  background: oklch(0.72 0.18 200 / 0.7);
  height: 45%;
  animation-delay: 0.4s;
}

.chart-bar.b4 {
  background: oklch(0.72 0.18 200 / 0.9);
  height: 80%;
  animation-delay: 0.5s;
}

.chart-bar.b5 {
  background: var(--accent-cyan);
  height: 70%;
  animation-delay: 0.6s;
  box-shadow: 0 0 12px oklch(0.72 0.18 200 / 0.4);
}

.chart-bar.b6 {
  background: oklch(0.72 0.18 200 / 0.6);
  height: 55%;
  animation-delay: 0.7s;
}

.chart-bar.b7 {
  background: oklch(0.72 0.18 200 / 0.8);
  height: 90%;
  animation-delay: 0.8s;
}

.chart-bar.b8 {
  background: var(--accent-violet);
  height: 65%;
  animation-delay: 0.9s;
  box-shadow: 0 0 12px oklch(0.68 0.18 280 / 0.4);
}

@keyframes barGrow {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.chart-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  position: absolute;
  top: 8px;
  right: 12px;
}

.dash-nodes {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
}

.dash-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-node-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid var(--border);
}

.dash-node-icon.cyan-node {
  background: var(--accent-cyan-dim);
  border-color: oklch(0.72 0.18 200 / 0.3);
  color: var(--accent-cyan);
}

.dash-node-icon.violet-node {
  background: var(--accent-violet-dim);
  border-color: oklch(0.68 0.18 280 / 0.3);
  color: var(--accent-violet);
}

.dash-node-icon.muted-node {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.dash-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.72 0.18 200 / 0.4), transparent);
  position: relative;
  margin: 0 4px;
}

.dash-connector::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: nodeTravel 2.5s linear infinite;
}

@keyframes nodeTravel {
  0% {
    left: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

#clients {
  padding: 52px 0;
  background: #0f1624;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 32px;
}

.clients-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.clients-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: clientsScroll 38s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  border-right: 1px solid var(--border);
  height: 64px;
  flex-shrink: 0;
}

.client-logo img {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(10);
  opacity: 0.3;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(1) brightness(10);
  opacity: 0.7;
}

@media (max-width: 575px) {
  .client-logo {
    padding: 0 24px;
    height: 52px;
  }

  .client-logo img {
    height: 26px;
    max-width: 100px;
  }
}

/* ═══════════════════════════════════════════════
   PROBLEM SECTION
   ═══════════════════════════════════════════════ */
#problem {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#problem::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

@media (max-width: 991px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.problem-card:hover {
  border-color: oklch(0.68 0.18 280 / 0.4);
  background: var(--bg-card-hover);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-violet-dim);
  border: 1px solid oklch(0.68 0.18 280 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.problem-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.problem-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════ */
#services {
  padding: 100px 0;
  background: var(--bg-base);
  position: relative;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top left, oklch(0.72 0.18 200 / 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 40px oklch(0.72 0.18 200 / 0.1);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  border: 1px solid oklch(0.72 0.18 200 / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-cyan);
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.service-benefit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   SOLUTIONS SECTION
   ═══════════════════════════════════════════════ */
#solutions {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.solutions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 767px) {
  .solutions-list {
    grid-template-columns: 1fr;
  }
}

.solution-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.solution-item:hover {
  border-color: oklch(0.72 0.18 200 / 0.35);
  background: var(--bg-card-hover);
}

.solution-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 28px;
  height: 28px;
  border: 1px solid oklch(0.72 0.18 200 / 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  flex-shrink: 0;
  background: var(--accent-cyan-dim);
}

.solution-item h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.solution-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════════════ */
#process {
  padding: 100px 0;
  background: var(--bg-base);
}

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

@media (max-width: 991px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .process-connector {
    display: none;
  }
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}

.process-step:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.process-step:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

@media (max-width: 991px) {
  .process-step:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .process-step:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

.process-step:hover {
  background: var(--bg-card-hover);
}

.process-step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.process-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-cyan);
  margin: 0 auto 14px;
}

.process-step h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   METRICS / BENEFITS
   ═══════════════════════════════════════════════ */
#metrics {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#metrics::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, oklch(0.72 0.18 200 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (max-width: 991px) {
  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s ease;
}

.metric-card:hover {
  border-color: var(--border-glow);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.45;
}

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

@media (max-width: 991px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s ease;
}

.benefit-row:hover {
  border-color: oklch(0.72 0.18 200 / 0.3);
}

.benefit-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan-dim);
  border: 1px solid oklch(0.72 0.18 200 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-row h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.benefit-row p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════ */
#usecases {
  padding: 100px 0;
  background: var(--bg-base);
}

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

@media (max-width: 991px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.68 0.18 280 / 0.4);
}

.usecase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.usecase-card:hover::after {
  opacity: 1;
}

.usecase-industry {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 12px;
}

.usecase-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.usecase-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.usecase-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 10px 14px;
  background: var(--accent-cyan-dim);
  border: 1px solid oklch(0.72 0.18 200 / 0.2);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   DIFFERENTIATORS
   ═══════════════════════════════════════════════ */
#differentiators {
  padding: 100px 0;
  background: var(--bg-surface);
}

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

@media (max-width: 991px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.diff-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.72 0.18 200 / 0.3);
}

.diff-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan-dim), var(--accent-violet-dim));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.diff-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
#cta-final {
  padding: 120px 0;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, oklch(0.68 0.18 280 / 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
#contact {
  padding: 100px 0;
  background: var(--bg-surface);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .contact-form-wrap {
    padding: 32px 24px;
  }
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: oklch(0.72 0.18 200 / 0.5) !important;
  box-shadow: 0 0 0 3px oklch(0.72 0.18 200 / 0.1) !important;
  outline: none;
}

.form-select option {
  background: var(--bg-panel);
  color: var(--text-primary);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: oklch(0.65 0.2 25) !important;
}

.invalid-feedback {
  font-size: 0.78rem;
  color: oklch(0.65 0.2 25);
}

.btn-form-submit {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--accent-cyan), oklch(0.65 0.2 230));
  color: var(--bg-base);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px oklch(0.72 0.18 200 / 0.4);
}

.btn-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.visible {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: block;
}

.form-success h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--accent-cyan);
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.65;
  margin-bottom: 24px;
}

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

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-contact-item i {
  color: var(--accent-cyan);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-tagline i {
  color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.55);
  color: white;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE HELPERS
   ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .hero-visual {
    margin-top: 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  #hero {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .section-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-cta,
  .btn-ghost-cta {
    justify-content: center;
  }

}

/* Section spacing helpers */
.section-header {
  margin-bottom: 56px;
}

/* Back to top on navbar collapse */
.navbar-collapse {
  background: rgba(8, 13, 26, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
  backdrop-filter: blur(20px);
  /* Evita que el menú se corte en landscape mobile */
  max-height: calc(100vh - var(--nav-h) - 16px);
  overflow-y: auto;
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0;
    backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════════
   MOBILE OPTIMIZATIONS (≤ 575px)
   ═══════════════════════════════════════════════ */
@media (max-width: 575px) {

  /* Global section padding */
  #problem,
  #services,
  #solutions,
  #process,
  #metrics,
  #usecases,
  #differentiators,
  #cta-final,
  #contact {
    padding: 72px 0;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 36px;
  }

  .section-sub {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  /* Hero — hide dashboard on mobile, keep message front and center */
  .hero-visual {
    display: none !important;
  }

  #hero {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 56px;
    text-align: center;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.95rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  /* Solutions — force single column */
  .solutions-list {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Evitar que flex/grid hijos desborden — sin ocultar problemas con overflow */
  * {
    min-width: 0;
  }

  .hero-microcopy {
    font-size: 0.7rem;
    padding: 6px 12px;
  }


  .hero-stats {
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .hero-stat-item .stat-number {
    font-size: 1.6rem;
  }

  .hero-stat-item .stat-label {
    font-size: 0.72rem;
  }

  /* Dashboard mockup — scale down on small screens */
  .dashboard-mockup {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .dash-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .dash-metric {
    padding: 10px 8px;
  }

  .dash-metric-val {
    font-size: 1.1rem;
  }

  .dash-metric-lbl {
    font-size: 0.58rem;
  }

  .dash-node-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }

  .dash-node {
    font-size: 0.55rem;
  }

  /* Problem cards — full width, tighter padding */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .problem-card {
    padding: 20px 18px;
  }

  .problem-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

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

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  /* Solutions */
  .solution-item {
    padding: 18px 16px;
  }

  /* Process steps — stacked */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .process-step {
    padding: 28px 20px;
    border-radius: 0 !important;
  }

  .process-step:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  }

  .process-step:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  }

  .process-step-number {
    font-size: 1.6rem;
  }

  /* Metrics */
  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }

  .metric-card {
    padding: 24px 16px;
  }

  .metric-value {
    font-size: 2.2rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-row {
    padding: 16px;
  }

  /* Use cases */
  .usecase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .usecase-card {
    padding: 24px 20px;
  }

  /* Differentiators */
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diff-card {
    padding: 24px 20px;
  }

  .diff-icon {
    width: 44px;
    height: 44px;
    font-size: 19px;
    margin-bottom: 14px;
  }

  /* CTA section */
  #cta-final {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 1.9rem;
    letter-spacing: -0.01em;
  }

  .cta-sub {
    font-size: 0.95rem;
  }

  /* Contact form */
  .contact-form-wrap {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  /* Footer */
  #footer {
    padding: 48px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Section label */
  .section-label {
    font-size: 0.68rem;
  }

  /* Buttons */
  .btn-primary-cta,
  .btn-ghost-cta {
    font-size: 0.9rem;
    padding: 13px 22px;
    width: 100%;
    justify-content: center;
  }
}

/* ─── Tablet tweaks (576–767px) ──────────────── */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

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

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

/* ─── Pantallas muy estrechas (≤ 360px) ─────── */
@media (max-width: 360px) {
  .metric-cards {
    grid-template-columns: 1fr;
  }
}