/* ==========================================================================
   Homepage products + data foundation
   The product cards and the data hub are isolated from the legacy page styles.
   ========================================================================== */

/* ─────────────────────────────────────────
   PRODUCTS — two product families
───────────────────────────────────────── */
/* Padding vertical en múltiplos del cuadro de la retícula de fondo (44px):
   1 cuadro arriba, 2 abajo */
.products-section {
  /* Ancla del menú: 40px deja las dos cajas completas dentro del encuadre */
  scroll-margin-top: 40px;
  position: relative;
  overflow: hidden;
  padding: 44px var(--sp-2xl) 88px;
  background: var(--bone);
}

.products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 0, 235, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 0, 235, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.products-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.products-section__header {
  margin-bottom: var(--sp-2xl);
}

.products-section__headline {
  font-family: 'Manrope', var(--sans);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--obsidian);
  text-wrap: balance;
}

.products-section__headline em {
  color: var(--grape);
  font-style: normal;
  font-weight: inherit;
}

.products-section__intro {
  margin-top: var(--sp-md);
  font-family: 'Manrope', var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -.01em;
  color: var(--lead);
}

/* Sin el nodo del engine las dos cards ocupan todo el ancho del contenedor:
   alineadas con el titular y con los mockups más grandes, cabiendo en una
   pantalla de 14" (fondo de la rejilla en 742px de 816) */
.products-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-lg);
}

.product-family {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 45px rgba(37, 0, 102, .09);
}

.product-family--platform {
  border: 1px solid var(--lavender);
  background: var(--air);
}

.product-family--data {
  border: 1px solid rgba(214, 194, 255, .2);
  background:
    radial-gradient(circle at 82% 68%, rgba(130, 77, 255, .24), transparent 38%),
    var(--deep-royal);
  color: var(--air);
}

.product-family__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-lg) var(--sp-lg) 12px;
}

.product-family__labels {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-md);
}

.product-family__label {
  color: var(--grape);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-family--data .product-family__label {
  color: var(--lavender);
}

.product-family__chip {
  padding: 3px 8px;
  border: 1px solid var(--lavender);
  border-radius: 4px;
  background: var(--mauve);
  color: var(--deep-royal);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.product-family--data .product-family__chip {
  border-color: rgba(214, 194, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
}

.product-family__title {
  max-width: 460px;
  font-family: 'Manrope', var(--sans);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: var(--obsidian);
}

.product-family--data .product-family__title {
  color: var(--air);
}

/* ── Lockup de marca reutilizable (menú Product + sección Products) ──
   El wordmark usa un viewBox recortado a cap-to-baseline (218→281) con
   overflow visible: así el centro del SVG coincide con el centro óptico del
   texto y queda alineado con el pill; la 'y' desborda sin afectar al layout. */
.brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .42em;
}

.brand-lockup__mark svg {
  display: block;
  height: .72em;
  width: auto;
  overflow: visible;
}

.brand-lockup__mark svg path { fill: var(--grape); }

.brand-lockup__pill {
  display: inline-flex;
  align-items: center;
  gap: .38em;
  padding: .2em .46em .26em;
  border-radius: 8px;
  background: var(--grape);
  color: var(--air);
  font-size: .82em;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* Caja oscura: wordmark blanco y pill invertido */
.product-family--data .brand-lockup__mark svg path { fill: var(--air); }
.product-family--data .brand-lockup__pill {
  background: var(--air);
  color: var(--deep-royal);
}

.product-family__body {
  max-width: 510px;
  margin-top: 10px;
  color: var(--lead);
  font-size: .9375rem;
  line-height: 1.65;
}

.product-family--data .product-family__body {
  color: rgba(255, 255, 255, .66);
}

.product-family__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-lg);
  color: var(--grape);
  font-size: .875rem;
  font-weight: 600;
}

.product-family--data .product-family__link {
  color: var(--lavender);
}

.product-family__link svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease-out);
}

.product-family__link:hover svg {
  transform: translateX(4px);
}

.product-family__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.product-family__visual {
  position: relative;
  margin-top: auto;
  overflow: hidden;
}

.product-family__visual--platform {
  min-height: 0;
  padding: 13px 14px 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(150, 97, 255, .16), transparent 40%),
    linear-gradient(180deg, rgba(238, 229, 255, .25), var(--mauve));
}

