.ta-lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.ta-lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(11, 79, 115, 0.95);
    color: #fff;
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 16px;
    padding: 4px 9px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    font-size: 12px;
}

.ta-lang-current:hover {
    border-color: #00e5ff;
}

.ta-code {
    font-weight: 600;
    letter-spacing: .5px;
}

.ta-caret {
    font-size: 9px;
    opacity: .8;
}

.ta-lang-menu {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    position: absolute;
    right: 0;
    top: 100%;
    background: #0B4F73;
    border: 1px solid rgba(0, 229, 255, .4);
    border-radius: 8px;
    display: none;
    min-width: 76px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.ta-lang-menu.open {
    display: block;
}

.ta-lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px 7px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
}

.ta-lang-option:hover {
    background: rgba(0, 229, 255, .15);
}

.ta-flag svg {
    display: block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

/* Ocultar la interfaz por default de Google Translate, solo usamos el motor */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

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

#google_translate_element {
    display: none !important;
}

.skiptranslate iframe {
    display: none !important;
}

/* Quitar el resaltado y la tarjeta "Texto original / Califica esta traducción"
   que Google agrega al pasar el cursor sobre texto traducido, y evitar que
   bloquee los clics normales del sitio. */
font.goog-text-highlight,
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-tooltip-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mientras el sitio está en inglés (traducido por Google), se desactiva
   la selección de texto: Google dispara selección real del navegador
   al pasar el cursor, y esto lo bloquea para que la navegación se
   sienta normal, sin nada que se "marque" solo. */
html.translated-ltr body,
html.translated-ltr body * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Los campos de formulario deben seguir siendo seleccionables/editables */
html.translated-ltr input,
html.translated-ltr textarea,
html.translated-ltr select,
html.translated-ltr [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
