/* ---web-ing-solutions-- / INGAUTIN LANGUAGE SWITCHER 1.0.0 */

body.wis-ing-runtime .wis-n4{
  --wis-lang-space:64px;
}

/* Reserva un espacio mínimo para el selector sin rehacer el header. */
@media (min-width:881px){
  body.wis-ing-runtime .wis-n4 > .wis-n4__cta{
    margin-right:var(--wis-lang-space)!important;
  }
}

body.wis-ing-runtime .wis-lang{
  position:absolute;
  z-index:905;
  right:var(--wis-pad);
  top:50%;
  transform:translateY(-50%);
  font-family:WisManrope,Manrope,Inter,Arial,sans-serif;
  color:inherit;
}

body.wis-ing-runtime .wis-lang,
body.wis-ing-runtime .wis-lang *{
  box-sizing:border-box;
}

body.wis-ing-runtime .wis-lang__button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:48px!important;
  min-width:48px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
  background-image:none!important;
  color:#f4fbff!important;
  -webkit-text-fill-color:#f4fbff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 5px 16px rgba(0,8,16,.06)!important;
  -webkit-backdrop-filter:blur(10px) saturate(130%)!important;
  backdrop-filter:blur(10px) saturate(130%)!important;
  cursor:pointer!important;
  transition:
    border-color .28s ease,
    background .28s ease,
    transform .28s cubic-bezier(.22,.75,.18,1)!important;
}

body.wis-ing-runtime .wis-lang__button:hover,
body.wis-ing-runtime .wis-lang__button:focus-visible{
  background:rgba(255,255,255,.095)!important;
  border-color:rgba(39,216,255,.34)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

body.wis-ing-runtime .wis-lang__button:focus-visible{
  outline:1px solid rgba(39,216,255,.72)!important;
  outline-offset:3px!important;
}

body.wis-ing-runtime .wis-lang__code{
  min-width:18px;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:10.5px!important;
  font-weight:760!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

/* Chevron hecho con CSS, sin emoji ni SVG pesado. */
body.wis-ing-runtime .wis-lang__chevron{
  display:block;
  width:5px;
  height:5px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:translateY(-1px) rotate(45deg);
  transition:transform .25s ease;
  pointer-events:none;
}

body.wis-ing-runtime .wis-lang.is-open .wis-lang__chevron{
  transform:translateY(1px) rotate(225deg);
}

body.wis-ing-runtime .wis-lang__menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:142px;
  padding:6px;
  border:1px solid rgba(103,213,233,.15);
  border-radius:14px;
  background:
    linear-gradient(155deg,rgba(5,29,48,.96),rgba(3,19,32,.96));
  color:#f4fbff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 38px rgba(0,8,16,.20);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  backdrop-filter:blur(18px) saturate(135%);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-5px) scale(.985);
  transform-origin:top right;
  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .28s cubic-bezier(.22,.75,.18,1);
}

body.wis-ing-runtime .wis-lang.is-open .wis-lang__menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}

body.wis-ing-runtime .wis-lang__option{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:grid!important;
  grid-template-columns:28px 1fr!important;
  align-items:center!important;
  width:100%!important;
  min-height:39px!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  background-image:none!important;
  color:rgba(238,248,252,.78)!important;
  -webkit-text-fill-color:rgba(238,248,252,.78)!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:background .22s ease,color .22s ease!important;
}

body.wis-ing-runtime .wis-lang__option:hover,
body.wis-ing-runtime .wis-lang__option:focus-visible,
body.wis-ing-runtime .wis-lang__option.is-active{
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

body.wis-ing-runtime .wis-lang__option:focus-visible{
  outline:1px solid rgba(39,216,255,.4)!important;
  outline-offset:-1px!important;
}

body.wis-ing-runtime .wis-lang__option b{
  color:#27d8ff!important;
  -webkit-text-fill-color:#27d8ff!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:.08em!important;
}

body.wis-ing-runtime .wis-lang__option span{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:11px!important;
  font-weight:650!important;
  line-height:1.1!important;
}

/* Google Translate vive oculto: el usuario sólo ve nuestra interfaz. */
#wis-google-translate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

body{
  top:0!important;
}

.skiptranslate iframe{
  display:none!important;
}

/* Tablet / móvil: el selector queda justo antes del hamburguer. */
@media (max-width:880px){
  body.wis-ing-runtime .wis-lang{
    right:68px;
  }

  body.wis-ing-runtime .wis-lang__button{
    width:44px!important;
    min-width:44px!important;
    height:32px!important;
    min-height:32px!important;
  }

  body.wis-ing-runtime .wis-lang__menu{
    right:-2px;
    width:136px;
  }
}

@media (max-width:390px){
  body.wis-ing-runtime .wis-lang{
    right:62px;
  }
}

/* Cuando el menú móvil está abierto, el selector sigue sobre el navy. */
@media (max-width:880px){
  body.wis-ing-runtime .wis-n4.is-menu .wis-lang{
    color:#f4fbff;
  }
}

@media (prefers-reduced-motion:reduce){
  body.wis-ing-runtime .wis-lang__button,
  body.wis-ing-runtime .wis-lang__chevron,
  body.wis-ing-runtime .wis-lang__menu{
    transition:none!important;
  }
}
