/* ==========================================================================
   MOTOR: encabezado  (todas las páginas)
   Piel del encabezado de UAE (Ultimate Addons) y su menú. Funciona con cualquier
   plantilla de encabezado de UAE.
   - Barra negra, contenido alineado a 1200 px como el resto de las secciones.
   - Submenús en panel: cada opción con ícono y una línea de descripción
     (los agrega assets/js/encabezado.js según el enlace).
   En Apariencia → Menús, el elemento "Portal de clientes" lleva la clase nx-menu-portal.
   Los colores del menú llevan !important porque UAE escribe los suyos con mucha prioridad.
   ========================================================================== */

/* 1. Encabezado fijo arriba ------------------------------------------------- */
body.ehf-header #masthead {
	position: sticky;
	top: 0;
	z-index: 999;
}
body.admin-bar.ehf-header #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.ehf-header #masthead { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.ehf-header #masthead { top: 0; } }

/* 2. Barra negra ------------------------------------------------------------ */
#masthead {
	background-color: #000;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Al bajar: negro sólido, igual que arriba (25-nov-2026). Antes era negro 80% transparente: sobre fondo blanco
   se veía gris y sobre fondo oscuro negro, según la sección. Ahora se ve igual en todas. */
#masthead.is-scrolled {
	background-color: #000;
	border-bottom-color: rgba(255, 255, 255, .06);
	box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#masthead.is-scrolled { background-color: #000; }
}

#masthead .e-con {
	background-color: transparent !important;
	flex-wrap: nowrap !important;
}
/* Contenedor exterior: ancho completo, 10 px arriba y abajo, margen lateral como las secciones */
#masthead .elementor > .e-con {
	padding: 10px var(--nx-lado) !important;
}
/* Contenedor interior: 1200 px, logo a la izquierda y botón a la derecha */
#masthead .elementor > .e-con > .e-con,
#masthead .elementor > .e-con > .e-con-inner {
	width: 100% !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	min-height: 0 !important;
	justify-content: space-between !important;
	align-items: center !important;
}
#masthead .elementor > .e-con .e-con { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }

/* Logo pegado a la izquierda */
#masthead .elementor-widget-site-logo { flex: 0 0 auto; width: auto !important; }
#masthead .hfe-site-logo-set,
#masthead .hfe-site-logo-container { text-align: left !important; justify-content: flex-start !important; }
#masthead .hfe-site-logo-img {
	width: auto !important;
	max-width: none !important;
	height: 32px;
}
/* Logo centrado en la altura del menú: la imagen quedaba 4 px arriba del eje del menú y el botón */
@media (min-width: 1025px) { #masthead .hfe-site-logo-img { position: relative; top: 4px; } }

/* 3. Menú (escritorio) ------------------------------------------------------ */
#masthead ul.hfe-nav-menu { align-items: center; gap: 4px; }
#masthead .hfe-nav-menu > .menu-item a.hfe-menu-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: 1.2;
	color: #B8BEC9 !important;
	font-size: 14.5px;
	font-weight: 400;
	letter-spacing: .02em;
	padding: 12px 14px !important;
	background: transparent !important;
	transition: color .25s ease;
}
/* Línea azul que crece al pasar el mouse */
#masthead .hfe-nav-menu > .menu-item:not(.nx-menu-portal) a.hfe-menu-item::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--e-global-color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--nx-ease);
}
#masthead .hfe-nav-menu > .menu-item a.hfe-menu-item:hover,
#masthead .hfe-nav-menu > .menu-item:hover a.hfe-menu-item,
#masthead .hfe-nav-menu > .menu-item:focus-within a.hfe-menu-item,
#masthead .hfe-nav-menu > .current-menu-item a.hfe-menu-item,
#masthead .hfe-nav-menu > .current-menu-ancestor a.hfe-menu-item { color: #fff !important; }
#masthead .hfe-nav-menu > .menu-item:hover a.hfe-menu-item::after,
#masthead .hfe-nav-menu > .menu-item:focus-within a.hfe-menu-item::after,
#masthead .hfe-nav-menu > .current-menu-item a.hfe-menu-item::after { transform: scaleX(1); }
#masthead .hfe-nav-menu .sub-arrow,
#masthead .hfe-nav-menu .sub-arrow svg { color: inherit; fill: currentColor !important; transition: transform .3s var(--nx-ease); }
#masthead .hfe-nav-menu > .menu-item:hover .sub-arrow { transform: rotate(180deg); }

