CSS


/* Buscador de Baterías para Vehículos — estilos propios (prefijo .bbv-). */

.bbv-buscador {
	max-width: 100%;
	margin: 1.5rem 0;
	font-family: inherit;
}

/* Indicador de pasos */
.bbv-pasos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	counter-reset: bbv;
}

.bbv-paso {
	counter-increment: bbv;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.85rem 0.35rem 0.45rem;
	border: 1px solid #e4e4e7;
	border-radius: 999px;
	font-size: 0.8rem;
	line-height: 1;
	color: #a1a1aa;
	background: #fafafa;
	transition: all 0.25s ease;
}

.bbv-paso::before {
	content: counter(bbv);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: #f4f4f5;
	font-weight: 600;
	font-size: 0.75rem;
}

.bbv-paso-activo {
	color: #18181b;
	border-color: #18181b;
	background: #fff;
}

.bbv-paso-activo::before {
	background: #18181b;
	color: #fff;
}

.bbv-paso-hecho {
	color: #3f6212;
	border-color: #a3e635;
	background: #f7fee7;
}

.bbv-paso-hecho::before {
	background: #65a30d;
	color: #fff;
}

/* Campos */
.bbv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
}

.bbv-campo {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.bbv-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #52525b;
}

.bbv-select {
	width: 100%;
	padding: 0.4rem 0.75rem;
	border: 1px solid #d4d4d8;
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	color: #18181b;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.4rem center;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bbv-select:not(:disabled):focus {
	outline: none;
	border-color: #18181b;
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12);
}

.bbv-select:disabled {
	background-color: #f4f4f5;
	color: #a1a1aa;
	cursor: not-allowed;
}

/* Botón de búsqueda */
.bbv-acciones {
	margin-top: 1.25rem;
}

.bbv-btn-buscar {
	display: inline-block;
	padding: 0.7rem 1.6rem;
	border: none;
	border-radius: 10px;
	background: #18181b;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bbv-btn-buscar:not(:disabled):hover {
	background: #3f3f46;
	transform: translateY(-1px);
}

.bbv-btn-buscar:disabled {
	background: #e4e4e7;
	color: #a1a1aa;
	cursor: not-allowed;
}

/* Resultados */
.bbv-resultado {
	margin-top: 1.75rem;
}

.bbv-resumen {
	font-size: 0.95rem;
	color: #52525b;
	padding: 0.65rem 0.9rem;
	background: #fafafa;
	border: 3px solid #18181b;
	border-radius: 6px;
}

.bbv-seo {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.bbv-seo a {
	color: #18181b;
	font-weight: 600;
}

.bbv-titulo-resultado {
	margin: 1.1rem 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: #18181b;
}

.bbv-baterias {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
}

.bbv-bateria {
	border: 1px solid #e4e4e7;
	border-radius: 14px;
	padding: 1.1rem;
	background: #fff;
	transition: border-color 0.2s ease;
}

.bbv-bateria:hover {
	border-color: #a1a1aa;
}

.bbv-bateria-nombre {
	font-weight: 700;
	color: #18181b;
	line-height: 1.3;
}

.bbv-bateria-specs {
	margin-top: 0.4rem;
	font-weight: 600;
	color: #3f3f46;
	font-size: 0.95rem;
}

.bbv-bateria-dim {
	margin-top: 0.25rem;
	font-size: 0.82rem;
	color: #71717a;
}

.bbv-bateria-boton {
	display: inline-block;
	margin-top: 0.85rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: #f59e0b;
	color: #1c1917;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s ease;
}

.bbv-bateria-boton:hover {
	background: #fbbf24;
	color: #1c1917;
}

.bbv-vacio {
	border: 1px dashed #d4d4d8;
	border-radius: 14px;
	padding: 1.25rem;
	background: #fafafa;
	color: #3f3f46;
}

.bbv-vacio p {
	margin: 0 0 0.35rem;
	font-weight: 600;
	color: #18181b;
}

.bbv-vacio-nota {
	font-weight: 400 !important;
	font-size: 0.9rem;
	color: #71717a !important;
}

.bbv-error {
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: #fef2f2;
	color: #b91c1c;
}

.bbv-bateria-imagen {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: contain;
	margin: 0 auto 1rem;
}

/* Móvil: selectores apilados */
@media (max-width: 640px) {
	.bbv-grid {
		grid-template-columns: 1fr;
	}
	.bbv-paso {
		font-size: 0.72rem;
	}
}