/* ==========================================================================
   MGX — BOTÃO DE CHAMADA, no padrão da Remessa, na cor do iHub (23/09/2026)

   O dono comparou com a Remessa: "a da Remessa é superior". Lá o botão é uma
   pílula sólida, texto firme, seta DEPOIS do rótulo, levanta 1px no hover e
   afunda 2% no clique — nada de forma recortada, reflexo correndo ou brilho
   borrado atrás. Aqui a construção é a mesma; a cor é a do iHub (azul com
   texto escuro por cima, 11:1).

   Ficam desligados da origem: o hexágono (::after com z-index -1, que some
   quando falta contexto de empilhamento — foi o "ilegível" das 16:45), o
   brilho borrado (wrapper::after) e a faixa de reflexo animada (::before,
   uma caixa animada por `left`, o padrão que a doutrina proíbe).
   Carrega por ÚLTIMO.
   ========================================================================== */

:root {
  --cta-altura: 3.25rem;
  --cta-fundo: #00A7FF;
  --cta-fundo-hover: #1AB1FF;
  --cta-tinta: #00111E;
}

/* ---- 1. desligar a pilha herdada ---------------------------------------- */
.elementor-widget-button .elementor-button-wrapper::after { content: none !important; }
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo'])::before {
  content: none !important;
  animation: none !important;
}
/* sem pendência, o ::after era só o hexágono */
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']):not([data-preencher])::after {
  content: none !important;
}
/* com pendência, o ::after é a etiqueta laranja: ela fica, o hexágono não */
.elementor-widget-button a.elementor-button[data-preencher]::after {
  background-image: none !important;
  z-index: 40 !important;
}

/* ---- 2. a pílula --------------------------------------------------------- */
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']),
.mgx-cta-caixa a.mgx-cta,
a.mgx-cta-sec {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: var(--cta-altura) !important;
  block-size: auto !important;
  inline-size: auto !important;
  padding: 0 1.75rem !important;
  border-radius: 999px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none !important;
  -webkit-mask: none !important;
          mask: none !important;
  animation: none !important;
  filter: none !important;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 160ms cubic-bezier(.2, .8, .2, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

/* primário: azul sólido com a luz de cima que todo botão físico tem */
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']),
.mgx-cta-caixa a.mgx-cta {
  background: var(--cta-fundo) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 55%) !important;
  color: var(--cta-tinta) !important;
  border: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 28px -12px rgba(0, 167, 255, 0.70) !important;
}
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']) :is(.elementor-button-text, .elementor-button-content-wrapper),
.mgx-cta-caixa a.mgx-cta :is(.mgx-cta__texto, .mgx-cta__seta) {
  color: var(--cta-tinta) !important;
}

/* secundário: contorno, para o caminho sem compromisso ("ver antes") */
a.mgx-cta-sec {
  background: rgba(0, 167, 255, 0.06);
  color: #EAF6FF;
  border: 1px solid rgba(122, 212, 255, 0.34);
}

/* o ícone da origem vinha ANTES do rótulo (caixa com seta); a seta vai depois */
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']) .elementor-button-icon { display: none !important; }
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']) .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center;
  gap: 0 !important;
}
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']) .elementor-button-text::after {
  content: "";
  display: inline-block;
  inline-size: 1.125em;
  block-size: 1.125em;
  margin-inline-start: 0.625rem;
  vertical-align: -0.2em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1);
}

/* ---- 3. resposta ao toque ------------------------------------------------ */
@media (hover: hover) and (pointer: fine) {
  .elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']):hover,
  .mgx-cta-caixa a.mgx-cta:hover {
    background-color: var(--cta-fundo-hover) !important;
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.40),
      0 16px 36px -14px rgba(0, 167, 255, 0.85) !important;
  }
  .elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']):hover .elementor-button-text::after,
  .mgx-cta-caixa a.mgx-cta:hover .mgx-cta__seta { transform: translateX(3px); }
  a.mgx-cta-sec:hover { background: rgba(0, 167, 255, 0.14); border-color: rgba(122, 212, 255, 0.6); transform: translateY(-1px); }
}
.elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']):active,
.mgx-cta-caixa a.mgx-cta:active,
a.mgx-cta-sec:active { transform: scale(0.98); }
.elementor-widget-button a.elementor-button[data-cta]:focus-visible,
.mgx-cta-caixa a.mgx-cta:focus-visible,
a.mgx-cta-sec:focus-visible { outline: 2px solid #7AD4FF !important; outline-offset: 3px !important; }

/* ---- 4. hero: primário + secundário lado a lado, como na Remessa --------- */
.mgx-hero-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.hero.e-parent .elementor-element-4cb9c50 { gap: 0.75rem !important; flex-wrap: wrap; justify-content: center; }

@media (max-width: 47.99rem) {
  :root { --cta-altura: 3rem; }
  .elementor-widget-button a.elementor-button[data-cta]:not([data-cta='topo']),
  .mgx-cta-caixa a.mgx-cta,
  a.mgx-cta-sec { padding: 0 1.25rem !important; font-size: 1rem !important; }
  /* no celular os dois cabem lado a lado em 360px */
  .hero.e-parent .elementor-element-4cb9c50 { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .elementor-widget-button a.elementor-button[data-cta],
  .mgx-cta-caixa a.mgx-cta,
  a.mgx-cta-sec { transition: none; }
}