.product-family__visual--data {
  padding: 13px 14px 0;
}

/* Platform card visual — captura real de la app (Similar Companies) */
.platform-shot {
  overflow: hidden;
  border: 1px solid var(--lavender);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fbfcfe;
  box-shadow: 0 18px 55px rgba(37, 0, 102, .16);
}

/* La captura es más panorámica que el marco. Al entrar en viewport hace un
   zoom lento desde la pantalla completa (scale .789 = ratio marco/imagen,
   se ve la app entera) hasta cubrir el marco. Con origen arriba-izquierda
   el sidebar (Company report) nunca se corta: solo sangra el lado derecho. */
.platform-shot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* Home de la app recreada en HTML */
.pshot {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  font-family: 'Manrope', var(--sans);
  user-select: none;
}

.pshot__bar {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  height: 10cqw;
  padding: 0 2.8cqw;
  background: #fff;
  border-bottom: 1px solid #F0F2F4;
}

.pshot__burger {
  display: grid;
  gap: .9cqw;
  width: 3.2cqw;
}

.pshot__burger i {
  display: block;
  height: .36cqw;
  border-radius: 2px;
  background: #4E00EB;
}

.pshot__burger i:nth-child(2) { width: 70%; margin-left: 15%; }
.pshot__burger i:nth-child(3) { width: 45%; margin-left: 27%; }

.pshot__brand {
  display: block;
  width: 14cqw;
  height: 5.2cqw;
  background-color: #4E00EB;
  -webkit-mask: url('../assets/logos/latency-mark.svg') left center / contain no-repeat;
  mask: url('../assets/logos/latency-mark.svg') left center / contain no-repeat;
}

.pshot__company {
  display: flex;
  align-items: center;
  gap: .8cqw;
  margin-left: auto;
  padding: .95cqw 1.6cqw;
  border: 1px solid #F0F2F4;
  border-radius: .7cqw;
  color: #111318;
  font-size: 1.7cqw;
  font-weight: 500;
  letter-spacing: -.02em;
}

