/* ============================================================
 * smilecitas — Mis citas
 * Stacks on top of booking.css; uses the same Smile tokens defined
 * inside the .smc scope, so this file only needs the .mc-* layer.
 * ============================================================ */

.smc--account .smc__top { display: flex; align-items: center; gap: 14px; }
.mc__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--ink);
}

.mc__empty { max-width: 520px; margin: 32px auto; text-align: center; }
.smc__primary--link {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 0 26px; text-decoration: none;
}

.mc__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  margin: 0 auto 18px;
  max-width: 580px;
}
.mc__card.is-inactive { opacity: .65; }
.mc__card-head { margin-bottom: 14px; }
.mc__badge {
  display: inline-block;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.mc__badge--confirmada { background: var(--okbg); color: var(--ok); }
.mc__badge--reprogramada { background: #F0EAE2; color: var(--champagne); }
.mc__badge--pendiente { background: #F0EAE2; color: var(--ink-2); }
.mc__badge--cancelada { background: #FBEAE8; color: var(--err); }
.mc__badge--completada { background: var(--okbg); color: var(--ok); }
.mc__badge--no_asistio { background: #FBEAE8; color: var(--err); }

.mc__card-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}
.mc__card-sub {
  margin: 0; font-size: 13px; color: var(--ink-2);
}

.mc__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 8px 0 18px;
}
.mc__meta dt {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-3);
  margin: 12px 0 2px;
}
.mc__meta dt:first-child { margin-top: 0; }
.mc__meta dd {
  margin: 0; font-size: 14px; color: var(--ink);
}

.mc__actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mc__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  font: 600 12px var(--f-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.mc__btn:hover { border-color: var(--champagne-soft, #CDAE78); color: var(--burgundy); }
.mc__btn--ghost { background: #fff; }
.mc__btn--danger { color: var(--err); border-color: var(--err); }
.mc__btn--danger:hover { background: var(--err); color: #fff; }

.mc__footer {
  text-align: center; margin: 18px 0 32px;
}

/* === Modals === */
.mc__modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent;
  transition: opacity .25s var(--ease);
}
.mc__modal[hidden] { display: none !important; }
.mc__modal-scrim {
  position: absolute; inset: 0;
  background: rgba(28, 22, 20, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mc__modal-sheet {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-height: 88vh;
  border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.45);
  animation: mc-sheet-in .3s var(--ease);
}
@keyframes mc-sheet-in {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.mc__modal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.mc__modal-top h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
}
.mc__modal-x {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mc__modal-x:hover { color: var(--burgundy); }
.mc__modal-body { padding: 18px 22px; overflow-y: auto; }
.mc__modal-foot {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
.mc__modal-foot .mc__btn,
.mc__modal-foot .smc__primary { width: 100%; }

@media (min-width: 760px) {
  .mc__modal { align-items: center; padding: 24px; }
  .mc__modal-sheet {
    width: min(640px, 92vw);
    max-height: 84vh;
    border-radius: 18px;
    animation: mc-sheet-pop .25s var(--ease);
  }
  @keyframes mc-sheet-pop {
    from { transform: scale(.97); opacity: .8; }
    to   { transform: none; opacity: 1; }
  }
  .mc__modal-sheet--sm { width: min(440px, 92vw); }
  .mc__modal-foot { display: flex; justify-content: flex-end; }
  .mc__modal-foot .mc__btn,
  .mc__modal-foot .smc__primary { width: auto; }
}
