/* ═══════════════════════════════════════════
   MESENIA — Reservas CSS
   ═══════════════════════════════════════════ */

:root {
  --primary:       #3ecfc8;
  --primary-mid:   #2db8b1;
  --primary-dark:  #1c2020;
  --primary-light: #e0faf8;
  --primary-pale:  #f0fdfc;
  --bg:            #f5fbfb;
  --white:         #ffffff;
  --text:          #1c2020;
  --text-mid:      #3a4545;
  --text-light:    #7a9090;
  --success:       #2e9e6b;
  --danger:        #d44f4f;
  --warning:       #e8960c;
  --pod:   #3ecfc8;
  --fis:   #2e9e6b;
  --est:   #8b4fa0;
  --nut:   #d47e10;
  --psi:   #4a60a0;
  --radius:        20px;
  --radius-sm:     12px;
  --radius-pill:   50px;
  --shadow:        0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 40px rgba(0,0,0,0.10);
  --transition:    0.26s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
input, textarea, button { font-family: inherit; }

/* ═══ HEADER ═══ */
#resHeader {
  position: sticky;
  top: 0; z-index: 200;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.res-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark { width: 30px; height: 30px; color: var(--primary); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.logo-sub { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}
.back-link:hover { color: var(--primary); background: rgba(255,255,255,0.06); }

/* ═══ MAIN ═══ */
.res-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ═══ WU STRIP ═══ */
.wu-strip {
  background: var(--white);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62,207,200,0.12);
}
.wu-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wu-title i { color: var(--primary); }
.wu-fields {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}
.wu-fields input {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(62,207,200,0.22);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}
.wu-fields input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.wu-fields input.error { border-color: var(--danger); }
.wu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.wu-hint { font-size: 0.75rem; color: var(--text-light); }
.btn-wu {
  padding: 0.55rem 1.4rem;
  background: var(--primary-dark);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-wu:hover { background: var(--primary); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(62,207,200,0.3); }
#wuSummary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.87rem;
  color: var(--text-mid);
}
#wuSummary i { color: var(--success); font-size: 1rem; }
#wuChange {
  margin-left: auto;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  transition: var(--transition);
}
#wuChange:hover { border-color: var(--primary); color: var(--primary); }

/* ═══ LAYOUT ═══ */
.res-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ═══ SERVICE FILTER ═══ */
.service-filter {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62,207,200,0.10);
}
.service-filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.7rem;
}
.service-filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.spill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: none;
  color: var(--text-mid);
  transition: var(--transition);
}
.spill:hover, .spill.active { border-color: transparent; }
.spill.active { background: var(--primary); color: var(--primary-dark); }
.spill--pod:hover, .spill--pod.active { background: var(--pod); border-color: var(--pod); }
.spill--fis:hover, .spill--fis.active { background: var(--fis); border-color: var(--fis); }
.spill--est:hover, .spill--est.active { background: var(--est); border-color: var(--est); }
.spill--nut:hover, .spill--nut.active { background: var(--nut); border-color: var(--nut); }
.spill--psi:hover, .spill--psi.active { background: var(--psi); border-color: var(--psi); }

/* ═══ CALENDARIO ═══ */
.cal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62,207,200,0.10);
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(62,207,200,0.22);
  background: none;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
}
.cal-nav button:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
#calTitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
}
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.4rem;
}
.cal-days-header span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 0.2rem 0;
  text-transform: uppercase;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: default;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}
.cal-day.today { font-weight: 700; border: 2px solid var(--primary-mid); color: var(--primary); }
.cal-day.available {
  color: var(--text);
  background: var(--primary-pale);
  cursor: pointer;
  font-weight: 600;
}
.cal-day.available:hover { background: var(--primary-light); }
.cal-day.available.selected { background: var(--primary); color: var(--white); }
.cal-day.available.selected.today { border-color: var(--white); }
.cal-day.has-mine::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  background: var(--success);
  border-radius: 50%;
}
.cal-day.has-mine.selected::after { background: var(--white); }
.cal-day.past { color: var(--text-light); opacity: 0.4; }
.cal-day.empty { visibility: hidden; }

.cal-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  flex-wrap: wrap;
}
.leg-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--text-light); }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; }
.leg-avail { background: var(--primary); }
.leg-mine { background: var(--success); }
.leg-closed { background: rgba(0,0,0,0.12); }