/* "Portal de clientes" con contorno */
#masthead .hfe-nav-menu > .nx-menu-portal a.hfe-menu-item {
	border: 1px solid rgba(255, 255, 255, .22) !important;
	border-radius: 999px;
	padding: 9px 16px !important;
	margin-left: 10px;
	color: #fff !important;
	transition: border-color .25s ease, background-color .25s ease;
}
#masthead .hfe-nav-menu > .nx-menu-portal:hover a.hfe-menu-item {
	border-color: rgba(255, 255, 255, .5) !important;
	background: rgba(255, 255, 255, .06) !important;
}

/* 4. Submenú en panel oscuro -------------------------------------------------- */
#masthead .hfe-nav-menu .sub-menu {
	background: #0B0B0D !important;
	border: 1px solid rgba(255, 255, 255, .1) !important;
	border-radius: 20px;
	padding: 12px !important;
	min-width: 320px;
	margin-top: 10px !important;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
	animation: nxPanel .35s var(--nx-ease) both;
}
@keyframes nxPanel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Puente invisible para que el panel no se cierre al bajar el mouse */
#masthead .hfe-nav-menu .sub-menu::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -14px;
	height: 14px;
}
/* Productos: dos columnas de opciones + tarjeta con foto a la derecha */
#masthead .hfe-nav-menu .nx-sub--productos {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) 280px;
	grid-auto-rows: min-content;
	column-gap: 6px;
	row-gap: 2px;
	width: min(900px, 92vw);
	padding: 18px !important;
}
#masthead .hfe-nav-menu .sub-menu li.menu-item { border: 0 !important; }
#masthead .hfe-nav-menu .sub-menu a.hfe-sub-menu-item {
	display: flex !important;
	align-items: flex-start;
	justify-content: flex-start !important;
	text-align: left !important;
	gap: 14px;
	color: #E5E7EB !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 12px;
	padding: 14px !important;
	font-size: 15px !important;
	font-weight: 500;
	line-height: 1.25;
	white-space: normal;
	transition: background-color .2s ease;
}
#masthead .hfe-nav-menu .sub-menu a.hfe-sub-menu-item:hover { background: rgba(255, 255, 255, .06) !important; }

/* Ícono, nombre y descripción (los agrega encabezado.js) */
#masthead .nx-mi__ico {
	flex: 0 0 22px;
	height: 22px;
	margin-top: 1px;
	display: grid;
	place-items: center;
	color: #C9CFD9;
	transition: color .2s ease;
}
#masthead .nx-mi__ico svg { width: 22px; height: 22px; }
#masthead .sub-menu a.hfe-sub-menu-item:hover .nx-mi__ico { color: #6AA8FF; }
#masthead .nx-mi__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
#masthead .nx-mi__nombre { font-weight: 600; color: #fff; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
#masthead .nx-mi__desc { font-size: 14px; font-weight: 300; color: #A6AEBB; line-height: 1.4; }

/* Tarjeta con foto (la agrega encabezado.js). La foto se cambia en --nx-panel-foto */
#masthead { --nx-panel-foto: url(../../../../uploads/2026/11/menu-asesora-portal.webp); }
#masthead .nx-sub__tarjeta {
	grid-column: 3;
	grid-row: 1 / span 6;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	background: #16171C;
	border: 1px solid rgba(255, 255, 255, .08);
}
#masthead .nx-sub__foto {
	aspect-ratio: 4 / 3;
	background: var(--nx-panel-foto) center / cover no-repeat;
}
#masthead .nx-sub__cuerpo { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
#masthead .nx-sub__ante { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6AA8FF; }
#masthead .nx-sub__titulo { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.2; }
#masthead .nx-sub__texto { font-size: 14px; font-weight: 300; color: #A6AEBB; line-height: 1.45; }
#masthead .nx-sub__boton {
	align-self: flex-start;
	margin-top: 6px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--e-global-color-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	transition: filter .2s ease;
}
#masthead .nx-sub__boton:hover { filter: brightness(1.1); }
#masthead .nx-sub__tel { font-size: 13px; color: #C9CFD9 !important; }

