/* Marca viva (26/11/2026, pedido do André): botão "Assine já" com as cores do U em movimento,
   ao lado do WhatsApp, e o logo com o mesmo efeito (img/logo-vivo.svg e img/icone-vivo.svg).
   Só na home. Quem pede menos movimento no aparelho vê tudo parado, com as mesmas cores. */

:root {
  --u-vivo: linear-gradient(90deg, #00B7FF, #00DE8A, #FFD500, #FF7A00, #FF2448, #FF7A00, #FFD500, #00DE8A, #00B7FF);
}

/* ---------- o botão (visual) ---------- */
.botao-vivo {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 24px 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  color: #0B0F14; text-decoration: none; cursor: pointer;
  background: var(--u-vivo) 0 0 / 200% 100% repeat-x;
  animation: vivo-fluxo 6s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(11, 15, 20, .14), 0 14px 30px -14px rgba(11, 20, 26, .55);
  transition: transform .5s var(--suave-ease, ease), opacity .4s, box-shadow .4s;
}
/* brilho colorido por baixo, como luz saindo do botão */
.botao-vivo::before {
  content: ""; position: absolute; inset: 8px 12px -8px; z-index: -1; border-radius: inherit;
  background: inherit; animation: inherit; filter: blur(18px); opacity: .55; transition: opacity .4s;
}
/* reflexo de vidro que atravessa o botão de tempos em tempos */
.botao-vivo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  animation: vivo-reflexo 5s cubic-bezier(.55, 0, .25, 1) 1.5s infinite;
}
.botao-vivo > * { position: relative; z-index: 1; }
.botao-vivo svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--suave-ease, ease); }
.botao-vivo:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(11, 15, 20, .14), 0 20px 36px -14px rgba(11, 20, 26, .6); }
.botao-vivo:hover::before { opacity: .9; }
.botao-vivo:hover svg { transform: translateX(3px); }
.botao-vivo:active { transform: translateY(0); }
.botao-vivo:focus-visible { outline: 3px solid #0B0F14; outline-offset: 3px; }

@keyframes vivo-fluxo { to { background-position: 200% 0; } }
@keyframes vivo-reflexo { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }

/* ---------- no computador: flutua ao lado do WhatsApp ---------- */
.cta-vivo {
  position: fixed; z-index: 60;
  right: calc(clamp(16px, 2vw, 28px) + 60px + 14px); bottom: clamp(16px, 2vw, 28px);
}
.cta-vivo.is-oculto { opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none; }
/* a etiqueta "Fale com a gente" do WhatsApp sobe para não cobrir o botão novo */
.it2us-home .whats-flutuante__rotulo { right: 0; top: auto; bottom: calc(100% + 12px); transform: translateY(6px); }
.it2us-home .whats-flutuante:hover .whats-flutuante__rotulo,
.it2us-home .whats-flutuante:focus-visible .whats-flutuante__rotulo { transform: none; }

/* ---------- no celular: o botão entra na barra de baixo, no lugar de "Entrar" (que segue no topo) ---------- */
@media (max-width: 560px) {
  .cta-vivo { display: none; }
  .barra .botao-vivo { height: 52px; padding: 0 10px; font-size: 17px; gap: 8px; }
  .barra .botao-vivo:hover { transform: none; }
  .barra .botao-vivo::before { opacity: .35; filter: blur(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .botao-vivo, .botao-vivo::before { animation: none !important; }
  .botao-vivo::after { display: none; }
}

/* ---------- texto que alterna (26/11, pedido do André): Assine já, Conheça, Entrar, Clique aqui ----------
   As palavras ficam empilhadas na mesma célula: o botão tem a largura da maior e não pula. */
.giro { display: inline-grid; justify-items: center; overflow: hidden; padding: 2px 0; }
.giro__item {
  grid-area: 1 / 1; opacity: 0; transform: translateY(70%); filter: blur(6px);
  transition: opacity .45s ease, transform .6s var(--suave-ease, ease), filter .45s ease;
}
.giro__item.is-ativo { opacity: 1; transform: none; filter: none; }
.giro__item.is-saindo { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
@media (prefers-reduced-motion: reduce) {
  .giro__item { transition: none; }
}

/* ---------- vídeo da abertura no celular (26/11, "no celular não roda") ----------
   O site escondia o vídeo até 768 px. Agora a home toca uma versão leve (854x534, 25 s, 3 MB) em laço;
   o quadro parado (poster) segue por baixo enquanto carrega ou se o aparelho estiver em economia de dados. */
@media (max-width: 768px) {
  .it2us-home #inicio .abertura__video { display: block; }
}
