/* ============================================================
   KINOR OVALLE — Design System 2026
   Premium · Anti-Plantilla · Mobile-First
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:       #0B74C1;
  --brand-dark:  #0960A0;
  --brand-deeper:#074E84;
  --brand-soft:  rgba(11,116,193,0.08);
  --brand-glow:  rgba(11,116,193,0.20);

  /* Neutrals */
  --bg:          #F8FAFC;
  --panel:       #FFFFFF;
  --text:        #0F1C2E;
  --text-2:      #475569;
  --text-muted:  #94A3B8;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;

  /* States */
  --danger:        #DC2626;
  --danger-soft:   rgba(220,38,38,0.08);
  --danger-border: rgba(220,38,38,0.22);
  --success:       #059669;
  --success-soft:  rgba(5,150,105,0.10);
  --success-border:rgba(5,150,105,0.30);

  /* Shadows — layered, soft */
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.07), 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-brand: 0 4px 14px rgba(11,116,193,0.28);

  /* Radii */
  --r-sm:   8px;
  --r:      12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Transitions */
  --t-fast: 120ms cubic-bezier(0.4,0,0.2,1);
  --t:      200ms cubic-bezier(0.4,0,0.2,1);
  --t-slow: 320ms cubic-bezier(0.4,0,0.2,1);

  /* Focus ring */
  --ring: rgba(11,116,193,0.22);

  /* Layout */
  --pageMax:         580px;
  --pageMaxDesktop:  980px;
  --pageMaxWide:    1100px;

  /* Profesional — Nutrición (contraste con kinesiología / marca) */
  --prov-nutri:       #0F766E;
  --prov-nutri-dark:  #0D5E58;
  --prov-nutri-soft:  rgba(15, 118, 110, 0.11);
  --prov-nutri-ring:  rgba(15, 118, 110, 0.24);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deeper) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
}

.topbarInner {
  max-width: var(--pageMax);
  margin: 0 auto;
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.topbarIcon  { font-size: 18px; line-height: 1; }
.topbarTitle { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

/* ── Page Layout ────────────────────────────────────────────── */
.page {
  max-width: var(--pageMax);
  margin: 0 auto;
  padding: 18px 16px 120px; /* bottom: space for sticky footer */
}

/* ── Panel ──────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin: 14px 0;
}

.hidden { display: none !important; }

/* ── View enter animation (triggered via JS) ────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view-enter {
  animation: fadeSlideUp 0.28s cubic-bezier(0.4,0,0.2,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .view-enter { animation: none; }
}

/* ── Intro Panel ────────────────────────────────────────────── */
.intro {
  text-align: center;
  padding: 28px 20px 20px;
}

.introLogo {
  display: block;
  width: min(360px, 85vw);
  height: auto;
  max-height: 98px;
  object-fit: contain;
  margin: 0 auto 16px;
  transition: transform var(--t-fast);
}

.introLogo:hover { transform: scale(1.03); }

.introTitle {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.introQuestion {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto 20px;
}

/* ── Segmented Tabs ─────────────────────────────────────────── */
.segTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  padding: 4px;
  gap: 4px;
}

.segTab {
  appearance: none;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--text-2);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
  border-radius: 9px;
  min-height: 44px;
  line-height: 1.2;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.segTab.active {
  background: var(--panel);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.segTab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 10px 0 4px; }

.sectionTitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Pill Buttons (Modalidad) ───────────────────────────────── */
.pillRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pillBtn {
  appearance: none;
  border: 1.5px solid var(--border-2);
  background: var(--panel);
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--r);
  padding: 10px 18px;
  cursor: pointer;
  min-height: 44px;
  letter-spacing: -0.01em;
  transition: border-color var(--t-fast), background var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.pillBtn:hover:not(.active):not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.pillBtn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  font-weight: 700;
}

.pillBtn:active:not(:disabled) { transform: scale(0.97); }

.pillBtn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ── Provider Cards (inside #providerRow) ───────────────────── */
#providerRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

#providerRow .pillBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px 14px;
  min-height: 84px;
  border-radius: var(--r-md);
  gap: 5px;
  width: 100%;
  box-shadow: var(--shadow-xs);
}

#providerRow .pillBtn:hover:not(.active):not(:disabled) {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  background: var(--panel);
}

#providerRow .pillBtn.prov--kine:hover:not(.active):not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

#providerRow .pillBtn.prov--nutrition:hover:not(.active):not(:disabled) {
  border-color: var(--prov-nutri);
  color: var(--prov-nutri-dark);
}

#providerRow .pillBtn.prov--kine.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-sm);
}

#providerRow .pillBtn.prov--nutrition.active {
  background: var(--prov-nutri-soft);
  color: var(--prov-nutri-dark);
  border-color: var(--prov-nutri);
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--prov-nutri-ring), var(--shadow-sm);
}

