* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f5f7;
  color: #222;
}
.encabezado {
  background: #1f4e79;
  color: white;
  padding: 22px 0;
}
.contenedor { width: min(1200px, 94%); margin: auto; }
.encabezado h1 { margin: 0; font-size: 25px; }
.encabezado p { margin: 5px 0 0; opacity: .9; }

.panel, .resultados {
  background: white;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
h2 { margin-top: 0; }
.filtros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: end;
}
label { font-weight: bold; font-size: 14px; }
select, input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: white;
}
.busqueda { grid-column: span 2; }
button {
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: #1f4e79;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
button:hover { opacity: .9; }
button.secundario { background: #777; }

.titulo-resultados {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.titulo-resultados p { margin: 5px 0 0; color: #666; }

.tabla-contenedor { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  min-width: 950px;
}
th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 13px;
}
th { background: #e9eef3; }
tr:nth-child(even) { background: #f8f8f8; }
.sin-resultados { text-align: center; padding: 25px; color: #777; }

@media (max-width: 800px) {
  .filtros { grid-template-columns: 1fr; }
  .busqueda { grid-column: auto; }
  .titulo-resultados { align-items: flex-start; flex-direction: column; }
}
