/* mycartpro — Paso 1 Planes (mockup) */

.mcp-plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 24px;
}

.mcp-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.mcp-plans-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: #111a24;
  line-height: 1.2;
}

.mcp-plans-lead {
  margin: 7px 0 0;
  font-size: 14px;
  color: #5d6c80;
  line-height: 1.5;
  max-width: 42em;
}

.mcp-cycle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.05);
}

.mcp-cycle-bar-label {
  font-size: 13.5px;
  color: #5d6c80;
}

.mcp-cycle-toggle {
  display: flex;
  gap: 3px;
  background: #eef1f5;
  border-radius: 9px;
  padding: 3px;
}

.mcp-cycle-toggle a,
.mcp-cycle-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #5d6c80;
  text-decoration: none;
  white-space: nowrap;
}

.mcp-cycle-toggle a:hover {
  color: #111a24;
  text-decoration: none;
}

.mcp-cycle-toggle .is-on {
  background: #fff;
  color: #111a24;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.08);
}

.mcp-cycle-save {
  font-size: 11px;
  font-weight: 700;
  color: #1f5fa8;
  background: #eef4fb;
  border-radius: 999px;
  padding: 2px 7px;
}

/* Filas canónicas (4+3 / 3+2 / etc.) — no grid fijo de 3 */
.mcp-plan-grid {
  display: block;
}

.mcp-plan-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 16px;
}

.mcp-plan-row:last-child {
  margin-bottom: 0;
}

.mcp-plan-col {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 0;
  display: flex;
}

.mcp-plan-col > .mcp-plan-card {
  width: 100%;
}

@media (max-width: 991px) {
  .mcp-plan-col.col-md-3,
  .mcp-plan-col.col-md-4,
  .mcp-plan-col.col-md-6 {
    width: 50%;
    float: none;
  }
}

@media (max-width: 767px) {
  .mcp-plan-col.col-md-3,
  .mcp-plan-col.col-md-4,
  .mcp-plan-col.col-md-6,
  .mcp-plan-col.col-md-12 {
    width: 100%;
  }
}

.mcp-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.05);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  min-height: 100%;
  height: 100%;
}

.mcp-plan-card:hover {
  box-shadow: 0 4px 14px rgba(16, 26, 40, 0.07);
}

.mcp-plan-card.is-selected {
  border-color: #1f5fa8;
  box-shadow: 0 0 0 2px #1f5fa8, 0 4px 14px rgba(16, 26, 40, 0.07);
}

.mcp-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a2038;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

.mcp-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.mcp-plan-name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #111a24;
}

.mcp-plan-for {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #8d9aab;
  line-height: 1.4;
}

.mcp-plan-radio {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex: 0 0 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #d7dee8;
  position: relative;
}

.mcp-plan-card.is-selected .mcp-plan-radio {
  background: #1f5fa8;
  box-shadow: inset 0 0 0 5px #fff, 0 0 0 1.5px #1f5fa8;
}

.mcp-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}

.mcp-plan-price {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #111a24;
  line-height: 1;
}

.mcp-plan-price-unit {
  font-size: 13px;
  color: #8d9aab;
}

.mcp-plan-billed {
  margin-top: 4px;
  font-size: 12px;
  color: #8d9aab;
}

.mcp-plan-divider {
  height: 1px;
  background: #f0f3f7;
  margin: 16px 0 12px;
}

