/* ============================================================
   GLOBAUX PHARMA — Seletor de idiomas (flag switcher)
   Botão circular glossy estilo resina + dropdown vidro fosco
   ============================================================ */

.gx-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 14px;
  z-index: 999999;
}
.gx-lang-dropdown {
  z-index: 999999 !important;
}

.gx-lang-flag-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(15, 31, 56, 0.28),
    0 2px 6px rgba(15, 31, 56, 0.18),
    inset 0 -3px 8px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  isolation: isolate;
}

.gx-lang-flag-btn .gx-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Brilho de resina — highlight elíptico no topo */
.gx-lang-flag-btn::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 14%;
  width: 60%;
  height: 38%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0) 75%);
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 2;
}

/* Reflexo secundário inferior */
.gx-lang-flag-btn::after {
  content: "";
  position: absolute;
  bottom: 8%;
  right: 10%;
  width: 36%;
  height: 22%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.gx-lang-flag-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 28px rgba(15, 31, 56, 0.32),
    0 3px 8px rgba(15, 31, 56, 0.20),
    inset 0 -3px 10px rgba(0, 0, 0, 0.20);
  border-color: rgba(255, 255, 255, 0.75);
}

.gx-lang-flag-btn:active {
  transform: translateY(0) scale(0.98);
}

/* DROPDOWN */
.gx-lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(201, 161, 90, 0.40);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 24px 60px rgba(15, 31, 56, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  transform-origin: top right;
  animation: gx-dropdown-in 0.22s ease-out;
}

.gx-lang-switcher.gx-open .gx-lang-dropdown {
  display: flex;
}

@keyframes gx-dropdown-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gx-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.gx-lang-option:hover {
  background: rgba(232, 212, 168, 0.32);
}

.gx-lang-option.gx-active {
  background: rgba(201, 161, 90, 0.18);
}

.gx-lang-option-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(15, 31, 56, 0.15);
}

.gx-lang-option-flag svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.gx-lang-option-flag::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 14%;
  width: 56%;
  height: 32%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.gx-lang-option-label {
  font-weight: 600;
  color: var(--ink, #18212B);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.gx-lang-option-native {
  font-weight: 400;
  color: var(--slate-muted, #65707A);
  font-size: 0.78rem;
  margin-left: auto;
}

/* MOBILE — alvo de toque ≥44×44 (HIG) */
@media (max-width: 767px) {
  .gx-lang-switcher {
    margin-left: 8px;
  }
  .gx-lang-flag-btn {
    width: 44px;
    height: 44px;
  }
  .gx-lang-dropdown {
    right: -10px;
    min-width: 180px;
  }
}

/* Telas estreitas — dropdown centralizado sobre o botão p/ não sair da tela */
@media (max-width: 480px) {
  .gx-lang-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    max-width: calc(100vw - 24px);
  }
  /* a animação de entrada também parte do centro nesse caso */
  .gx-lang-switcher.gx-open .gx-lang-dropdown {
    transform-origin: top center;
  }
}

/* ============================================================
   POP-UP DE BOAS-VINDAS — seleção de idioma (1ª visita)
   Mesma identidade: creme, dourado, navy, vidro fosco + resina.
   Anti-flash: html.gx-prelang::before cobre a página até o JS montar
   o modal (ver guard inline no <head> e buildLangModal()).
   ============================================================ */
html.gx-prelang,
html.gx-prelang body {
  overflow: hidden !important;
}
html.gx-prelang::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: radial-gradient(120% 90% at 50% -10%,
    #fffaf2 0%, #f6ecdc 55%, #efe2cc 100%);
}

.gx-lang-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483601;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px; /* fallback */
  padding:
    calc(24px + env(safe-area-inset-top))
    calc(24px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(24px + env(safe-area-inset-left));
  background: radial-gradient(120% 90% at 50% -10%,
    rgba(255, 250, 242, 0.92) 0%,
    rgba(246, 236, 220, 0.94) 55%,
    rgba(239, 226, 204, 0.96) 100%);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.gx-lang-modal-overlay.gx-show {
  opacity: 1;
}
.gx-lang-modal-overlay.gx-hide {
  opacity: 0;
}

.gx-lang-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  padding: 38px 34px 30px;
  text-align: center;
  background: rgba(255, 252, 247, 0.97);
  border: 1px solid rgba(201, 161, 90, 0.45);
  border-radius: 22px;
  box-shadow:
    0 32px 80px rgba(15, 31, 56, 0.28),
    0 8px 24px rgba(15, 31, 56, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s ease;
}
.gx-lang-modal-overlay.gx-show .gx-lang-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* faixa dourada superior sutil */
.gx-lang-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #d9b876, #c9a15a, #b8893f);
}

.gx-lang-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #9aa3ac;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.gx-lang-modal-close:hover {
  background: rgba(201, 161, 90, 0.14);
  color: #18212b;
}

