/* Contenedor del calendario */
.calendar-box {
  background: #fff;
  border-radius: 16px;
  border: 2px solid #d1d5db;
  box-shadow: 0 6px 24px rgba(0,0,0,0.11);
  padding: 22px 20px 18px 20px;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 10px;
  margin-top: 18px;
  position: relative;
  transition: box-shadow 0.2s;
}

/* Grilla del calendario */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 8px;
}

/* Celda de día */
.calendar div {
  padding: 12px 0;
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  min-width: 32px;
  min-height: 32px;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
  border: none;
}

.calendar .no-disponible {
  background-color: #e57373 !important;  /* Rojo suave */
  color: #fff !important;
  border: 1.5px solid #d32f2f;
  cursor: not-allowed;
  opacity: 0.95;
  font-weight: 500;
}

/* Días del mes actual */
.calendar .disponible {
  background: linear-gradient(90deg, #b9f6ca 0%, #00e676 100%);
  color: #222;
  font-weight: 600;
  border: 1.5px solid #03c96c;
}
.calendar .disponible:hover {
  background: linear-gradient(90deg, #00e676 0%, #b9f6ca 100%);
  color: #111;
  border: 1.5px solid #01885a;
}

.calendar .seleccionado {
  background: linear-gradient(90deg, #03a9f4 0%, #29b6f6 100%);
  color: #fff;
  font-weight: bold;
  border: 2.5px solid #01579b;
}

/* Días de la semana (escala) */
.calendar.escala {
  background: transparent;
  margin-bottom: 0;
  margin-top: 0;
  font-size: 0.93em;
  font-weight: 700;
  color: #004c99;
}
.calendar.escala div {
  cursor: default;
  background: none !important;
  color: #333 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.05em;
}

/* Celdas vacías (no mostrar nada, sin bordes) */
.calendar .vacio {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
  min-height: 32px;
  min-width: 32px;
  opacity: 0.0;
}

/* Leyenda de colores */
.leyenda {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.leyenda span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: #111;
}
.leyenda span i {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #bbb;
}
.leyenda .rojo { background-color: #e57373; border-color: #d32f2f; }
.leyenda .verde { background-color: #00e676; border-color: #009c4f; }
.leyenda .celeste { background-color: #03a9f4; border-color: #01579b; }

/* Navegación de meses */
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  gap: 8px;
}
.cal-nav-btn {
  background: #fff;
  border: 2px solid #00e676;
  color: #00bfa5;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.22em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.12s, border-color 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav-btn:hover {
  background: #00e676;
  color: #fff;
  border-color: #00bfa5;
}

.cal-nav-title {
  font-size: 1.13em;
  font-weight: 600;
  color: #0277bd;
  letter-spacing: 0.5px;
}

/* Botón de seleccionar */
#seleccionarFecha {
  box-shadow: 0 2px 7px rgba(3,169,244,0.07);
}

#cerrarCalendario {
  box-shadow: 0 2px 7px rgba(100,100,100,0.06);
}