/* 5. Botón de contacto ------------------------------------------------------ */
#masthead a.e-button-base,
#masthead .elementor-button { white-space: nowrap; }
#masthead a.e-button-base,
.nx-header__cta .elementor-button {
	border-radius: 999px !important;
	padding: 11px 22px !important;
	font-size: 14.5px !important;
	font-weight: 500;
	transition: transform .3s var(--nx-ease), filter .3s ease;
}
#masthead a.e-button-base:hover,
.nx-header__cta .elementor-button:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* 6. Celular y tableta (menú desplegable) ----------------------------------- */
#masthead .hfe-nav-menu__toggle { color: #fff; }
#masthead .hfe-nav-menu-icon,
#masthead .hfe-nav-menu-icon svg { color: #fff !important; fill: #fff !important; }

@media (max-width: 1024px) {
	/* El menú se despliega a todo el ancho, justo debajo de la barra, y sus opciones alinean con el margen de la página */
	#masthead .elementor > .e-con,
	#masthead .elementor > .e-con .e-con,
	#masthead .elementor > .e-con > .e-con-inner,
	#masthead .elementor-widget-navigation-menu { position: static !important; }
	#masthead .hfe-nav-menu__breakpoint-tablet nav {
		position: absolute !important;
		top: 100% !important; left: 0 !important; right: 0 !important;
		width: auto !important; margin: 0 !important;
		max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto;
		background: #000 !important;
		border-top: 1px solid rgba(255, 255, 255, .08);
		box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
	}
	#masthead .hfe-nav-menu__breakpoint-tablet .menu-item a.hfe-menu-item {
		color: #E5E7EB !important;
		background: transparent !important;
		border-radius: 0;
		padding: 15px var(--nx-lado, 24px) !important;
		border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
	}
	#masthead .hfe-nav-menu__breakpoint-tablet .sub-menu,
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-sub--productos {
		display: block !important;
		width: auto;
		min-width: 0;
		margin: 0 !important;
		background: #0B0B0D !important;
		border: 0 !important;
		border-radius: 0;
		box-shadow: none;
		padding: 4px calc(var(--nx-lado, 24px) - 12px) !important;
	}
	#masthead .hfe-nav-menu__breakpoint-tablet .sub-menu a.hfe-sub-menu-item {
		color: #E5E7EB !important;
		padding: 10px 12px !important;
	}
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-mi__nombre { color: #fff; }
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-mi__desc { color: #9CA3AF; }
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-mi__ico { color: #6AA8FF; }
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-sub__tarjeta,
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-mi__ir { display: none; }
	#masthead .hfe-nav-menu__breakpoint-tablet .nx-menu-portal a.hfe-menu-item { margin: 0; border-width: 0 0 1px 0 !important; }
}
@media (max-width: 480px) {
	.nx-header__cta .elementor-button,
	#masthead a.e-button-base { padding: 8px 14px !important; font-size: 13px !important; }
	#masthead .hfe-site-logo-img { height: 26px; }
}

/* ==========================================================================
   7. ISLA CENTRAL (escritorio, desde 1025 px)
   - Los enlaces viven en una isla de vidrio centrada; un resalte se desliza al enlace bajo el cursor.
   - "Portal de clientes" se vuelve un botón redondo con ícono junto a la isla (el texto sigue para lectores de pantalla).
   - Los submenús conservan el panel oscuro con íconos y la tarjeta con foto, ahora en vidrio y centrados.
   Las piezas .nx-isla__fondo y .nx-isla__resalte las agrega encabezado.js.
   ========================================================================== */
@media (min-width: 1025px) {
	#masthead .elementor > .e-con > .e-con,
	#masthead .elementor > .e-con > .e-con-inner { position: relative; }
	#masthead .elementor-widget-navigation-menu {
		position: absolute !important; left: 50%; top: 50%;
		transform: translate(-50%, -50%);
		width: auto !important; z-index: 2;
	}
	#masthead nav.hfe-nav-menu__layout-horizontal { position: relative; }
	#masthead ul.hfe-nav-menu { position: relative; z-index: 1; gap: 2px; padding: 5px 0; }
	#masthead ul.hfe-nav-menu > li.menu-item:first-child { margin-left: 5px; }
	#masthead ul.hfe-nav-menu > li.menu-item { z-index: 1; }
	/* el vidrio de la isla y el resalte que se desliza */
	#masthead .nx-isla__fondo,
	#masthead .nx-isla__resalte { position: absolute; top: 0; bottom: 0; border-radius: 999px; pointer-events: none; }
	#masthead .nx-isla__fondo {
		z-index: 0;
		background: rgba(255, 255, 255, .06);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .1);
	}
	#masthead .nx-isla__resalte {
		z-index: 0; top: 5px; bottom: 5px; opacity: 0;
		background: rgba(255, 255, 255, .11);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
		transition: left .4s var(--nx-ease), width .4s var(--nx-ease), opacity .25s ease;
	}
	#masthead .nx-isla__resalte.is-on { opacity: 1; }
	/* enlaces de la isla: sin la línea azul de antes, con píldora */
	#masthead .hfe-nav-menu > .menu-item:not(.nx-menu-portal) a.hfe-menu-item::after { display: none; }
	#masthead .hfe-nav-menu > .menu-item:not(.nx-menu-portal) a.hfe-menu-item {
		border-radius: 999px; padding: 9px 16px !important; font-size: 14px;
	}
	/* página actual: punto de luz azul bajo el texto */
	#masthead .hfe-nav-menu > .current-menu-item:not(.nx-menu-portal) a.hfe-menu-item::before,
	#masthead .hfe-nav-menu > .current-menu-ancestor:not(.nx-menu-portal) a.hfe-menu-item::before {
		content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
		background: #00B4FF; box-shadow: 0 0 8px 2px rgba(0, 180, 255, .7);
	}
	/* Portal de clientes: un enlace más dentro de la isla (sin el contorno de antes) */
	#masthead .hfe-nav-menu > .nx-menu-portal a.hfe-menu-item {
		border: 0 !important; margin-left: 0; padding: 9px 16px !important; color: #B8BEC9 !important;
		font-size: 14px;
	}
	#masthead .hfe-nav-menu > .nx-menu-portal:hover a.hfe-menu-item,
	#masthead .hfe-nav-menu > .nx-menu-portal:focus-within a.hfe-menu-item { color: #fff !important; background: transparent !important; }
	#masthead ul.hfe-nav-menu > li.menu-item:last-child { margin-right: 5px; }

	/* Submenús en vidrio oscuro, con el mismo contenido de siempre */
	#masthead .hfe-nav-menu .sub-menu {
		background: rgba(16, 17, 20, .94) !important;
		-webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
		border: 0 !important;
		border-radius: 26px;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 80px -30px rgba(0, 0, 0, .85);
		margin-top: 14px !important;
	}
	/* Productos: centrado bajo la isla */
	#masthead .hfe-nav-menu > li.menu-item-has-children { position: static !important; }
	/* Productos: mismo ancho que el contenido de la página (1200 px), tres columnas y la tarjeta */
	#masthead { --nx-panel-ancho: min(1200px, calc(100vw - 2 * var(--nx-lado, 24px) - 16px)); }
	#masthead .hfe-nav-menu .nx-sub--productos {
		left: 50% !important; right: auto !important;
		width: var(--nx-panel-ancho);
		margin-left: calc(var(--nx-panel-ancho) / -2) !important;
		grid-template-columns: repeat(6, minmax(0, 1fr)) 300px;
		column-gap: 8px; row-gap: 8px;
		padding: 16px !important;
		border-radius: 28px;
	}
	/* Opciones como mosaicos que llenan su celda: 3 arriba y 2 abajo (cuando son 5) */
	#masthead .nx-sub--productos > li.menu-item:not(.nx-sub__tarjeta) { grid-column: span 2; display: flex; }
	#masthead .nx-sub--productos > li.menu-item:nth-child(4):nth-last-child(3),
	#masthead .nx-sub--productos > li.menu-item:nth-child(5):nth-last-child(2) { grid-column: span 3; }
	#masthead .nx-sub--productos > li.menu-item:not(.nx-sub__tarjeta) > a.hfe-sub-menu-item {
		flex: 1; align-items: center; padding: 18px !important;
		background: rgba(255, 255, 255, .035) !important;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
	}
	#masthead .nx-sub--productos > li.menu-item:not(.nx-sub__tarjeta) > a.hfe-sub-menu-item:hover { background: rgba(255, 255, 255, .08) !important; }
	#masthead .nx-sub--productos .nx-sub__tarjeta { grid-column: 7; }
	/* Portal de clientes: mismo panel de 1200 px que Productos, mosaicos de tres en tres y la tarjeta con foto a la derecha */
	#masthead .hfe-nav-menu .nx-sub--portal {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
		align-items: stretch;
		gap: 8px;
		left: 50% !important; right: auto !important;
		width: var(--nx-panel-ancho); min-width: 0;
		margin-left: calc(var(--nx-panel-ancho) / -2) !important;
		padding: 16px !important;
		border-radius: 28px;
	}
	#masthead .nx-sub--portal > li.menu-item:not(.nx-sub__tarjeta) { display: flex; min-width: 0; }
	#masthead .nx-sub--portal > li.menu-item:not(.nx-sub__tarjeta) > a.hfe-sub-menu-item {
		flex: 1; align-items: center; padding: 18px !important; /* mismo formato que los mosaicos de Productos */
		background: rgba(255, 255, 255, .035) !important;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
	}
	#masthead .nx-sub--portal > li.menu-item:not(.nx-sub__tarjeta) > a.hfe-sub-menu-item:hover { background: rgba(255, 255, 255, .08) !important; }
	#masthead .nx-mi__ir { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #6AA8FF; }
	#masthead .nx-mi__ir svg { width: 16px; height: 16px; transition: transform .3s var(--nx-ease); }
	#masthead .nx-sub--portal a.hfe-sub-menu-item:hover .nx-mi__ir svg { transform: translateX(4px); }
	#masthead .nx-sub--portal .nx-sub__tarjeta { grid-column: 4; grid-row: 1 / span 2; }
	#masthead .hfe-nav-menu .sub-menu a.hfe-sub-menu-item { border-radius: 16px; }
	#masthead .nx-mi__ico {
		flex: 0 0 38px; height: 38px; margin-top: 0; border-radius: 11px;
		background: rgba(0, 112, 235, .16); color: #6AA8FF;
		transition: background-color .2s ease, color .2s ease;
	}
	#masthead .nx-mi__ico svg { width: 19px; height: 19px; }
	#masthead .sub-menu a.hfe-sub-menu-item:hover .nx-mi__ico { background: #0070EB; color: #fff; }
	#masthead .nx-sub__tarjeta { border-radius: 18px; grid-row: 1 / span 2; }
	#masthead .nx-sub__foto { aspect-ratio: 2 / 1; }
	#masthead .nx-sub__cuerpo { padding: 16px; gap: 6px; }
	#masthead .nx-sub__texto { display: none; }
}

