/* MBC compra-interna: modal de compra de membresía sin salir de la plataforma.
   Capa inyectada (patrón mapa-fix): no toca el bundle de la SPA. */
.ci-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(4, 32, 29, 0.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 12px;
}
.ci-panel {
  position: relative; z-index: 9999;
  width: 100%; max-width: 560px; margin: auto;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 60, 54, 0.35);
  font-family: inherit; color: #123;
}
.ci-head {
  background: linear-gradient(90deg, #03AC9D, #028f82);
  color: #fff; padding: 16px 20px; border-bottom: 3px solid #FCC321;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ci-head h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.ci-head p { margin: 3px 0 0; font-size: 13px; opacity: 0.88; }
.ci-close {
  appearance: none; border: 0; background: rgba(255,255,255,0.16); color: #fff;
  width: 34px; height: 34px; border-radius: 999px; font-size: 18px; cursor: pointer;
  flex: 0 0 auto; line-height: 1;
}
.ci-close:hover { background: rgba(255,255,255,0.3); }
.ci-body { padding: 18px 20px 22px; }
.ci-plans { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ci-chip {
  appearance: none; cursor: pointer; border: 2px solid #bfe9e4; background: #f4fbfa;
  color: #065f57; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 7px 14px;
}
.ci-chip.on { background: #028f82; border-color: #028f82; color: #fff; }
.ci-toggle { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: 14.5px; }
.ci-toggle .opt { color: #64748b; font-weight: 600; }
.ci-toggle .opt.on { color: #0f172a; font-weight: 800; }
.ci-sw {
  position: relative; width: 52px; height: 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: #cbd5e1; transition: background 0.2s; flex: 0 0 auto; padding: 0;
}
.ci-sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 999px; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ci-sw.annual { background: #03AC9D; }
.ci-sw.annual::after { left: 27px; }
.ci-save { background: #e7f8f6; color: #028f82; font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; }
.ci-price { font-size: 34px; font-weight: 900; color: #0f172a; margin: 2px 0 2px; }
.ci-price small { font-size: 15px; font-weight: 600; color: #64748b; }
.ci-note { font-size: 13.5px; color: #475569; margin: 6px 0 0; }
.ci-cta {
  appearance: none; border: 0; cursor: pointer; width: 100%; margin-top: 16px;
  background: #FCC321; color: #231f04; font-weight: 800; font-size: 16.5px;
  border-radius: 12px; padding: 13px 16px; box-shadow: 0 6px 18px rgba(252,195,33,0.4);
}
.ci-cta:hover { filter: brightness(1.04); }
.ci-cta:disabled { opacity: 0.6; cursor: wait; }
.ci-err { display: none; margin-top: 12px; color: #b91c1c; font-weight: 700; font-size: 14px; }
.ci-err.show { display: block; }
.ci-msg { margin-top: 12px; font-size: 14.5px; color: #065f57; font-weight: 600; }
.ci-spin { text-align: center; color: #028f82; font-weight: 700; padding: 18px 0 6px; }
.ci-ok { text-align: center; padding: 10px 0 2px; }
.ci-ok .big { font-size: 42px; line-height: 1; }
.ci-ok h4 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; color: #065f57; }
.ci-ok p { margin: 0; color: #475569; font-size: 14.5px; }
#ci-checkout { margin-top: 8px; }
@media (max-width: 640px) {
  .ci-backdrop { padding: 10px 6px; }
  .ci-panel { border-radius: 14px; }
  .ci-price { font-size: 29px; }
}

/* Superficie propia de SajetPay (Payment Element) dentro del modal. */
.ci-brand { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #64748b; margin: 2px 0 10px; }
.ci-el { min-height: 180px; }
.ci-legal { font-size: 12px; line-height: 1.5; color: #64748b; margin: 12px 0 0; }
.ci-legal a { color: #334155; text-decoration: underline; }
.ci-paybtn {
  appearance: none; border: 0; cursor: pointer; width: 100%; margin-top: 14px;
  background: #03AC9D; color: #fff; font-weight: 800; font-size: 16.5px;
  border-radius: 12px; padding: 13px 16px;
}
.ci-paybtn:disabled { opacity: 0.55; cursor: wait; }
.ci-footlinks { margin-top: 12px; text-align: center; font-size: 12px; color: #64748b; }
.ci-footlinks a { color: #64748b; text-decoration: none; }
.ci-footlinks a:hover { text-decoration: underline; }
