/* ============================================
   BEMULTIFLOW — Visión & Ecosistema (v3.0)
   Construido sobre variables.css / components.css
   ============================================ */

/* ── Visión ── */
.sec-vision { background: var(--white); }

.vision-sources {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.vision-source {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  width: 200px;
  text-align: center;
  transition: all var(--t-base) var(--ease);
}
.vision-source:hover { box-shadow: var(--shadow-md); border-color: rgba(196,123,10,.3); }
.vision-source-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--warn-l);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.vision-source-icon svg { width: 18px; height: 18px; }
.vision-source-lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.vision-source-val { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--warn); margin-top: 6px; }

.vision-doubt { text-align: center; margin-bottom: 36px; }
.vision-doubt span {
  display: inline-flex; align-items: center;
  background: var(--warn-l); color: #92400E;
  font-weight: 500; font-size: 13.5px;
  padding: 8px 18px; border-radius: var(--r-full);
  animation: blink 2.4s ease-in-out infinite;
}

.vision-pivot { display: flex; justify-content: center; margin: 8px 0 36px; }
.vision-pivot-badge {
  max-width: 560px;
  background: var(--white);
  border: 2px solid var(--blue-2);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  text-align: center;
}
.vision-pivot-badge h3 { color: var(--blue-2); }
.vision-pivot-badge p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; margin-bottom: 18px; }
.vision-pivot-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vision-pivot-tags span {
  background: var(--sky); color: var(--blue-2);
  font-size: 12.5px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-full);
}

.vision-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.vision-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ok-l); color: #065F46;
  font-weight: 600; font-size: 13.5px;
  padding: 9px 18px; border-radius: var(--r-full);
}
.vision-pill::before { content: '✓'; color: var(--ok); font-weight: 700; font-size: 14px; }

.vision-tagline { text-align: center; }
.vision-tagline p {
  display: inline-block;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: 16px;
  padding: 16px 28px; border-radius: var(--r-lg);
}
.vision-tagline p span { color: var(--cyan-l); }

/* ── Ecosistema ── */
.sec-ecosistema { background: var(--white); }

.eco-flow { display: flex; align-items: stretch; justify-content: center; gap: 0; margin-bottom: 28px; }
.eco-col { display: flex; flex-direction: column; gap: 14px; justify-content: center; width: 260px; }
.eco-arrow { display: flex; align-items: center; justify-content: center; width: 48px; flex-shrink: 0; }

.eco-center {
  width: 320px;
  background: var(--white);
  border: 2px solid var(--blue-2);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.eco-center:hover, .eco-center:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.eco-center:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.eco-center-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.eco-center h3 { font-size: 17px; color: var(--navy); }
.eco-center-sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.eco-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.eco-subitem { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.eco-subitem-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eco-subitem-icon svg { width: 14px; height: 14px; }

.eco-click-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--blue-2);
  margin-top: 18px;
}

.eco-connector { display: flex; justify-content: center; }

.eco-foundation {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 640px; margin: 0 auto;
}
.eco-foundation-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(59,158,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eco-foundation h3 { color: #fff; font-size: 15px; }
.eco-foundation p { color: rgba(255,255,255,.55); font-size: 12.5px; margin-top: 2px; }

.eco-tagline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  padding: 14px 26px;
  max-width: 640px; margin: 20px auto 0;
  flex-wrap: wrap; text-align: center;
}
.eco-tagline p { font-size: 14px; font-weight: 500; }
.eco-tagline .navy { color: var(--navy); }
.eco-tagline .blue { color: var(--blue-2); }
.eco-tagline .ok   { color: var(--ok); }

@media (max-width: 960px) {
  .eco-flow { flex-direction: column; align-items: center; }
  .eco-arrow { width: auto; height: 36px; transform: rotate(90deg); }
  .eco-col, .eco-center { width: 100%; max-width: 380px; }
}

/* ── Modal: ejemplos de stacks ── */
.eco-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,25,58,.55);
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 500;
}
.eco-modal-overlay.open { display: flex; }
.eco-modal-card {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 780px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 32px 32px 26px;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.eco-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sky); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-base);
}
.eco-modal-close:hover { background: var(--line-2); }
.eco-modal-header p { font-size: 14px; color: var(--ink-2); margin-top: 8px; margin-bottom: 24px; line-height: 1.6; max-width: 600px; }

.eco-stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .eco-stack-grid { grid-template-columns: 1fr; } }
.eco-stack-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.eco-stack-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.eco-stack-header .eco-subitem-icon { width: 32px; height: 32px; }
.eco-stack-header .eco-subitem-icon svg { width: 16px; height: 16px; }
.eco-stack-card h4 { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.eco-stack-ideal { font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }
.eco-stack-pipeline { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; margin-bottom: 10px; flex-wrap: wrap; }
.eco-stack-pipeline .layer { padding: 3px 8px; border-radius: 5px; }
.eco-stack-pipeline .layer.bronze { background: var(--warn-l); color: #92400E; }
.eco-stack-pipeline .layer.silver { background: var(--sky); color: var(--blue-2); }
.eco-stack-pipeline .layer.gold   { background: var(--ok-l); color: #065F46; }
.eco-stack-pipeline .arrow-mini { color: var(--ink-3); }
.eco-stack-cost { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ── FAQ ── */
.sec-faq { background: var(--white); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: none; text-align: left;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--navy);
  cursor: pointer;
}
.faq-q .faq-caret { color: var(--ink-3); flex-shrink: 0; transition: transform var(--t-base) var(--ease); }
.faq-item.open .faq-q .faq-caret { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
