/* Mba'apo — Módulo A (Reservas / agenda) */
.mr-card {
  --mr-accent: var(--mbaapo-accent, #1a3a5c);
  --mr-accent-dark: var(--mbaapo-accent-dark, #12283f);
  font-family: inherit;
  color: var(--mbaapo-text, #16202b);
  background: var(--mbaapo-card-bg, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  padding: 28px 26px 30px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.mr-stepbar { display: flex; gap: 6px; margin-bottom: 20px; }
.mr-step { flex: 1; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); }
.mr-step-active, .mr-step-done { background: var(--mr-accent); }
.mr-step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mr-accent); margin-bottom: 6px; }
.mr-h { font-size: 19px; font-weight: 700; margin: 0 0 18px; line-height: 1.3; }
.mr-back { background: none; border: none; padding: 0; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; color: var(--mbaapo-text-light, #8b95a1); cursor: pointer; }
.mr-back:hover { color: var(--mr-accent); }

.mr-grid-servicios { display: grid; gap: 10px; }
.mr-servicio-card {
  text-align: left;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mr-servicio-card:hover { border-color: var(--mr-accent); background: color-mix(in srgb, var(--mr-accent) 6%, white); }
.mr-servicio-nombre { font-weight: 700; font-size: 14.5px; }
.mr-servicio-meta { font-size: 12px; color: var(--mbaapo-text-light, #8b95a1); margin-top: 2px; }

.mr-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mr-cal-label { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.mr-cal-nav { background: #fff; border: 1.5px solid rgba(0, 0, 0, 0.12); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.mr-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.mr-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 700; color: var(--mbaapo-text-light, #8b95a1); margin-bottom: 4px; }
.mr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mr-cal-empty { visibility: hidden; }
.mr-cal-day {
  aspect-ratio: 1;
  border: none;
  background: #f5f4f1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mr-cal-day:hover:not(.mr-cal-disabled) { background: color-mix(in srgb, var(--mr-accent) 15%, white); }
.mr-cal-day.mr-cal-disabled { background: transparent; color: rgba(0, 0, 0, 0.2); cursor: not-allowed; }
.mr-cal-day.mr-cal-selected { background: var(--mr-accent); color: #fff; }

.mr-grid-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.mr-hora-chip {
  padding: 10px 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.mr-hora-chip:hover { border-color: var(--mr-accent); background: color-mix(in srgb, var(--mr-accent) 8%, white); }

.mr-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  background: #fbfbfa;
}
.mr-input:focus { outline: none; border-color: var(--mr-accent); }
textarea.mr-input { resize: vertical; min-height: 64px; }

.mr-resumen { background: var(--mbaapo-result-bg, #f8f7f4); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.mr-resumen-linea { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.mr-resumen-linea:last-child { border-bottom: none; }
.mr-resumen-linea span { color: var(--mbaapo-text-light, #8b95a1); }

.mr-disclaimer { font-size: 12px; color: var(--mbaapo-text-light, #8b95a1); line-height: 1.5; margin-bottom: 16px; }
.mr-empty { font-size: 13.5px; color: var(--mbaapo-text-light, #8b95a1); padding: 10px 0 4px; }

.mr-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mr-accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.mr-cta:hover { background: var(--mr-accent-dark); }

@media (max-width: 480px) {
  .mr-card { padding: 22px 18px 24px; max-width: 100%; }
}
