/* ==========================================================================
   Lux Factory — Hero "Icon Pipeline"
   CSS plano, sin dependencias de Tailwind. Namespaced bajo .lux-pipeline-*
   para evitar colisiones con las utilidades del resto del sitio.
   ========================================================================== */

:root {
  --lux-pipeline-orange: #f97316;
  --lux-pipeline-orange-soft: rgba(249, 115, 22, 0.35);
  --lux-pipeline-bg: #0d0b12;
  --lux-pipeline-bg-elevated: #17131f;
  --lux-pipeline-border: rgba(255, 255, 255, 0.08);
  --lux-pipeline-text: #f5f3f7;
  --lux-pipeline-text-muted: #a29fb0;
  --lux-pipeline-nav-h: 84px;
}

/* -------------------- Nav (sticky, dos tonos) -------------------- */

#navbar.is-on-hero {
  background: linear-gradient(to bottom, rgba(13, 11, 18, 0.55), rgba(13, 11, 18, 0));
  border-bottom-color: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#navbar.is-on-hero .lux-nav-link,
#navbar.is-on-hero .lux-logo-text {
  color: #f5f3f7;
  fill: #f5f3f7;
}

#navbar.is-on-hero .lux-nav-link:hover {
  color: var(--lux-pipeline-orange);
}

/* -------------------- Hero Card -------------------- */

.lux-pipeline-hero {
  position: relative;
  overflow: hidden;
  background: var(--lux-pipeline-bg);
  padding: calc(var(--lux-pipeline-nav-h) + 64px) 24px 88px;
  color: var(--lux-pipeline-text);
  font-family: 'Inter', sans-serif;
}

.lux-pipeline-hero__bgslides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.lux-pipeline-hero__bgslide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  opacity: 0;
  transition: opacity 2s ease;
}

.lux-pipeline-hero__bgslide.is-active {
  opacity: 0.22;
}

.lux-pipeline-hero__arc {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 160%);
  height: 640px;
  background: radial-gradient(ellipse at center, var(--lux-pipeline-orange-soft) 0%, rgba(249, 115, 22, 0.08) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.lux-pipeline-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.lux-pipeline-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.lux-pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--lux-pipeline-border);
  background: rgba(249, 115, 22, 0.08);
  color: var(--lux-pipeline-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.lux-pipeline-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lux-pipeline-title .is-gradient {
  background: linear-gradient(90deg, var(--lux-pipeline-orange), #ffb37a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lux-pipeline-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--lux-pipeline-text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.lux-pipeline-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 88px;
}

.lux-pipeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.lux-pipeline-cta--primary {
  background: var(--lux-pipeline-orange);
  color: #0d0b12;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.lux-pipeline-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.45);
}

.lux-pipeline-cta--secondary {
  background: transparent;
  color: var(--lux-pipeline-text);
  border: 1px solid var(--lux-pipeline-border);
}

.lux-pipeline-cta--secondary:hover {
  border-color: var(--lux-pipeline-orange);
  color: var(--lux-pipeline-orange);
  transform: translateY(-2px);
}

/* -------------------- Diagram (Icon Pipeline) -------------------- */

.lux-pipeline-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 12px 0;
}

.lux-pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.lux-pipeline-track {
  fill: none;
  stroke: var(--lux-pipeline-border);
  stroke-width: 2;
  stroke-linecap: round;
}

.lux-pipeline-beam {
  fill: none;
  stroke: var(--lux-pipeline-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8));
  opacity: 0;
}

.lux-pipeline-head {
  fill: #fff7ed;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.9));
  opacity: 0;
}

.lux-pipeline-splash-particle {
  fill: var(--lux-pipeline-orange);
  animation: lux-splash-burst 480ms ease-out forwards;
}

@keyframes lux-splash-burst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.lux-pipeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.lux-pipeline-node__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--lux-pipeline-bg-elevated);
  border: 1px solid var(--lux-pipeline-border);
  color: var(--lux-pipeline-text-muted);
  font-size: 28px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.lux-pipeline-node__icon--brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(145deg, var(--lux-pipeline-orange), #c8570a);
  color: #0d0b12;
  border-color: transparent;
}

.lux-pipeline-node.is-active .lux-pipeline-node__icon {
  transform: scale(1.08);
  color: var(--lux-pipeline-orange);
  border-color: var(--lux-pipeline-orange);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12), 0 0 24px rgba(249, 115, 22, 0.45);
}

.lux-pipeline-node.is-active .lux-pipeline-node__icon--brand {
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12), 0 0 28px rgba(249, 115, 22, 0.55);
}

.lux-pipeline-node__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--lux-pipeline-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* -------------------- Brands / Capabilities Row -------------------- */

.lux-brands-row {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--lux-pipeline-border);
  text-align: center;
}

.lux-brands-row__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lux-pipeline-text-muted);
  margin-bottom: 24px;
}

.lux-brands-row__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lux-brands-row__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c6878;
  font-size: 14px;
  font-weight: 500;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.lux-brands-row__item i {
  font-size: 18px;
}

.lux-brands-row__item:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--lux-pipeline-orange);
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  .lux-pipeline-hero {
    padding: calc(var(--lux-pipeline-nav-h) + 40px) 20px 72px;
  }

  .lux-pipeline-diagram {
    gap: 12px;
  }

  .lux-pipeline-node__icon {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .lux-brands-row__list {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .lux-pipeline-diagram {
    flex-direction: column;
    gap: 56px;
    padding-top: 16px;
  }

  .lux-pipeline-node {
    flex-direction: row;
    gap: 16px;
  }

  .lux-pipeline-node__label {
    text-align: left;
  }

  .lux-pipeline-ctas {
    margin-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .lux-pipeline-hero {
    padding: calc(var(--lux-pipeline-nav-h) + 28px) 16px 56px;
  }

  .lux-pipeline-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .lux-pipeline-subtitle {
    font-size: 0.95rem;
  }

  .lux-pipeline-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .lux-pipeline-node__icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .lux-pipeline-node__label {
    font-size: 12px;
  }

  .lux-brands-row {
    margin-top: 48px;
    padding-top: 28px;
  }

  .lux-brands-row__list {
    gap: 20px 24px;
  }

  .lux-brands-row__item span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-pipeline-cta,
  .lux-pipeline-node__icon,
  .lux-pipeline-hero__bgslide {
    transition: none;
  }
}
