/* ---- Estilos tabla mejorados ---- */
table {
  background: #fff;
  border-collapse: collapse;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 20px 0;
}

table th {
  background: #2f3037; /* gris oscuro */
  color: #fff;
  padding: 12px 15px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

table td {
  padding: 12px 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

table tr:nth-child(even) td {
  background: #f9f9f9;
}

table tr:nth-child(odd) td {
  background: #ffffff;
}

table tr:hover td {
  background: #eaedfd; 
  transition: background 0.3s;
}

/* ---- Buscador ---- */
.busq-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
}

/* ---- Personalización del select ---- */
select.busq {
  appearance: none;       /* elimina estilo por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid #8b7d7d;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 5px 0;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

select.busq option {
  background: #fff;
  color: #333;
}

select.busq option:checked {
  background: #f0f0f0;  /* Fondo de la opción elegida */
  color: #000;
}

/* hover/focus */
.busq-txt:focus, 
.busq-cb:focus,
select.busq:focus {
  border-color: #7d7c91; 
  box-shadow: 0 0 6px #E8F5E9;
}

/* label */
.busq-lbl {
  font-weight: bold;
  color: #424242;
  margin-right: 10px;
}

.busq-cb, 
.busq-txt {
  border: 1px solid #8b7d7d;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 5px 0;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

/* botón */
.busq-btn {
  background: #6e6886;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  padding: 10px 18px;
  margin: 5px 0;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.busq-btn:hover {
  background: #757089;
  box-shadow: 0 4px 10px rgb(133 113 113 / 40%);
}
.custom-select {
  position: relative;
  width: 220px;
  font-family: Arial, sans-serif;
  user-select: none;
}

.custom-select-trigger {
  background: #fff;
  border: 1px solid #8b7d7d;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  color: #333;
}

.custom-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #8b7d7d;
  border-radius: 6px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 99;
}

.custom-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background: #eaedfd;
}

.custom-option.selected {
  background: #f0f0f0;
  font-weight: bold;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  table th, table td {
    text-align: left;
    padding: 10px;
  }

  .busq-container {
    flex-direction: column;
    align-items: stretch;
  }

  .busq-btn {
    width: 100%;
    text-align: center;
  }
}
