/* Telemax Idiomas — selector flotante. Posición (left/top) la calcula el JS para no tapar otros botones. */
#txl-switcher{
	position:fixed;left:12px;bottom:12px;top:auto;right:auto;z-index:2147483000;
	font:500 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	color:#0f172a;margin:0;padding:0;
	transition:left .28s ease,top .28s ease,opacity .2s ease;
	-webkit-tap-highlight-color:transparent;
}
#txl-switcher *,#txl-switcher *::before,#txl-switcher *::after{box-sizing:border-box}

#txl-switcher .txl__toggle{
	display:inline-flex;align-items:center;gap:8px;
	min-height:44px;margin:0;padding:6px 12px 6px 8px;
	border:1px solid rgba(15,23,42,.12);border-radius:999px;
	background:rgba(255,255,255,.94);
	-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
	box-shadow:0 6px 20px rgba(15,23,42,.18);
	color:inherit;font:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;
	cursor:pointer;touch-action:manipulation;transition:transform .15s ease,box-shadow .15s ease,opacity .2s ease;
}
#txl-switcher .txl__toggle:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(15,23,42,.24);background:#fff;color:inherit}
#txl-switcher .txl__toggle:focus-visible,
#txl-switcher .txl__item:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

#txl-switcher .txl__flag{
	display:inline-block;flex:none;width:34px;height:23px;border-radius:5px;overflow:hidden;
	box-shadow:0 0 0 1px rgba(15,23,42,.18),0 1px 3px rgba(0,0,0,.18);
}
#txl-switcher .txl__svg{display:block;width:100%;height:100%}
#txl-switcher .txl__code{font-weight:700;letter-spacing:.04em}
#txl-switcher .txl__chev{width:16px;height:16px;flex:none;opacity:.65;transition:transform .2s ease}
#txl-switcher.is-open .txl__chev{transform:rotate(180deg)}

#txl-switcher .txl__spin{display:none;width:16px;height:16px;border:2px solid rgba(15,23,42,.2);border-top-color:#2563eb;border-radius:50%;animation:txl-spin .7s linear infinite}
#txl-switcher.is-loading .txl__spin{display:inline-block}
#txl-switcher.is-loading .txl__chev{display:none}
#txl-switcher.is-loading{pointer-events:none}

/* Mientras se hace scroll el botón se atenúa para no estorbar */
#txl-switcher.is-scrolling:not(.is-open) .txl__toggle{opacity:.55}

/* Menú */
#txl-switcher .txl__menu{
	position:absolute;left:0;top:calc(100% + 8px);z-index:1;
	min-width:216px;margin:0;padding:6px;list-style:none;
	background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:16px;
	box-shadow:0 18px 44px rgba(15,23,42,.26);
	animation:txl-pop .16s ease-out;
}
#txl-switcher .txl__menu[hidden]{display:none!important}
#txl-switcher.txl--up .txl__menu{top:auto;bottom:calc(100% + 8px)}
#txl-switcher.txl--end .txl__menu{left:auto;right:0}
#txl-switcher .txl__menu li{margin:0;padding:0;list-style:none}
#txl-switcher .txl__item{
	display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 12px;
	border-radius:11px;color:#0f172a;text-decoration:none;font:inherit;letter-spacing:normal;text-transform:none;
	box-shadow:none;border:0;background:transparent;
}
#txl-switcher .txl__item:hover{background:#f1f5f9;color:#0f172a}
#txl-switcher .txl__item.is-current{background:#eff6ff;color:#1d4ed8;font-weight:700}
#txl-switcher .txl__name{flex:1;white-space:nowrap}
#txl-switcher .txl__tick{width:18px;height:18px;flex:none}

@keyframes txl-pop{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}
@keyframes txl-spin{to{transform:rotate(360deg)}}

/* Móvil */
@media (max-width:600px){
	#txl-switcher .txl__toggle{padding:5px 10px 5px 7px;gap:7px}
	#txl-switcher .txl__flag{width:30px;height:20px}
	#txl-switcher .txl__menu{min-width:min(224px,calc(100vw - 24px))}
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme:dark){
	#txl-switcher .txl__toggle{background:rgba(30,41,59,.94);color:#f1f5f9;border-color:rgba(255,255,255,.16)}
	#txl-switcher .txl__toggle:hover{background:#1e293b;color:#fff}
	#txl-switcher .txl__menu{background:#1e293b;border-color:rgba(255,255,255,.12)}
	#txl-switcher .txl__item{color:#f1f5f9}
	#txl-switcher .txl__item:hover{background:#334155;color:#fff}
	#txl-switcher .txl__item.is-current{background:#1e3a8a;color:#dbeafe}
}

@media (prefers-reduced-motion:reduce){
	#txl-switcher,#txl-switcher *{transition:none!important;animation:none!important}
}
@media print{#txl-switcher{display:none!important}}

/* Modo navegador (Google Translate): ocultar toda la interfaz propia de Google y mostrar el tic solo en el idioma activo */
#txl-switcher .txl__item:not(.is-current) .txl__tick{display:none}
#txl_google_element{display:none!important}
body > .skiptranslate,.goog-te-banner-frame,iframe.goog-te-banner-frame,.goog-te-balloon-frame,#goog-gt-tt,.goog-tooltip,.goog-te-spinner-pos{display:none!important;visibility:hidden!important}
html,body{top:0!important}
.goog-text-highlight{background:none!important;box-shadow:none!important}
font[style*="vertical-align"]{vertical-align:baseline!important}
