/* Barra superior (header_top), selector de idioma y menú móvil */

:root {
	--cml-top-bg: #2b45c4;
	--cml-brand: #3c5ddf;
	--cml-ink: #1b1f3b;
	--cml-soft: #eef1ff;
	--cml-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	--cml-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	--cml-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E");
}

/* ---------- Escritorio ---------- */

header .header_top,
header.scrolled .header_top,
header.sticky .header_top {
	background-color: var(--cml-top-bg) !important;
}

/* Redes sociales */
.header_top .left .header-widget,
.header_top .left .textwidget {
	display: flex;
	align-items: center;
	height: 33px;
}
.header_top .q_social_icon_holder {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	line-height: 1 !important;
}
.header_top .q_social_icon_holder a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	line-height: 1 !important;
	transition: background-color .2s;
}
.header_top .q_social_icon_holder a:hover {
	background-color: rgba(255, 255, 255, .15);
}
.header_top .q_social_icon_holder i.simple_social {
	color: #fff !important;
	font-size: 14px;
	margin: 0 !important;
	line-height: 1 !important;
	text-align: center;
}

/* Teléfono (widget HTML de la izquierda) */
.header_top .cml-top-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, .3);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	vertical-align: middle;
}
.header_top .cml-top-phone::before {
	content: "\f095";
	font-family: FontAwesome;
	font-weight: normal;
}
.header_top .cml-top-phone:hover {
	color: #dfe5ff !important;
}

/* Menú derecho */
#menu-top-header {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 33px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
#menu-top-header > li {
	float: none;
	display: flex;
	align-items: center;
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 1;
}
#menu-top-header > li > a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 0;
}
#menu-top-header > li > a:hover,
#menu-top-header > li > a:focus-visible {
	color: #fff !important;
	opacity: .8;
}

/* Área privada */
#menu-top-header > li.menu-item-183621 > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
#menu-top-header > li.menu-item-183621 > a::before {
	content: "";
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--cml-icon-user) center / contain no-repeat;
	mask: var(--cml-icon-user) center / contain no-repeat;
}

/* Pedir un folleto */
#menu-top-header > li.menu-item-173344 > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #fff;
	color: var(--cml-top-bg);
	font-weight: 700;
	transition: background-color .2s;
}
#menu-top-header > li.menu-item-173344 > a::before {
	content: "";
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: var(--cml-icon-download) center / contain no-repeat;
	mask: var(--cml-icon-download) center / contain no-repeat;
}
#menu-top-header > li.menu-item-173344 > a:hover,
#menu-top-header > li.menu-item-173344 > a:focus-visible {
	background-color: var(--cml-soft);
	color: var(--cml-top-bg) !important;
	opacity: 1;
}

/* Selector de idioma: botón */
#menu-top-header > li.menu-item-177093 {
	order: 3;
}
#menu-top-header .menu-item-177093 > .current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px !important;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition: background-color .2s;
}
#menu-top-header .menu-item-177093 > .current:hover,
#menu-top-header .menu-item-177093.is-open > .current {
	background-color: rgba(255, 255, 255, .15);
}
#menu-top-header .menu-item-177093 > .current:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
#menu-top-header .menu-item-177093 > .current span,
#menu-top-header .translate-menu-top li a span {
	color: inherit;
}
#menu-top-header .menu-item-177093 > .current svg {
	width: 14px;
	height: 14px;
	flex: none;
}
#menu-top-header .menu-item-177093 > .current .cml-chev {
	width: 11px;
	height: 11px;
	transition: transform .2s;
}
#menu-top-header .menu-item-177093.is-open > .current .cml-chev {
	transform: rotate(180deg);
}

/* Selector de idioma: desplegable */
#menu-top-header .menu-item-177093 > ul.translate-menu-top {
	display: block !important;
	position: absolute;
	top: 34px;
	right: 0;
	left: auto;
	z-index: 1000;
	width: 210px;
	margin: 0 !important;
	padding: 6px;
	list-style: none;
	background-color: #fff !important;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(20, 30, 90, .18), 0 2px 6px rgba(20, 30, 90, .08);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
#menu-top-header .menu-item-177093.is-open > ul.translate-menu-top {
	opacity: 1;
	visibility: visible;
	transform: none;
}
#menu-top-header .translate-menu-top li {
	display: block;
	float: none;
	margin: 0;
	padding: 0;
	line-height: normal;
}
#menu-top-header .translate-menu-top li a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 10px;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	background: transparent;
	color: var(--cml-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}
#menu-top-header .translate-menu-top li a:hover,
#menu-top-header .translate-menu-top li a:focus-visible {
	background-color: #f3f4fa;
	color: var(--cml-ink);
	outline: none;
}
#menu-top-header .translate-menu-top li a.is-current {
	background-color: var(--cml-soft);
	font-weight: 700;
}
#menu-top-header .translate-menu-top li a.is-current::after {
	content: "";
	width: 16px;
	height: 16px;
	margin-left: auto;
	background-color: var(--cml-brand);
	-webkit-mask: var(--cml-icon-check) center / contain no-repeat;
	mask: var(--cml-icon-check) center / contain no-repeat;
}
#menu-top-header .translate-menu-top img {
	display: none;
}
#menu-top-header .translate-menu-top .cml-lang-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 22px;
	border-radius: 6px;
	background-color: #eceef6;
	color: #3b4163;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
}
#menu-top-header .translate-menu-top a.is-current .cml-lang-code {
	background-color: var(--cml-brand);
	color: #fff;
}

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