.gx-lang-modal-logo {
  display: block;
  width: 168px;
  max-width: 60%;
  height: auto;
  margin: 4px auto 18px;
}

.gx-lang-modal-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
  color: #18212b;
}
.gx-lang-modal-title .gx-globe {
  color: #c9a15a;
  flex-shrink: 0;
}

.gx-lang-modal-sub {
  margin: 7px 0 24px;
  font-family: inherit;
  font-size: 0.82rem;
  color: #65707a;
  letter-spacing: 0.02em;
}

.gx-lang-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gx-lang-modal-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 161, 90, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
    border-color 0.2s ease, background 0.2s ease;
}
.gx-lang-modal-option:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 161, 90, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(15, 31, 56, 0.16);
}
.gx-lang-modal-option:active {
  transform: translateY(0) scale(0.99);
}

/* bandeira "resina" — mesmo brilho do botão do switcher */
.gx-lang-modal-flag {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(15, 31, 56, 0.18);
}
.gx-lang-modal-flag svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.gx-lang-modal-flag::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 14%;
  width: 58%;
  height: 34%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.gx-lang-modal-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex-shrink: 1; /* deixa o texto encolher em vez de empurrar a opção/card */
  min-width: 0;
}
.gx-lang-modal-native {
  font-weight: 600;
  font-size: 1rem;
  color: #18212b;
}
.gx-lang-modal-code {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #65707a;
}

.gx-lang-modal-skip {
  margin-top: 18px;
  border: none;
  background: transparent;
  color: #8a9099;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.gx-lang-modal-skip:hover {
  color: #18212b;
  background: rgba(201, 161, 90, 0.12);
}

@media (max-width: 480px) {
  .gx-lang-modal-card {
    padding: 32px 20px 24px;
    /* o card é flex-item do overlay; min-width:0 deixa ele encolher e o
       max-width:min(92vw,…) garante folga lateral mesmo a 360px */
    max-width: min(92vw, 520px);
    min-width: 0;
  }
  .gx-lang-modal-grid {
    grid-template-columns: 1fr;
  }
  .gx-lang-modal-title {
    font-size: 1.18rem;
  }
}

/* ============================================================
   INTRO "METEORO DE RESINA" — abertura do pop-up de idioma
   Pedras douradas incandescentes caem do topo, convergem ao
   centro, FERVEM e ESTOURAM — e o card do seletor surge da
   explosão. (1ª visita; orquestrado em globaux-lang.js;
   pulado automaticamente em prefers-reduced-motion.)
   ============================================================ */
.gx-lang-modal-overlay.gx-animating { opacity: 1; }

.gx-intro-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0; /* o card (.gx-lang-modal-card, position:relative) fica acima */
}
.gx-intro-stage.gx-done {
  opacity: 0;
  transition: opacity 0.42s ease;
}

/* ---- METEOROS ---- */
.gx-meteor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate(var(--sx), var(--sy));
  animation: gx-meteor-fall var(--dur) cubic-bezier(0.5, 0.05, 0.9, 0.25) var(--delay) forwards;
}
@keyframes gx-meteor-fall {
  0%   { transform: translate(var(--sx), var(--sy)) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(0, 0) scale(0.35); opacity: 0; }
}
.gx-meteor-inner {
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(var(--angle));
}
/* cabeça incandescente */
.gx-meteor-inner::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%,
    #fff7e6 0%, #ffd789 38%, #e7a23f 66%, #b06a1f 100%);
  box-shadow:
    0 0 10px 3px rgba(255, 196, 104, 0.85),
    0 0 26px 8px rgba(220, 150, 60, 0.5);
}
/* cauda — ao longo de +X (para trás, em direção à origem) */
.gx-meteor-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2.5px;
  width: 118px;
  height: 5px;
  transform-origin: 0 50%;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(255, 214, 140, 0.95) 0%,
    rgba(231, 162, 63, 0.55) 28%,
    rgba(176, 106, 31, 0.18) 62%,
    rgba(176, 106, 31, 0) 100%);
  filter: blur(1px);
}

/* ---- NÚCLEO QUE FERVE ---- */
.gx-molten {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  opacity: 0;
  transform: scale(0);
}
.gx-intro-stage.gx-boil .gx-molten {
  opacity: 1;
  animation: gx-molten-grow 0.55s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}
@keyframes gx-molten-grow {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.gx-molten-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%,
    #fff6e0 0%, #ffd07a 28%, #e79a37 56%, #b5701f 80%, #6f3f12 100%);
}
.gx-intro-stage.gx-boil .gx-molten-core {
  animation: gx-boil 1.05s ease-in-out infinite;
}
@keyframes gx-boil {
  0%, 100% {
    transform: scale(0.97);
    filter: brightness(1);
    box-shadow:
      0 0 22px 7px rgba(255, 170, 80, 0.5),
      0 0 56px 20px rgba(220, 140, 55, 0.26);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow:
      0 0 32px 11px rgba(255, 190, 100, 0.62),
      0 0 78px 28px rgba(230, 150, 60, 0.32);
  }
}

