/* Centrar verticalmente el navbar completo */
.navbar-inverse.sub-navbar {
	display: flex !important;
	align-items: center !important;
	min-height: 50px !important;
}

.navbar-inverse.sub-navbar .container {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	justify-content: space-between !important;
}

.navbar-inverse.sub-navbar .navbar-collapse {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex: 1 !important;
}

/* Estilos para centrar verticalmente el menú de usuario */
.navbar-right {
	display: flex !important;
	align-items: center !important;
	height: 50px !important;
	margin: 0 !important;
	margin-left: auto !important;
}

.navbar-right>li {
	display: flex !important;
	align-items: center !important;
	height: 100% !important;
}

/* Estilos para el dropdown del usuario - versión desktop */
.user-dropdown-toggle {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 12px 18px !important;
	font-size: 14px !important;
}

/* Mantener estilos en hover, focus y active - NO cambiar colores */
.user-dropdown-toggle:hover,
.user-dropdown-toggle:focus,
.user-dropdown-toggle:active,
.user-dropdown-toggle:visited {
	color: #fff !important;
	background-color: transparent !important;
	text-decoration: none !important;
}

.navbar-right>li.dropdown>a:hover,
.navbar-right>li.dropdown>a:focus,
.navbar-right>li.dropdown>a:active {
	color: #fff !important;
	background-color: transparent !important;
	text-decoration: none !important;
}

.navbar-right>li.dropdown.open>a,
.navbar-right>li.dropdown.open>a:hover,
.navbar-right>li.dropdown.open>a:focus {
	color: #fff !important;
	background-color: transparent !important;
	text-decoration: none !important;
}

.user-icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.user-icon img {
	width: 100%;
	height: 100%;
}

