/* ============================================================
   POSITIVE MEDIA — Sitio Web 2026
   Design: "Digital Velocity" — Dark, cinematic, high-motion
   ============================================================ */

/* ========================
   0. CSS CUSTOM PROPERTIES
   ======================== */
:root {
  --primary: #59a5d1;
  --primary-dark: #3d82ac;
  --primary-light: #82c0e3;
  --primary-glow: rgba(89, 165, 209, 0.28);
  --accent: #8fcbea;
  --accent-glow: rgba(143, 203, 234, 0.22);

  --bg: #06060b;
  --bg-2: #0c0d1a;
  --bg-3: #14162a;
  --surface: #161624;
  --surface-2: #1c1c30;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text: #e0e0ec;
  --text-muted: #7c7c9a;
  --text-bright: #ffffff;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

/* ========================
   1. RESET & BASE
   ======================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* GSAP handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection {
  background: var(--primary);
  color: var(--text-bright);
}

/* ========================
   2. TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-bright);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }

p { max-width: 65ch; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Preserve gradient on word-split children */
.text-gradient .word-inner {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-upper { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85em; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
  max-width: 55ch;
}

/* ========================
   3. UTILITY CLASSES
   ======================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.gap-8 { gap: 4rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================
   4. VISUAL EFFECTS
   ======================== */

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.05'/%3E%3C/svg%3E") repeat;
  background-size: 300px 300px;
  opacity: 0.4;
}

/* Grid pattern */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}

.orb--primary {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: var(--primary);
  opacity: 0.12;
}

.orb--accent {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  background: var(--accent);
  opacity: 0.08;
}

.orb--soft {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.06;
}

/* Gradient line separator */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  border: none;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(89, 165, 209, 0.1);
}

/* Glassmorphism card base */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

/* ========================
   5. NAVIGATION
   ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.nav__logo span {
  color: var(--primary-light);
}

.nav__logo .brand-logo {
  height: 42px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-bright);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__dropdown-trigger::after {
  content: '';
  display: none;
}

.nav__dropdown-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-arrow {
  transform: rotate(-135deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 220px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav__dropdown-item:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
}

/* ========================
   6. MOBILE MENU
   ======================== */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 6rem var(--gutter) 2rem;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-bright);
  padding: 0.5rem 0;
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu__sub {
  padding-left: 1.5rem;
}

.mobile-menu__sub a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  padding: 0.4rem 0;
}

/* ========================
   7. BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-bright);
}

.btn--primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--border-hover);
  color: var(--text-bright);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--primary);
  background: rgba(89, 165, 209, 0.08);
}

.btn--large {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
}

.btn--ghost {
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
}

.btn--ghost:hover {
  color: var(--text-bright);
}

.btn__arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform var(--transition);
}

.btn__arrow::before {
  content: '→';
  font-size: 1.1em;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========================
   8. HERO SECTION
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.05em;
}

.hero__title .word-inner {
  display: inline-block;
}

.hero__subtitle {
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--centered .subtitle {
  text-align: center;
  margin-inline: auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-indicator__text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ========================
   9. SECTION LAYOUTS
   ======================== */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.section--dark {
  background: var(--bg);
}

.section--dark-2 {
  background: var(--bg-2);
}

.section--dark-3 {
  background: var(--bg-3);
}

.section__header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section__header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header .subtitle {
  margin-top: 1rem;
}

/* ========================
   9b. SECTION AMBIENCE (variedad de recorrido)
   ======================== */
/* Glow ambiental — cada sección con su propia "fuente de luz" */
.section--glow { isolation: isolate; }
.section--glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(85vw, 900px);
  height: min(85vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 68%);
  opacity: 0.5;
  pointer-events: none;
}
.section--glow-tl::before { top: -25%; left: -12%; }
.section--glow-tr::before { top: -25%; right: -12%; }
.section--glow-bl::before { bottom: -25%; left: -12%; }
.section--glow-br::before { bottom: -25%; right: -12%; }
.section--glow-c::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
}