/* ═══ SESIONES ═══ */
.sessions-empty {
  background: var(--white);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62,207,200,0.10);
  color: var(--text-light);
}
.sessions-empty i { font-size: 3rem; margin-bottom: 1rem; color: var(--primary-light); }
.sessions-empty p { font-size: 0.9rem; line-height: 1.6; }
.sessions-date-bar {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

/* ── Service block header ── */
.service-block-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 1rem 0 0.6rem;
  color: var(--white);
}
.service-block-header:first-child { margin-top: 0; }
.service-block-header.sh--pod { background: var(--pod); }
.service-block-header.sh--fis { background: var(--fis); }
.service-block-header.sh--est { background: var(--est); }
.service-block-header.sh--nut { background: var(--nut); }
.service-block-header.sh--psi { background: var(--psi); }
.service-block-header em { font-style: normal; opacity: 0.8; font-size: 0.78rem; font-weight: 500; margin-left: auto; }

/* ── Session card ── */
.session-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid rgba(62,207,200,0.12);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.session-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.session-card.card--fis::before { background: var(--fis); }
.session-card.card--est::before { background: var(--est); }
.session-card.card--nut::before { background: var(--nut); }
.session-card.card--psi::before { background: var(--psi); }
.session-card.card-full { opacity: 0.7; }
.session-card:hover { box-shadow: var(--shadow); transform: translateX(2px); }