.pshot__ico {
  display: block;
  width: 1.9cqw;
  height: 1.9cqw;
  flex: none;
  background-color: #4E00EB;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.pshot__ico--muted { background-color: #8b93a3; width: 2cqw; height: 2cqw; }
.pshot__ico--on { background-color: #fff; width: 1.7cqw; height: 1.7cqw; }

.pshot__body {
  position: relative;
  z-index: 2;
  padding: 6cqw 12cqw 0;
  text-align: center;
  background: linear-gradient(180deg, #f7f8fa, #f6f7fa);
  height: calc(100% - 10cqw);
}

.pshot__title {
  color: #111318;
  font-size: 4.3cqw;
  font-weight: 700;
  letter-spacing: -.035em;
}

.pshot__sub {
  margin-top: 1.1cqw;
  color: #687692;
  font-size: 1.95cqw;
  font-weight: 500;
  letter-spacing: -.02em;
}

.pshot__search {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  margin-top: 3.6cqw;
  padding: 1.2cqw 1.4cqw;
  border: 1px solid #F0F2F4;
  border-radius: .7cqw;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.pshot__query {
  display: flex;
  align-items: center;
  gap: .35cqw;
  min-height: 3.4cqw;
  color: #111318;
  font-size: 2.3cqw;
  font-weight: 500;
  letter-spacing: -.02em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.pshot__caret {
  display: block;
  width: .18cqw;
  height: 2.6cqw;
  background: #4E00EB;
  animation: pshot-caret 1s steps(1, end) infinite;
}

@keyframes pshot-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.pshot__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6cqw;
  margin-top: 4.4cqw;
}

.pshot__card {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.5cqw 1.4cqw;
  border: 1px solid #F0F2F4;
  border-radius: .7cqw;
  background: #fff;
  color: #111318;
  font-size: 1.95cqw;
  font-weight: 700;
  letter-spacing: -.03em;
}

.pshot__card-icon {
  display: grid;
  place-items: center;
  width: 3.6cqw;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: #EFE9FE;
}

.pshot__fab--unused {
  position: absolute;
  z-index: 3;
  right: 2.4cqw;
  bottom: 2.2cqw;
  display: grid;
  place-items: center;
  width: 4.6cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #4E00EB;
  color: #fff;
  box-shadow: 0 1cqw 2.2cqw rgba(78, 0, 235, .28);
}

.pshot__fab .pshot__ico { width: 2.3cqw; height: 2.3cqw; }

/* Data card animation — Latency Connector activation in Claude.
   La imagen base es cuadrada; el wrapper recorta la banda central (9%–81%)
   donde ocurre la acción, a modo de ventana pegada al borde inferior. */
.connector-demo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  border: 1px solid rgba(214, 194, 255, .22);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 18px 55px rgba(10, 5, 24, .5);
}

.connector-demo__stage {
  --cd-cycle: 8000ms;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-top: -30%;
  container-type: inline-size;
  background: #f8f8ff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.connector-demo__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.connector-demo__mask {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto 0;
  height: 52%;
  background: linear-gradient(180deg, #eeeefc 0 86%, rgba(240, 239, 252, 0) 100%);
}

.connector-demo__brands {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
}

.connector-demo__brand-latency {
  display: grid;
  place-items: center;
  width: 9cqw;
  aspect-ratio: 1;
  border-radius: 2cqw;
  background: linear-gradient(145deg, #6a10ff 0%, #4300e8 72%);
  color: #fff;
  font-size: 1.75cqw;
  font-weight: 700;
  letter-spacing: -.04em;
}

.connector-demo__plus {
  color: #11131a;
  font-size: 4.4cqw;
  font-weight: 400;
}

.connector-demo__rotator {
  position: relative;
  display: block;
  width: 9cqw;
  aspect-ratio: 1;
}

.connector-demo__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: connector-brand-cycle 8s ease-in-out infinite;
}

@keyframes connector-brand-cycle {
  0% { opacity: 0; transform: scale(.94); }
  3%, 22% { opacity: 1; transform: scale(1); }
  25%, 100% { opacity: 0; transform: scale(.98); }
}

.connector-demo__menu {
  position: absolute;
  z-index: 2;
  left: 20.4%;
  top: 55%;
  width: 36.5%;
  height: 30.3%;
  border: 1px solid rgba(27, 33, 51, .07);
  border-radius: 4.3cqw;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 2.2cqw 5.5cqw rgba(30, 28, 61, .1), 0 0 0 1px rgba(255, 255, 255, .55) inset;
  opacity: 0;
  transform: translateY(1.5cqw) scale(.985);
  animation: connector-menu-reveal var(--cd-cycle) cubic-bezier(.22, 1, .36, 1) infinite;
}

.connector-demo__row {
  position: absolute;
  z-index: 4;
  left: 23%;
  top: 59.5%;
  width: 31.5%;
  height: 8.65%;
  display: flex;
  align-items: center;
  gap: 2.1cqw;
  padding: 0 2.2cqw;
  border: 1px solid rgba(30, 35, 55, .07);
  border-radius: 2.1cqw;
  background: rgba(248, 248, 247, .95);
  box-shadow: 0 1.1cqw 2.6cqw rgba(28, 27, 47, .08), 0 1px 0 rgba(255, 255, 255, .9) inset;
  color: #11131a;
  font-size: clamp(12px, 2.45cqw, 30px);
  font-weight: 460;
  letter-spacing: -.03em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(1.2cqw);
  animation:
    connector-row-reveal var(--cd-cycle) cubic-bezier(.22, 1, .36, 1) infinite,
    connector-row-hover var(--cd-cycle) ease-in-out infinite;
}

.connector-demo__row-icon {
  width: 2.9cqw;
  height: 2.9cqw;
  flex: none;
}

.connector-demo__chevron {
  width: 2.7cqw;
  height: 2.7cqw;
  margin-left: auto;
  color: #646a76;
}

.connector-demo__card {
  position: absolute;
  z-index: 5;
  left: 55.4%;
  top: 59.6%;
  width: 33.5%;
  height: 10.1%;
  display: flex;
  align-items: center;
  gap: 2.1cqw;
  padding: 0 2.3cqw;
  border: 1px solid rgba(30, 35, 55, .07);
  border-radius: 2cqw;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1.5cqw 3.7cqw rgba(26, 24, 57, .12), 0 1px 0 rgba(255, 255, 255, .9) inset;
  color: #101116;
  opacity: 0;
  transform: translateX(-3.2cqw) scale(.96);
  transform-origin: left center;
  animation: connector-card-reveal var(--cd-cycle) cubic-bezier(.16, 1, .3, 1) infinite;
}

.connector-demo__app {
  width: 5.2cqw;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 1.05cqw;
  background: linear-gradient(145deg, #6a10ff 0%, #4300e8 72%);
  box-shadow: 0 0.8cqw 1.8cqw rgba(75, 0, 255, .18), 0 1px 0 rgba(255, 255, 255, .25) inset;
  color: #fff;
  font-size: clamp(5px, .95cqw, 12px);
  font-weight: 700;
  letter-spacing: -.05em;
}

.connector-demo__name {
  font-size: clamp(14px, 2.75cqw, 34px);
  font-weight: 480;
  letter-spacing: -.04em;
}

.connector-demo__toggle {
  position: relative;
  width: 7cqw;
  height: 3.55cqw;
  margin-left: auto;
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  background: #d8dbe1;
  box-shadow: 0 1px 2px rgba(20, 25, 40, .12) inset, 0 0 0 1px rgba(31, 36, 51, .05);
  animation: connector-toggle-track var(--cd-cycle) ease-in-out infinite;
}

.connector-demo__knob {
  position: absolute;
  top: .34cqw;
  left: .36cqw;
  width: 2.87cqw;
  height: 2.87cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 .3cqw .8cqw rgba(21, 31, 52, .24), 0 0 0 1px rgba(26, 35, 56, .05);
  animation: connector-toggle-knob var(--cd-cycle) cubic-bezier(.34, 1.56, .64, 1) infinite;
}

.connector-demo__cursor {
  position: absolute;
  z-index: 10;
  left: 15.6%;
  top: 60.5%;
  width: 2.65cqw;
  height: auto;
  filter: drop-shadow(0 .45cqw .5cqw rgba(20, 24, 38, .24));
  opacity: 0;
  animation: connector-cursor-path var(--cd-cycle) cubic-bezier(.55, 0, .1, 1) infinite;
}

.connector-demo__pulse {
  position: absolute;
  z-index: 9;
  width: 2.7cqw;
  aspect-ratio: 1;
  border: .22cqw solid rgba(75, 0, 255, .4);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.connector-demo__pulse--row {
  left: 40.8%;
  top: 63.6%;
  animation: connector-pulse-row var(--cd-cycle) ease-out infinite;
}

.connector-demo__pulse--toggle {
  left: 83.2%;
  top: 63.3%;
  animation: connector-pulse-toggle var(--cd-cycle) ease-out infinite;
}

@keyframes connector-menu-reveal {
  0%, 5% { opacity: 0; transform: translateY(1.5cqw) scale(.985); }
  12%, 89% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(.8cqw) scale(.99); }
}

@keyframes connector-row-reveal {
  0%, 8% { opacity: 0; transform: translateY(1.2cqw); }
  15%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(.6cqw); }
}

@keyframes connector-row-hover {
  0%, 20%, 39%, 100% { background: rgba(248, 248, 247, .95); }
  28%, 35% { background: rgba(238, 238, 238, .98); }
}

@keyframes connector-card-reveal {
  0%, 35% { opacity: 0; transform: translateX(-3.2cqw) scale(.96); }
  44%, 90% { opacity: 1; transform: translateX(0) scale(1); }
  95%, 100% { opacity: 0; transform: translateX(-1cqw) scale(.985); }
}

@keyframes connector-cursor-path {
  0%, 9% { left: 15.6%; top: 60.5%; opacity: 0; }
  13% { left: 15.6%; top: 60.5%; opacity: 1; }
  27%, 34% { left: 41%; top: 63.1%; opacity: 1; }
  40% { left: 46%; top: 63.1%; opacity: 1; }
  59%, 67% { left: 83.4%; top: 62.9%; opacity: 1; }
  87% { left: 83.4%; top: 62.9%; opacity: 1; }
  93%, 100% { left: 83.4%; top: 62.9%; opacity: 0; }
}

@keyframes connector-pulse-row {
  0%, 27% { opacity: 0; transform: scale(.25); }
  29% { opacity: .65; }
  34% { opacity: 0; transform: scale(2.15); }
  100% { opacity: 0; }
}

@keyframes connector-pulse-toggle {
  0%, 64% { opacity: 0; transform: scale(.25); }
  66% { opacity: .65; }
  71% { opacity: 0; transform: scale(2.15); }
  100% { opacity: 0; }
}

@keyframes connector-toggle-track {
  0%, 65% {
    background: #d8dbe1;
    box-shadow: 0 1px 2px rgba(20, 25, 40, .12) inset, 0 0 0 1px rgba(31, 36, 51, .05);
  }
  69%, 91% {
    background: #2585e8;
    box-shadow: 0 1px 2px rgba(7, 67, 135, .14) inset, 0 0 1.7cqw rgba(37, 133, 232, .24);
  }
  95%, 100% { background: #d8dbe1; }
}

@keyframes connector-toggle-knob {
  0%, 65% { transform: translateX(0); }
  69%, 91% { transform: translateX(3.42cqw); }
  95%, 100% { transform: translateX(0); }
}

/* ─────────────────────────────────────────
   DATA FOUNDATION — restored original content
───────────────────────────────────────── */
.eco__header {
  margin-bottom: 44px;
}

.eco__headline {
  font-family: 'Manrope', var(--sans);
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--air);
}

.eco .overline--grape {
  color: var(--violet);
}

.eco__headline span {
  color: var(--violet);
}

.eco__headline u {
  text-decoration: none;
  padding: 0 .06em;
  background: linear-gradient(180deg, transparent 12%, rgba(78, 0, 235, .78) 12%, rgba(78, 0, 235, .78) 92%, transparent 92%);
}

/* La segunda frase salta de línea entera, nunca partida por el "The" */
@media (min-width: 900px) {
  .eco__headline span { display: inline-block; }
}

.eco__stats {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  margin-bottom: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.eco__stats-track {
  width: max-content;
  display: flex;
  animation: eco-marquee 52s linear infinite;
}

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

.eco__stats-set {
  display: flex;
}

.eco-stat {
  width: fit-content;
  max-width: 268px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 12px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.eco-stat__num {
  color: var(--air);
  font-family: 'Manrope', var(--sans);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
}

.eco-stat__label {
  color: var(--df-text);
  font-family: 'Manrope', var(--sans);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: -.01em;
}

.products-hub__chip-icon--image {
  overflow: hidden;
  border: 0;
  background: none;
}

.products-hub__chip-icon--image img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* sp-md deja el mismo aire que hay sobre el hub (≈63px contando el hueco
   interno del propio componente), en vez del doble */
.eco__detail {
  margin-top: 44px;
}

.eco__detail-intro {
  margin-bottom: var(--sp-lg);
  color: var(--df-text);
  font-family: 'Manrope', var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.01em;
}

.eco__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: calc(var(--sp-xl) * 1.4);
}

.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding-right: calc(var(--sp-lg) * 1.5);
}

.eco-card:not(:nth-child(3n+1)) {
  padding-left: calc(var(--sp-lg) * 1.5);
}

/* separador corto y centrado entre columnas */
.eco-card:not(:nth-child(3n+1))::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 68px;
  transform: translateY(-50%);
  border-left: 1px solid rgba(255, 255, 255, .3);
}

.eco-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-card__ico {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--lavender);
}

.eco-card__title {
  color: var(--air);
  font-family: 'Manrope', var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.eco-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--df-text);
  font-family: 'Manrope', var(--sans);
  font-size: .84375rem;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.eco-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--amethyst);
}

