/* Decision Engine — Option 1, integrated into #problem-fit (vertical, compact, static).
   Uses landing V2 design tokens. No motion — does not compete with Option 3. */

.problem-fit-visual {
  min-width: 0;
}

.pf-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.38);
}

.pf-engine-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.pf-engine-zone-label {
  margin: 0 0 0.4rem;
  width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Chip clusters: fit-content + wrap, centered on the visual axis */
.pf-engine-signals,
.pf-engine-outcomes {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: 100%;
}

.pf-engine-signal,
.pf-engine-outcome,
.pf-engine-signal--soft,
.pf-engine-outcome--focus {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.32rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.55);
  color: #c5d0e0;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

/* Flow arrows — sober but clearly readable */
.pf-engine-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 1.15rem;
  flex: 0 0 auto;
}

.pf-engine-bridge-line {
  display: block;
  width: 2px;
  height: 0.7rem;
  border-radius: 1px;
  background: rgba(96, 165, 250, 0.55);
}

.pf-engine-bridge-dot {
  display: block;
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid rgba(96, 165, 250, 0.8);
  border-radius: 0;
  background: transparent;
}

.pf-engine-zone--core {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pf-engine-core {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 0.85rem 0.7rem;
  text-align: center;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(17, 24, 39, 0.55) 100%
  );
}

.pf-engine-core-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pf-engine-core-sub {
  margin: 0.18rem 0 0.5rem;
  color: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.pf-engine-core-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
}

.pf-engine-chip,
.pf-engine-chip--muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.2;
}

.pf-engine-chip {
  background: rgba(37, 99, 235, 0.12);
  color: #d7e6ff;
}

/* Same structure as Optimización; only a mild chromatic difference */
.pf-engine-chip--muted {
  background: rgba(37, 99, 235, 0.05);
  color: #b6c7dc;
}

@media (max-width: 991.98px) {
  .pf-engine {
    padding: 0.75rem 0.7rem 0.8rem;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .pf-engine {
    max-width: none;
  }

  .pf-engine-signal,
  .pf-engine-outcome,
  .pf-engine-signal--soft,
  .pf-engine-outcome--focus {
    white-space: normal;
  }
}
