/* Buscador avanzado de la cabecera (inc/buscador.php). Medidas del diseño
   «Buscador del header» (artboards MejorasBuscador*). */

.bpb,
.bpb-campo,
.bpb-panel {
	--bpb-tinta: var(--e-global-color-primary, #23282f);
	--bpb-gris: #767676;
	--bpb-acento: var(--e-global-color-accent, #e7b46f);
	--bpb-filete: #d8d8d8;
	font-family: var(--e-global-typography-text-font-family, "Source Sans 3"), sans-serif;
}

.bpb-oculto {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Botones de la cabecera. El kit de Elementor da estilo a todos los botones:
   se anulan con más especificidad, también en :hover y :focus. */

.bpb {
	display: flex;
	align-items: center;
}

/* «Explorar»: la misma forma que el botón Contacto, con fondo blanco y borde gris. */
.bpb .bpb-abrir,
.bpb .bpb-abrir:hover,
.bpb .bpb-abrir:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 30px;
	background: #fff;
	border: 1px solid var(--bpb-filete);
	border-radius: 0;
	color: var(--bpb-tinta);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s;
}

.bpb .bpb-abrir:hover {
	border-color: var(--bpb-tinta);
}

.bpb .bpb-abrir__icono {
	display: block;
	flex: none;
}

/* Por debajo de 1180 px no caben «Explorar» y Contacto: queda un cuadrado con la lupa. */
@media (max-width: 1179px) {
	.bpb .bpb-abrir,
	.bpb .bpb-abrir:hover,
	.bpb .bpb-abrir:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

	.bpb .bpb-abrir__texto {
		display: none;
	}

	.bpb .bpb-abrir__icono {
		display: block;
	}
}

.bpb .bpb-cerrar,
.bpb .bpb-cerrar:hover,
.bpb .bpb-cerrar:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--bpb-filete);
	border-radius: 0;
	color: var(--bpb-tinta);
	cursor: pointer;
}

.bpb .bpb-cerrar:hover {
	border-color: var(--bpb-tinta);
}

.bpb [hidden] {
	display: none !important;
}

/* Campo: ocupa el sitio del menú principal. */

.bpb-campo {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 6px 0;
	border-bottom: 2px solid var(--bpb-acento);
	color: var(--bpb-tinta);
}

.bpb-campo[hidden] {
	display: none;
}

.bpb-campo .bpb-campo__entrada,
.bpb-campo .bpb-campo__entrada:focus {
	flex: 1;
	min-width: 0;
	padding: 6px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	color: var(--bpb-tinta);
	font-family: inherit;
	font-size: 22px;
	font-weight: 400;
	line-height: 30px;
}

.bpb-campo .bpb-campo__entrada::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.bpb-campo .bpb-campo__entrada::-webkit-search-cancel-button {
	display: none;
}

/* Velo y panel: posición calculada por buscador.js bajo la cabecera. */

.bpb-velo {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--bpb-top, 0);
	height: var(--bpb-alto, 100vh);
	z-index: 9990;
	background: rgba(35, 40, 47, 0.55);
}

.bpb-panel {
	position: absolute;
	top: var(--bpb-top, 0);
	left: var(--bpb-left, 0);
	z-index: 9991;
	width: var(--bpb-width, min(1200px, 100vw));
	color: var(--bpb-tinta);
}

.bpb-velo[hidden],
.bpb-panel[hidden],
.bpb-panel [hidden] {
	display: none !important;
}

.bpb-panel .bpb-caja {
	background: #fff;
	border: 1px solid var(--bpb-filete);
	border-top: 0;
	box-shadow: 0 18px 40px rgba(35, 40, 47, 0.18);
	font-size: 16px;
	line-height: 1.5;
}

.bpb-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpb-panel a {
	text-decoration: none;
}

