/* Selector en header base (JOIN app languages — placement header) */

#base-header .control {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.65rem;
}

#base-header .fnc-header-shell {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

#base-header .fnc-lang-join-slot {
	flex: 0 0 auto;
}

.fnc-languages-selector {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 8px;
	background: #f8f9fa;
	border-radius: 999px;
	border: 1px solid #e1e8ed;
	box-sizing: border-box;
}

.fnc-languages-selector__pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none !important;
	color: #64748b;
	line-height: 1.25;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* Inactivo: hover suave (anula a:hover global del tema base) */
#base-header .fnc-languages-selector__pill:hover:not(.fnc-languages-selector__pill--active),
#base-header .fnc-languages-selector__pill:focus-visible:not(.fnc-languages-selector__pill--active) {
	color: #006d77 !important;
	background: rgba(0, 140, 153, 0.14);
	text-decoration: none !important;
	box-shadow: inset 0 0 0 1px rgba(0, 140, 153, 0.22);
}

.fnc-languages-selector__pill--active {
	background: linear-gradient(135deg, #2e8b57, #008c99);
	color: #fff !important;
}

/* Activo: hover un poco más oscuro, texto siempre claro */
#base-header .fnc-languages-selector__pill--active,
#base-header .fnc-languages-selector__pill--active:hover,
#base-header .fnc-languages-selector__pill--active:focus-visible {
	background: linear-gradient(135deg, #2e8b57, #008c99);
	color: #fff !important;
	text-decoration: none !important;
}

#base-header .fnc-languages-selector__pill--active:hover,
#base-header .fnc-languages-selector__pill--active:focus-visible {
	background: linear-gradient(135deg, #267349, #006d77);
	box-shadow: 0 2px 8px rgba(0, 140, 153, 0.28);
}

/* Barra fija EN/ES visible en móvil (fuera del drawer oculto) */
#base-header .fnc-header-lang-toolbar {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

@media screen and (max-width: 768px) {
	#base-header .fnc-header-lang-toolbar {
		order: 2;
		margin-right: 0.25rem;
		margin-left: auto;
		z-index: 2;
	}

	#base-header .fnc-header-lang-toolbar .fnc-languages-selector {
		padding: 3px 6px;
		gap: 4px;
	}

	#base-header .fnc-header-lang-toolbar .fnc-languages-selector__pill {
		padding: 3px 8px;
		font-size: 0.72rem;
	}
}

