/* Tabla de programación con bordes redondeados */
.grilla-container {
  margin-top: -0.125em;
  max-width: 56.25em;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto; /* Hace la tabla desplazable horizontalmente en móviles */
}

.grilla-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 1.1em;
  text-align: left;
  border-radius: 0.625em; /* Bordes redondeados para la tabla */
  overflow: hidden; /* Para que los bordes redondeados no se vean cortados */
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.grilla-table thead tr {
  background-color: #0078d4; /* Azul estilo Win11 */
  color: #fff;
  text-align: center;
}

.grilla-table th,
.grilla-table td {
  padding: 0.75em 1em;
  border: 0.0625em solid #ddd;
}

.grilla-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3; /* Alternar colores */
}

.grilla-table tbody tr:hover {
  background-color: #eef4ff; /* Hover suave */
  cursor: pointer;
}

.grilla-table td {
  text-align: center;
  color: #333;
}

.psynop {
  text-align: justify !important;
}

/* Estilos para el selector de días */
#day-select {
  padding: 0.5em;
  font-size: 1em;
  font-family: 'Gilroy';
  margin-bottom: 1.25em;
  border-radius: 0.5em;
  border: 2px solid #0078d4;
  background-color: #fff;
}
#day-option {
  border: 2px solid #0078d4;
  background-color: #fff;
  font-weight: 700;
}

#day-option:hover {
  background: #0078d4;
  color: #fff;
}



#day-select:focus {
  outline: none;
  border-color: #0078d4; /* Azul estilo Win11 */
}

/* Estilos básicos para el dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;  /* Ancho del contenedor principal al 41% */
}

.dropbtn {
  background-color: #fff;
  color: #0078d4;
  padding: 0.625em 1.25em;  /* Convertido a 'em' */
  border: 0.125em solid #0078d4;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  border-radius: 0.5em;
  width: 25%;  /* Hace que el botón ocupe el 100% del ancho de su contenedor (41%) */
  box-sizing: border-box;  /* Asegura que el padding no afecte el tamaño total */
  margin-left: 12.5em;
  text-align: center;
}

.dropbtn:hover {
  background-color: #0078d4;
  color: #fff;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 0.125em solid #0078d4;
  font-weight: 700;
  border-radius: 0.5em;
  width: 25%;  /* El menú ahora tiene un ancho del 41% */
  margin-left: 12.5em;  /* Desplazamiento hacia la derecha de 12.5em */
  box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
  box-shadow: 0px 0.5em 1em rgba(0, 0, 0, 0.2);
  z-index: 1;
  margin-top: 0.2em; /* Margen superior para separar el menú del botón */
  text-align: center;
  height: 17em;
  overflow-y: auto;
}

.dropdown-item {
  color: #0078d4;
  padding: 0.75em 1em;  /* Convertido a 'em' */
  text-decoration: none;
  display: block;
  cursor: pointer;
  position: relative;
}

.dropdown-item:hover {
  background-color: #0078d4;
  color: white;
}

.dropdown-item ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.5em;
}

.dropdown-item ul li {
  font-size: 0.9em;
  color: #333;
}

/* Diseño responsive */
@media screen and (max-width: 48em) {  /* 768px */
  .dropbtn {
    padding: 0.5em 1em;
    font-size: 0.875em;  /* Ajuste de tamaño de fuente */
    width: 100%;  /* El botón sigue ocupando el 100% del ancho del contenedor */
    margin-left: 12.5em;
    text-align: center;
  }

  .dropdown-content {
    width: 41%;  /* El menú tendrá el mismo tamaño que el contenido del botón */
    margin-left: 12.5em;  /* Mantiene el mismo desplazamiento */
    margin-top: 0.2em;
    text-align: center;
  }
}

@media screen and (max-width: 30em) {  /* 480px */
  .dropbtn {
    padding: 0.625em;
    font-size: 1em;
    width: 100%;  /* El botón sigue ocupando el 100% del ancho del contenedor */
    margin-left: 12.5em;
    text-align: center;
  }

  .dropdown-content {
    width: 41%;  /* El menú tendrá el mismo tamaño que el contenido del botón */
    margin-left: 12.5em;  /* Mantiene el mismo desplazamiento */
    margin-top: 0.2em;
    text-align: center;
  }

  .dropdown-item {
    padding: 0.625em 1.25em;
  }
}