/* Selector de idioma — flotante junto al WhatsApp */

.msj-float-actions {
	position: fixed;
	bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
	right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.msj-float-actions .msj-float-wa {
	position: static;
	bottom: auto;
	right: auto;
}

.msj-lang {
	position: relative;
	z-index: 60;
	flex-shrink: 0;
}

.msj-lang--float .msj-lang__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
	width: 3.35rem;
	height: 3.35rem;
	padding: 0;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: #fff;
	color: #0c1116;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.msj-lang--float .msj-lang__btn:hover,
.msj-lang--float .msj-lang__btn[aria-expanded="true"] {
	border-color: #0c1116;
	background: #0c1116;
	color: #54fdc8;
}

.msj-lang__flag {
	font-size: 1.15rem;
	line-height: 1;
}

.msj-lang--float .msj-lang__flag {
	font-size: 1.35rem;
}

.msj-lang--float .msj-lang__code {
	display: none;
}

.msj-lang__menu {
	position: fixed;
	z-index: 9995;
	min-width: 168px;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(12, 17, 22, 0.1);
	box-shadow: 0 16px 40px rgba(12, 17, 22, 0.18);
}

.msj-lang__menu button {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: #0c1116;
	font: inherit;
	font-weight: 600;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	cursor: pointer;
}

.msj-lang__menu button:hover,
.msj-lang__menu button.is-active {
	background: #f3f5f8;
}

.msj-lang__menu .msj-lang__flag {
	font-size: 1.2rem;
}

/* Motor Google: oculto pero usable (display:none rompe idiomas ≠ inglés) */
.msj-lang-engine,
.goog-te-gadget {
	position: absolute !important;
	left: -9999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body {
	top: 0 !important;
}

.goog-te-banner-frame {
	display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
	display: none !important;
}

@media (max-width: 767px) {
	.msj-float-actions {
		bottom: max(1.05rem, env(safe-area-inset-bottom, 1.05rem));
		gap: 0.45rem;
	}

	.msj-lang--float .msj-lang__btn {
		width: 3.05rem;
		height: 3.05rem;
	}

	.msj-lang--float .msj-lang__flag {
		font-size: 1.25rem;
	}
}
