/* ==========================================================================
   HB Telecom · banner do topo (carrossel do computador) mais robusto e animado
   - moldura arredondada com luz vermelha correndo na borda e brilho embaixo;
   - entrada da página: o banner sobe e acende;
   - troca de banner: o novo entra com zoom saindo do desfoque, o antigo recua;
   - zoom lento (Ken Burns) no banner ativo;
   - faixa de luz que atravessa a cada troca;
   - inclinação 3D leve e reflexo seguindo o mouse;
   - bolinhas com barra de tempo até o próximo banner.
   Só usa as classes que o site já tem (.hb-bc-*); o JS (hb-banner.js) só
   adiciona a classe html.hb-ban e acompanha o mouse/a troca.
   ========================================================================== */
@property --hb-ban-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.hb-ban .hb-banner-carrossel { perspective: 1400px; }

/* moldura */
.hb-ban .hb-bc-inner {
  border-radius: 24px;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, .8),
    0 24px 70px -26px rgba(158, 0, 0, .75);
  animation: hb-ban-entra 1.1s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes hb-ban-entra {
  from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* luz correndo na borda: oculta a pedido (para voltar, troque display:none por block) */
.hb-ban .hb-bc-inner::before {
  display: none;
  content: "";
  position: absolute; inset: 0; z-index: 5;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--hb-ban-ang),
    transparent 0deg, transparent 250deg,
    rgba(255, 42, 31, .0) 270deg, rgba(255, 42, 31, .9) 330deg, rgba(255, 215, 210, 1) 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  animation: hb-ban-gira 7s linear infinite;
}
@keyframes hb-ban-gira { to { --hb-ban-ang: 360deg; } }

/* reflexo que seguia o mouse: removido a pedido */
.hb-ban .hb-bc-inner::after {
  display: none;
  content: "";
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--hb-ban-mx, 50%) var(--hb-ban-my, 50%), rgba(255, 255, 255, .10), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}

.hb-ban .hb-bc-track { overflow: hidden; border-radius: inherit; }
/* faixa de luz atravessando o banner na troca: removida a pedido */
.hb-ban .hb-bc-track::after {
  display: none;
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; z-index: 3;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 220, 215, .22) 48%, rgba(255, 255, 255, .38) 50%, rgba(255, 220, 215, .22) 52%, transparent 70%);
  transform: translateX(-120%) skewX(-12deg);
  mix-blend-mode: screen;
}
.hb-ban .hb-bc-track.hb-ban-varre::after { animation: hb-ban-varre 1.7s cubic-bezier(.4, 0, .2, 1) .25s both; }
@keyframes hb-ban-varre {
  from { transform: translateX(-120%) skewX(-12deg); }
  to   { transform: translateX(320%) skewX(-12deg); }
}

/* troca de banner */
.hb-ban .hb-bc-slide {
  transition: opacity 1.6s ease, visibility 0s linear 1.6s !important;
}
.hb-ban .hb-bc-slide.is-active {
  transition: opacity 1.6s ease, visibility 0s !important;
  z-index: 1;
}
.hb-ban .hb-bc-slide .hb-bc-slide-img {
  transform: scale(1.1);
  filter: blur(12px) brightness(1.4);
  transition: transform 1.8s cubic-bezier(.2, .7, .2, 1), filter 1.5s ease;
  will-change: transform;
}
.hb-ban .hb-bc-slide.is-active .hb-bc-slide-img {
  filter: none;
  animation: hb-ban-zoom var(--hb-ban-tempo, 6000ms) linear forwards;
}
/* zoom lento: começa no tamanho certo depois da entrada e avança devagar */
@keyframes hb-ban-zoom {
  0%   { transform: scale(1.1); }
  18%  { transform: scale(1.0); }
  100% { transform: scale(1.045) translateX(-.6%); }
}

