.ctxb-header {
	--ctxb-h-texto: #FFFFFF;
	--ctxb-h-acento: #FFD400;
	--ctxb-h-fondo: #111111;
	--ctxb-h-alto: 70px;

	position: relative;
	z-index: 50;
	width: 100%;
	color: var(--ctxb-h-texto);
	transition: background-color .25s ease;
}

/* Transparente: se apoya sobre lo que venga debajo y no ocupa espacio. */
.ctxb-header--transparente {
	background: transparent;
	position: absolute;
	top: 0;
	left: 0;
}

.ctxb-header--solido {
	background: var(--ctxb-h-fondo);
}

.ctxb-header--fijo {
	position: fixed;
	top: 0;
	left: 0;
}

/* La clase la pone el script cuando se baja del primer tramo. */
.ctxb-header.esta-abajo {
	background: var(--ctxb-h-fondo);
}

.ctxb-header__interior {
	max-width: 92%;
	margin: 0 auto;
	min-height: var(--ctxb-h-alto);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

/* ---------- Marca ---------- */

.ctxb-header__marca {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.ctxb-header__barra {
	width: 5px;
	height: 22px;
	background: var(--ctxb-h-acento);
	flex-shrink: 0;
}

.ctxb-header__marca-texto {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .01em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
}

.ctxb-header__marca-texto strong { font-weight: 800; }
.ctxb-header__marca-texto span { font-weight: 500; }

.ctxb-header__marca img { display: block; width: auto; }

/* ---------- Navegación ---------- */

.ctxb-header__nav {
	display: flex;
	align-items: center;
	gap: 34px;
}

.ctxb-header__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
}

.ctxb-header__lista li { position: relative; }

.ctxb-header__menu a {
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	opacity: .88;
	transition: opacity .18s ease, color .18s ease;
	white-space: nowrap;
}

.ctxb-header__menu a:hover,
.ctxb-header__menu .current-menu-item > a {
	opacity: 1;
	color: var(--ctxb-h-acento);
}

/* Submenús */
.ctxb-header__lista .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 210px;
	background: var(--ctxb-h-fondo);
	display: flex;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.ctxb-header__lista li:hover > .sub-menu,
.ctxb-header__lista li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ctxb-header__lista .sub-menu a {
	display: block;
	padding: 9px 16px;
}

.ctxb-header__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ctxb-h-acento);
	color: #111111;
	padding: 13px 26px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	transition: filter .18s ease;
	white-space: nowrap;
}

.ctxb-header__boton:hover { filter: brightness(.92); }

.ctxb-header__aviso {
	margin: 0;
	font-size: 13px;
	opacity: .7;
}

/* ---------- Hamburguesa ---------- */

.ctxb-header__hamburguesa {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	margin-left: auto;
}

.ctxb-header__hamburguesa span {
	display: block;
	height: 2px;
	width: 24px;
	background: currentColor;
	margin: 0 auto;
	transition: transform .22s ease, opacity .22s ease;
}

.ctxb-header__hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ctxb-header__hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ctxb-header__hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Móvil ---------- */

@media (max-width: 1024px) {
	.ctxb-header__hamburguesa { display: flex; }

	.ctxb-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ctxb-h-fondo);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 0 24px;
		display: none;
	}

	.ctxb-header__nav.esta-abierto { display: flex; }

	.ctxb-header__lista {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ctxb-header__menu a {
		display: block;
		padding: 15px 6%;
		font-size: 16px;
	}

	.ctxb-header__lista .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0 0 0 16px;
		min-width: 0;
	}

	.ctxb-header__boton {
		margin: 14px 6% 0;
		padding: 16px 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ctxb-header,
	.ctxb-header__menu a,
	.ctxb-header__boton,
	.ctxb-header__hamburguesa span,
	.ctxb-header__lista .sub-menu { transition: none; }
}