.eco__detail-more {
  margin-top: calc(var(--sp-xl) * 1.2);
  font-style: italic;
  color: var(--df-text);
  font-family: 'Manrope', var(--sans);
  font-size: .8125rem;
}

@keyframes eco-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Misma retícula y ritmo vertical que PRODUCTS (1 cuadro arriba, 2 abajo):
   las secciones alternan sin-cuadrícula / con-cuadrícula */
/* Sección en oscuro: superficie grafito con la misma retícula de 44px que
   PRODUCTS, pero en claro sobre oscuro. Los tokens locales concentran los
   valores que reutilizan chips, cards y las líneas del hub (js) */
.products-hub {
  --df-surface: rgba(255, 255, 255, .055);
  --df-surface-strong: rgba(255, 255, 255, .085);
  --df-border: rgba(255, 255, 255, .13);
  --df-text: rgba(255, 255, 255, .74);
  --df-line-from: rgba(214, 194, 255, .28);
  --df-line-to: rgba(214, 194, 255, .62);
  --df-flow: #C9AEFF;
  --df-dot: #B48CFF;

  scroll-margin-top: 64px;
  position: relative;
  overflow: hidden;
  padding: 44px var(--sp-2xl) 88px;
  background: #3A3F4A;
  color: var(--air);
}