/* Bloque de color de marca — corte visual fuerte, idéntico en ambos temas */
.section--panel > .container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(61, 130, 172, 0.55);
}
.section--panel .testimonial { padding: 0; }
.section--panel .testimonial__quote,
.section--panel .testimonial__author { color: #ffffff; }
.section--panel .testimonial__quote::before { color: rgba(255, 255, 255, 0.55); }
.section--panel .testimonial__role { color: rgba(255, 255, 255, 0.82); }
.section--panel .btn--outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}
.section--panel .btn--outline:hover {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
}

/* Banda de color de marca full-bleed (Stats, CTA) — bookend de marca */
.section--brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  isolation: isolate;
}
.section--brand .label { color: rgba(255, 255, 255, 0.9); }
.section--brand h2 { color: #ffffff; }
.section--brand .subtitle { color: rgba(255, 255, 255, 0.9); }
/* Stats sobre azul */
.section--brand .stat__number,
.section--brand .stat__number .accent { color: #ffffff; }
.section--brand .stat__label { color: rgba(255, 255, 255, 0.85); }
.section--brand .stat::after { background: rgba(255, 255, 255, 0.28); }
/* CTA sobre azul: glow y orbs en blanco, botón invertido */
.section--brand.cta-section::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.section--brand .orb--primary { background: #ffffff; opacity: 0.1; }
.section--brand .orb--accent { background: #ffffff; opacity: 0.07; }
.section--brand .btn--primary {
  background: #ffffff;
  color: var(--primary-dark);
}
.section--brand .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

/* ========================
   HUB SINCRO TIENDAS (gráfico animado)
   ======================== */
.hub {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1000 / 640;
}

.hub__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}
.hub__wire {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  opacity: 0.22;
}
.hub__packet {
  fill: var(--primary-light);
  filter: drop-shadow(0 0 5px var(--primary));
}

/* Nodos y núcleo posicionados sobre el stage */
.hub__node,
.hub__center {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hub__node {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--primary), 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  animation: hubFloat 5s ease-in-out infinite;
}
.hub__node--in { animation-delay: -1.5s; }
.hub__node--out { animation-delay: -3s; }

.hub__node--lg { padding: 0.95rem 1.5rem 0.95rem 1.6rem; gap: 0.9rem; }
.hub__node--lg .hub__node-ico { width: 42px; height: 42px; font-size: 1.25rem; }
.hub__node--lg .hub__node-txt { font-size: 1.12rem; }
.hub__node--lg .hub__node-txt small { font-size: 0.72rem; }

@keyframes hubFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 7px)); }
}

.hub__node-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(89, 165, 209, 0.12);
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
}
.hub__node-txt {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-bright);
  line-height: 1.15;
}
.hub__node-txt small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Logos de canales en monocromo (máscara pintada con el color del tema) */
.hub__logo {
  display: block;
  height: 20px;
  width: 104px;
  margin-top: 4px;
  background-color: var(--text-bright);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.hub__logo--ml {
  height: 30px;
  width: 118px;
  -webkit-mask-image: url(../logos/mercadolibre.svg);
  mask-image: url(../logos/mercadolibre.svg);
}
.hub__logo--fravega {
  height: 18px;
  -webkit-mask-image: url(../logos/fravega.svg);
  mask-image: url(../logos/fravega.svg);
}
.hub__logo--bna {
  height: 17px;
  -webkit-mask-image: url(../logos/tiendabna.svg);
  mask-image: url(../logos/tiendabna.svg);
}

/* Contenedores de canales con carrusel de logos */
.hub__chan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hub__chan-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hub__car {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub__car-viewport {
  position: relative;
  width: 122px;
  height: 42px;
  overflow: hidden;
}
.hub__car-viewport .hub__logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  -webkit-mask-position: center;
  mask-position: center;
}
.hub__car-viewport .hub__logo.is-active { opacity: 1; }
/* Variante de "logo" en texto, para marcas sin logotipo (ej. HCyA) */
.hub__car-viewport .hub__logo--text {
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.hub__car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}
.hub__car-arrow[data-dir="-1"] { left: -26px; }
.hub__car-arrow[data-dir="1"] { right: -26px; }
.hub__car-arrow:hover { color: var(--primary); }
.hub__car-viewport--static {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub__car-viewport--static .hub__logo {
  position: static;
  opacity: 1;
}
/* Solo los canales "Próximamente" (aún no implementados) quedan atenuados */
.hub__node--soon .hub__logo { opacity: 0.5; }
.hub__coming {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-bright);
  opacity: 0.55;
}
.hub__node--soon { border-style: dashed; }

.hub__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
}
.hub__core {
  position: relative;
  width: clamp(90px, 12vw, 130px);
  height: clamp(90px, 12vw, 130px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 8px rgba(89, 165, 209, 0.12), 0 20px 50px -12px rgba(89, 165, 209, 0.5);
}
.hub__core::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0.5;
  animation: hubPulse 2.6s ease-out infinite;
}
@keyframes hubPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}
.hub__core::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed var(--primary);
  opacity: 0.35;
  animation: hubSpin 18s linear infinite;
}
@keyframes hubSpin {
  to { transform: rotate(360deg); }
}
.hub__core-mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #fff;
}
.hub__core-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-bright);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}
.hub__core-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.7vw, 1.05rem);
  line-height: 1.05;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Anillo de palabras que sincroniza el núcleo */
