/* Disponibilidad de salas: página general y bloque de cada sala. */
.dsp {
  --dsp-primary: #ff3571;
  --dsp-dark: #292838;
  --dsp-line: #e4e3ea;
  --dsp-busy: #cfced8;
  --dsp-muted: #6b6a78;
  --dsp-label: 76px;
  margin-top: 1.5rem;
  color: var(--dsp-dark);
  scroll-margin-top: 1rem;
}
.dsp-title { margin-bottom: 1rem; }

.dsp-notice {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--dsp-primary);
  border-radius: 4px;
  background: #fff0f4;
  font-size: .9375rem;
  line-height: 1.45;
}
.dsp-notice .material-icons { color: var(--dsp-primary); flex: none; }
.dsp-notice strong { display: block; margin-bottom: .25rem; }
.dsp-notice p { margin: 0 0 .5rem; }
.dsp-notice p:last-child { margin-bottom: 0; }
.dsp-notice a, .dsp-error a { color: var(--dsp-primary); font-weight: 600; }

.dsp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.dsp-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--dsp-dark);
  color: #fff;
  text-decoration: none;
}
.dsp-arrow:hover { background: var(--dsp-primary); }
.dsp-arrow.is-off { background: var(--dsp-line); color: #fff; }

.dsp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-bottom: .75rem;
  font-size: .875rem;
}
.dsp-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.dsp-key { width: 18px; height: 18px; border-radius: 3px; border: 1px solid var(--dsp-busy); }
.dsp-key-free { background: #fff; }
.dsp-key-busy { background: var(--dsp-busy); }
.dsp-checked { margin-left: auto; color: var(--dsp-muted); }
.dsp-swipe { display: none; margin: 0 0 .5rem; font-size: .875rem; color: var(--dsp-muted); }

.dsp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dsp-grid { min-width: 860px; }
.dsp-day { margin: 1.25rem 0 .25rem; font-size: 1rem; }
.dsp-day:first-child { margin-top: 0; }
.dsp-day span { position: sticky; left: 0; display: inline-block; }
.dsp-day span::first-letter { text-transform: uppercase; }

.dsp-row {
  display: grid;
  grid-template-columns: var(--dsp-label) 1fr;
  align-items: stretch;
  margin-bottom: 3px;
}
.dsp-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-right: .5rem;
  background: #f9f9f9;
  font-size: .8125rem;
  font-weight: 600;
}
.dsp-label::first-letter { text-transform: uppercase; }
.dsp-label a { color: inherit; text-decoration: none; }
.dsp-label a:hover { color: var(--dsp-primary); }
.dsp-track {
  position: relative;
  height: 32px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--dsp-busy);
}
.dsp-free {
  position: absolute;
  top: 1px;
  bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--dsp-line);
  font-size: .6875rem;
  color: var(--dsp-muted);
  white-space: nowrap;
}
.dsp-axis { margin-bottom: 2px; }
.dsp-hours { position: relative; height: 18px; }
.dsp-hours span {
  position: absolute;
  transform: translateX(-50%);
  font-size: .6875rem;
  color: var(--dsp-muted);
}
.dsp-hours span:first-child { transform: none; }
.dsp-hours span:last-child { transform: translateX(-100%); }
.dsp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dsp-error { padding: 1rem; border-radius: 4px; background: #f4f4f7; }
.dsp-cta { margin: 1.5rem 0 0; text-align: center; }
.dsp-link { margin: 1rem 0 2rem; }

@media (max-width: 900px) {
  .dsp-swipe { display: block; }
}