.products-hub::before {
  content: none;
}

.products-hub__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.products-hub__viz {
  position: relative;
  height: 300px;
}

.products-hub__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.products-hub__lines svg {
  display: block;
}

.products-hub__column {
  position: absolute;
  top: 0;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.products-hub__column--sources {
  left: var(--sp-lg);
}

.products-hub__column--products {
  right: var(--sp-lg);
}

.products-hub__column-label {
  margin: 0 8px 4px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--df-text);
}

.products-hub__chip {
  width: max-content;
  min-width: 200px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 7px;
  border: 1px solid var(--df-border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--df-surface-strong), var(--df-surface));
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  color: var(--air);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.products-hub__chip-icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--df-border);
  border-radius: 10px;
  background: rgba(150, 97, 255, .2);
  color: var(--lavender);
}

.products-hub__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 214px;
  height: 214px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.products-hub__hub-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 77, 255, .28), rgba(78, 0, 235, 0) 70%);
  animation: products-hub-pulse 3.6s ease-in-out infinite;
}

.products-hub__hub-rings {
  position: absolute;
  inset: 0;
}

.products-hub__spin-slow {
  transform-origin: 107px 107px;
  animation: products-hub-rotate 26s linear infinite;
}

.products-hub__spin-reverse {
  transform-origin: 107px 107px;
  animation: products-hub-rotate-reverse 18s linear infinite;
}

