/* ============================================
   SELECTOR DE IDIOMA - DROPDOWN ELEGANTE
   ============================================ */

.language-selector {
	position: relative;
	display: flex;
	align-items: center;
	z-index: 10000;
}

.language-current {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	user-select: none;
}

.language-current:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-flag {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
	overflow: hidden;
}

.language-flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.language-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.language-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 600;
}

.language-name {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
}

.language-arrow {
	margin-left: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	transition: transform 0.3s ease;
}

.language-selector.open .language-arrow {
	transform: rotate(180deg);
}

/* Dropdown */
.language-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: rgba(20, 20, 20, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	backdrop-filter: blur(20px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.language-selector.open .language-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.language-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
	border-bottom: none;
}

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

.language-option.active {
	background: rgba(255, 255, 255, 0.12);
	cursor: default;
}

.language-option .language-flag {
	width: 28px;
	height: 28px;
}

.language-option .language-flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.language-option .language-name {
	font-size: 13px;
	font-weight: 500;
}

.language-option.active .language-name {
	color: #fff;
}

.language-option.active::after {
	content: '✓';
	margin-left: auto;
	color: rgba(74, 222, 128, 0.9);
	font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
	.language-text {
		display: none;
	}

	.language-current {
		padding: 8px 12px;
		gap: 8px;
	}

	.language-arrow {
		margin-left: 4px;
	}

	.language-dropdown {
		min-width: 160px;
	}
}
