/**
 * Estilos para Language Switcher Plugin
 */

/* Desktop: pieza flotante fija arriba a la derecha */
.pfs-flag-switcher {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.pfs-flag-switcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.pfs-flags-container {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pfs-flag-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	min-height: 42px;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: #1f2937;
	text-decoration: none;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pfs-flag-link:hover {
	background-color: rgba(37, 99, 235, 0.08);
	transform: scale(1.05);
}

.pfs-flag-link.active {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-color: rgba(37, 99, 235, 0.28);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.pfs-flag-link.loading {
	opacity: 0.65;
}

.pfs-flag-img {
	width: 32px;
	height: 24px;
	display: inline-block;
	border-radius: 4px;
	object-fit: cover;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.pfs-lang-sep {
	color: rgba(100, 116, 139, 0.65);
	font-weight: 300;
	user-select: none;
}

/* Tablet y móvil: misma apariencia, abajo a la izquierda */
@media (max-width: 991px) {
	.pfs-flag-switcher {
		top: auto;
		right: auto;
		bottom: 18px;
		left: 18px;
		padding: 10px 12px;
		border-radius: 999px;
	}

	.pfs-flag-switcher:hover {
		transform: translateY(-2px);
	}

	.pfs-flags-container {
		gap: 4px;
	}

	.pfs-flag-link {
		min-width: 58px;
		min-height: 46px;
		padding: 8px 12px;
		border-radius: 999px;
	}

	.pfs-flag-link:hover {
		transform: scale(1.05);
		background-color: rgba(37, 99, 235, 0.08);
	}

	.pfs-flag-link.active {
		background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
		border-color: rgba(37, 99, 235, 0.28);
	}

	.pfs-flag-img {
		width: 34px;
		height: 26px;
		border-radius: 5px;
	}

	.pfs-lang-sep {
		color: rgba(100, 116, 139, 0.65);
	}
}

/* Móvil pequeño: más compacto para no tapar contenido */
@media (max-width: 480px) {
	.pfs-flag-switcher {
		top: auto;
		right: auto;
		bottom: 12px;
		left: 12px;
		padding: 8px 10px;
	}

	.pfs-flags-container {
		gap: 0;
	}

	.pfs-flag-link {
		min-width: 50px;
		min-height: 40px;
		padding: 6px 10px;
	}

	.pfs-flag-link.active,
	.pfs-lang-sep {
		display: none;
	}

	.pfs-flag-img {
		width: 30px;
		height: 22px;
	}
}