.products-hub__spin-fast {
  transform-origin: 107px 107px;
  animation: products-hub-rotate 6s linear infinite;
}

.products-hub__hub-core {
  position: absolute;
  width: 152px;
  height: 152px;
  overflow: hidden;
  border: 1px solid rgba(214, 194, 255, .55);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, var(--amethyst), var(--grape) 48%, var(--indigo));
  box-shadow: 0 0 64px rgba(130, 77, 255, .4), inset 0 0 40px rgba(37, 0, 102, .45);
}

.products-hub__hub-core::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 8px);
  mix-blend-mode: overlay;
}

.products-hub__hub-sweep {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .2) 34deg, transparent 76deg);
  animation: products-hub-rotate 7.5s linear infinite;
}

.products-hub__hub-scan {
  position: absolute;
  right: 0;
  left: 0;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(238, 229, 255, .3), transparent);
  animation: products-hub-scan 3.2s ease-in-out infinite;
}

.products-hub__hub-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.products-hub__wordmark {
  width: 100px;
  height: auto;
  display: block;
}

.products-hub__wordmark path {
  fill: var(--air);
}

.products-hub__flow {
  stroke-dasharray: 9 91;
  filter: drop-shadow(0 0 4px rgba(130, 77, 255, .55));
  animation: products-hub-flow 3.4s linear infinite;
}

@keyframes products-hub-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes products-hub-rotate {
  to { transform: rotate(360deg); }
}

@keyframes products-hub-rotate-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes products-hub-scan {
  from { transform: translateY(-30px); }
  to { transform: translateY(160px); }
}

@keyframes products-hub-flow {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 980px) {
  .products-section__grid {
    gap: var(--sp-md);
  }

  .product-family__content {
    padding: var(--sp-lg);
  }

  .products-hub__column {
    gap: 8px;
  }

  .products-hub__column--sources {
    left: 0;
  }

  .products-hub__column--products {
    right: 0;
  }

  .products-hub__chip {
    min-width: 190px;
    font-size: .75rem;
  }
}

