/* =========================================================
   Rosa Tenue · Agenda en línea
   Estilos de las vistas Agenda.php y Agenda_01.php
   ========================================================= */

.rtc-app {
  --rt-plum: #875A7C;
  --rt-plum-dark: #6E4664;
  --rt-mauve: #8E5F80;
  --rt-pink: #F6C1CC;
  --rt-pink-soft: #FBE3E8;
  --rt-blush: #FDF5F6;
  --rt-rose: #EC7D8E;
  --rt-ink: #3B2A35;
  --rt-muted: #8A7882;
  --rt-line: #EEDFE5;
  --rt-white: #FFFFFF;
  --rt-ok: #4E9A6B;
  --rt-error: #C2415A;
  --rt-shadow: 0 10px 30px rgba(135, 90, 124, .12);
  --rt-shadow-sm: 0 2px 10px rgba(135, 90, 124, .10);
  --rt-radius: 18px;
  --rt-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --rt-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--rt-blush);
  color: var(--rt-ink);
  font-family: var(--rt-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
.rtc-app *, .rtc-app *::before, .rtc-app *::after { box-sizing: border-box; }
.rtc-app h1, .rtc-app h2, .rtc-app h3, .rtc-app h4, .rtc-app p { margin: 0; }
.rtc-app h1, .rtc-app h2, .rtc-app h3 { font-family: var(--rt-serif); font-weight: 600; color: var(--rt-ink); line-height: 1.15; }
.rtc-app a { color: var(--rt-plum); }
.rtc-app button { font-family: inherit; }
.rtc-app img { max-width: 100%; }
.rtc-hidden { display: none !important; }
.rtc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.rtc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--rt-plum); color: #fff !important; font-size: 15px; font-weight: 600;
  letter-spacing: .02em; text-decoration: none !important; cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s, opacity .2s;
  box-shadow: 0 6px 16px rgba(135, 90, 124, .28);
}
.rtc-btn:hover { background: var(--rt-plum-dark); }
.rtc-btn:active { transform: scale(.98); }
.rtc-btn:focus-visible { outline: 3px solid var(--rt-pink); outline-offset: 2px; }
.rtc-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.rtc-btn--block { width: 100%; }
.rtc-btn--ghost { background: transparent; color: var(--rt-plum) !important; box-shadow: none; border: 1.5px solid var(--rt-line); }
.rtc-btn--ghost:hover { background: var(--rt-pink-soft); }
.rtc-btn--wa { background: #25A35A; box-shadow: 0 6px 16px rgba(37, 163, 90, .25); }
.rtc-btn--wa:hover { background: #1E8A4C; }
.rtc-link { background: none; border: 0; padding: 0; color: var(--rt-plum); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rtc-icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--rt-plum);
  font-size: 18px; cursor: pointer; box-shadow: var(--rt-shadow-sm); flex-shrink: 0;
}
.rtc-icon-btn:hover { background: #fff; }
.rtc-icon-btn--wa { color: #25A35A; }

/* =========================================================
   VISTA 1 · Sucursales
   ========================================================= */
.rtc-hero {
  position: relative; height: 34vh; min-height: 230px; max-height: 360px;
  background: #F3D9DE url('../uploads/Encabezados/Header.jpg') center 40% / cover no-repeat;
}
.rtc-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(135,90,124,.35) 0%, rgba(135,90,124,.55) 100%);
}
.rtc-hero__logo {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 1;
  width: min(68vw, 340px); filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}
.rtc-sheet {
  position: relative; z-index: 2; margin: -36px auto 0; max-width: 1040px;
  background: var(--rt-blush); border-radius: 32px 32px 0 0; padding: 32px 16px 40px;
}
.rtc-sheet__head { text-align: center; margin-bottom: 24px; }
.rtc-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--rt-mauve); }
.rtc-sheet__head h1 { font-size: 34px; margin-top: 6px; }
.rtc-sheet__head p { color: var(--rt-muted); margin-top: 6px; }