.provCardName {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.provCardSpecialty {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#providerRow .pillBtn.prov--kine.active .provCardSpecialty {
  color: var(--brand);
  opacity: 0.85;
}

#providerRow .pillBtn.prov--nutrition.active .provCardSpecialty {
  color: var(--prov-nutri);
  opacity: 0.9;
}

/* ── Form Fields ────────────────────────────────────────────── */
.field { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: 6px;
}

.control { position: relative; }

.input {
  width: 100%;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 450;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
  line-height: 1.5;
}

.input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
  background: #fff;
}

textarea.input {
  min-height: 88px;
  resize: vertical;
  padding-right: 14px;
}

select.input {
  cursor: pointer;
  padding-right: 36px;
}

.controlIcon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.45;
  pointer-events: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* RUT validation states */
.field--valid   .input { border-color: var(--success); }
.field--invalid .input { border-color: var(--danger); }
.field--valid   .input:focus { box-shadow: 0 0 0 3px var(--success-soft); }
.field--invalid .input:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.rutHint {
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  min-height: 18px;
  transition: color var(--t-fast), opacity var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rutHint.ok  { color: var(--success); }
.rutHint.err { color: var(--danger); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--r);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              opacity var(--t-fast), background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn.primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(11,116,193,0.38);
  transform: translateY(-1px);
}

.btn.primary:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn.ghost {
  background: var(--panel);
  color: var(--brand);
  border: 1.5px solid var(--border-2);
}

.btn.ghost:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn.ghost:active:not(:disabled) { transform: scale(0.98); }

.btn.danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220,38,38,0.22);
}

.btn.danger:hover:not(:disabled)  { opacity: 0.9; transform: translateY(-1px); }
.btn.danger:active:not(:disabled) { transform: scale(0.98); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Time Cards (Slots) ─────────────────────────────────────── */
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  min-height: 56px;
}

.slot {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--panel);
  border-radius: var(--r);
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), background var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.slot:hover:not(:disabled):not(.active) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.slot.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  transform: scale(1.04);
}

.slot:disabled {
  background: var(--bg);
  color: var(--border-2);
  border-color: var(--border);
  cursor: not-allowed;
  text-decoration: line-through;
  box-shadow: none;
  opacity: 0.65;
}

.slot:active:not(:disabled):not(.active) { transform: scale(0.96); }

/* ── Notices ────────────────────────────────────────────────── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(11,116,193,0.18);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.notice::before {
  content: 'ℹ️';
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice.danger {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: #991B1B;
}
.notice.danger::before { content: '⚠️'; }

.notice.small {
  font-size: 13px;
  padding: 10px 12px;
}

.warn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* ── Inline Row ─────────────────────────────────────────────── */
.inlineRow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Helpers ────────────────────────────────────────────────── */
.muted  { color: var(--text-muted); }
.small  { font-size: 13px; }
.lead   { color: var(--text); font-weight: 600; line-height: 1.6; }
.mt8    { margin-top: 8px; }
.mt10   { margin-top: 10px; }
.centered { text-align: center; }

/* ── Actions ────────────────────────────────────────────────── */
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── Box / Info ─────────────────────────────────────────────── */
.box {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg);
}

.infoBox {
  background: rgba(11,116,193,0.04);
  border-color: rgba(11,116,193,0.15);
}

.infoTitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.infoList {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 450;
}
.infoList li { margin: 6px 0; }

/* ── Steps Box ──────────────────────────────────────────────── */
.stepsBox { margin-bottom: 4px; }

.stepsBox .infoList {
  display: grid;
  gap: 8px;
  margin: 0;
}

.stepsBox .infoList li {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.stepsBox .infoList li span {
  display: block;
  line-height: 1.45;
  color: var(--text-2);
}

.stepsBox .infoList li b {
  color: var(--text);
  font-weight: 700;
}

.stepsBox .infoList li > strong:first-child {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(11,116,193,0.30);
}

.stepsBox .infoList li:nth-child(1) > strong:first-child::after { content: " 🧭"; }
.stepsBox .infoList li:nth-child(2) > strong:first-child::after { content: " 📅"; }
.stepsBox .infoList li:nth-child(3) > strong:first-child::after { content: " ✅"; }

/* ── Manage link ────────────────────────────────────────────── */
.manageLink {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
  color: var(--brand);
  text-decoration: none;
}
.manageLink:hover { text-decoration: underline; }

/* ── Success View ───────────────────────────────────────────── */
.successTitle {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

/* ── Separator ──────────────────────────────────────────────── */
.sep {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* ── Selector de fecha (tarjeta + chips) ───────────────────── */
.datePickCard {
  margin-top: 4px;
  padding: 18px 16px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(11, 116, 193, 0.14);
  background: linear-gradient(165deg, rgba(11, 116, 193, 0.06) 0%, var(--panel) 42%, var(--panel) 100%);
  box-shadow: var(--shadow-sm);
}

.datePickHead {
  margin-bottom: 14px;
}

.datePickMainLabel {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.datePickSub {
  line-height: 1.55;
  margin-bottom: 12px;
  max-width: 34em;
}

.datePickSub strong {
  color: var(--text-2);
  font-weight: 700;
}

.dateHumanRead {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  line-height: 1.35;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.weekdayStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dayChip {
  appearance: none;
  border: 1.5px solid var(--border-2);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r);
  padding: 11px 14px;
  min-height: 48px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast),
    color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-xs);
}

.dayChip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.dayChip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

.dayChip.isToday {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  color: #92400E;
}

.dayChip.isToday:hover {
  border-color: #D97706;
  background: rgba(245, 158, 11, 0.2);
  color: #78350F;
}

.dayChip.isToday.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-color: #D97706;
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.36);
}