.bpb-panel .bpb-antetitulo {
	margin: 0;
	color: var(--bpb-gris);
	font-size: 14px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.bpb-panel .bpb-nada {
	margin: 0;
	color: #9a9a9a;
	font-size: 15px;
}

.bpb-panel .bpb-sin-articulos {
	color: var(--bpb-gris);
	font-size: 16px;
}

.bpb-panel .bpb-lista {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Estado vacío */

.bpb-panel .bpb-vacio {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 60px;
	padding: 30px 40px 34px;
}

.bpb-panel .bpb-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bpb-panel .bpb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bpb-panel .bpb-chip,
.bpb-panel .bpb-chip:hover,
.bpb-panel .bpb-chip:focus {
	padding: 7px 16px;
	background: #f7f7f7;
	border: 0;
	border-radius: 99px;
	color: var(--bpb-tinta);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	text-transform: none;
	cursor: pointer;
}

.bpb-panel .bpb-chip:hover,
.bpb-panel .bpb-chip.is-activa {
	background: #efe7da;
}

.bpb-panel .bpb-area {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--bpb-tinta);
	font-size: 17px;
	font-weight: 500;
	line-height: 25px;
}

.bpb-panel .bpb-chevron {
	flex: none;
	width: auto;
	height: 11px;
	fill: var(--bpb-acento);
}

.bpb-panel .bpb-area {
	align-items: center;
}

.bpb-panel .bpb-todos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 2px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid #ededed;
}

/* El término va en su propia línea, debajo: un término largo no desborda. */
.bpb-panel .bpb-todos__q {
	flex-basis: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--bpb-gris);
	font-weight: 400;
}

.bpb-panel .bpb-area:hover,
.bpb-panel .bpb-area.is-activa {
	color: var(--bpb-acento);
}

/* Tus búsquedas anteriores */

.bpb-panel .bpb-anteriores {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
}