.hub__syncs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hub__sync {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 0.34rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-bright);
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub__sync:nth-child(2) { animation-delay: -1s; }
.hub__sync:nth-child(3) { animation-delay: -2s; }
.hub__sync:nth-child(4) { animation-delay: -3s; }
.hub__sync:nth-child(5) { animation-delay: -4s; }
.hub__sync:nth-child(6) { animation-delay: -5s; }

.hub__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
}
.hub__pill {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile: colapsa a versión vertical apilada */
@media (max-width: 820px) {
  .hub {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    max-width: 440px;
  }
  .hub__wires { display: none; }
  .hub__node,
  .hub__center {
    position: static;
    transform: none;
    animation: none;
    width: 100%;
  }
  .hub__node { justify-content: center; }
  .hub__node--in { order: 1; }
  .hub__center { order: 2; }
  .hub__node--out { order: 3; }
  .hub__syncs {
    position: static;
    order: 4;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }
  .hub__sync {
    position: static;
    transform: none;
    animation: none;
  }
  .hub__center::before,
  .hub__center::after {
    content: '';
    width: 2px;
    height: 20px;
    background: repeating-linear-gradient(var(--primary) 0 4px, transparent 4px 8px);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub__node,
  .hub__sync,
  .hub__core::before,
  .hub__core::after { animation: none; }
}

/* ---- Propuesta alternativa: HUB ORBITAL ---- */
.hub--orbital {
  aspect-ratio: 1 / 1;
  max-width: 660px;
}
.hub__radar {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-glow) 45deg, transparent 90deg);
  -webkit-mask: radial-gradient(circle, #000 66%, transparent 69%);
  mask: radial-gradient(circle, #000 66%, transparent 69%);
  opacity: 0.9;
  pointer-events: none;
  animation: hubSpin 7s linear infinite;
}
.hub__orbit {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  opacity: 0.3;
  transform-origin: 50% 50%;
  animation: hubSpin 44s linear infinite;
}

@media (max-width: 820px) {
  .hub--orbital { aspect-ratio: auto; max-width: 440px; }
  .hub__radar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hub__radar, .hub__orbit { animation: none; }
}

/* Textura de grilla sutil — otra "piel" de superficie */
.section--grid { isolation: isolate; }
.section--grid::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 35%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

/* ========================
   10. STATS BAR
   ======================== */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  flex: 0 0 auto;
  width: calc(20% - 1.6rem);
  min-width: 140px;
}

.stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat:last-child::after {
  display: none;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.stat__number .accent {
  color: var(--primary-light);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ========================
   11. CARDS
   ======================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--primary-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
}

.card__num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
}

/* ---- App vendedores: screenshots de la app (marco con recorte + fade) ---- */
.app-shot {
  max-width: 760px;
  margin: 3rem auto 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  max-height: 640px;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.65);
}
.app-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.app-shot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--fade, var(--bg)));
  pointer-events: none;
}

/* ============================================================
   WMS
   ============================================================ */