.rtc-branches { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rtc-branch {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--rt-radius);
  overflow: hidden; box-shadow: var(--rt-shadow); text-decoration: none !important; color: inherit !important;
  border: 2px solid transparent; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rtc-branch:hover, .rtc-branch:focus-visible { transform: translateY(-3px); border-color: var(--rt-pink); outline: none; }
.rtc-branch__photo { position: relative; height: 150px; background: var(--rt-pink-soft) center / cover no-repeat; }
.rtc-branch__tag {
  position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--rt-plum);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.rtc-branch__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rtc-branch__body h2 { font-size: 28px; }
.rtc-branch__ref { font-weight: 600; font-size: 13px; color: var(--rt-mauve); }
.rtc-branch__addr { display: flex; gap: 8px; font-size: 13px; color: var(--rt-muted); }
.rtc-branch__addr .rt-location { color: var(--rt-rose); font-size: 16px; margin-top: 1px; }
.rtc-branch__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.rtc-branch__map { font-size: 13px; font-weight: 600; color: var(--rt-plum); text-decoration: underline; text-underline-offset: 3px; }
.rtc-branch .rtc-btn { pointer-events: none; }

.rtc-app .rtc-note {
  margin: 28px auto 0; max-width: 560px; text-align: center; font-size: 13px; color: var(--rt-muted);
}
.rtc-note strong { color: var(--rt-plum); }

.rtc-toast {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border-left: 4px solid var(--rt-ok);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--rt-shadow-sm); margin-bottom: 20px;
}
.rtc-toast__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--rt-ok); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rtc-toast strong { display: block; }
.rtc-toast span { font-size: 13px; color: var(--rt-muted); }

/* =========================================================
   VISTA 2 · Asistente de cita
   ========================================================= */
.rtc-top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, var(--rt-pink) 0%, #F1B3C2 100%);
  box-shadow: 0 4px 18px rgba(135, 90, 124, .18);
}
.rtc-top__bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.rtc-top__brand { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rtc-top__brand img { height: 40px; width: auto; }
.rtc-top__suc { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rt-plum-dark); }

