/* Alto mínimo del div del buscador */
#buscador {
	min-height: 200px;
}
#logo_buscador img {
	width: 30%;
}

#loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}

#loader::after {
	content: " ";
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 10px solid #f3f3f3;
	border-top: 10px solid #3498db;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.navbar-brand {
		visibility: visible !important;
	}

	#logo_buscador img {
		width: 70%;
	}
}

@keyframes typing {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

.input-placeholder-typing::placeholder {
	white-space: nowrap;
	overflow: hidden;
	display: inline-block;
	animation: typing 2s steps(30, end);
}

/* Transición de opacidad para simular cambio suave */
#input_busqueda::placeholder {
	opacity: 1;
	transition: opacity 0.4s ease;
}

#input_busqueda.fade-placeholder::placeholder {
	opacity: 0;
}

#input_busqueda::placeholder {
	transition: opacity 0.2s ease;
	color: #6c757d;
	font-style: italic;
}

.filtros-superior {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.filtro-bloque {
	flex: 1 1 300px;
}

.filtro-titulo {
	font-size: 1rem;
	color: #333;
	cursor: pointer;
	display: block;
}

.filtro-contenido {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.filtro-contenido.activo {
	max-height: 500px; /* suficientemente grande para mostrar contenido */
}

.filtro-opcion {
	display: block;
	margin: 5px 0;
	font-size: 0.95rem;
	color: #555;
}

.filtro-opcion input[type="checkbox"] {
	margin-right: 6px;
	accent-color: #007bff;
}
