@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");
* {
  margin: 0;
  padding: 0;
  user-select: none;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
html {
  background: #fff;
  font-family: "Montserrat", sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: #fff;
  font-family: "Montserrat", sans-serif;
}
.btn {
  position: absolute;
  top: 15px;
  left: -45px;
  height: 45px;
  width: 45px;
  text-align: center;
  background: #ddd6fe;
  border-radius: 3px;
  cursor: pointer;
  transition: left 0.4s ease;
}
.btn.click {
  left: 260px;
}
.btn span {
  color: #fff;
  font-size: 25px;
  line-height: 30px;
}
.btn.click span:before {
  content: "\f00d";
}
.boton {
  color: #000;
  background-color: #ddd6fe;
  float: left;
  width: 100%;
  box-shadow: 10px 10px 5px #000;
  border-radius: 15px;
  border: 1px solid black;
}
.botonConsulta {
  color: #000;
  background-color: #ddd6fe;
  float: left;
  width: 45%;
  height: 60px;
  box-shadow: 10px 10px 5px #000;
  border-radius: 15px;
  border: 1px solid black;
}

.sidebar {
  position: fixed;
  width: 300px;
  height: 100%;
  left: 0px;
  overflow-y: auto;
  background: #ddd6fe;
  transition: left 0.4s ease;
  scrollbar-width: none;
  font-family: "Montserrat", sans-serif;
}
nav ul {
  background: #ddd6fe;
  height: 100%;
  width: 100%;
  list-style: none;
}
nav ul li {
  line-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
nav ul li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
nav ul li a {
  position: relative;
  color: #000;
  text-decoration: none;
  font-size: 18px;
  padding-left: 20px;
  font-weight: 500;
  display: block;
  width: 100%;
  border-left: 3px solid transparent;
}
nav ul li.active a {
  text-decoration: none;
  color: #6d28d9;
  background: #a78bfa;
  border-left-color: #6d28d9;
}
nav ul li a:hover {
  text-decoration: none;
  background: #a78bfa;
  color: #fff;
}
nav ul ul {
  position: static;
  display: none;
}
nav ul .mostrar-primero.show {
  display: block;
}
nav ul .mostrar-segundo.show1 {
  display: block;
}
nav ul ul li {
  line-height: 30px;
  border-top: none;
}
nav ul ul li a {
  font-size: 15px;
  color: #000;
  padding-left: 40px;
}
nav ul li.active ul li a {
  color: #6d28d9;
  background: #a78bfa;
  border-left-color: #6d28d9;
}
nav ul ul li a:hover {
  color: #fff !important;
  background: #a78bfa !important;
}
nav ul li ul li.active a {
  color: #6d28d9;
  background: #a78bfa;
  border-left-color: #6d28d9;
}
nav ul li a span {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 15px;
  transition: transform 0.4s;
}
nav ul li a span.rotate {
  transform: translateY(-50%) rotate(-180deg);
}

.logo {
  text-align: center; /* Centra el contenido horizontalmente */
  margin-bottom: 20px; /* Añade un espacio en la parte inferior del logotipo */
}

.logo img {
  max-width: 100%; /* Asegura que la imagen del logotipo se ajuste al ancho del contenedor */
}

.about-us {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 30px 0;
  overflow: auto; /* Permite el desplazamiento si es necesario */
  background: #fff;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
}
.about {
  width: 100%;
  margin: 0 auto;
  margin-left: 300px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: "Montserrat", sans-serif;
}
.text {
  width: 90%;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
}
.text h2 {
  color: #333;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}
.text h5 {
  text-align: center;
  color: #333;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
}
span {
  color: gray;
  font-size: 10px;
}

.recordatorio {
  box-shadow: 10px 10px 5px #000;
  border-radius: 15px;
  border: 1px solid black;
  padding: 20px;
}
.recordatorio p span {
  font-size: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 20px;
}

input[type="date"] {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
}

#timeslotsPresencial {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#timeslotsOnline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  padding: 10px;
  background-color: #ddd6fe;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #a78bfa;
  color: #fff;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#timeslots {
  margin: 20px 0;
}

.timeslot {
  display: inline-block;
  margin: 5px;
  padding: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.timeslot.available {
  background-color: #ddd6fe;
}

.timeslot.occupied {
  background-color: #bfbfbf;
  cursor: not-allowed;
}
.timeslot.selected {
  background-color: #a78bfa;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
th {
  background-color: #f2f2f2;
}

.w3-theme-d5 {
  color: #fff !important;
  background-color: #a78bfa !important;
}
.w3-container {
  padding: 10px;
}
/*********==========Tablas con divs*/
.div-table {
  display: table !important;
  width: 100%;
  margin: 20px 0;
  padding: 0;
  background-color: #fff;
  height: auto !important;
}
.div-table-row {
  display: table-row !important;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  height: 40px;
  line-height: 40px;
}
.div-table-row:hover {
  background-color: #f5f5f5;
}
.div-table-row .div-table-cell:first-child {
  border-left: 1px solid #e1e1e1;
}
.div-table-cell {
  display: table-cell !important;
  margin: 0;
  padding: 0;
  background-color: transparent;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  text-align: center;
}
.div-table-head,
.div-table-head:hover {
  background-color: #dff0d8;
  font-size: 17px;
  font-weight: bolder;
}
.div-table-head .div-table-cell {
  border-top: 1px solid #e1e1e1 !important;
}
.div-table-row-list .div-table-cell {
  border: none;
}
.div-table-row-list {
  border: none;
}
.div-table-row-list .div-table-cell:first-child {
  border-left: none;
}

@media (max-width: 768px) {
  .sidebar {
    left: -300px;
  }
  .sidebar.show {
    left: 0px;
    z-index: 100;
  }
  .about-us {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 30px 0;
    background: #fff;
    background-image: url("../images/fondo.jpg");
    background-size: cover; /* Ajusta la imagen para cubrir toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: repeat; /* Evita que la imagen se repita */
    background-attachment: fixed; /* Hace que la imagen de fondo permanezca fija cuando se desplaza la página */
  }
  .about {
    width: 100%;
    margin: 0 auto;
    margin-left: 0px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
  }
  .text {
    width: 100%;
  }
  .btn {
    box-shadow: 10px 10px 5px #000;
    border: 1px solid #000;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
  }
  .btn.click {
    left: 260px;
  }
}
