/* Shared Studio Soup header controls: one flex row keeps EN/ES and the menu aligned. */
header .headerActions {
  position: absolute;
  top: 34px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 40px;
  pointer-events: auto;
}
header .headerActions .burger {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
header .headerActions .burger #nav-icon3 {
  display: block;
  width: 30px;
  height: 22px;
  margin: 0;
}
header .headerActions .languageSwitch {
  position: static;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  background: #090909c9;
  color: #efefef;
}
header .languageSwitch[hidden] { display: none !important; }
header .languageSwitch button {
  box-sizing: border-box;
  min-width: 40px;
  height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #efefef;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
header .languageSwitch button[aria-pressed="true"] { background: #c391ff; color: #111; }
header .languageSwitch button:hover { background: #ffffff26; }
header .languageSwitch button[aria-pressed="true"]:hover { background: #d5b3ff; }
header .headerActions button:focus-visible,
header .headerActions .burger:focus-visible { outline: 2px solid #c391ff; outline-offset: 5px; }
header.invert .languageSwitch { filter: invert(1); }
body.abacBilingual .mainMenu .menuList > div > div {
  font-size: min(8vw, 12vh);
  line-height: 1.15;
  margin: clamp(6px, 2vh, 16px) 2px;
}
@media (max-width: 620px) {
  header .headerActions { top: 22px; right: 18px; gap: 12px; }
  header .languageSwitch button { min-width: 35px; padding: 6px 8px; }
  html[lang="es"] body.abacBilingual #proyecto .playBut {
    box-sizing: border-box;
    max-width: calc(100% - 32px);
    padding: 6px 22px;
    font-size: clamp(24px, 7.5vw, 34px);
    white-space: nowrap;
  }
}
@media (max-width: 767px) {
  body.abacBilingual .mainMenu .menuList > div > div { font-size: min(11vw, 12vh); }
}
