/* Cabecera global 3BFS. Diseño del home aprobado (v2). */
.bfs-cab {
	--c-navy: #0E2A5C;
	--c-navy-2: #14428F;
	--c-azul: #1B62C4;
	--c-rojo: #E1232C;
	--c-rojo-2: #B8161E;
	--c-amarillo: #FFD200;
	--c-linea: #DDE3EC;
	--c-texto: #22262E;
	--c-gris: #69717F;
	--c-r: 10px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--c-texto);
	line-height: 1.5;
	position: relative;
	z-index: 100;
}
.bfs-cab *, .bfs-cab *::before, .bfs-cab *::after { box-sizing: border-box; }
.bfs-cab a { color: inherit; text-decoration: none; }
.bfs-cab ul { list-style: none; margin: 0; padding: 0; }
.bfs-cab button, .bfs-cab input, .bfs-cab select { font: inherit; }
.bfs-cab :focus-visible { outline: 3px solid var(--c-azul); outline-offset: 2px; }
.bfs-cab-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Barra de servicio */
.bfs-cab-servicio {
	background: var(--c-navy);
	color: #CBD6E8;
	font-size: 12.5px;
}
.bfs-cab-servicio__fila {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
}
.bfs-cab-servicio__datos {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.bfs-cab-servicio b { color: var(--c-amarillo); font-weight: 600; }
.bfs-cab-servicio a { display: inline-flex; align-items: center; gap: 6px; }
.bfs-cab-servicio a:hover { color: #fff; }
.bfs-cab-servicio__contacto {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
	white-space: nowrap;
}
.bfs-cab-whatsapp svg { color: #4ADE80; }
.bfs-cab-idioma {
	display: inline-flex;
	gap: 2px;
	background: rgba(255, 255, 255, .08);
	border-radius: 20px;
	padding: 2px;
}
.bfs-cab-idioma a {
	padding: 3px 10px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 11.5px;
}
.bfs-cab-idioma a.is-activo { background: #fff; color: var(--c-navy); }

/* Fila principal */
.bfs-cab-principal {
	background: #fff;
	border-bottom: 1px solid var(--c-linea);
}
.bfs-cab-principal__fila {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.bfs-cab-logo { flex: 0 0 auto; display: block; line-height: 0; }
.bfs-cab .bfs-cab-logo__img { height: 52px; width: auto; max-width: none; display: block; }
.bfs-cab-logo__txt { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--c-navy); line-height: 1.2; }

.bfs-cab-buscador {
	flex: 1;
	display: flex;
	max-width: 660px;
	margin: 0;
	border: 2px solid var(--c-navy);
	border-radius: var(--c-r);
	overflow: hidden;
	background: #fff;
}
.bfs-cab-buscador select {
	max-width: 180px;
	height: auto;
	margin: 0;
	padding: 0 30px 0 14px;
	border: 0;
	border-right: 1px solid var(--c-linea);
	border-radius: 0;
	background: #F5F7FB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2322262E' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none;
	appearance: none;
	font-size: 13.5px;
	color: var(--c-texto);
	box-shadow: none;
	cursor: pointer;
}
.bfs-cab-buscador input[type="search"] {
	flex: 1;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 0;
	background: #fff;
	font-size: 14.5px;
	color: var(--c-texto);
	box-shadow: none;
	outline: none;
}
.bfs-cab-buscador button {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	min-width: 56px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--c-navy);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s;
}
.bfs-cab-buscador button:hover { background: var(--c-azul); }

.bfs-cab-acciones {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.bfs-cab-acc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--c-r);
	font-size: 13px;
	line-height: 1.15;
	color: var(--c-texto);
	transition: background-color .15s;
}
.bfs-cab-acc:hover { background: #F2F5FA; }
.bfs-cab-acc svg { flex: 0 0 auto; }
.bfs-cab-acc__datos i { display: block; font-style: normal; color: var(--c-gris); font-size: 11.5px; }
.bfs-cab-acc__datos b { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-texto); }
.bfs-cab-acc__datos b .amount { color: inherit; }
.bfs-cab-carrito__num {
	position: absolute;
	top: 2px;
	left: 24px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--c-rojo);
	color: #fff;
	font-style: normal;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
}
.bfs-cab-mayoreo {
	padding: 11px 16px;
	border-radius: var(--c-r);
	background: var(--c-rojo);
	color: #fff !important;
	font-weight: 600;
	font-size: 13.5px;
	white-space: nowrap;
	transition: background-color .15s;
}
.bfs-cab-mayoreo:hover { background: var(--c-rojo-2); }

/* Menú de categorías */
.bfs-cab-menu {
	background: #fff;
	border-bottom: 1px solid var(--c-linea);
}
.bfs-cab-menu__fila {
	display: flex;
	align-items: stretch;
	gap: 10px;
}
.bfs-cab-todas { position: relative; flex: 0 0 auto; display: flex; }
.bfs-cab-todas__btn {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 0;
	background: var(--c-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s;
}
.bfs-cab-todas__btn:hover,
.bfs-cab-todas__btn[aria-expanded="true"] { background: var(--c-navy-2); }
.bfs-cab-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	min-width: 280px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--c-linea);
	border-radius: 0 0 var(--c-r) var(--c-r);
	box-shadow: 0 14px 34px rgba(14, 42, 92, .14);
}
.bfs-cab-panel[hidden] { display: none; }
.bfs-cab-panel a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
}
.bfs-cab-panel a:hover { background: #F2F5FA; color: var(--c-azul); }

.bfs-cab-menu__scroll {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.bfs-cab-menu__scroll::-webkit-scrollbar { display: none; }
.bfs-cab-menu__lista { display: flex; align-items: stretch; gap: 4px; }
.bfs-cab-menu__lista li { flex: 0 0 auto; display: flex; }
.bfs-cab-menu__lista a {
	display: flex;
	align-items: center;
	padding: 12px 10px;
	border-bottom: 3px solid transparent;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}
.bfs-cab-menu__lista a:hover,
.bfs-cab-menu__lista .current-menu-item > a { color: var(--c-azul); border-bottom-color: var(--c-azul); }
.bfs-cab-menu__lista .bfs-destacado > a { color: var(--c-rojo); font-weight: 700; }

/* Tableta */
@media (max-width: 1024px) {
	.bfs-cab-principal__fila { flex-wrap: wrap; gap: 12px 16px; }
	.bfs-cab-buscador { order: 3; flex-basis: 100%; max-width: none; }
	.bfs-cab-servicio__entrega { display: none; }
}

/* Móvil */
@media (max-width: 767px) {
	.bfs-cab-wrap { padding: 0 16px; }
	.bfs-cab-servicio { font-size: 12px; }
	.bfs-cab-servicio__fila { min-height: 32px; }
	.bfs-cab-servicio__datos { gap: 14px; }
	.bfs-cab-servicio__contacto { gap: 14px; }
	.bfs-cab-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bfs-cab-principal__fila { padding-top: 10px; padding-bottom: 12px; gap: 10px 8px; }
	.bfs-cab .bfs-cab-logo__img { height: 44px; }
	.bfs-cab-acc { padding: 8px; }
	.bfs-cab-acc__datos { display: none; }
	.bfs-cab-acciones { gap: 2px; }
	.bfs-cab-mayoreo { padding: 9px 12px; font-size: 12.5px; margin-left: 4px; }
	.bfs-cab-buscador select { display: none; }
	.bfs-cab-buscador input[type="search"] { padding: 11px 12px; font-size: 16px; }
	.bfs-cab-todas__btn { padding: 11px 14px; }
	.bfs-cab-todas__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bfs-cab-panel { position: fixed; left: 16px; right: 16px; top: auto; min-width: 0; border-radius: var(--c-r); max-height: 70vh; overflow-y: auto; }
	.bfs-cab-menu__lista a { padding: 11px 10px; font-size: 13.5px; }
}

@media (max-width: 400px) {
	.bfs-cab-mayoreo { font-size: 12px; padding: 8px 10px; }
	.bfs-cab .bfs-cab-logo__img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.bfs-cab * { transition: none !important; }
}