/* Los desafíos que resolvemos */
.desafios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.desafio-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.desafio-col--alt {
  background: linear-gradient(180deg, rgba(89, 165, 209, 0.08), var(--surface));
  border-color: var(--primary);
}
.desafio-col__ill {
  height: 160px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.desafio-col__ill img { max-height: 160px; width: auto; }
.desafio-col__title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.desafio-q { margin-bottom: 1.1rem; }
.desafio-q h4 {
  font-size: 0.98rem; color: var(--text-bright); margin-bottom: 0.25rem;
  display: flex; gap: 0.5rem; align-items: baseline;
}
.desafio-q h4::before { content: "\2715"; color: var(--primary-light); font-weight: 700; }
.desafio-q p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; padding-left: 1.4rem; }

/* Control total en cada etapa: grupos con acordeón + screenshot */
.wms-feat {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 3.5rem;
}
.wms-feat--reverse .wms-feat__text { order: 2; }
.wms-feat__title {
  font-size: 1.4rem; margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.wms-feat__shot img { width: 100%; height: auto; display: block; }
.wms-feat--big { grid-template-columns: 1fr 1.45fr; }
.acc { border-bottom: 1px solid var(--border); }
.acc > summary {
  list-style: none; cursor: pointer;
  padding: 0.9rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: color var(--transition-fast);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary-light);
  flex-shrink: 0; transition: transform var(--transition-fast);
}
.acc[open] > summary::after { content: "\2013"; }
.acc > summary:hover, .acc[open] > summary { color: var(--text-bright); }
.acc__body { padding: 0 0 1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* Beneficios */
.wms-benefit {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.wms-benefit:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.wms-benefit__ill { margin: -1.5rem -1.5rem 1.25rem; }
.wms-benefit__ill img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .desafios { grid-template-columns: 1fr; }
  .wms-feat, .wms-feat--big { grid-template-columns: 1fr; gap: 1.5rem; }
  .wms-feat--reverse .wms-feat__text { order: 0; }
  .wms-feat__shot { order: -1; }
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary-light);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: gap var(--transition);
}

.card__link:hover {
  gap: 0.75rem;
}

/* Card 3D tilt */
.card-3d {
  transition: transform var(--transition), border-color var(--transition);
  will-change: transform;
}

/* ========================
   12. MARQUEE / TICKER
   ======================== */
