.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro translúcido */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Asegura que el modal esté al frente */
}

.modal-content {
  position: relative; /* Necesario para posicionar elementos dentro del modal */
  background: white;
  padding: 20px;
  width: 80%;
  max-height: 80%;
  border-radius: 8px;
  overflow-y: auto; /* Permite desplazamiento vertical */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
  position: absolute; /* Para colocarla sobre la esquina superior derecha */
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.table-container {
  max-height: 60vh; /* Limitar la altura de la tabla dentro del modal */
  overflow-y: auto; /* Habilitar desplazamiento para las filas */
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  background: #f1f1f1;
  z-index: 1;
}

td, th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
