

.calendar-container {
  width: 100%;
  max-width: 400px;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #07286B;
  color: white;
  padding: 16px;
}

.calendar-header button {
  background: #6a89cc;
  border: none;
  color: white;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
}

.calendar-header button:disabled {
  background: #b2bec3;
  cursor: not-allowed;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 16px;
  gap: 6px;
}

.day-name {
  text-align: center;
  font-weight: bold;
  color: #636e72;
}

.day {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.day:hover {
  background: #dfe6e9;
}

.day.today {
  background: #74b9ff;
  color: white;
}

.day.available {
  background: #1F8241;
  color: #ffffff;
}

.day.booked {
  background: #DD303F;
  color: white;
  cursor: not-allowed;
  text-decoration: line-through;
}


.day.disabled {
  background: #dfe6e9;
  color: #b2bec3;
  cursor: not-allowed;
  pointer-events: none;
}

.day.disponible {
  background: #1F8241;
  color: #ffffff;
}

.day.media {
  background: #FEAC66;
  color: #2d3436;
}

.day.no-disponible {
  background: #DD303F;
  color: white;
  cursor: not-allowed;
  text-decoration: line-through;
}


.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px 16px 20px;
  font-size: 14px;
  background: #f1f2f6;
  border-top: 1px solid #dcdde1;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  gap: 10px;
}

.calendar-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 calc(50% - 20px); /* responsive: 2 por fila */
  min-width: 160px;
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.legend-box.disponible {
  background: #1F8241;
}

.legend-box.media {
  background: #FEAC66;
}

.legend-box.no-disponible {
  background: #DD303F;
}

.legend-box.disabled {
  background: #dfe6e9;
}