.marquee {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee--alt::before {
  background: linear-gradient(90deg, var(--bg-2), transparent);
}

.marquee--alt::after {
  background: linear-gradient(-90deg, var(--bg-2), transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__track--reverse {
  animation-direction: reverse;
}

.marquee__track--slow {
  animation-duration: 45s;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 1.5rem;
  opacity: 0.4;
  transition: opacity var(--transition);
  filter: grayscale(1) brightness(2);
}

.marquee__item:hover {
  opacity: 0.8;
}

.marquee__logo {
  height: 35px;
  width: auto;
}

/* ---- Plataformas que integramos: marquees monocromos por grupo ---- */
.plat-row + .plat-row { margin-top: 0.5rem; }
.plat-row__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 1.75rem;
  margin-bottom: -0.75rem;
}
.marquee--plat { padding: 1.25rem 0; }
.marquee--plat .marquee__item {
  filter: none;
  opacity: 0.55;
  padding: 0 2rem;
}
.marquee--plat .marquee__item:hover { opacity: 1; }
/* Marquee de e-commerce: logos más grandes */
.marquee--ecom .marquee__item { height: 110px; padding: 0 1.2rem; }
.marquee--ecom .plat-logo { height: 82px; width: 190px; }
.plat-logo {
  display: block;
  height: 28px;
  width: 130px;
  background-color: var(--text-bright);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.plat-logo--text {
  width: auto;
  height: 28px;
  display: flex;
  align-items: center;
  background: none;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Text marquee for large quotes */
.marquee__text {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
}

/* ========================
   13. PRICING CARDS
   ======================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition);
}

.pricing__card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.pricing__card--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(89, 165, 209, 0.08), var(--surface));
  transform: scale(1.03);
}

.pricing__card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-bright);
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing__name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pricing__commission {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.pricing__commission-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-bright);
}

.pricing__commission-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing__check {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.pricing__card--featured .pricing__check {
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ---- Variante 4 planes (Sincro Tiendas) ---- */
.pricing--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pricing--4 .pricing__card {
  padding: 1.85rem 1.5rem;
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .pricing--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.pricing__price-value {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-light);
}
.pricing__price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing__commission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}
.pricing__commission-row strong {
  color: var(--text-bright);
  font-size: 1rem;
}

.pricing__specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.pricing__spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pricing__spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.pricing__spec-value {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 600;
}

.pricing__features-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.pricing-notes {
  margin-top: 3rem;
  max-width: 940px;
}
.pricing-notes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}
.pricing-notes li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.pricing-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========================
   14. COMPARISON TABLE
   ======================== */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 1.25rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.comparison-table thead th:first-child {
  text-align: left;
  width: 40%;
}

.comparison-table tbody td {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody td:first-child {
  text-align: left;
  color: var(--text);
}

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .check {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.comparison-table .dash {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.comparison-table .category-row td {
  padding-top: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-hover);
}

/* ========================
   15. FEATURES GRID
   ======================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--surface);
}

.feature:hover {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(89, 165, 209, 0.05), var(--surface));
}

.feature__marker {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.feature__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================
   16. TESTIMONIALS
   ======================== */
.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.testimonial__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--text-bright);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial__quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  color: var(--primary);
  font-style: normal;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial__author {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 1rem;
}

.testimonial__role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Card variant (with background glow), used on Clientes */
.testimonial-block {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}

.testimonial-block .glow--primary {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

.testimonial-block__quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.testimonial-block__author {
  position: relative;
  z-index: 1;
}

.testimonial-block__name {
  font-weight: 700;
  color: var(--text-bright);
}

.testimonial-block__role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ========================
   17. CASES / PORTFOLIO
   ======================== */
.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.case-card__placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
}

.case-card__placeholder--1 { background: linear-gradient(135deg, #0a1628, #0f2847); }
.case-card__placeholder--2 { background: linear-gradient(135deg, #0a0f28, #1a0f47); }
.case-card__placeholder--3 { background: linear-gradient(135deg, #0a2818, #0f4727); }
.case-card__placeholder--4 { background: linear-gradient(135deg, #281a0a, #47300f); }

.case-card__body {
  padding: 2rem;
}

.case-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.case-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.case-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-card__metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.case-card__metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.case-card__metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================
   18. CONTACT MODAL & FORM
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.modal__close:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.modal__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--primary);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6' fill='%237c7c9a' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* opciones del desplegable (el popup nativo usa estos colores) */
.form__select option {
  background: var(--surface);
  color: var(--text-bright);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========================
   19. CTA SECTION
   ======================== */
.cta-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-section .subtitle {
  margin: 0 auto 2.5rem;
  position: relative;
}

/* ========================
   20. FOOTER
   ======================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.footer__brand-name .brand-logo {
  height: 34px;
  width: auto;
}

.footer__brand-name span {
  color: var(--primary-light);
}

.footer__brand-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-bright);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer__social:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(89, 165, 209, 0.08);
}

.footer__locations {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer__location-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.footer__location-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================
   21. CLIENT GRID
   ======================== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.client-card {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.client-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

/* Client filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--text-bright);
  border-color: var(--primary);
  background: rgba(89, 165, 209, 0.08);
}

/* ========================
   22. PROCESS / TIMELINE
   ======================== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: process;
}

.process__step {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: process;
  position: relative;
}

.process__step::before {
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(89, 165, 209, 0.15);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.process__step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process__step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================
   23. ANIMATION STATES
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

/* ========================
   24. RESPONSIVE
   ======================== */
@media (max-width: 1280px) {
  .nav__links { gap: 1.15rem; }
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }

  .pricing__card--featured {
    transform: none;
  }

  .pricing__card--featured:hover {
    transform: translateY(-6px);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__locations {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-bar,
  .stat {
    flex: 1 1 130px;
    max-width: 200px;
  }

  .stat::after {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 85vh;
  }

  .modal {
    padding: 2rem;
  }

  .section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .case-card__metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stat {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   25. CUSTOM SCROLLBAR
   ======================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========================
   26. PAGE LOADER
   ======================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__bar {
  width: 120px;
  height: 2px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.loader__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ========================
   27. SPLIT LAYOUT (two cols)
   ======================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.split__visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--surface));
}

/* E-commerce: mockup que se desborda hacia la derecha */
.split.split--ecom {
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
}
.ecom-shot {
  width: 118%;
  max-width: none;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .split.split--ecom { grid-template-columns: 1fr; }
  .split.split--ecom .split__visual { order: -1; } /* imagen arriba, texto abajo */
  .ecom-shot { width: 100%; }
}

/* Imagen que se desborda hacia la derecha (TMS "¿Qué es?", Desarrollos, etc.) */
.split.split--tms,
.split.split--bleed { grid-template-columns: 1fr 1.3fr; align-items: center; }
.tms-shot,
.bleed-shot { width: 120%; max-width: none; height: auto; display: block; }
@media (max-width: 768px) {
  .split.split--tms,
  .split.split--bleed { grid-template-columns: 1fr; }
  .tms-shot,
  .bleed-shot { width: 100%; }
}

/* TMS: "Funcionalidades" — título e imagen superpuestos */
.tms-fn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 34vw, 460px);
  margin-bottom: 2.5rem;
}
.tms-fn__head { position: relative; z-index: 2; max-width: 46%; }
.tms-fn__title { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; margin-bottom: 0.9rem; }
.tms-fn__sub { color: var(--text-muted); max-width: 24ch; font-size: 1rem; }
.tms-fn__head::before {
  content: ''; position: absolute; z-index: -1;
  inset: -30% -35% -30% -45%;
  background: radial-gradient(ellipse at 30% 50%, var(--bg) 45%, transparent 78%);
}
.tms-fn__img {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 60%; z-index: 1;
}
.tms-fn__img img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .tms-fn { display: block; min-height: 0; margin-bottom: 1.5rem; }
  .tms-fn__head { max-width: 100%; }
  .tms-fn__head::before { display: none; }
  .tms-fn__img { position: static; transform: none; width: 100%; margin-top: 1.5rem; }
}

/* Home "La solución": esfera animada de fondo (anime.js) */
#arquitectura > .container { position: relative; z-index: 1; }
.solucion-sphere {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
  opacity: 0.32;
}
.solucion-sphere .animation-wrapper {
  position: relative;
  width: min(80vw, 640px);
  height: min(80vw, 640px);
}
.solucion-sphere .sphere-animation {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: #19358D;
}
.solucion-sphere .sphere { width: 100%; height: 100%; display: block; }
.solucion-sphere .sphere path {
  fill: url(#sphereGradient);
  stroke: rgba(25, 53, 141, 1);
  stroke-width: 0.4px;
  backface-visibility: hidden;
}
@media (max-width: 700px) { .solucion-sphere { opacity: 0.22; } }
/* En tema claro la esfera se ve muy pálida: subimos opacidad */
html[data-theme="light"] .solucion-sphere { opacity: 0.6; }
@media (max-width: 700px) { html[data-theme="light"] .solucion-sphere { opacity: 0.45; } }

/* Integraciones ERP: diagrama de flujo ERP <-> stack */
.erpflow { width: 100%; height: auto; display: block; max-width: 540px; margin: 0 auto; }
.erpflow__wire { fill: none; stroke: var(--primary); stroke-width: 1.4; opacity: 0.3; }
.erpflow__ring { fill: none; stroke: var(--primary); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: 0.22; }
.erpflow__packet { fill: var(--primary-light); }
.erpflow__packet--in { fill: var(--accent, var(--primary)); opacity: 0.85; }
.erpflow__packet--ring { fill: var(--primary); opacity: 0.7; }
.erpflow__node { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.erpflow__node-label {
  fill: var(--text-bright); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; text-anchor: middle;
}
.erpflow__core-halo { fill: var(--primary); opacity: 0.14; }
.erpflow__core { fill: url(#erpCoreGrad); }
.erpflow__core-label {
  fill: #fff; font-family: var(--font-heading);
  font-weight: 800; font-size: 20px; text-anchor: middle;
}

/* Marquee de logos de clientes (chips blancos) */
.marquee--clientes { padding: 1.75rem 0; }
.marquee--clientes .marquee__item { filter: none; opacity: 1; padding: 0 0.75rem; height: auto; }
.client-logo {
  width: 210px; height: 120px;
  background: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 22px;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Grilla de todos los clientes (clientes.html) */
.clients-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.clients-wall .client-logo { width: 100%; height: 104px; padding: 6px 16px; }
@media (max-width: 520px) {
  .clients-wall { grid-template-columns: repeat(2, 1fr); }
}

/* Hero: cortina de luz (bandas verticales suaves de color) */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse {
    direction: ltr;
  }
}

/* ========================
   28. WHATSAPP FLOATING BTN
   ======================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ========================
   BRAND LOGO — dark/light swap
   ======================== */
.brand-logo { height: 30px; width: auto; display: block; }
.footer__brand-name .brand-logo { height: 34px; }
.brand-logo--light { display: none; }
html[data-theme="light"] .brand-logo--dark { display: none; }
html[data-theme="light"] .brand-logo--light { display: block; }

/* ========================
   THEME TOGGLE (dark / light)
   ======================== */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { color: var(--text-bright); border-color: var(--border-hover); }
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle__icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="light"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

.theme-toggle--mobile {
  align-self: flex-start;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

/* Selector de idioma ES / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lang-switch__opt {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.lang-switch__opt:hover { color: var(--text-bright); }
.lang-switch__opt.is-active { color: var(--primary); cursor: default; }
.lang-switch__sep { color: var(--border-hover); }
.lang-switch--mobile {
  align-self: flex-start;
  margin-top: 1.5rem;
  font-size: 1rem;
  gap: 0.6rem;
}

/* ============================================================
   LIGHT THEME
   Dark stays the default (no attribute needed); this overrides
   the same custom properties when data-theme="light" is set.
   ============================================================ */
html[data-theme="light"] {
  --bg: #f7f9fb;
  --bg-2: #e8edf4;
  --bg-3: #dbe3ee;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: rgba(10, 20, 30, 0.09);
  --border-hover: rgba(10, 20, 30, 0.18);

  --text: #3a4450;
  --text-muted: #6b7580;
  --text-bright: #10161c;
}

html[data-theme="light"] body {
  background-color: var(--bg);
}

html[data-theme="light"] .nav.scrolled {
  background: rgba(246, 248, 250, 0.85);
}

html[data-theme="light"] .grid-pattern {
  background-image:
    linear-gradient(rgba(10, 20, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 20, 30, 0.045) 1px, transparent 1px);
}

html[data-theme="light"] .noise::before {
  opacity: 0.15;
}

html[data-theme="light"] .mobile-menu__link {
  color: var(--text-bright);
}

html[data-theme="light"] .card__number {
  color: rgba(10, 20, 30, 0.05);
}

html[data-theme="light"] ::selection {
  color: var(--text-bright);
}

html[data-theme="light"] .nav__dropdown-item:hover {
  background: rgba(10, 20, 30, 0.05);
}

html[data-theme="light"] .marquee__text {
  color: rgba(10, 20, 30, 0.035);
  -webkit-text-stroke: 1px rgba(10, 20, 30, 0.07);
}

html[data-theme="light"] .client-card {
  border-color: rgba(10, 20, 30, 0.14);
  color: var(--text);
  box-shadow: 0 2px 12px rgba(10, 20, 30, 0.06);
}

html[data-theme="light"] .client-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(10, 20, 30, 0.1);
}

html[data-theme="light"] .comparison-table tbody tr:hover td {
  background: rgba(10, 20, 30, 0.03);
}

html[data-theme="light"] .comparison-table .dash {
  background: rgba(10, 20, 30, 0.15);
}

html[data-theme="light"] .modal__close:hover {
  background: rgba(10, 20, 30, 0.06);
}

html[data-theme="light"] .form__input,
html[data-theme="light"] .form__select,
html[data-theme="light"] .form__textarea {
  background: rgba(10, 20, 30, 0.035);
}


/* ========================
   HOME — ARQUITECTURA COMERCIAL
   ======================== */
.erp-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  padding: 0.85rem 1.5rem;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.92rem;
  text-align: center;
}
.erp-band strong { color: var(--text-bright); }
.erp-band__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  flex-shrink: 0;
}

/* Etiqueta de módulo del stack sin página propia todavía */
.card__tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Lista de dolores / para quién */
.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2.5rem;
}
.problem-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.problem-item__x {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.5;
  flex-shrink: 0;
}
.problem-item p { color: var(--text-muted); font-size: 0.95rem; }
.problem-item strong { color: var(--text-bright); font-weight: 600; }
