/* Importar la fuente Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  line-height: 1.4;
  padding: 20px;
  height: 40%;
}

.container {
  max-width: 500px;  /* Aumentamos el ancho máximo */
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste para contenedor cuando se muestra el calendario */
.container.calendar-view {
  max-width: 1200px;
  width: 100%;
}

#calendar-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

#calendar {
  width: 100%;
  height: auto;
  font-size: 1em;
}

header {
  text-align: center;
  margin-bottom: 10px;
}

h1 {
  font-size: 1.5em;
  color: #007bff;
}

/* Modal base */
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Contenedor interno */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

/* Botón para cerrar */
.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.5em;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

form label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

form input, form select {
  width: 100%;  /* Establecemos el ancho al 100% del contenedor */
  height: 60%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

form p {
  margin-top: 10px;
  font-size: 1.1em;
  color: #333;
}

/* Espaciado adicional entre título y el primer campo del formulario */
.form-spacing {
  margin-bottom: 20px;
}

/* Estilos para el botón */
button.btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 250px;
}

button.btn:hover {
  background-color: #0056b3;
}

/* Mensajes de error */
#error-message {
  text-align: center;
  color: red;
  font-size: 1.1em;
}


/* Vista responsiva para pantallas pequeñas */
@media (max-width: 768px) {
  .container {
    max-width: 95%;
    padding: 10px;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }

  #calendar {
    max-width: 100%;
    font-size: 0.9em; /* Tamaño de fuente ligeramente menor para móvil */
  }

  h1, .schedule h3 {
    font-size: 1.2em;
  }

  button.btn {
    width: 100%;
    max-width: none;
  }
}