@media (max-width: 760px) {
  .products-section {
    padding: var(--sp-3xl) var(--sp-lg);
  }

  .products-section__header {
    margin-bottom: var(--sp-xl);
  }

  .products-section__grid {
    grid-template-columns: 1fr;
  }

  /* El recorte 16:9 del connector deja fuera la tarjeta y el toggle en un
     ancho de móvil: aquí recupera el encuadre alto original y toda la
     animación queda dentro de la caja */
  .connector-demo { aspect-ratio: 1000 / 720; }
  .connector-demo__stage { margin-top: -13%; }
  /* La tarjeta cubre el toggle: el suelo de 14px del nombre no escalaba con
     el lienzo pequeño y empujaba el toggle fuera de la caja */
  .connector-demo__name { font-size: 2.9cqw; }

  .product-family {
    min-height: 0;
  }

  /* En móvil las columnas pasan a tarjetas con caja, a dos por fila */
  .eco__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .eco-card,
  .eco-card:not(:nth-child(3n+1)) {
    padding: 12px;
    border: 1px solid var(--df-border);
    border-radius: 12px;
    background: var(--df-surface);
  }

  .eco-card:not(:nth-child(3n+1))::before {
    display: none;
  }

  .eco-card__title { font-size: .875rem; }
  .eco-card__ico { width: 26px; height: 26px; }
  .eco-card__list li { font-size: .78125rem; }

  .products-hub {
    padding: var(--sp-3xl) var(--sp-lg);
  }

  /* ── Cabecera y KPIs compactos: el diagrama debe verse de una, incluidas
     las salidas, sin hacer scroll ── */
  .eco__header { margin-bottom: 16px; }
  .eco__stats { padding: 4px 0; margin-bottom: 12px; }
  .eco-stat { gap: 3px; max-width: 200px; margin-right: 10px; padding: 8px 12px; }
  .eco-stat__num { font-size: 1.35rem; }
  .eco-stat__label { font-size: .75rem; }
  .eco__detail { margin-top: 24px; }

  /* ── Hub en horizontal también en móvil (estilo inven.ai): campos mini a
     izquierda y derecha, núcleo al centro y las curvas del JS conectando ── */
  .products-hub__viz { height: 236px; }

  .products-hub__column { gap: 4px; }
  .products-hub__column--sources { left: 0; width: 104px; }

  .products-hub__chip {
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 5px;
    padding: 3px 6px 3px 4px;
    border-radius: 8px;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: normal;
  }

  .products-hub__chip-icon {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    flex: none;
  }

  .products-hub__chip-icon svg { width: 11px; height: 11px; }
  .products-hub__chip-icon--image img { width: 13px; height: 13px; }

  .products-hub__hub { zoom: .45; }

  /* Salidas: todas las cajas iguales (icono + nombre), una bajo otra como el
     lado de las fuentes, para que cada curva del conector llegue a su caja.
     Latency Platform solo se distingue por el color, no por el tamaño */
  /* Misma ocupación vertical que las fuentes (31px arriba/abajo): la
     primera salida alinea con la primera fuente, la última con la última,
     y el resto se reparte equidistante */
  .products-hub__column--products {
    right: 0;
    width: 104px;
    justify-content: space-between;
    gap: 0;
    padding: 31px 0;
  }

  .products-hub__column--products .products-hub__chip:first-child {
    border-color: rgba(150, 97, 255, .65);
    background: linear-gradient(180deg, rgba(150, 97, 255, .3), rgba(150, 97, 255, .14));
    font-weight: 700;
  }
}

@media (max-width: 520px) {
  .product-family__visual--platform,
  .product-family__visual--data {
    padding-right: 16px;
    padding-left: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .connector-demo__menu,
  .connector-demo__row,
  .connector-demo__card,
  .connector-demo__toggle,
  .connector-demo__knob,
  .eco__stats-track,
  .products-hub__hub-glow,
  .products-hub__spin-slow,
  .products-hub__spin-reverse,
  .products-hub__spin-fast,
  .products-hub__hub-sweep,
  .products-hub__hub-scan,
  .products-hub__flow {
    animation: none;
  }

  .platform-shot img {
    transition: none;
  }

  /* Connector demo: estado final estático (conector activado) */
  .connector-demo__menu,
  .connector-demo__row,
  .connector-demo__card {
    opacity: 1;
    transform: none;
  }

  .connector-demo__toggle {
    background: #2585e8;
  }

  .connector-demo__knob {
    transform: translateX(3.42cqw);
  }

  .connector-demo__cursor,
  .connector-demo__pulse {
    display: none;
  }
}

/* Teléfonos más estrechos que el iPhone 12: el núcleo del hub baja un punto
   para que las curvas del conector conserven su recorrido */
@media (max-width: 388px) {
  .products-hub__hub { zoom: .42; }
}

@media (max-width: 360px) {
  .products-hub__hub { zoom: .38; }
  .products-hub__column--sources,
  .products-hub__column--products { width: 100px; }
}