/* bolhas subindo (fervura) */
.gx-bubble {
  position: absolute;
  bottom: 26%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 40% 35%,
    #fff3d0, #ffce82 60%, rgba(255, 206, 130, 0));
}
.gx-intro-stage.gx-boil .gx-bubble {
  animation: gx-bubble-rise 1s ease-in infinite;
}
.gx-bubble:nth-of-type(1) { left: 52%; animation-delay: 0s; }
.gx-bubble:nth-of-type(2) { left: 38%; width: 5px; height: 5px; animation-delay: 0.28s; }
.gx-bubble:nth-of-type(3) { left: 62%; width: 4px; height: 4px; animation-delay: 0.52s; }
.gx-bubble:nth-of-type(4) { left: 46%; width: 5px; height: 5px; animation-delay: 0.74s; }
@keyframes gx-bubble-rise {
  0%   { transform: translateY(6px) scale(0.5); opacity: 0; }
  30%  { opacity: 0.9; }
  70%  { opacity: 0.75; }
  100% { transform: translateY(-18px) scale(1.1); opacity: 0; }
}

/* ---- ESTOURO ---- (regras após .gx-boil → vencem na ordem de origem) */
.gx-intro-stage.gx-burst .gx-molten {
  animation: gx-molten-burst 0.5s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}
@keyframes gx-molten-burst {
  0%   { transform: scale(1);   opacity: 1; filter: brightness(1); }
  40%  { transform: scale(1.7); opacity: 1; filter: brightness(1.9); }
  100% { transform: scale(3.3); opacity: 0; filter: brightness(2.5); }
}

.gx-shock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 205, 120, 0.9);
  box-shadow:
    0 0 24px rgba(255, 190, 100, 0.6),
    inset 0 0 18px rgba(255, 190, 100, 0.5);
  opacity: 0;
  transform: scale(0.2);
}
.gx-intro-stage.gx-burst .gx-shock {
  animation: gx-shock 0.64s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
@keyframes gx-shock {
  0%   { opacity: 0;    transform: scale(0.2); border-width: 6px; }
  12%  { opacity: 0.95; }
  100% { opacity: 0;    transform: scale(7.5); border-width: 1px; }
}

.gx-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 247, 225, 0.95) 0%,
    rgba(255, 214, 140, 0.5) 26%,
    rgba(255, 200, 110, 0) 60%);
}
.gx-intro-stage.gx-burst .gx-flash {
  animation: gx-flash 0.5s ease-out forwards;
}
@keyframes gx-flash {
  0%   { opacity: 0; }
  16%  { opacity: 1; }
  100% { opacity: 0; }
}

.gx-sparks {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.gx-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 40% 35%,
    #fff4d6, #ffce82 55%, rgba(255, 206, 130, 0));
  box-shadow: 0 0 8px rgba(255, 190, 100, 0.8);
}
.gx-intro-stage.gx-burst .gx-spark {
  animation: gx-spark-fly 0.6s cubic-bezier(0.2, 0.6, 0.3, 1) var(--sd, 0s) forwards;
}
@keyframes gx-spark-fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .gx-lang-modal-overlay,
  .gx-lang-modal-card,
  .gx-lang-modal-option {
    transition: none;
  }
  /* a intro já é pulada no JS; trava qualquer resíduo de cena */
  .gx-intro-stage { display: none; }
}

/* ============================================================
   AJUSTES DE HEADER
   (1) Setinha do submenu: o export deixou um <i class="fa"> vazio que
       renderiza um glyph quebrado (ï‚‡). Neutralizamos o ícone e
       desenhamos um chevron em CSS puro (independe de fonte/charset).
   (2) Container do CTA em LINHA: bandeira + botão lado a lado,
       nada empilhado verticalmente.
   ============================================================ */

/* (1) Chevron limpo do submenu */
.sub-arrow {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  line-height: 1;
}
.sub-arrow i,
.sub-arrow svg {
  display: none !important;
}
.sub-arrow::before {
  content: none !important;
}
.sub-arrow::after {
  content: "" !important;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.menu-item-has-children:hover > a .sub-arrow::after,
.hfe-has-submenu-container:hover .sub-arrow::after {
  transform: rotate(180deg);
}

/* (2) CTA em linha horizontal (desktop e mobile) */
.elementor-element-e982bf6,
.elementor-element-0c749a4 {
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.gx-lang-switcher {
  margin-left: 0;
  margin-right: 16px;
}
