/* RM Traductor — selector de idioma */
.rmtr-switcher { font-size: 14px; line-height: 1.2; }
.rmtr-switcher .rmtr-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.rmtr-switcher .rmtr-item { margin: 0; }
.rmtr-switcher .rmtr-item a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 6px; text-decoration: none;
    color: inherit; border: 1px solid rgba(0,0,0,.15); background: rgba(255,255,255,.7);
    transition: background .15s ease, border-color .15s ease;
}
.rmtr-switcher .rmtr-item a:hover { background: rgba(0,0,0,.06); }
.rmtr-switcher .rmtr-item.is-active a { font-weight: 700; border-color: currentColor; background: rgba(0,0,0,.08); }
.rmtr-switcher .rmtr-code { font-weight: 700; letter-spacing: .03em; }
.rmtr-switcher .rmtr-label { opacity: .85; }

/* Variante flotante (pie de página) */
.rmtr-switcher.rmtr-floating {
    position: fixed; right: 16px; bottom: 16px; z-index: 99990;
    background: #fff; padding: 6px; border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.rmtr-switcher.rmtr-floating .rmtr-item a { border-color: rgba(0,0,0,.1); }

/* Variante desplegable (para menús) */
.rmtr-switcher.rmtr-dropdown { position: relative; }
.rmtr-menu-item { position: relative; list-style: none; }
.rmtr-switcher.rmtr-dropdown .rmtr-toggle {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    color: inherit; text-decoration: none;
}
.rmtr-switcher.rmtr-dropdown .rmtr-toggle .rmtr-current-label { opacity: .9; }
.rmtr-switcher.rmtr-dropdown .rmtr-caret {
    width: 0; height: 0; display: inline-block;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; transition: transform .15s ease;
}
.rmtr-switcher.rmtr-dropdown.is-open .rmtr-caret { transform: rotate(180deg); }

/* El submenú desplegado */
.rmtr-switcher.rmtr-dropdown .rmtr-submenu {
    position: absolute; top: 100%; left: 0; z-index: 99991;
    min-width: 160px; margin: 6px 0 0; padding: 6px;
    list-style: none;
    background: #fff; color: #1a1a1a;
    border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.rmtr-switcher.rmtr-dropdown:hover .rmtr-submenu,
.rmtr-switcher.rmtr-dropdown.is-open .rmtr-submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.rmtr-switcher.rmtr-dropdown .rmtr-submenu li { margin: 0; list-style: none; }
.rmtr-switcher.rmtr-dropdown .rmtr-submenu a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 6px;
    color: #1a1a1a !important; text-decoration: none; white-space: nowrap;
}
.rmtr-switcher.rmtr-dropdown .rmtr-submenu a:hover { background: rgba(0,0,0,.06); }
.rmtr-switcher.rmtr-dropdown .rmtr-submenu .is-active a { font-weight: 700; }
.rmtr-switcher.rmtr-dropdown .rmtr-submenu .rmtr-code { font-weight: 700; min-width: 2.2em; }

/* Alinear a la derecha si no cabe */
@media (max-width: 600px) {
    .rmtr-switcher.rmtr-dropdown .rmtr-submenu { left: auto; right: 0; }
}

@media (max-width: 600px) {
    .rmtr-switcher.rmtr-floating { right: 10px; bottom: 10px; }
    .rmtr-switcher.rmtr-floating .rmtr-label { display: none; }
}
