.filtros {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.filtros .simple{
	display:flex;
	gap:14px;
	width:100%
}
.filtros .simple input{
	flex:1;
	width:100%;
}
.filtros .simple .filtro-tipo-contenido{
	width: auto;
}
.filtros  button{
	width:auto!important;
}
.filtro-search {
  flex: 1 1 400px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

.filtro-search:focus {
  outline: none;
  border-color: #333;
}

.filtros .btn,
.filtros .btn-secondary,
.filtros .btn-restablecer {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px!important;
  transition: all 0.2s;
  white-space: nowrap;
  height:40px;
	line-height:1;
}

.btn-secondary {
  background: #333;
  color: #fff;
}

.btn-secondary:hover {
  background: #000;
}

.filtros .btn-restablecer {
  background: #fff!important;
  color: #333;
  border: 1px solid #333;

}

.filtros .btn-restablecer:hover {
  background: #f5f5f5;
}

.filtros .btn-toggle-avanzado {
  background: #f5f5f5!important;
  border: none;
  color: #333!important;
  flex: 0 0 auto;
  margin-left: auto;
	  font-size: 14px!important;
}

.btn-toggle-avanzado:hover {
  color: #000;
}

.texto-cerrar {
  display: none;
}

.filtros-avanzados {
  width: 100%;
  background: #fff;
}

.filtro-fila {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  align-items: stretch;
}

.filtro-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.filtro-col-100 {
  flex: 0 0 100%;
}

.filtro-col-50 {
  flex: 0 0 calc(50% - 0.5rem);
}

.filtro-col-33 {
  flex: 0 0 calc(33.333% - 0.67rem);
}

.filtro-col-25 {
  flex: 0 0 calc(25% - 0.75rem);
}

.filtro-item {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.filtro-item:focus {
  outline: none;
  border-color: #333;
}

.filtro-item:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.filtro-item option:disabled {
  color: #ccc;
}

.filtro-deshabilitado {
  opacity: 0.5;
  pointer-events: none;
}

.filtro-rango-ano {
  padding:0 1rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 140px;
}

.filtro-rango-ano label {
  font-weight: 600;
  display: block;
  margin-bottom:0;
  font-size: 14px;
  color: #333;
}

#slider-anos {
  margin: 1.5rem 0 1rem 0;
}

.rango-valores {
  text-align: center;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.buscador-sugerencias {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
  width: calc(100% - 4rem);
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  top: 80px;
  left: 2rem;
}

.sugerencia-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.sugerencia-item:last-child {
  border-bottom: none;
}

.sugerencia-item:hover {
  background: #f5f5f5;
}

.sugerencia-item strong {
  display: block;
  color: #333;
  margin-bottom: 0.25rem;
  font-size: 14px;
}

.sugerencia-item span {
  font-size: 12px;
  color: #666;
}

.noUi-connect {
  background: #333;
}

.noUi-handle {
  background: #fff;
  border: 2px solid #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 28px!important;
  height:28px!important
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-target {
  background: #e6e6e6;
  border: none;
  box-shadow: none;
  border-radius: 4px;
}

.filtro-fondo-container,
.filtro-dinamico-publicacion,
.filtro-dinamico-tesis,
.filtro-dinamico-texto-referencia,
.filtro-dinamico-doc-administrativo,
.filtro-dinamico-otra-comunidad {
  display: none;
  width: 100%;
}

.filtro-fondo-container.activo,
.filtro-dinamico-publicacion.activo,
.filtro-dinamico-tesis.activo,
.filtro-dinamico-texto-referencia.activo,
.filtro-dinamico-doc-administrativo.activo,
.filtro-dinamico-otra-comunidad.activo {
  display: block;
}

.filtro-comun {
  display: none;
}

.filtro-comun.activo {
  display: flex;
  flex-direction: column;
}

.filtro-categoria-dinamica,
.filtro-subcategoria-dinamica {
  display: none;
}

.filtro-categoria-dinamica.activo,
.filtro-subcategoria-dinamica.activo {
  display: flex;
  flex-direction: column;
}

.filtro-categoria-dinamica select,
.filtro-subcategoria-dinamica select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

.js-wpv-dps-spinner {
  display: none;
}

.buscador-resultados {
  margin-top: 2rem;
  width: 100%;
}

.resultados-header {
  margin-bottom: 2rem;
}

.resultados-contador {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.resultados-grid {
  margin-bottom: 2rem;
}

.resultados-paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.resultados-paginacion a,
.resultados-paginacion .current {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.resultados-paginacion a:hover {
  background: #f5f5f5;
  border-color: #333;
}

.resultados-paginacion .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

@media (max-width: 768px) {
  .filtros {
    padding: 1rem;
  }

  .filtro-search {
    flex: 1 1 100%;
  }

  .btn,
  .btn-secondary,
  .btn-restablecer {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .btn-toggle-avanzado {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: center;
  }



  .filtro-fila {
    flex-direction: column;
    gap: 1rem;
  }

  .filtro-col-100,
  .filtro-col-50,
  .filtro-col-33,
  .filtro-col-25 {
    flex: 0 0 100%;
  }

  .buscador-sugerencias {
    left: 1rem;
    width: calc(100% - 2rem);
  }
}