.dayChip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.dayChip.active:focus-visible {
  box-shadow: 0 0 0 3px var(--ring), var(--shadow-brand);
}

.datePickCalendarField {
  margin-bottom: 12px;
}

.datePickCalendarLabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.datePickActions {
  margin-top: 4px;
}

.btnSearchSlot {
  width: 100%;
  font-size: 16px;
  padding: 14px 20px;
  min-height: 52px;
  border-radius: var(--r-md);
}

.datePickCard .notice {
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .dayChip { transition: none; }
}

/* ── Date control clickable ─────────────────────────────────── */
.control.isDate { cursor: pointer; }
.control.isDate .input { cursor: pointer; }

/* ── Flash animation (fecha fin de semana) ──────────────────── */
@keyframes flashRing {
  0%   { box-shadow: 0 0 0 0 rgba(11,116,193,0); }
  40%  { box-shadow: 0 0 0 5px var(--ring); }
  100% { box-shadow: 0 0 0 0 rgba(11,116,193,0); }
}
.flash { animation: flashRing 0.45s ease; }

/* ── Footer back link ───────────────────────────────────────── */
.footerBack {
  display: inline-block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footerBack:hover { color: var(--brand); }

/* ── Confirm button — center + sticky on mobile ─────────────── */
.btnCenter {
  display: block;
  width: 100%;
  margin: 16px auto 4px;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: var(--r-md);
}

@media (max-width: 639px) {
  .btnCenter {
    position: sticky;
    bottom: 20px;
    z-index: 8;
    box-shadow: 0 8px 28px rgba(11,116,193,0.40),
                0 0 0 6px rgba(248,250,252,0.85);
  }
  .btnCenter:disabled {
    box-shadow: 0 0 0 6px rgba(248,250,252,0.85) !important;
  }
}

@media (min-width: 640px) {
  .btnCenter {
    width: min(440px, 100%);
    font-size: 15px;
    padding: 13px 20px;
  }
  .page { padding-bottom: 48px; }
}

/* ── Centered sections ──────────────────────────────────────── */
.section.centered { text-align: center; }
.section.centered .sectionTitle { text-align: center; }
.section.centered .pillRow { justify-content: center; }
.section.centered .muted { margin: 0 auto; text-align: center; }
.section.centered .warn  { justify-content: center; }

/* ── Global notice ──────────────────────────────────────────── */
#globalNotice { margin-top: 14px; }

/* Avisos de error junto al flujo (reserva / gestión) */
#formNotice {
  margin-top: 6px;
  margin-bottom: 10px;
}
#slotBookNotice {
  margin-top: 12px;
}
#manageNotice {
  margin-top: 12px;
  margin-bottom: 10px;
}

/* ═══════════════ DESKTOP ═══════════════════════════════════════ */
@media (min-width: 900px) {
  .topbarInner {
    max-width: var(--pageMaxDesktop);
    justify-content: flex-start;
    gap: 12px;
  }
  .topbarTitle { font-size: 18px; }

  .page {
    max-width: var(--pageMaxDesktop);
    padding: 28px 32px 60px;
  }

  .panel {
    padding: 28px 32px;
    margin: 16px 0;
  }

  .introTitle    { font-size: 22px; }
  .introQuestion { font-size: 14.5px; }

  .slots { grid-template-columns: repeat(4, 1fr); }

  #providerRow { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .topbarInner { max-width: var(--pageMaxWide); }
  .page        { max-width: var(--pageMaxWide); }
  .slots       { grid-template-columns: repeat(5, 1fr); }
}

/* ═══════════════ MOBILE ════════════════════════════════════════ */
@media (max-width: 480px) {
  .panel { padding: 20px 16px; }
  .slot  { font-size: 14px; padding: 12px 6px; }
  .slots { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  #providerRow { grid-template-columns: 1fr 1fr; }
  .segTab { font-size: 13.5px; }
  .introQuestion { font-size: 13.5px; }
}

@media (max-width: 360px) {
  .panel  { padding: 16px 13px; }
  .slots  { grid-template-columns: 1fr 1fr; }
  #providerRow { grid-template-columns: 1fr 1fr; }
  .pillBtn { min-height: 44px; }
}
