/* ===========================
   CALENDARIO
   =========================== */
.calendar-container {
  max-width: 900px;
  margin: 22px auto 6px;
  padding: 16px;
  background: var(--FONDO_CARDS);
  border: 1px solid var(--BORDE);
  border-radius: var(--RAD);
  box-shadow: var(--SOMBRA);
  text-align: center;
}

.navigation {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.navigation button {
  height: 44px;
  border: 1px solid var(--BORDE);
  border-radius: 10px;
  background: #0f141c;
  color: var(--TEXTO_PRINCIPAL);
  font-size: 18px;
  cursor: pointer;
  transition: transform var(--TRANS), border-color var(--TRANS);
}
.navigation button:hover { transform: translateY(-1px); border-color: var(--PRIMARIO) }
#month-title { font-size: 20px; font-weight: 700 }

.shift-buttons {
  display: grid;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 16px;
}
.shift-buttons label {
  display: grid; grid-auto-flow: column; gap: 10px; align-items: center;
  color: var(--TEXTO_PRINCIPAL);
}

/* Checkboxes minimal */
.shift-buttons input[type="checkbox"]{
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 2px solid #3a4657;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: border-color var(--TRANS), background var(--TRANS);
}
.shift-buttons input[type="checkbox"]:checked {
  border-color: var(--PRIMARIO);
  background: radial-gradient(9px 9px at 50% 50%, var(--PRIMARIO) 0 52%, transparent 53%);
}

/* Grid días */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  justify-items: center;
  font-size: 16px;
}
.day-header {
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: var(--TEXTO_SECUNDARIO);
  padding: 8px 0;
  border-radius: 8px;
  background: #0f141c;
  border: 1px solid var(--BORDE);
}

.day {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--BORDE);
  background: #0f141c;
  color: var(--TEXTO_PRINCIPAL);
  cursor: pointer;
  transition: transform var(--TRANS), border-color var(--TRANS), background var(--TRANS), box-shadow var(--TRANS);
}
.day:hover { transform: translateY(-1px); border-color: var(--PRIMARIO) }

.day.available {
  background: linear-gradient(180deg, rgba(34,197,94,.2), #0f141c 60%);
  color: #d9fbe5;
  border-color: rgba(34,197,94,.45);
}
.day.reserved {
  background: linear-gradient(180deg, rgba(239,68,68,.23), #0f141c 60%);
  color: #ffdada;
  border-color: rgba(239,68,68,.45);
}

/* Selección */
.day.selected {
  outline: 2px solid var(--PRIMARIO);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--PRIMARIO-ALFA);
}

/* Leyenda */
.legend {
  margin-top: 12px;
  font-size: 14px;
  color: var(--TEXTO_SECUNDARIO);
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  justify-content: center;
}
.available, .reserved {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--BORDE);
}
.available { background: rgba(34,197,94,.2); color: #c8f9da }
.reserved  { background: rgba(239,68,68,.23); color: #ffdada }

/* Responsive */
@media (max-width: 768px) {
  .calendar { gap: 4px }
  .day { width: 38px; height: 38px; font-size: 14px }
}
@media (max-width: 420px) {
  .calendar { gap: 3px }
  .day { width: 32px; height: 32px; font-size: 13px; border-radius: 8px }
}