@media only screen and (max-width: 1000px) {

	/* Flex solo con el menú abierto (Bridge alterna display en línea) */
	nav.mobile_menu > ul[style*="display: block"],
	nav.mobile_menu > ul[style*="display:block"] {
		display: flex !important;
		flex-direction: column;
	}
	nav.mobile_menu > ul > li {
		order: 1;
	}

	/* Buscador FiboSearch: sin icono en el menú móvil */
	nav.mobile_menu #mobile-menu-item-36766 {
		display: none !important;
	}

	/* Idioma: control segmentado arriba */
	nav.mobile_menu #mobile-menu-item-179716 {
		order: 0;
		padding: 14px 0 10px;
		border-bottom: 0 !important;
	}
	nav.mobile_menu #mobile-menu-item-179716::before {
		content: "Language";
		display: block;
		margin-bottom: 8px;
		color: #5a607d;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	body.lang-es nav.mobile_menu #mobile-menu-item-179716::before {
		content: "Idioma";
	}
	body.lang-fr nav.mobile_menu #mobile-menu-item-179716::before {
		content: "Langue";
	}
	nav.mobile_menu #mobile-menu-item-179716 > a,
	nav.mobile_menu #mobile-menu-item-179716 > .mobile_arrow {
		display: none !important;
	}
	nav.mobile_menu #mobile-menu-item-179716 > ul.sub_menu {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
		height: auto !important;
		margin: 0 !important;
		padding: 4px !important;
		background-color: #eef0f7;
		border-radius: 12px;
	}
	nav.mobile_menu #mobile-menu-item-179716 > ul.sub_menu > li {
		margin: 0;
		padding: 0;
		border: 0 !important;
	}
	nav.mobile_menu #mobile-menu-item-179716 > ul.sub_menu > li > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0 4px !important;
		border: 0 !important;
		border-radius: 9px;
		background: transparent;
		color: #3b4163 !important;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.1;
		text-align: center;
	}
	nav.mobile_menu #mobile-menu-item-179716 > ul.sub_menu > li > a span {
		color: inherit !important;
	}
	nav.mobile_menu #mobile-menu-item-179716 > ul.sub_menu > li.current-language-menu-item > a {
		background-color: #fff;
		color: var(--cml-brand) !important;
		font-weight: 800;
		box-shadow: 0 1px 3px rgba(20, 30, 90, .15);
	}
	nav.mobile_menu #mobile-menu-item-179716 img {
		display: none !important;
	}

	/* Folleto y Área privada: botones al final */
	nav.mobile_menu #mobile-menu-item-37644 {
		order: 98;
		padding-top: 16px;
		border-bottom: 0 !important;
	}
	nav.mobile_menu #mobile-menu-item-37643 {
		order: 99;
		padding: 10px 0 16px;
		border-bottom: 0 !important;
	}
	nav.mobile_menu #mobile-menu-item-37644 > .mobile_arrow,
	nav.mobile_menu #mobile-menu-item-37643 > .mobile_arrow {
		display: none !important;
	}
	nav.mobile_menu #mobile-menu-item-37644 > a,
	nav.mobile_menu #mobile-menu-item-37643 > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 50px;
		padding: 0 16px !important;
		border-radius: 12px;
		box-sizing: border-box;
		font-size: 16px;
		font-weight: 700;
	}
	nav.mobile_menu #mobile-menu-item-37644 > a::before,
	nav.mobile_menu #mobile-menu-item-37643 > a::before {
		content: "";
		width: 16px;
		height: 16px;
		background-color: currentColor;
	}
	nav.mobile_menu #mobile-menu-item-37644 > a::before {
		-webkit-mask: var(--cml-icon-download) center / contain no-repeat;
		mask: var(--cml-icon-download) center / contain no-repeat;
	}
	nav.mobile_menu #mobile-menu-item-37643 > a::before {
		-webkit-mask: var(--cml-icon-user) center / contain no-repeat;
		mask: var(--cml-icon-user) center / contain no-repeat;
	}
	nav.mobile_menu #mobile-menu-item-37644 > a span,
	nav.mobile_menu #mobile-menu-item-37643 > a span {
		color: inherit !important;
	}
	nav.mobile_menu #mobile-menu-item-37644 > a {
		background-color: var(--cml-brand);
		color: #fff !important;
	}
	nav.mobile_menu #mobile-menu-item-37643 > a {
		border: 1.5px solid var(--cml-brand);
		background-color: #fff;
		color: var(--cml-brand) !important;
	}
}
