/* Traductor Gmaster - Estilos de la barra flotante */
.tg-floating-bar {
    position: fixed;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
}

.tg-floating-bar.tg-pos-right {
    right: 20px;
}

.tg-floating-bar.tg-pos-left {
    left: 20px;
}

.tg-bar-icon {
    font-size: 16px;
    line-height: 1;
}

.tg-bar-title {
    font-weight: 600;
    white-space: nowrap;
}

.tg-lang-select {
    border-radius: 4px;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: inherit;
}

.tg-lang-select option {
    color: #000;
}

.tg-bar-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: inherit;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.tg-floating-bar.tg-collapsed .tg-bar-title,
.tg-floating-bar.tg-collapsed .tg-lang-select {
    display: none;
}

.tg-floating-bar.tg-collapsed {
    padding: 8px 10px;
}

/* Oculta la barra por defecto de Google Translate (top banner) */
body {
    top: 0 !important;
}

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

#google_translate_element {
    display: none !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    .tg-bar-title {
        display: none;
    }
    .tg-floating-bar {
        padding: 6px 10px;
    }
}