.mine-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--success);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.session-time {
  flex-shrink: 0;
  text-align: center;
  min-width: 56px;
}
.time-val { font-size: 1.1rem; font-weight: 700; color: var(--text); display: block; }
.time-dur { font-size: 0.68rem; color: var(--text-light); }
.session-info { flex: 1; min-width: 0; }
.session-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.session-specialist { font-size: 0.78rem; color: var(--text-light); margin-top: 0.1rem; }
.session-specialist i { margin-right: 0.3rem; }
.session-spots { font-size: 0.78rem; font-weight: 600; margin-top: 0.3rem; }
.spots-free { color: var(--success); }
.spots-almost { color: var(--warning); }
.spots-full { color: var(--danger); }
.spots-bar { height: 4px; background: rgba(0,0,0,0.06); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.spots-bar-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.fill-free { background: var(--success); }
.fill-almost { background: var(--warning); }
.fill-full { background: var(--danger); }
.session-actions { flex-shrink: 0; }

/* Buttons inside cards */
.btn-book {
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-book:hover { background: var(--primary-mid); transform: translateY(-1px); }
.btn-book.book--fis { background: var(--fis); }
.btn-book.book--fis:hover { filter: brightness(1.1); }
.btn-book.book--est { background: var(--est); }
.btn-book.book--est:hover { filter: brightness(1.1); }
.btn-book.book--nut { background: var(--nut); }
.btn-book.book--nut:hover { filter: brightness(1.1); }
.btn-book.book--psi { background: var(--psi); }
.btn-book.book--psi:hover { filter: brightness(1.1); }
.btn-cancel-own {
  padding: 0.4rem 0.9rem;
  background: none;
  border: 1.5px solid rgba(212,79,79,0.4);
  border-radius: var(--radius-pill);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cancel-own:hover { background: var(--danger); color: var(--white); }
.btn-espera {
  padding: 0.4rem 0.9rem;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: var(--radius-pill);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-espera:hover { border-color: var(--warning); color: var(--warning); }
.btn-en-espera {
  padding: 0.4rem 0.9rem;
  background: rgba(232,150,12,0.1);
  border: 1.5px solid var(--warning);
  border-radius: var(--radius-pill);
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.btn-en-espera:hover { background: var(--warning); color: var(--white); }

/* ═══ MODALS ═══ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,41,56,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: modal-in 0.22s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal--sm { max-width: 380px; }
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.modal-icon--primary { background: var(--primary-light); color: var(--primary); }
.modal-icon--success { background: rgba(46,158,107,0.12); color: var(--success); }
.modal-icon--danger  { background: rgba(212,79,79,0.10);  color: var(--danger); }
.modal-icon--warning { background: rgba(232,150,12,0.10); color: var(--warning); }
.modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.modal-desc { font-size: 0.87rem; color: var(--text-mid); margin-bottom: 1.2rem; line-height: 1.5; }
.modal-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.modal-fields input, .modal-fields textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(62,207,200,0.22);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  resize: vertical;
}
.modal-fields input:focus, .modal-fields textarea:focus { outline: none; border-color: var(--primary); background: var(--white); }
.modal-fields input.error { border-color: var(--danger); }
.quick-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(46,158,107,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}
.quick-info i { color: var(--success); }
.modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-modal-confirm {
  padding: 0.8rem;
  background: var(--primary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-modal-confirm:hover { background: var(--primary-mid); }
.btn-modal-danger {
  padding: 0.8rem;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-danger:hover { filter: brightness(1.1); }
.btn-modal-warning {
  padding: 0.8rem;
  background: var(--warning);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-warning:hover { filter: brightness(1.1); }
.btn-modal-cancel {
  padding: 0.8rem;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-cancel:hover { background: var(--bg); }
.confirm-detail {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: calc(100vw - 3rem);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE ═══ */

/* Tablet: calendario y filtro en columnas, citas debajo */
@media (max-width: 900px) {
  .res-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .res-left {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
  }
  .service-filter { margin-bottom: 0; }
}

/* Móvil grande */
@media (max-width: 700px) {
  .res-main { padding: 0 0.85rem 3rem; }

  /* wu-strip: campos apilados */
  .wu-strip { padding: 1rem; margin: 0.85rem 0; border-radius: var(--radius-sm); }
  .wu-fields {
    flex-direction: column;
    gap: 0.5rem;
  }
  .wu-fields input {
    min-width: 0;
    width: 100%;
    font-size: 1rem; /* evita zoom automático en iOS */
  }
  .wu-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.6rem;
  }
  .btn-wu { width: 100%; justify-content: center; font-size: 0.9rem; padding: 0.7rem 1rem; }
  .wu-hint { text-align: center; }

  /* wuSummary en columna */
  #wuSummary { flex-wrap: wrap; gap: 0.5rem; }
  #wuSummary span { flex: 1; min-width: 0; font-size: 0.82rem; }
  #wuChange { margin-left: 0; }

  /* res-left: apilado en móvil */
  .res-left { grid-template-columns: 1fr; }
  .service-filter { margin-bottom: 0; }

  /* calendario más compacto */
  .cal-card { padding: 1rem; }
  .cal-day { font-size: 0.8rem; border-radius: 8px; }

  /* sesiones */
  .sessions-date-bar { font-size: 0.92rem; }
  .service-block-header { font-size: 0.8rem; }
  .service-block-header em { display: none; } /* ocultar especialista en header en móvil */

  .session-card {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
  }
  .session-time { min-width: 50px; }
  .time-val { font-size: 1rem; }
  .session-info { min-width: 0; }
  .session-name { font-size: 0.85rem; }
  .session-specialist { font-size: 0.75rem; }
  .session-spots { font-size: 0.75rem; }
  .session-actions { width: 100%; margin-top: 0.2rem; }
  .btn-book,
  .btn-cancel-own,
  .btn-espera,
  .btn-en-espera { width: 100%; justify-content: center; padding: 0.55rem 1rem; }

  /* modales */
  .overlay { padding: 0.75rem; align-items: flex-end; }
  .modal {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%;
    max-height: 92vh;
  }
  .modal--sm { border-radius: var(--radius) var(--radius) 0 0; max-width: 100%; }

  /* spills más pequeños */
  .spill { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .res-main { padding: 0 0.6rem 3rem; }
  .wu-strip { padding: 0.85rem; }
  .cal-card { padding: 0.85rem; }
  .cal-days-header span { font-size: 0.65rem; }
  .cal-day { font-size: 0.75rem; }
  .cal-legend { gap: 0.6rem; }
  .leg-item { font-size: 0.68rem; }
  .sessions-empty { padding: 2.5rem 1rem; }
  .service-filter-pills { gap: 0.25rem; }
  .spill { font-size: 0.68rem; padding: 0.28rem 0.5rem; }
}

@media (max-width: 600px) {
  .res-main { padding: 0 1rem 3rem; }
  .wu-fields { flex-direction: column; }
  .wu-fields input { min-width: 0; }
  .service-filter-pills { gap: 0.3rem; }
  .spill { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .session-card { flex-wrap: wrap; gap: 0.6rem; }
  .session-actions { width: 100%; }
  .btn-book, .btn-cancel-own, .btn-espera, .btn-en-espera { width: 100%; justify-content: center; }
}
