/* ==========================================================================
   HB Telecom · banner "vivo" (700 Mega + chip até 80GB) dentro do carrossel
   O desenho tem 1600 x 534 e é escalado para o tamanho do slide (--k, no JS).
   As animações recomeçam toda vez que o slide fica ativo (.is-active).
   ========================================================================== */
.hb-bv { position: absolute; inset: 0; overflow: hidden; background: #030000; }
.hb-bv-palco {
  position: absolute; left: 0; top: 0; width: 1600px; height: 534px;
  transform: scale(var(--k, .7375)); transform-origin: 0 0;
  font-family: Montserrat, "Inter", "Segoe UI", sans-serif; color: #fff;
  --v: #FF2A1F; --vv: #9E0000;
}
.hb-bv-palco * { box-sizing: border-box; margin: 0; padding: 0; }
.hb-bv .hb-bc-slide-img.hb-bv-foto {
  position: absolute; right: -10px; top: -40px; width: 1420px; height: auto; object-fit: initial;
  transform-origin: 75% 30%;
}
.hb-bv-sombra { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #030000 0%, #030000 30%, rgba(3,0,0,.85) 42%, rgba(3,0,0,.2) 58%, rgba(3,0,0,0) 70%),
    linear-gradient(0deg, rgba(3,0,0,.85) 0%, rgba(3,0,0,0) 22%),
    linear-gradient(180deg, rgba(3,0,0,.6) 0%, rgba(3,0,0,0) 18%); }

/* sinal correndo pelos traços de luz da foto até o celular
   (mesma posição, zoom e desfoque da foto, para ficar colado nela) */
.hb-bv .hb-bv-fluxo {
  position: absolute; right: -10px; top: -40px; width: 1420px; height: auto; overflow: visible; pointer-events: none;
  transform-origin: 75% 30%; transform: scale(1.1);
  transition: transform 1.8s cubic-bezier(.2, .7, .2, 1);
}
.hb-bv.is-active .hb-bv-fluxo { animation: hb-ban-zoom var(--hb-ban-tempo, 6000ms) linear forwards; }
/* luz que anda pelos fios da foto, um fio de cada vez: uma vez só, quando o banner entra */
.hb-bv-fio { stroke-dasharray: 16 130; stroke-dashoffset: 16; opacity: 0; }
.hb-bv.is-active .hb-bv-fio { animation: hb-bv-fio 1.6s cubic-bezier(.4, 0, .6, 1) both; animation-delay: calc(.9s + var(--f, 0) * .32s); }
@keyframes hb-bv-fio {
  0%   { stroke-dashoffset: 16;  opacity: 0; }
  8%   { opacity: 1; }
  88%  { stroke-dashoffset: -90; opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
/* o celular acende quando a luz chega (uma vez) */
.hb-bv-chega { opacity: 0; transform-box: fill-box; transform-origin: center; mix-blend-mode: screen; }
.hb-bv.is-active .hb-bv-chega { animation: hb-bv-chega 2s ease-out 2.25s 1 both; }
@keyframes hb-bv-chega {
  0%   { opacity: 0; transform: scale(.5); }
  20%  { opacity: .8; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* texto */
.hb-bv-txt { position: absolute; left: 118px; top: 74px; width: 860px; }
.hb-bv-tag { font-size: 30px; font-weight: 400; letter-spacing: -.2px; }
.hb-bv-tag b { font-weight: 800; }
.hb-bv-tag .mais { color: var(--v); font-weight: 600; padding: 0 4px; display: inline-block; }
.hb-bv h2 { font-size: 66px; line-height: .98; font-weight: 900; letter-spacing: -1.8px; margin-top: 8px; color: #fff; }
.hb-bv h2 .p { display: inline-block; }
.hb-bv h2 em { font-style: normal; color: var(--v); text-shadow: 0 0 28px rgba(255,42,31,.45); }
.hb-bv-sub { font-size: 29px; font-weight: 500; margin-top: 12px; letter-spacing: -.3px; color: #f1e8e8; }
.hb-bv-sub b { font-weight: 800; color: #fff; }

/* caixa da oferta */
.hb-bv-oferta { position: relative; margin-top: 28px; display: inline-flex; align-items: stretch; border-radius: 14px; padding: 14px 26px 14px 22px; gap: 22px;
  border: 1px solid rgba(255,42,31,.55);
  background: linear-gradient(180deg, rgba(40,0,0,.55), rgba(10,0,0,.75)); box-shadow: 0 0 30px rgba(255,42,31,.35), inset 0 0 22px rgba(255,42,31,.12); }
.hb-bv-oferta::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hb-bv-ang, 0deg), #FF2A1F 0deg, #FF2A1F 250deg, #ffd7d2 300deg, #fff 320deg, #FF2A1F 350deg);
  -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); }
@property --hb-bv-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.is-active .hb-bv-oferta::before { animation: hb-bv-gira 4s linear infinite; }
@keyframes hb-bv-gira { to { --hb-bv-ang: 360deg; } }

.hb-bv .col { display: flex; flex-direction: column; justify-content: center; }
.hb-bv .mini { font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; width: max-content; line-height: 1.1; margin-bottom: 4px; }
.hb-bv .mega { width: max-content; font-size: 64px; font-weight: 900; line-height: .86; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.hb-bv .mega small { display: block; width: max-content; font-size: 33px; letter-spacing: 0; line-height: 1; margin-top: 4px; }
.hb-bv .plus { font-size: 48px; font-weight: 900; color: var(--v); align-self: center; margin: 0; line-height: 1; }
.hb-bv .movel { flex-direction: row; align-items: center; gap: 16px; }
.hb-bv .gb .ate { font-size: 17px; font-weight: 800; line-height: 1; }
.hb-bv .gb .n { font-size: 60px; font-weight: 900; line-height: .9; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.hb-bv .gb .n span:last-child { font-size: 34px; letter-spacing: -.5px; }
.hb-bv .gb .l { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-top: 3px; }
.hb-bv .div { width: 1px; background: rgba(255,255,255,.6); margin: 4px 0; border-radius: 2px; }
.hb-bv .preco { flex-direction: row; align-items: center; gap: 6px; position: relative; }
.hb-bv .por { color: var(--v); font-weight: 800; font-size: 25px; line-height: .95; display: flex; flex-direction: column; }
.hb-bv .por span { width: max-content; line-height: .9; font-weight: 800; font-size: 24px; }   /* o R$ é esticado no JS para a largura do POR */
.hb-bv .valor { font-size: 96px; font-weight: 900; letter-spacing: -4px; line-height: .8; position: relative; overflow: hidden; padding: 4px 4px 2px 0; }
.hb-bv .cent { display: flex; flex-direction: column; line-height: .95; }
.hb-bv .cent b { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.hb-bv .cent span { font-size: 22px; font-weight: 700; color: var(--v); margin-top: 9px; margin-left: 2px; }   /* /MÊS um pouco mais baixo, solto */

/* chip */
.hb-bv-chip { position: relative; width: 58px; height: 76px; flex: none; }
.hb-bv-chip svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 10px rgba(255,42,31,.65)); }
.hb-bv-chip::after { content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: overlay; }
.hb-bv.is-active .hb-bv-chip::after { animation: hb-bv-chipbrilho 2.8s ease-in-out 1.6s infinite; }
@keyframes hb-bv-chipbrilho { 0% { background-position: 130% 0; } 45%, 100% { background-position: -40% 0; } }
/* selo */
.hb-bv-selo { position: absolute; right: 64px; top: 46px; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: rgba(10,0,0,.6); border: 1.5px solid rgba(255,90,80,.7); box-shadow: 0 0 22px rgba(255,42,31,.45); display: flex; gap: 8px; align-items: center; }
.hb-bv-selo i { width: 9px; height: 9px; border-radius: 50%; background: var(--v); box-shadow: 0 0 10px var(--v); }
.hb-bv.is-active .hb-bv-selo i { animation: hb-bv-pisca 1.2s ease-in-out infinite; }
@keyframes hb-bv-pisca { 50% { opacity: .25; box-shadow: 0 0 2px var(--v); } }

/* ---- entrada do texto, toda vez que o slide fica ativo ---- */
.hb-bv [data-e] { opacity: 0; }
.hb-bv.is-active [data-e] { animation: hb-bv-sobe .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.hb-bv.is-active [data-e="esq"] { animation-name: hb-bv-esq; }
.hb-bv.is-active [data-e="pop"] { animation-name: hb-bv-pop; animation-duration: .7s; }
.hb-bv.is-active [data-e="caixa"] { animation-name: hb-bv-caixa; animation-duration: .9s; }
@keyframes hb-bv-sobe { from { opacity: 0; transform: translateY(46px) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bv-esq  { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bv-pop  { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hb-bv-caixa { from { opacity: 0; transform: translateY(30px) scale(.94); clip-path: inset(0 100% 0 0 round 14px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); } }
/* as palavras vermelhas acendem depois de entrar */
.hb-bv.is-active h2 em { animation: hb-bv-sobe .8s cubic-bezier(.2, .8, .2, 1) both, hb-bv-neon 2.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 900ms); }
@keyframes hb-bv-neon { 0%, 100% { text-shadow: 0 0 18px rgba(255,42,31,.35); } 50% { text-shadow: 0 0 34px rgba(255,42,31,.9), 0 0 8px rgba(255,140,120,.6); } }

@media (prefers-reduced-motion: reduce) {
  .hb-bv [data-e] { opacity: 1; }
  .hb-bv *, .hb-bv *::before, .hb-bv *::after { animation: none !important; }
}