.rtc-steps { max-width: 1180px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 6px; }
.rtc-steps__item { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rtc-steps__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.55); overflow: hidden; }
.rtc-steps__bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--rt-plum); transition: width .35s; }
.rtc-steps__item.is-done .rtc-steps__bar::after, .rtc-steps__item.is-current .rtc-steps__bar::after { width: 100%; }
.rtc-steps__label { font-size: 10.5px; font-weight: 600; color: rgba(110, 70, 100, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.rtc-steps__item.is-current .rtc-steps__label { color: var(--rt-plum-dark); }

/* Contador de 5 minutos */
.rtc-timer { background: var(--rt-plum); color: #fff; }
.rtc-timer__in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; }
.rtc-timer__in [class^="rt-"] { font-size: 16px; }
.rtc-timer__in strong { font-size: 17px; font-weight: 700; min-width: 44px; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 10px; text-align: center; }
.rtc-timer__track { height: 3px; background: rgba(255,255,255,.25); }
.rtc-timer__bar { height: 100%; width: 100%; background: var(--rt-pink); transition: width 1s linear; }
.rtc-timer.is-low { background: var(--rt-error); }
.rtc-timer.is-low strong { animation: rtcBlink 1s steps(2) infinite; }
@keyframes rtcBlink { 50% { opacity: .55; } }
.rtc-layout { max-width: 1180px; margin: 0 auto; padding: 20px 16px 140px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.rtc-layout > main, .rtc-layout > aside { min-width: 0; }
.rtc-layout.is-wide > main { width: 100%; max-width: 680px; margin: 0 auto; }
.rtc-panel { display: none; animation: rtcIn .35s ease; }
.rtc-panel.is-active { display: block; }
@keyframes rtcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rtc-panel__head { margin-bottom: 18px; }
.rtc-panel__head h1 { font-size: 30px; }
.rtc-panel__head p { color: var(--rt-muted); font-size: 14px; margin-top: 4px; }

/* Categorías */
.rtc-cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rtc-cats::-webkit-scrollbar { display: none; }
.rtc-cat {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px;
  border-radius: 18px; border: 1.5px solid var(--rt-line); background: #fff; cursor: pointer;
  color: var(--rt-muted); transition: all .2s;
}
.rtc-cat__icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--rt-blush); color: var(--rt-mauve); transition: all .2s;
}
.rtc-cat__name { font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.rtc-cat:hover { border-color: var(--rt-pink); }
.rtc-cat.is-active { border-color: var(--rt-plum); color: var(--rt-plum); box-shadow: var(--rt-shadow-sm); }
.rtc-cat.is-active .rtc-cat__icon { background: var(--rt-plum); color: #fff; }
.rtc-cat__count {
  position: absolute; top: 6px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--rt-rose); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}

/* Servicios */
.rtc-services { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rtc-services__title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rt-mauve); }
.rtc-services__title:not(:first-child) { margin-top: 14px; }
.rtc-services__title [class^="rt-"] { color: var(--rt-rose); font-size: 15px; }
.rtc-service.is-fav { border-color: var(--rt-pink); }
.rtc-service {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; background: #fff; border: 1.5px solid var(--rt-line); border-radius: 16px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; color: var(--rt-ink);
}
.rtc-service:hover { border-color: var(--rt-pink); }
.rtc-service:focus-visible { outline: 3px solid var(--rt-pink); outline-offset: 2px; }
.rtc-service__check {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rt-line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; transition: all .2s;
}
.rtc-service__info { flex: 1; min-width: 0; }
.rtc-service__name { display: block; font-weight: 600; font-size: 14px; }
.rtc-service__meta { display: flex; align-items: center; gap: 6px; color: var(--rt-muted); font-size: 12.5px; margin-top: 3px; }
.rtc-service__price { font-weight: 700; font-size: 15px; color: var(--rt-plum); white-space: nowrap; }
.rtc-service.is-selected { border-color: var(--rt-plum); background: #FFF9FA; box-shadow: var(--rt-shadow-sm); }
.rtc-service.is-selected .rtc-service__check { background: var(--rt-plum); border-color: var(--rt-plum); color: #fff; }
.rtc-empty { text-align: center; color: var(--rt-muted); padding: 36px 16px; background: #fff; border-radius: 16px; border: 1.5px dashed var(--rt-line); }
.rtc-empty .rtc-btn { margin-top: 14px; }
.rtc-loading { text-align: center; padding: 36px; color: var(--rt-muted); }
.rtc-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--rt-line); border-top-color: var(--rt-plum); animation: rtcSpin .8s linear infinite; margin: 0 auto 10px; }
@keyframes rtcSpin { to { transform: rotate(360deg); } }

/* Fecha */
.rtc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rtc-quick__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px;
  background: #fff; border: 1.5px solid var(--rt-line); border-radius: 16px; cursor: pointer; color: var(--rt-ink); text-align: left;
}
.rtc-quick__btn strong { font-size: 15px; }
.rtc-quick__btn span { font-size: 12.5px; color: var(--rt-muted); }
.rtc-quick__btn.is-active { border-color: var(--rt-plum); background: var(--rt-plum); color: #fff; }
.rtc-quick__btn.is-active span { color: rgba(255,255,255,.85); }
.rtc-quick__btn[disabled] { opacity: .4; cursor: not-allowed; }

.rtc-cal { background: #fff; border-radius: var(--rt-radius); padding: 16px; box-shadow: var(--rt-shadow-sm); max-width: 460px; }
.rtc-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rtc-cal__title { font-family: var(--rt-serif); font-size: 22px; font-weight: 600; text-transform: capitalize; }
.rtc-cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--rt-line); background: #fff; color: var(--rt-plum); cursor: pointer; font-size: 16px; }
.rtc-cal__nav[disabled] { opacity: .3; cursor: not-allowed; }
.rtc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rtc-cal__dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--rt-muted); padding: 6px 0; text-transform: uppercase; }
.rtc-cal__day {
  aspect-ratio: 1 / 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--rt-ink);
  font-size: 14px; font-weight: 500; cursor: pointer; position: relative; transition: background .15s;
}
.rtc-cal__day:hover:not([disabled]) { background: var(--rt-pink-soft); }
.rtc-cal__day[disabled] { color: #CFC3C9; cursor: not-allowed; }
.rtc-cal__day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--rt-rose); }
.rtc-cal__day.is-selected { background: var(--rt-plum); color: #fff; font-weight: 700; }
.rtc-cal__day.is-selected::after { background: #fff; }
.rtc-app .rtc-cal__legend { font-size: 12px; color: var(--rt-muted); margin-top: 10px; }

/* Horarios */
.rtc-dayline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--rt-shadow-sm); }
.rtc-dayline strong { font-size: 15px; }
.rtc-dayline span { color: var(--rt-muted); font-size: 13px; }
.rtc-slotgroup { margin-bottom: 18px; }
.rtc-slotgroup__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--rt-mauve); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .12em; }
.rtc-slotgroup__title [class^="rt-"] { font-size: 20px; }
.rtc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rtc-slot {
  display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px;
  border: 1.5px solid var(--rt-line); background: #fff; color: var(--rt-ink); cursor: pointer; transition: all .15s;
}
.rtc-slot strong { font-size: 16px; }
.rtc-slot span { font-size: 11px; color: var(--rt-muted); }
.rtc-slot:hover { border-color: var(--rt-pink); }
.rtc-slot.is-selected { background: var(--rt-plum); border-color: var(--rt-plum); color: #fff; box-shadow: var(--rt-shadow-sm); }
.rtc-slot.is-selected span { color: rgba(255,255,255,.85); }

/* Formulario */
.rtc-form { background: #fff; border-radius: var(--rt-radius); padding: 20px; box-shadow: var(--rt-shadow-sm); display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.rtc-field { display: flex; flex-direction: column; gap: 6px; }
.rtc-app .rtc-field label { display: block; margin: 0; font-size: 13px; font-weight: 600; color: var(--rt-ink); }
.rtc-field__wrap { position: relative; display: flex; align-items: center; }
.rtc-field__wrap [class^="rt-"] { position: absolute; left: 16px; font-size: 18px; color: var(--rt-mauve); pointer-events: none; }
.rtc-app .rtc-input, .rtc-app .rtc-textarea {
  width: 100%; height: 52px; margin: 0; padding: 0 16px 0 46px; border: 1.5px solid var(--rt-line); border-radius: 14px;
  background: var(--rt-blush); color: var(--rt-ink); font-family: var(--rt-sans); font-size: 16px; box-shadow: none;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.rtc-app .rtc-textarea { height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.rtc-app .rtc-input:focus, .rtc-app .rtc-textarea:focus { outline: none; border-color: var(--rt-plum); background: #fff; box-shadow: 0 0 0 4px rgba(246, 193, 204, .45); }
.rtc-field.has-error .rtc-input { border-color: var(--rt-error); }
.rtc-field__help { font-size: 12px; color: var(--rt-muted); display: flex; justify-content: space-between; }
.rtc-field__error { font-size: 12px; color: var(--rt-error); display: none; }
.rtc-field.has-error .rtc-field__error { display: block; }

/* Resumen (ticket) */
.rtc-ticket { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--rt-shadow); max-width: 680px; }
.rtc-ticket__hero { position: relative; padding: 26px 22px 22px; color: #fff; background: var(--rt-plum) center / cover no-repeat; }
.rtc-ticket__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(135,90,124,.92), rgba(236,125,142,.80)); }
.rtc-ticket__hero > * { position: relative; }
.rtc-ticket__hero .rtc-eyebrow { color: rgba(255,255,255,.85); }
.rtc-ticket__date { font-family: var(--rt-serif); font-size: 34px; font-weight: 600; line-height: 1.05; margin-top: 8px; color: #fff; }
.rtc-ticket__time { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; }
.rtc-ticket__cut { position: relative; height: 0; border-top: 2px dashed var(--rt-line); margin: 0 22px; }
.rtc-ticket__cut::before, .rtc-ticket__cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--rt-blush); }
.rtc-ticket__cut::before { left: -34px; } .rtc-ticket__cut::after { right: -34px; }
.rtc-ticket__body { padding: 8px 22px 22px; }
.rtc-ticket__row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rt-line); }
.rtc-ticket__row:last-child { border-bottom: 0; }
.rtc-ticket__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--rt-blush); color: var(--rt-mauve); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.rtc-ticket__content { flex: 1; min-width: 0; }
.rtc-ticket__label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rt-muted); margin-bottom: 4px; }
.rtc-ticket__label em.rtc-tag { font-style: normal; letter-spacing: .02em; text-transform: none; font-size: 11px; font-weight: 600; color: var(--rt-plum); background: var(--rt-pink-soft); border-radius: 999px; padding: 2px 9px; margin-left: 6px; white-space: nowrap; }
.rtc-ticket__value { font-weight: 600; font-size: 15px; word-wrap: break-word; }
.rtc-ticket__sub { font-size: 13px; color: var(--rt-muted); }
.rtc-lines { list-style: none; margin: 4px 0 0; padding: 0; }
.rtc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.rtc-lines li small { color: var(--rt-muted); margin-left: 6px; }
.rtc-lines__total { border-top: 1px solid var(--rt-line); margin-top: 6px; padding-top: 10px !important; font-weight: 700; color: var(--rt-plum); }
.rtc-confirm { margin-top: 18px; max-width: 680px; }
.rtc-confirm p { font-size: 12.5px; color: var(--rt-muted); text-align: center; margin-top: 10px; }
.rtc-alert { background: #FDECEF; color: var(--rt-error); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }

/* Éxito */
.rtc-done { text-align: center; max-width: 560px; margin: 10px auto 0; }
.rtc-done__check { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 50%; background: var(--rt-ok); color: #fff; font-size: 42px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(78,154,107,.3); animation: rtcPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes rtcPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rtc-done h1 { font-size: 32px; }
.rtc-done > p { color: var(--rt-muted); margin-top: 8px; }
.rtc-folio { display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px; background: var(--rt-pink-soft); color: var(--rt-plum); font-weight: 700; letter-spacing: .08em; }
.rtc-done .rtc-ticket { margin: 22px auto 0; text-align: left; }
.rtc-app .rtc-done__thanks { font-family: var(--rt-serif); font-size: 22px; font-weight: 600; color: var(--rt-plum); margin-top: 10px; }
.rtc-app .rtc-folio__note { font-size: 13px; color: var(--rt-muted); margin-top: 8px; }
.rtc-done__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Resumen lateral (escritorio) y barra inferior (móvil/tableta) */
.rtc-aside { display: none; }
.rtc-cart { background: #fff; border-radius: var(--rt-radius); box-shadow: var(--rt-shadow); padding: 20px; }
.rtc-cart h3 { font-size: 24px; margin-bottom: 4px; }
.rtc-app .rtc-cart__suc { font-size: 12px; color: var(--rt-muted); margin-bottom: 14px; }
.rtc-cart__empty { font-size: 13px; color: var(--rt-muted); padding: 10px 0; }
.rtc-cart__list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.rtc-cart__list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rt-line); font-size: 13.5px; }
.rtc-cart__list li div { flex: 1; min-width: 0; }
.rtc-cart__list li b { display: block; font-weight: 600; }
.rtc-cart__list li small { color: var(--rt-muted); }
.rtc-cart__remove { border: 0; background: var(--rt-blush); color: var(--rt-muted); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex-shrink: 0; font-size: 14px; line-height: 1; }
.rtc-cart__remove:hover { background: var(--rt-pink); color: #fff; }
.rtc-cart__meta { display: grid; gap: 8px; margin: 14px 0; font-size: 13.5px; }
.rtc-cart__meta div { display: flex; justify-content: space-between; gap: 10px; }
.rtc-cart__meta span { color: var(--rt-muted); }
.rtc-cart__meta strong { text-align: right; }
.rtc-cart__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rt-line); padding-top: 12px; margin-bottom: 14px; }
.rtc-cart__total strong { font-size: 22px; color: var(--rt-plum); }

