body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  width: 90%;
  background: burlywood;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-x: hidden;
}

h1 {
  margin-bottom: 10px;
}

.calendar-logo {
  max-width: 100px;
  margin: 0 auto 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.calendar-header h2 {
  flex: 1;
  text-align: center;
  margin: 10px 0;
}

.btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #0056b3;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.day-name,
.day {
  padding: 10px;
  text-align: center;
  border-radius: 5px;
}

.day-name {
  font-weight: bold;
  background-color: #007bff;
  color: white;
}

.day {
  background-color: #e9e9e9;
  cursor: pointer;
  position: relative;
}

.day.today {
  background-color: #ffeb3b;
  font-weight: bold;
}

.day span.marker {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2em;
}

#calendar .day:nth-last-child(-n+7) {
  visibility: hidden;
}



@media (max-width: 768px) {
  .calendar-header {
    flex-direction: column;
    gap: 10px;
  }

  #calendar {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .day {
    font-size: 0.8rem;
    padding: 5px;
  }

  .day-name {
    font-size: 0.8rem; /* Reducir más el tamaño de los días de la semana */
    padding: 8px;
  }

  /* Ocultar la última fila en pantallas pequeñas */
  #calendar .day:nth-last-child(-n+7) {
    visibility: hidden;
  }
}




/******************************/
/******************************/
/* Modal Principal reservas */
/******************************/
/******************************/

/* Modal Principal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

.close .icon {
  background: orange;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  bottom: 50px;
}



/* Modal Día Completo */
.modal-dia-completo {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-dia-completo .modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.modal-dia-completo p {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.modal-dia-completo .close-modal-dia-completo {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #f44336; /* Rojo */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-dia-completo .close-modal-dia-completo:hover {
  background-color: #d32f2f;
}