/* setas */
.hb-ban .hb-bc-arrow {
  width: 46px; height: 46px;
  background: rgba(20, 4, 4, .55) !important;
  border: 1px solid rgba(255, 70, 60, .35) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 0 rgba(255, 42, 31, 0);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease !important;
}
.hb-ban .hb-bc-arrow:hover {
  background: #9E0000 !important;
  border-color: rgba(255, 120, 110, .8) !important;
  box-shadow: 0 0 22px rgba(255, 42, 31, .55);
  transform: translateY(-50%) scale(1.08);
}
.hb-ban .hb-bc-arrow--prev:hover svg { transform: translateX(-2px); }
.hb-ban .hb-bc-arrow--next:hover svg { transform: translateX(2px); }
.hb-ban .hb-bc-arrow svg { transition: transform .25s ease; }

/* bolinhas: a ativa é uma barrinha com o tempo; no fim ela vira bolinha e pula
   para a próxima (o JS move o .hb-ban-ind por cima das bolinhas) */
.hb-ban .hb-bc-dots { bottom: 16px; gap: 8px; }
.hb-ban .hb-bc-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
  transition: width .14s ease, height .14s ease, border-radius .14s ease, background .2s ease !important;
}
.hb-ban .hb-bc-dots.hb-ban-sem-trans .hb-bc-dot { transition: none !important; }
.hb-ban .hb-bc-dot:hover { background: rgba(255, 255, 255, .7); }
.hb-ban .hb-bc-dot.is-active { width: 42px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.hb-ban .hb-bc-dot::after { content: none !important; }
/* onda quando a bolinha cai */
.hb-ban .hb-bc-dot.hb-ban-pouso::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .8);
  opacity: 0;
  animation: hb-ban-pouso .45s ease-out .46s forwards;
  left: 50%; margin-left: -5.5px;
  pointer-events: none;
}
@keyframes hb-ban-pouso { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }

.hb-ban .hb-ban-ind {
  position: absolute; z-index: 2;
  border-radius: 6px; overflow: hidden;
  background: transparent;   /* a parte cinza é a própria bolinha ativa: ela fica quando a branca pula */
  pointer-events: none; will-change: transform, left, top, width;
}
.hb-ban .hb-ban-ind::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: #fff;
  transform-origin: left center; transform: scaleX(0);
}
.hb-ban .hb-ban-ind.hb-ban-ind-cheia::after { transform: none; }
.hb-ban .hb-ban-ind.hb-ban-ind-tempo::after { animation: hb-ban-tempo var(--hb-ban-barra, 6000ms) linear forwards; }
.hb-ban .hb-ban-pausado .hb-ban-ind::after { animation-play-state: paused; }
@keyframes hb-ban-tempo { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* botão pausar / continuar (canto de baixo à direita do banner) */
.hb-ban .hb-ban-play {
  position: absolute; right: 18px; bottom: 12px; z-index: 6;
  width: 30px; height: 30px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none !important; border: 0 !important; box-shadow: none !important;
  cursor: pointer; color: #fff; opacity: .82;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
  transition: opacity .2s ease, transform .2s ease;
}
.hb-ban .hb-ban-play svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.hb-ban .hb-ban-play:hover { opacity: 1; transform: scale(1.15); }
.hb-ban .hb-ban-play:active { transform: scale(.92); }
.hb-ban .hb-ban-play:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; border-radius: 6px; }
/* pausado: a barra de tempo, o zoom e as animações do banner congelam */
.hb-ban .hb-ban-pausado .hb-bc-slide.is-active .hb-bc-slide-img { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hb-ban .hb-bc-inner,
  .hb-ban .hb-bc-inner::before,
  .hb-ban .hb-bc-slide.is-active .hb-bc-slide-img,
  .hb-ban .hb-bc-track.hb-ban-varre::after { animation: none !important; }
  .hb-ban .hb-bc-slide .hb-bc-slide-img { transform: none; filter: none; }
  .hb-ban .hb-bc-inner { transform: none; }
}