.rtc-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff;
  border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgba(135, 90, 124, .18);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.rtc-dock__inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.rtc-dock__sum { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--rt-ink); }
.rtc-dock__sum strong { display: block; font-size: 15px; }
.rtc-dock__sum span { display: block; font-size: 12px; color: var(--rt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtc-dock__sum span.rtc-dock__see { color: var(--rt-plum); font-weight: 600; }
.rtc-dock .rtc-btn { min-width: 150px; }
.rtc-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; max-width: 720px; margin: 0 auto; scrollbar-width: none; }
.rtc-chips::-webkit-scrollbar { display: none; }
.rtc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--rt-pink-soft); color: var(--rt-plum-dark); font-size: 12px; font-weight: 600; border: 0; cursor: pointer; }
.rtc-chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.8); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

/* Hoja inferior con el detalle (móvil) */
.rtc-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(59, 42, 53, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.rtc-backdrop.is-open { opacity: 1; pointer-events: auto; }
.rtc-bottomsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 80vh; overflow-y: auto; transform: translateY(105%); transition: transform .3s ease; padding: 0 0 env(safe-area-inset-bottom); }
.rtc-bottomsheet.is-open { transform: none; }
.rtc-bottomsheet .rtc-cart { border-radius: 24px 24px 0 0; max-width: 720px; margin: 0 auto; }
.rtc-bottomsheet__grip { width: 44px; height: 5px; border-radius: 5px; background: var(--rt-line); margin: 0 auto 14px; }