@media (max-width: 1024px) { #masthead .nx-isla__fondo, #masthead .nx-isla__resalte { display: none; } }

/* 8. Celular: sin botón de contacto en la barra (queda el de WhatsApp y "Contáctanos" dentro del menú) */
@media (max-width: 767px) {
	#masthead .e-5a7fe2e-c078449 > a.e-button-base { display: none !important; }
	#masthead .e-5a7fe2e-c078449 > .elementor-widget:first-child { margin-right: auto; }
}
.nx-menu-contacto { display: none !important; }
@media (max-width: 1024px) {
	#masthead .nx-menu-contacto { display: block !important; padding: 14px var(--nx-lado, 24px) 18px; }
	#masthead .nx-menu-contacto a.hfe-menu-item {
		display: flex !important; justify-content: center; align-items: center; gap: 10px;
		background: #375EFB !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
		padding: 13px 20px !important; font-weight: 500;
	}
}

/* Íconos del menú desplegable: cuadro sólido con borde fino (sin bordes borrosos sobre el fondo oscuro) */
@media (min-width: 1025px) {
	#masthead .nx-mi__ico {
		background: #12284D; color: #7DB3FF; border-radius: 12px;
		box-shadow: inset 0 0 0 1px rgba(125, 179, 255, .22);
		-webkit-backface-visibility: hidden; backface-visibility: hidden;
	}
	#masthead .sub-menu a.hfe-sub-menu-item:hover .nx-mi__ico { background: #0070EB; color: #fff; box-shadow: none; }
}

