/* ============================================================
   MotionMaster Translate — estilos de la burbuja flotante
   ============================================================ */

/* Ocultar la barra superior y los tooltips de Google Translate */
.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}
body {
    top: 0 !important;
    position: static !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

/* Contenedor del widget */
.mmt-widget {
    position: fixed;
    z-index: 99998;
    bottom: 24px;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.mmt-bottom-left  { left: 24px; }
.mmt-bottom-right { right: 24px; }

/* Burbuja */
.mmt-bubble {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--mmt-accent, #9A7526);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
    padding: 0;
}
.mmt-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}
.mmt-bubble:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.mmt-icon-globe {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

/* Panel de idiomas */
.mmt-panel {
    position: absolute;
    bottom: 70px;
    min-width: 214px;
    background: #15140f;
    border: 1px solid rgba(201, 168, 108, .25);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.95);
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1),
                transform .25s cubic-bezier(.4, 0, .2, 1),
                visibility .25s;
}
.mmt-bottom-left  .mmt-panel { left: 0;  transform-origin: bottom left; }
.mmt-bottom-right .mmt-panel { right: 0; transform-origin: bottom right; }
.mmt-widget.open .mmt-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mmt-panel-title {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mmt-accent, #9A7526);
    font-weight: 600;
    padding: 6px 10px 10px;
}

.mmt-lang {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 9px 10px;
    border-radius: 9px;
    color: #F7F4EE;
    transition: background .2s ease;
}
.mmt-lang:hover {
    background: rgba(201, 168, 108, .12);
}
.mmt-lang:focus-visible {
    outline: none;
    background: rgba(201, 168, 108, .18);
}
.mmt-code {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 108, .14);
    color: var(--mmt-accent, #9A7526);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}
.mmt-name {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.2;
}

/* Idioma activo */
.mmt-lang.active {
    background: rgba(201, 168, 108, .10);
}
.mmt-lang.active .mmt-code {
    background: var(--mmt-accent, #9A7526);
    color: #15140f;
}
.mmt-lang.active .mmt-name {
    color: var(--mmt-accent, #9A7526);
    font-weight: 600;
}

@media (max-width: 480px) {
    .mmt-widget { bottom: 18px; }
    .mmt-bottom-left  { left: 18px; }
    .mmt-bottom-right { right: 18px; }
    .mmt-panel { min-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .mmt-bubble,
    .mmt-panel,
    .mmt-lang { transition: none !important; }
}
