/* =========================================================
   Selector de idioma (GTranslate) integrado en el header
   López & James
   ========================================================= */

/* Fuente de GTranslate (solo para cargar su script) y widget original vacío */
.lj-lang-src { display: none !important; }
.header .elementor-widget-shortcode:has(.lj-lang-src),
.header .elementor-element-ba0d7ad { display: none !important; }

.lj-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(241, 135, 0, .35);
  border-radius: 999px;
  background: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.lj-lang__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 12px 0 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1d1d1d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-transition: background-color .25s ease, color .25s ease;
  transition: background-color .25s ease, color .25s ease;
}

.lj-lang__btn img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.lj-lang__btn:hover {
  background: rgba(241, 135, 0, .10);
  color: var(--judges-base, #f18700);
}

.lj-lang__btn.is-active,
.lj-lang__btn.is-active:hover {
  background: var(--judges-base, #f18700);
  color: #fff;
  cursor: default;
}

.lj-lang__btn.is-active img { box-shadow: 0 0 0 2px #fff; }

.lj-lang__btn:focus-visible {
  outline: 2px solid var(--judges-base, #f18700);
  outline-offset: 2px;
}

/* Instancia móvil: oculta por defecto */
.lj-lang--mobile { display: none; }

/* ---------- Móvil (el tema oculta .main-menu__right) ---------- */
@media (max-width: 767px) {
  .main-menu__main-menu-box {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .lj-lang--mobile { display: inline-flex; }
  .lj-lang__btn {
    height: 30px;
    gap: 5px;
    padding: 0 9px 0 3px;
    font-size: 12px;
  }
  .lj-lang__btn img { width: 22px; height: 22px; }
}

/* ---------- Pantallas muy pequeñas: solo banderas ---------- */
@media (max-width: 400px) {
  .lj-lang__btn span { display: none; }
  .lj-lang__btn { padding: 0 4px; }
}