.bpb-panel .bpb-anteriores__cabecera {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.bpb-panel .bpb-chip--anterior,
.bpb-panel .bpb-chip--anterior:hover,
.bpb-panel .bpb-chip--anterior:focus {
	background: #fff;
	box-shadow: inset 0 0 0 1px #e3e3e3;
	font-weight: 500;
}

.bpb-panel .bpb-chip--anterior:hover,
.bpb-panel .bpb-chip--anterior.is-activa {
	box-shadow: inset 0 0 0 1px var(--bpb-tinta);
}

.bpb-panel .bpb-borrar,
.bpb-panel .bpb-borrar:hover,
.bpb-panel .bpb-borrar:focus {
	padding: 0;
	background: none;
	border: 0;
	color: var(--bpb-gris);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 14px;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.bpb-panel .bpb-borrar:hover {
	color: var(--bpb-tinta);
}

/* Mensaje de menos de 3 letras */

.bpb-panel .bpb-corto {
	margin: 0;
	padding: 26px 40px;
	color: var(--bpb-gris);
	font-size: 16px;
	line-height: 24px;
}

/* Resultados */

.bpb-panel .bpb-resultados {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	min-height: 300px;
}

.bpb-panel .bpb-izq {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 28px 30px 30px 40px;
	border-right: 1px solid #ededed;
}

.bpb-panel .bpb-grupo {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bpb-panel .bpb-grupo .bpb-lista {
	gap: 2px;
}

.bpb-panel .bpb-sugerencia,
.bpb-panel .bpb-sugerencia:hover,
.bpb-panel .bpb-sugerencia:focus {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 4px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--bpb-tinta);
	font-family: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 25px;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.bpb-panel .bpb-sugerencia svg {
	flex: none;
	color: #9a9a9a;
}

.bpb-panel .bpb-sugerencia b {
	font-weight: 700;
}

.bpb-panel .bpb-sugerencia:hover,
.bpb-panel .bpb-sugerencia.is-activa {
	color: var(--bpb-acento);
}

.bpb-panel .bpb-fila,
.bpb-panel .bpb-fila:hover,
.bpb-panel .bpb-fila:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	color: var(--bpb-tinta);
	font-size: 17px;
	font-weight: 600;
	line-height: 25px;
}

.bpb-panel .bpb-fila span {
	flex: none;
	color: var(--bpb-gris);
	font-weight: 400;
}

.bpb-panel .bpb-fila:hover,
.bpb-panel .bpb-fila.is-activa {
	color: var(--bpb-acento);
}

.bpb-panel .bpb-der {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px 40px 30px 30px;
}

.bpb-panel .bpb-titulo-articulos {
	margin-bottom: 8px;
}

.bpb-panel .bpb-articulo,
.bpb-panel .bpb-articulo:hover,
.bpb-panel .bpb-articulo:focus {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	color: var(--bpb-tinta);
}

.bpb-panel .bpb-articulo__img {
	display: block;
	flex: 0 0 96px;
	width: 96px;
	height: 64px;
	background: #efede9;
	object-fit: cover;
}

.bpb-panel .bpb-articulo__texto {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bpb-panel .bpb-articulo__area {
	color: #9a6420;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}

.bpb-panel .bpb-articulo__titulo {
	color: var(--bpb-tinta);
	font-size: 17px;
	font-weight: 600;
	line-height: 22px;
}

.bpb-panel .bpb-articulo__meta {
	color: var(--bpb-gris);
	font-size: 13px;
	line-height: 18px;
}

.bpb-panel .bpb-articulo:hover .bpb-articulo__titulo,
.bpb-panel .bpb-articulo.is-activa .bpb-articulo__titulo {
	color: var(--bpb-acento);
}

.bpb-panel.is-cargando .bpb-der {
	opacity: 0.6;
}

.bpb-panel .bpb-todos,
.bpb-panel .bpb-todos:hover,
.bpb-panel .bpb-todos:focus {
	color: var(--bpb-tinta);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.bpb-panel .bpb-todos:hover,
.bpb-panel .bpb-todos.is-activa {
	color: var(--bpb-acento);
}


.bpb-panel .is-activa {
	outline: 2px solid var(--bpb-acento);
	outline-offset: 2px;
}

/* ── Movimiento (como bain.com): nada aparece de golpe ───────────────────── */

@keyframes bpb-baja {
	from { opacity: 0; transform: translateY(-14px); }
	to { opacity: 1; transform: none; }
}

@keyframes bpb-sube {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(-10px); }
}

@keyframes bpb-funde-entra {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bpb-funde-sale {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes bpb-campo-entra {
	from { opacity: 0; transform: translateX(-10px); }
	to { opacity: 1; transform: none; }
}

.bpb-panel.is-entra { animation: bpb-baja 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bpb-panel.is-sale { animation: bpb-sube 0.24s ease-in both; }
.bpb-velo.is-entra { animation: bpb-funde-entra 0.3s ease both; }
.bpb-velo.is-sale { animation: bpb-funde-sale 0.24s ease both; }
.bpb-campo.is-entra { animation: bpb-campo-entra 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bpb-campo.is-sale { animation: bpb-funde-sale 0.15s ease both; }
.bpm.is-sale { animation: bpb-funde-sale 0.14s ease both; }
.bpm.is-entra { animation: bpb-funde-entra 0.25s ease both; }

@media (prefers-reduced-motion: reduce) {
	.bpb-panel.is-entra,
	.bpb-panel.is-sale,
	.bpb-velo.is-entra,
	.bpb-velo.is-sale,
	.bpb-campo.is-entra,
	.bpb-campo.is-sale,
	.bpb-barra-movil.is-entra,
	.bpb-barra-movil.is-sale,
	.bpm.is-sale,
	.bpm.is-entra {
		animation: none;
	}
}

/* ── Móvil (≤767 px), patrón y medidas de bain.com ────────────────────────── */

/* Lupa de la cabecera móvil: mismo tamaño que el menú y filete fino entre ambos. */
.bpb-abrir-movil,
.bpb-abrir-movil:hover,
.bpb-abrir-movil:focus {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 44px;
	/* Filete a 16 px exactos de cada icono, medido sobre lo que se ve: el trazo
	   de la lupa queda 9,8 px antes del borde del botón (relleno + aire del SVG)
	   y el widget de Elementor resta 6 px. 16 + 1 + 16 = 9,8 + (29,2 − 6). */
	margin-right: 29.2px;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	color: var(--e-global-color-primary, #23282f) !important;
	cursor: pointer;
}

.bpb-abrir-movil svg {
	width: 24px;
	height: 24px;
}

.bpb-abrir-movil::after {
	content: "";
	position: absolute;
	top: 50%;
	/* Borde izquierdo del filete en botón + 6,2 px = trazo de la lupa + 16 px. */
	right: -7.2px;
	width: 1px;
	height: 24px;
	background: #d8d8d8;
	transform: translateY(-50%);
}

.bpb-panel .bpb-barra-movil {
	display: none;
}

html.bpb-sin-scroll,
html.bpb-sin-scroll body {
	overflow: hidden;
}

/* La fila de la cabecera se convierte en el buscador: tapa logo e iconos. */
.bpb-barra-movil.bpb-barra-movil--activa {
	position: absolute;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 0 16px;
	background: #fff;
	border-bottom: 1px solid var(--bpb-filete);
	font-family: var(--e-global-typography-text-font-family, "Source Sans 3"), sans-serif;
}

.bpb-barra-movil.is-entra { animation: bpb-funde-entra 0.25s ease both; }
.bpb-barra-movil.is-sale { animation: bpb-funde-sale 0.2s ease both; }

.bpb-barra-movil .bpb-campo {
	flex: 1;
	min-width: 0;
	gap: 14px;
	padding: 0;
	border-bottom: 0;
}

.bpb-barra-movil .bpb-campo.is-entra {
	animation: bpb-campo-entra 0.3s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.bpb-barra-movil .bpb-campo__icono {
	width: 18px;
	height: 18px;
	color: var(--bpb-acento);
}

.bpb-barra-movil .bpb-campo .bpb-campo__entrada {
	font-size: 16px;
	line-height: 22px;
}

.bpb-barra-movil .bpb-cerrar-movil,
.bpb-barra-movil .bpb-cerrar-movil:hover,
.bpb-barra-movil .bpb-cerrar-movil:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #979797;
	cursor: pointer;
}

.bpb-velo.bpb-velo--movil {
	position: fixed;
	top: var(--bpb-top-fijo, 0);
	height: auto;
	bottom: 0;
	z-index: 2147483000;
}

/* El desplegable cuelga del borde de la cabecera, a todo el ancho. */
.bpb-panel.bpb-panel--movil {
	position: fixed;
	top: var(--bpb-top-fijo, 0) !important;
	left: 0 !important;
	z-index: 2147483001;
	width: 100% !important;
	max-height: calc(100vh - var(--bpb-top-fijo, 0px));
	max-height: calc(100dvh - var(--bpb-top-fijo, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
}

.bpb-panel--movil .bpb-caja {
	border: 0;
	box-shadow: 0 12px 24px rgba(35, 40, 47, 0.12);
}

/* Títulos como los de bain: 14 px, gris, sin mayúsculas. */
.bpb-panel--movil .bpb-antetitulo {
	color: #767676;
	font-size: 14px;
	font-weight: 500;
	line-height: 19px;
	letter-spacing: normal;
	text-transform: none;
}

.bpb-panel--movil .bpb-vacio {
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding: 16px 18px 24px;
}

.bpb-panel--movil .bpb-col,
.bpb-panel--movil .bpb-grupo {
	gap: 4px;
}

.bpb-panel--movil .bpb-chips,
.bpb-panel--movil .bpb-lista,
.bpb-panel--movil .bpb-grupo .bpb-lista {
	flex-direction: column;
	gap: 0;
}

/* Opciones a 14 px con ~36 px de paso, como bain. */
.bpb-panel--movil .bpb-chip,
.bpb-panel--movil .bpb-chip:hover,
.bpb-panel--movil .bpb-chip:focus,
.bpb-panel--movil .bpb-chip--anterior,
.bpb-panel--movil .bpb-chip--anterior:hover,
.bpb-panel--movil .bpb-area,
.bpb-panel--movil .bpb-fila,
.bpb-panel--movil .bpb-fila:hover,
.bpb-panel--movil .bpb-sugerencia,
.bpb-panel--movil .bpb-sugerencia:hover {
	width: 100%;
	padding: 8px 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--bpb-tinta);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
}

.bpb-panel--movil .bpb-anteriores {
	margin-top: 12px;
	gap: 4px;
}

.bpb-panel--movil .bpb-corto {
	padding: 16px 18px;
	font-size: 14px;
}

.bpb-panel--movil .bpb-resultados {
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
}

.bpb-panel--movil .bpb-izq {
	gap: 18px;
	padding: 16px 18px 8px;
	border-right: 0;
}

.bpb-panel--movil .bpb-todos,
.bpb-panel--movil .bpb-todos:hover {
	margin-top: 0;
	padding-top: 14px;
	font-size: 14px;
	line-height: 20px;
}

.bpb-panel--movil .bpb-der {
	padding: 12px 18px 24px;
}

.bpb-panel--movil .bpb-articulo__img {
	flex-basis: 72px;
	width: 72px;
	height: 48px;
}

.bpb-panel--movil .bpb-articulo__titulo {
	font-size: 15px;
	line-height: 20px;
}