/* Secciones de la página del producto en la tarjeta de Productos (las arma encabezado.js).
   El panel se sobrepone a la tarjeta: la tarjeta y los mosaicos no cambian de tamaño. */
#masthead .nx-sub__tarjeta { position: relative; }
#masthead .nx-sub__secc {
	position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px 18px;
	background: #16171C; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
#masthead .nx-sub__tarjeta.is-secc .nx-sub__secc { opacity: 1; visibility: visible; }
#masthead .nx-sub__secc-lista { display: flex; flex-direction: column; margin: 10px 0 14px; }
#masthead .nx-sub__secc-lista a {
	display: flex; align-items: center; gap: 8px; padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: #E6E8EB !important; font-size: 14.5px; font-weight: 400; text-decoration: none;
}
#masthead .nx-sub__secc-lista a:hover { color: #fff !important; }
#masthead .nx-sub__secc-lista a em { font-style: normal; background: #0070EB; color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1; padding: 3px 5px; }
#masthead .nx-sub__secc-lista a svg { width: 14px; height: 14px; margin-left: auto; color: #6B7079; transition: transform .2s, color .2s; }
#masthead .nx-sub__secc-lista a:hover svg { transform: translateX(3px); color: #6AA8FF; }
#masthead .nx-sub__secc .nx-sub__tel { margin-top: auto; }
/* Mosaico con secciones: indicador a la derecha y resalte mientras su panel está abierto */
#masthead .nx-mi--secc > a.hfe-sub-menu-item { position: relative; padding-right: 44px !important; }
#masthead .nx-mi__mas {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .14); color: #A6AEBB; transition: color .2s, border-color .2s, background .2s;
}
#masthead .nx-mi__mas small { display: none; }
#masthead .nx-mi__mas svg { width: 14px; height: 14px; }
#masthead .nx-mi--secc:hover .nx-mi__mas,
#masthead .nx-mi--secc.is-abierto .nx-mi__mas { color: #fff; border-color: #0070EB; background: #0070EB; }
#masthead .nx-sub--productos > li.nx-mi--secc.is-abierto > a.hfe-sub-menu-item {
	background: rgba(0, 112, 235, .14) !important;
	box-shadow: inset 0 0 0 1px rgba(106, 168, 255, .55) !important;
}

