/* Restaurado: estilo limpio y profesional para el selector de idioma */
.container {
	position: relative;
	z-index: 100;
}

.trigger {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.trigger:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

.trigger ion-icon {
	font-size: 12px;
	opacity: 0.7;
}

.flag {
	font-size: 16px;
	line-height: 1;
}

.code {
	font-size: 11px;
	letter-spacing: 0.5px;
}


.dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	background: #1a1a1d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	animation: fadeInScale 0.15s ease;
}

@media (max-width: 768px) {
	.dropdown {
		left: 0;
		right: auto;
	}
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-4px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	font-size: 13px;
	transition: background 0.15s ease;
	text-align: left;
}

.option:hover {
	background: rgba(255, 255, 255, 0.08);
}

.option.active {
	background: rgba(1, 183, 46, 0.13); /* primary claro y sutil */
	color: var(--primary-color);
}

.option.active ion-icon {
	color: var(--primary-color);
	font-size: 16px;
	font-weight: bold;
	filter: none;
}

.option ion-icon {
	margin-left: auto;
	font-size: 14px;
	color: rgba(255,255,255,0.5);
}

.label {
	flex: 1;
}

/* Light theme */
:global(body.light-theme) .trigger {
	border-color: rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.04);
	color: rgba(0, 0, 0, 0.75);
}

:global(body.light-theme) .trigger:hover {
	background: rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.2);
}

:global(body.light-theme) .dropdown {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

:global(body.light-theme) .option {
	color: rgba(0, 0, 0, 0.75);
}
