/* BRANSTOM HEADER v1.0.0 - CSS autocontenido, inyectado inline por branstom_render_header(). */
/* Tokens propios --bh-* con valores HEX del DS Branstom. Breakpoints: 901 / 769-900 / 768. */

:root {
	--bh-bg: #0D0D0D;
	--bh-fg: #F7F7F7;
	--bh-muted: #A0A09F;
	--bh-accent: #ECD292;
	--bh-hover: #242424;
	--bh-cta-bg: #FFFFFF;
	--bh-cta-fg: #0D0D0D;
	--bh-font-stack: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, sans-serif;
	--bh-radius-pill: 9999px;
	--bh-radius-panel: 2rem;
	--bh-radius-item: 0.75rem;
	--bh-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.bh-wrap {
	position: relative;
	z-index: 50;
	padding: 20px 16px 0;
	font-family: var(--bh-font-stack);
	box-sizing: border-box;
}
.bh-wrap *, .bh-wrap *::before, .bh-wrap *::after { box-sizing: border-box; }

.bh-nav {
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 80vw;
	max-width: 1400px;
	padding: 12px 12px 12px 28px;
	background: var(--bh-bg);
	color: var(--bh-fg);
	border-radius: var(--bh-radius-pill);
	font-weight: 500;
}

.bh-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none !important;
}
.bh-logo img { display: block; height: 20px; width: auto; }

.bh-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 32px;
}
.bh-menu li { margin: 0; padding: 0; }

.bh-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--bh-fg);
	text-decoration: none !important;
	cursor: pointer;
	transition: color .2s ease;
	line-height: 1.4;
}
.bh-link:hover, .bh-link.is-active { color: var(--bh-accent); }
.bh-link__chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform .3s ease;
}
.bh-link.is-active .bh-link__chevron { transform: rotate(180deg); }

.bh-end {
	display: flex;
	align-items: center;
	gap: 8px;
}
.bh-cta {
	display: none;
	align-items: center;
	background: var(--bh-cta-bg);
	color: var(--bh-cta-fg) !important;
	padding: 10px 24px;
	border-radius: var(--bh-radius-pill);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: opacity .2s ease;
}
.bh-cta:hover { opacity: .9; }

.bh-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	color: var(--bh-fg);
	padding: 0;
	border-radius: var(--bh-radius-pill);
	cursor: pointer;
}
.bh-burger svg { width: 20px; height: 20px; }

.bh-megamenu-wrap {
	position: absolute;
	left: 50%;
	top: 100%;
	width: 80vw;
	max-width: 1400px;
	transform: translateX(-50%);
	margin-top: 8px;
	display: none;
}
.bh-megamenu-wrap.is-mounted { display: block; }
.bh-megamenu-wrap .bh-megamenu-inner {
	transition: opacity .3s ease-out, transform .3s ease-out;
	opacity: 0;
	transform: translateY(-12px) scale(.95);
	transform-origin: top center;
	pointer-events: none;
}
.bh-megamenu-wrap.is-visible .bh-megamenu-inner {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.bh-megamenu {
	display: grid;
	width: 100%;
	grid-template-columns: 1fr 1fr 1fr 1.15fr;
	grid-template-rows: repeat(4, minmax(64px, 1fr));
	grid-auto-flow: column;
	column-gap: 16px;
	row-gap: 4px;
	background: var(--bh-bg);
	border-radius: var(--bh-radius-panel);
	padding: 20px;
	box-shadow: var(--bh-shadow);
}

.bh-megamenu__item {
	display: flex;
	width: 100%;
	align-items: center;
	align-self: stretch;
	gap: 12px;
	background: transparent;
	border: 0;
	padding: 12px;
	border-radius: var(--bh-radius-item);
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
	color: var(--bh-fg);
	font-family: inherit;
	transition: background-color .2s ease;
}
.bh-megamenu__item:hover, .bh-megamenu__item:focus-visible {
	background: var(--bh-hover);
	outline: none;
}
.bh-megamenu__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--bh-muted);
	transition: color .2s ease;
}
.bh-megamenu__label {
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--bh-fg);
	transition: color .2s ease;
}
.bh-megamenu__item:hover .bh-megamenu__icon,
.bh-megamenu__item:hover .bh-megamenu__label,
.bh-megamenu__item:focus-visible .bh-megamenu__icon,
.bh-megamenu__item:focus-visible .bh-megamenu__label {
	color: var(--bh-accent);
}

.bh-megamenu__image-col {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	grid-column: 4;
	grid-row: 1 / span 4;
}
.bh-megamenu__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .3s ease;
}

.bh-mobile-panel {
	margin: 8px auto 0;
	width: 80vw;
	max-width: 1400px;
	display: none;
}
.bh-mobile-panel.is-mounted { display: block; }
.bh-mobile-panel .bh-mobile-inner {
	transition: opacity .4s ease-out, transform .4s ease-out;
	opacity: 0;
	transform: translateY(-12px) scale(.95);
	transform-origin: top center;
	pointer-events: none;
}
.bh-mobile-panel.is-visible .bh-mobile-inner {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.bh-mobile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-radius: var(--bh-radius-panel);
	background: var(--bh-bg);
	padding: 20px;
	color: var(--bh-fg);
	box-shadow: var(--bh-shadow);
}

.bh-mobile-link {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: transparent;
	border: 0;
	border-radius: 1rem;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	color: inherit;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
.bh-mobile-link:hover { background: var(--bh-hover); }
.bh-mobile-link__chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform .3s ease;
}
.bh-mobile-link.is-active .bh-mobile-link__chevron { transform: rotate(180deg); }

.bh-mobile-sub {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	transition: grid-template-rows .3s ease-out;
}
.bh-mobile-sub.is-open { grid-template-rows: 1fr; }
.bh-mobile-sub > div { min-height: 0; }
.bh-mobile-sub ul {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 0 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bh-mobile-sub li { margin: 0; padding: 0; }

.bh-mobile-sub__item {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: transparent;
	border: 0;
	border-radius: var(--bh-radius-item);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	color: var(--bh-fg);
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
.bh-mobile-sub__item:hover { background: var(--bh-hover); }
.bh-mobile-sub__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--bh-muted); transition: color .2s ease; }
.bh-mobile-sub__item span { color: var(--bh-fg); transition: color .2s ease; }
.bh-mobile-sub__item:hover svg, .bh-mobile-sub__item:hover span { color: var(--bh-accent); }

.bh-mobile-cta {
	margin-top: 12px;
	display: block;
	width: 100%;
	text-align: center;
	background: var(--bh-cta-bg);
	color: var(--bh-cta-fg) !important;
	padding: 12px 24px;
	border-radius: var(--bh-radius-pill);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
}

@media (min-width: 901px) {
	.bh-menu { display: flex; }
	.bh-cta { display: inline-flex; }
	.bh-burger { display: none; }
	.bh-mobile-panel { display: none !important; }
}

@media (max-width: 900px) {
	.bh-megamenu-wrap { display: none !important; }
}
