/* RAW Language Switcher (WPML) — centrado y compacto (desktop) */
.raw-ls { position: relative; display: inline-block; }
.raw-ls * { -webkit-tap-highlight-color: transparent; }

/* Tipografía y color */
.raw-ls__btn,
.raw-ls__item {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;          /* Medium */
  font-style: normal;
  font-size: 16px;
  line-height: 1;            /* 100% */
  letter-spacing: 0;
  color: #E84626;
}

/* Botón principal: texto + chevron centrados (desktop) */
.raw-ls__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;    /* centra texto+icono como conjunto */
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #E84626;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
}

/* Chevron inline (20x10) */
.raw-ls__chev {
  width: 20px;
  height: 10px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform .2s ease;
}
.raw-ls.open .raw-ls__chev { transform: rotate(180deg); }

/* Label centrado (desktop) */
.raw-ls__label {
  white-space: nowrap;
  text-align: center;
}

/* Sin efectos visuales añadidos por el theme */
.raw-ls__btn:hover,
.raw-ls__btn:focus,
.raw-ls__btn:active {
  color: #E84626 !important;
  background: transparent !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Dropdown oscuro sin viñetas y centrado (desktop) */
.raw-ls__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  background: #0b0b0b;
  border: 2px solid #E84626;
  display: none;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.raw-ls.open .raw-ls__menu { display: block; }
.raw-ls__menu li { margin: 0; }

/* Ítems del menú */
.raw-ls__item {
  display: block;
  width: 100%;
  padding: 12px 24px;
  text-align: center;
  color: #E84626 !important;
  background: transparent !important;
  text-decoration: none !important;
}
.raw-ls__item:hover,
.raw-ls__item:focus,
.raw-ls__item:active,
.raw-ls__item:visited {
  color: #E84626 !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* ================================
   SOLO este shortcode (id=rawls1) en móvil
   100% ancho, texto izq., icono der.
   ================================ */
/* ===== RAW Language Switcher — scope SOLO al shortcode id=rawls1 (móvil) ===== */
@media (max-width: 768px) {
  /* Fuerza solo el widget Shortcode que CONTIENE #rawls1 */
  .elementor-element.elementor-widget-shortcode:has(#rawls1),
  .elementor-element.elementor-widget-shortcode:has(#rawls1) .elementor-widget-container,
  .elementor-element.elementor-widget-shortcode:has(#rawls1) .elementor-shortcode {
    --container-widget-width: 100% !important;
    --container-widget-flex-grow: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    display: block !important;
  }

  /* Solo el switcher con ese id */
  #rawls1.raw-ls {
    display: block !important;
    width: 100% !important;
  }

  #rawls1 .raw-ls__btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;   /* texto izq. */
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 24px !important;
    gap: 0 !important;
  }

  #rawls1 .raw-ls__label {
    text-align: left !important;
    white-space: nowrap !important;
    margin-right: 16px !important;
    flex: 0 1 auto !important;
  }

  #rawls1 .raw-ls__chev {
    margin-left: auto !important;             /* icono a la derecha */
    display: inline-block !important;
  }

  #rawls1 .raw-ls__menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    text-align: left !important;
  }

  #rawls1 .raw-ls__item {
    text-align: left !important;
    justify-content: flex-start !important;
  }
}