/* Segundo nivel de Productos: la flecha de un mosaico con secciones cambia todo el panel a las secciones de su página */
#masthead .nx-sub--productos { position: absolute; }
#masthead .nx-sub__nivel {
	position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 14px;
	padding: 18px 20px; background: #111216; border-radius: inherit;
}
#masthead .nx-sub__nivel[hidden] { display: none; }
#masthead .nx-sub__nivel-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#masthead .nx-sub__nivel-cab .nx-sub__ante { color: #fff; }
#masthead .nx-sub__volver {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .14); color: #C9CDD3; font: 500 13.5px Roboto, sans-serif;
}
#masthead .nx-sub__volver:hover { color: #fff; border-color: #0070EB; background: rgba(0, 112, 235, .14); }
#masthead .nx-sub__volver svg { width: 16px; height: 16px; }
#masthead .nx-sub__toda { color: #6AA8FF !important; font: 500 13.5px Roboto, sans-serif; text-decoration: none; }
#masthead .nx-sub__toda:hover { color: #fff !important; }
#masthead .nx-sub__nivel-g { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
#masthead a.nx-sub__sec {
	display: flex; align-items: flex-start; gap: 12px; padding: 18px; text-decoration: none;
	background: #1A1B20; border: 1px solid #23252B; transition: background .2s, border-color .2s;
}
#masthead a.nx-sub__sec:hover { background: rgba(0, 112, 235, .12); border-color: rgba(106, 168, 255, .55); }
#masthead a.nx-sub__sec i { flex: none; color: #6AA8FF; }
#masthead a.nx-sub__sec i svg { width: 20px; height: 20px; display: block; }
#masthead a.nx-sub__sec b { font: 500 15.5px/1.3 Roboto, sans-serif; color: #fff; }
#masthead a.nx-sub__sec em { font-style: normal; margin-left: 8px; vertical-align: 2px; background: #0070EB; color: #fff; font: 700 9.5px/1 Roboto, sans-serif; padding: 3px 5px; }
#masthead a.nx-sub__sec small { display: block; margin-top: 6px; font: 300 13px/1.4 Roboto, sans-serif; color: #A6AEBB; }
#masthead a.nx-sub__sec--asesor { background: #13213A; border-color: #2E5A9C; align-items: center; }
#masthead a.nx-sub__sec--asesor:hover { background: #0070EB; border-color: #0070EB; }
#masthead a.nx-sub__sec--asesor small { color: #C9D6EA; }
#masthead button.nx-mi__mas { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); color: #A6AEBB; transition: color .2s, border-color .2s, background .2s; }
#masthead button.nx-mi__mas:hover, #masthead button.nx-mi__mas:focus-visible { color: #fff; border-color: #0070EB; background: #0070EB; }
@media (max-width: 1024px) {
	#masthead .nx-sub__nivel { position: static; }
	#masthead .nx-sub--productos.is-nivel > li { display: none !important; }
	#masthead .nx-sub__nivel-g { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* Opción A (20 nov 2026): en escritorio el segundo nivel ya no tapa los productos.
   Las secciones aparecen en el lugar de la tarjeta con foto (columna derecha) y los mosaicos siguen visibles. */
@media (min-width: 1025px) {
	#masthead .nx-sub--productos > .nx-sub__nivel {
		inset: 16px 16px 16px auto; width: 300px;
		padding: 14px 12px; gap: 8px; border-radius: 18px; overflow: hidden;
		background: #111216; box-shadow: inset 0 0 0 1px rgba(106, 168, 255, .45);
	}
	#masthead .nx-sub__nivel .nx-sub__volver { display: none; }
	#masthead .nx-sub__nivel-cab { flex-direction: column; align-items: flex-start; gap: 6px; }
	#masthead .nx-sub__nivel-cab .nx-sub__ante { font: 700 11px/1.3 Roboto, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7FBBFF; }
	#masthead .nx-sub__nivel-g { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 4px; align-content: start; }
	#masthead .nx-sub__nivel a.nx-sub__sec { align-items: center; gap: 10px; padding: 6px 10px; min-height: 0; }
	#masthead .nx-sub__nivel a.nx-sub__sec > span { display: flex; align-items: center; line-height: 18px; }
	#masthead .nx-sub__nivel a.nx-sub__sec em { margin-left: 6px; vertical-align: 0; }
	#masthead .nx-sub__nivel a.nx-sub__sec i svg { width: 17px; height: 17px; }
	#masthead .nx-sub__nivel a.nx-sub__sec b { font-size: 14px; }
	#masthead .nx-sub__nivel a.nx-sub__sec small { display: none; }
	#masthead .nx-sub__nivel a.nx-sub__sec--asesor { display: none; }
	/* El mosaico de CCP queda resaltado mientras sus secciones están a la vista */
	#masthead .nx-sub--productos.is-nivel > li.nx-mi--secc > a.hfe-sub-menu-item {
		background: rgba(0, 112, 235, .14) !important;
		box-shadow: inset 0 0 0 1px rgba(106, 168, 255, .55) !important;
	}
	#masthead .nx-sub--productos.is-nivel > li.nx-mi--secc button.nx-mi__mas { color: #fff; border-color: #0070EB; background: #0070EB; }
}