.dropdown-arrow {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dropdown-arrow img {
	width: 100%;
	height: 100%;
}

/* Estilos para el círculo con iniciales - versión móvil */
.user-avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: linear-gradient(180deg, #9B2247 0%, #611232 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.user-avatar-circle span {
	color: #FFF;
	text-align: center;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

/* Ocultar/mostrar elementos según el tamaño de pantalla */
.navbar-right .user-menu-desktop {
	display: flex !important;
}

.navbar-right .user-menu-mobile {
	display: none !important;
}

/* Media query para pantallas móviles (768px o menos) */
@media (max-width: 768px) {
	.navbar-right .user-menu-desktop {
		display: none !important;
	}

	.navbar-right .user-menu-mobile {
		display: flex !important;
	}
}

/* Asegurar que los elementos li tengan el comportamiento correcto */
.navbar-right>li.user-menu-desktop,
.navbar-right>li.user-menu-mobile {
	list-style: none;
}

/* Estilos para el link móvil */
.user-dropdown-link-mobile {
	padding: 5px 15px;
	display: block;
	text-decoration: none !important;
}

/* Overlay para cerrar el panel al hacer click fuera */
.overlay-barrera {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
	pointer-events: auto;
	display: none;
}

.overlay-barrera .overlay-link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Panel de perfil desplegable */
.perfil-panel {
	display: none;
	position: fixed;
	top: 165px;
	right: 20px;
	width: 380px;
	max-width: calc(100vw - 40px);
	flex-direction: column;
	align-items: center;
	gap: 8px;
	border-radius: 16px;
	background: #FFF;
	box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
	z-index: 1050;
	animation: slideDown 0.2s ease-out;
}

.perfil-panel.visible {
	display: flex;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.perfil-panel .perfil-paneles {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	align-self: stretch;
}

.perfil-panel .perfil-paneles .perfil-datos {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 16px;
	width: 100%;
	gap: 8px;
	background: #F0ECED;
	border-radius: 16px 16px 0 0;
}

.perfil-panel .perfil-paneles .perfil-datos .perfil {
	width: 56px;
	height: 56px;
	border-radius: 40px;
	border: none;
	background: linear-gradient(180deg, #9B2247 0%, #611232 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.perfil-panel .perfil-paneles .perfil-datos .perfil span {
	color: #FFF;
	text-align: center;
	font-family: "Noto Sans", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.perfil-panel .perfil-paneles .perfil-datos .datos {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	flex: 1;
}

.perfil-panel .perfil-paneles .perfil-datos .datos .nombre {
	color: #161A1D;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

.perfil-panel .perfil-paneles .perfil-datos .datos .tipo-perfil {
	color: #161A1D;
	font-family: "Noto Sans", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

.perfil-panel .perfil-paneles .seccion-opciones {
	display: flex;
	padding: 0 16px;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	align-self: stretch;
}

.perfil-panel .perfil-paneles .seccion-opciones .opcion-perfil {
	display: flex;
	padding: 8px 0;
	align-items: center;
	gap: 4px;
	align-self: stretch;
	border-bottom: 1px solid #DDD;
	text-decoration: none !important;
	color: #161A1D !important;
	transition: background-color 0.2s ease;
}

.perfil-panel .perfil-paneles .seccion-opciones .opcion-perfil:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.perfil-panel .perfil-paneles .seccion-opciones .opcion-perfil.sin-borde {
	border-bottom: none;
}

.perfil-paneles .seccion-opciones .opcion-perfil.sin-borde .color-negro {
	color: #161A1D !important;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 135.714%;
	/* 19px */
}

.perfil-panel .perfil-paneles .seccion-opciones .opcion-perfil span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	color: #611232;
	text-overflow: ellipsis;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 135.714%;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	flex: 1 0 0;
}

.perfil-panel .perfil-paneles .seccion-opciones .opcion-perfil img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	align-self: stretch;
	overflow-y: auto;
	max-height: 250px;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil {
	display: flex;
	padding: 8px 0;
	align-items: center;
	gap: 4px;
	align-self: stretch;
	border-bottom: 1px solid #DDD;
	text-decoration: none !important;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil.sin-borde {
	border-bottom: none;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil .contenedor-texto {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	align-items: flex-start;
	flex: 1 0 0;
	overflow: hidden;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil .contenedor-texto .titulo {
	overflow: hidden;
	color: #161A1D;
	text-overflow: ellipsis;
	font-family: "Noto Sans", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 135.714%;
	width: 100%;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil .contenedor-texto .subtitulo {
	overflow: hidden;
	color: #767676;
	text-overflow: ellipsis;
	font-family: "Noto Sans", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	width: 100%;
}

.perfil-panel .perfil-paneles .seccion-opciones .lista-opciones .opcion-perfil img {
	width: 24px;
	height: 24px;
}

.perfil-panel .perfil-paneles .cerrar-sesion {
	display: flex;
	padding: 4px 16px;
	flex-direction: row;
	align-items: center;
	align-self: stretch;
	justify-content: center;
	gap: 8px;
	text-decoration: none !important;
	height: 41px;
	transition: background-color 0.2s ease;
}

.perfil-panel .perfil-paneles .cerrar-sesion:hover {
	background-color: rgba(97, 18, 50, 0.05);
}

.perfil-panel .perfil-paneles .cerrar-sesion img {
	width: 24px;
	height: 24px;
	aspect-ratio: 1/1;
}

.perfil-panel .perfil-paneles .cerrar-sesion span {
	color: #611232;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 137.5%;
}

.perfil-panel .perfil-paneles .regresar {
	display: flex;
	padding: 4px 16px;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	align-self: stretch;
	gap: 8px;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.perfil-panel .perfil-paneles .regresar:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.perfil-panel .perfil-paneles .regresar img {
	width: 24px;
	height: 24px;
}

.perfil-panel .perfil-paneles .regresar span {
	color: #611232;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 137.5%;
}

.perfil-panel .perfil-paneles .filtro {
	padding: 0 16px;
	width: 100%;
}

.perfil-panel .perfil-paneles .filtro .filtro-moral {
	border-radius: 100px;
	border: 1px solid #DDD;
	background: #F9F9F9;
	display: flex;
	padding: 8px 16px;
	align-items: center;
	gap: 8px;
	align-self: stretch;
}

.perfil-panel .perfil-paneles .filtro .filtro-moral img {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.perfil-panel .perfil-paneles .filtro .filtro-moral .input-buscador {
	flex: 1 0 0;
	color: #AAA;
	font-family: "Noto Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	border: none;
	background: none;
}

/* Ajustes responsive para el panel de perfil */
@media (max-width: 768px) {
	.perfil-panel {
		right: 10px;
		left: 10px;
		width: auto;
		max-width: none;
	}
}

.texto-idioma {
	color: #FFF !important;
	font-family: "Noto Sans", sans-serif !important;
	font-size: 16px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 22px !important;
}

.texto-usuario {
	color: #FFF !important;
	font-family: "Noto Sans", sans-serif !important;
	font-size: 14px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 19px !important;
}

.idioma-wrapper {
	position: relative;
}

.menu-idioma-panel {
	position: absolute;
	top: 100%;
	right: 0;
	width: 175px;
	display: none;
	z-index: 2000 !important;
}

.menu-idioma-panel.visible {
	display: block;
}

.navbar,
.navbar .nav,
.navbar .dropdown,
.idioma-wrapper,
.user-menu-desktop {
	z-index: 1500;
}

@media (max-width : 768px) {
	#formNavbar\\:idPPIdiomaMob {
		position: absolute;
		top: 100%;
		left: 0;
		right: auto !important;
		margin: 0 !important;
		width: auto;
		z-index: 2000 !important;
	}
	.menu-idioma-panel {
		right: auto !important;
		left: -40px !important;
	}
	.menu-idioma-panel.sin-sesion {
		left: -90px !important;
	}
}