/* Ventana "¿Tienes algo que retirar?" */
.rtc-modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(59, 42, 53, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.rtc-modal-bg.is-open { opacity: 1; pointer-events: auto; }
.rtc-modal { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; transform: translateY(105%); transition: transform .3s ease; max-height: 92vh; overflow-y: auto; }
.rtc-modal.is-open { transform: none; }
.rtc-modal__box { position: relative; background: #fff; border-radius: 26px 26px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; box-shadow: 0 -10px 30px rgba(135, 90, 124, .2); }
.rtc-modal__box h2 { font-size: 28px; padding-right: 40px; }
.rtc-app .rtc-modal__sub { color: var(--rt-muted); font-size: 14px; margin-top: 6px; }
.rtc-app .rtc-modal__label { font-weight: 700; font-size: 14px; margin: 18px 0 10px; }
.rtc-modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rt-blush); color: var(--rt-muted); font-size: 20px; cursor: pointer; }
.rtc-modal__sep { border: 0; border-top: 1px solid var(--rt-line); margin: 16px 0; }
.rtc-app .rtc-opt { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; margin: 0 0 10px; border: 1.5px solid var(--rt-line); border-radius: 16px; cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s; }
.rtc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rtc-opt__box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--rt-line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; margin-top: 1px; transition: all .2s; }
.rtc-opt--radio .rtc-opt__box { border-radius: 50%; }
.rtc-opt__txt { display: flex; flex-direction: column; gap: 2px; }
.rtc-opt__txt b { font-size: 15px; font-weight: 600; color: var(--rt-ink); }
.rtc-opt__txt small { font-size: 12.5px; color: var(--rt-muted); }
.rtc-opt:has(input:checked) { border-color: var(--rt-plum); background: #FFF9FA; }
.rtc-opt input:checked + .rtc-opt__box { background: var(--rt-plum); border-color: var(--rt-plum); color: #fff; }
.rtc-opt--radio input:checked + .rtc-opt__box { box-shadow: inset 0 0 0 5px #fff; }
.rtc-opt input:focus-visible + .rtc-opt__box { outline: 3px solid var(--rt-pink); outline-offset: 2px; }
.rtc-modal .rtc-btn { margin-top: 8px; }
@media (min-width: 640px) {
  .rtc-modal { top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, calc(100% - 32px)); transform: translate(-50%, -45%); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
  .rtc-modal.is-open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .rtc-modal__box { border-radius: 24px; padding: 30px 28px 26px; }
}

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .rtc-branches { grid-template-columns: 1fr 1fr; gap: 22px; }
  .rtc-branch__photo { height: 190px; }
  .rtc-sheet { padding: 40px 28px 48px; }
  .rtc-sheet__head h1 { font-size: 42px; }
  .rtc-services { grid-template-columns: 1fr 1fr; }
  .rtc-cats { flex-wrap: wrap; overflow: visible; margin: 0 0 6px; padding: 4px 0 14px; }
  .rtc-cat { width: 104px; }
  .rtc-quick { max-width: 460px; }
  .rtc-panel__head h1 { font-size: 36px; }
  .rtc-done__actions { flex-direction: row; justify-content: center; }
  .rtc-top__brand img { height: 48px; }
}
@media (min-width: 1000px) {
  .rtc-hero { height: 40vh; max-height: 420px; }
  .rtc-layout { grid-template-columns: minmax(0, 1fr) 340px; padding-bottom: 60px; gap: 32px; }
  .rtc-layout.is-wide { grid-template-columns: 1fr; }
  .rtc-aside { display: block; position: sticky; top: 118px; }
  .rtc-layout.is-wide .rtc-aside { display: none; }
  .rtc-dock { display: none; }
  .rtc-steps__label { font-size: 12px; }
  .rtc-services { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rtc-app *, .rtc-app *::before, .rtc-app *::after { animation: none !important; transition: none !important; }
}