.mcp-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.mcp-plan-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.mcp-plan-features .k { color: #68788c; }
.mcp-plan-features .v { font-weight: 600; color: #2c3d52; text-align: right; }

.mcp-plan-cta {
  display: block;
  margin-top: 16px;
  text-align: center;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  text-decoration: none !important;
  border: 1.5px solid #e3e8ee !important;
  background: #fff !important;
  color: #2c3d52 !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mcp-plan-cta:hover,
.mcp-plan-cta:focus {
  background: #f8fafc !important;
  color: #111a24 !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.mcp-plan-card.is-selected .mcp-plan-cta,
.mcp-plan-cta.is-primary {
  background: #1f5fa8 !important;
  border-color: #1f5fa8 !important;
  color: #fff !important;
}

.mcp-plan-card.is-selected .mcp-plan-cta:hover,
.mcp-plan-cta.is-primary:hover {
  background: #143d6d !important;
  border-color: #143d6d !important;
  color: #fff !important;
}

.mcp-plan-help {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.05);
  font-size: 13.5px;
  color: #5d6c80;
  margin-top: 16px;
}

.mcp-plan-help-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f6f9;
  color: #68788c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mcp-plan-help-copy {
  flex: 1 1 auto;
  line-height: 1.45;
  min-width: 0;
}

.mcp-plan-help-link {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
  color: #1f5fa8;
  text-decoration: none;
}

.mcp-plan-help-link:hover {
  color: #143d6d;
  text-decoration: underline;
}

/* Incluidos — grilla profesional (no wrap caótico) */
.mcp-includes {
  margin: 8px 0 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 26, 40, 0.05);
  padding: 26px 28px 22px;
}

.mcp-includes-head {
  margin: 0 0 20px;
  max-width: 36em;
}

.mcp-includes-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #111a24;
  line-height: 1.25;
}

.mcp-includes-lead {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #5d6c80;
  line-height: 1.45;
}

.mcp-includes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}

.mcp-includes-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
}

.mcp-includes-grid > .mcp-includes-item:nth-last-child(-n+3) {
  border-bottom: 0;
}

.mcp-includes.is-collapsed .mcp-includes-item:nth-child(n+10) {
  display: none;
}

.mcp-includes-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #2a7549;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mcp-includes-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #2c3d52;
  font-weight: 500;
}

.mcp-includes-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  width: 100%;
  max-width: 280px;
  appearance: none;
  border: 1.5px solid #e3e8ee;
  background: #fff;
  color: #1f5fa8;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mcp-includes-more:hover {
  border-color: #1f5fa8;
  background: #f5f9fd;
}

@media (max-width: 991px) {
  .mcp-includes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mcp-includes-grid > .mcp-includes-item:nth-last-child(-n+3) {
    border-bottom: 1px solid #f0f3f7;
  }
  .mcp-includes-grid > .mcp-includes-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 575px) {
  .mcp-includes {
    padding: 20px 18px 16px;
  }
  .mcp-includes-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mcp-includes-grid > .mcp-includes-item {
    border-bottom: 1px solid #f0f3f7;
  }
  .mcp-includes-grid > .mcp-includes-item:last-child {
    border-bottom: 0;
  }
  .mcp-plan-help {
    flex-wrap: wrap;
  }
  .mcp-plan-help-link {
    margin-left: 50px;
  }
}

#order-mycartpro .mcp-plans .xc-page-hero {
  display: none;
}

/* Kill legacy includes chrome if present */
#order-mycartpro #product-packages .fc-includes-block {
  display: none;
}

/* Dark — plans step (hx-ds navy) */
html.dark #order-mycartpro .mcp-plans-title,
html.dark #order-mycartpro .mcp-plan-name,
html.dark #order-mycartpro .mcp-plan-price {
  color: #e8edf4;
}
html.dark #order-mycartpro .mcp-plans-lead,
html.dark #order-mycartpro .mcp-cycle-bar-label,
html.dark #order-mycartpro .mcp-plan-help,
html.dark #order-mycartpro .mcp-plan-meta {
  color: #9aa8b8;
}
html.dark #order-mycartpro .mcp-cycle-bar,
html.dark #order-mycartpro .mcp-plan-card,
html.dark #order-mycartpro .mcp-plan-radio,
html.dark #order-mycartpro .mcp-plan-cta,
html.dark #order-mycartpro .mcp-includes,
html.dark #order-mycartpro .mcp-includes-more,
html.dark #order-mycartpro .mcp-modes,
html.dark #order-mycartpro .mcp-summary,
html.dark #order-mycartpro .mcp-summary-card {
  background: #1c212b !important;
  background-color: #1c212b !important;
  border-color: #2a3140 !important;
  color: #e8edf4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.dark #order-mycartpro .mcp-plan-card.is-on,
html.dark #order-mycartpro .mcp-plan-card:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px #4d9ae0, 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.dark #order-mycartpro .mcp-cycle-toggle .is-on {
  background: #1f5fa8 !important;
  color: #fff !important;
}
