/* ==========================================================================
   HB Telecom · banner "globoplay" (Internet + Streaming) no carrossel do topo (PC)
   Desenho de 1600 x 534 escalado para o slide (--k, no JS). Fica no lugar do
   banner de imagem "800" (Emergência 53). Pôsteres oficiais girando em
   carrossel 3D (o JS troca o pôster do meio a cada 1,7s enquanto o slide está ativo).
   ========================================================================== */
.hb-bgp { position: absolute; inset: 0; overflow: hidden; background: #040000; }
.hb-bgp-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-bgp-palco * { box-sizing: border-box; margin: 0; padding: 0; }

/* fundo: feixes de luz vermelha e brilho atrás das telinhas */
.hb-bgp-fundo { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 330px at 1250px 260px, rgba(251,2,52,.42), rgba(158,0,0,0) 70%),
    radial-gradient(900px 400px at 1500px 600px, rgba(255,42,31,.25), rgba(255,42,31,0) 70%),
    linear-gradient(90deg, #040000 0%, #0a0000 55%, #140101 100%); }
.hb-bgp-fundo i { position: absolute; width: 1400px; height: 2px; left: 360px; top: 120px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,42,31,0), rgba(255,60,40,.9) 55%, rgba(255,200,190,.9) 62%, rgba(255,42,31,0));
  filter: blur(1px); box-shadow: 0 0 18px 2px rgba(255,42,31,.55); opacity: .55; transform: rotate(-14deg); }
.hb-bgp-fundo i:nth-child(2) { top: 430px; left: 520px; transform: rotate(-26deg); opacity: .4; height: 3px; }
.hb-bgp-fundo i:nth-child(3) { top: 40px; left: 760px; transform: rotate(12deg); opacity: .3; }
.hb-bgp.is-active .hb-bgp-fundo i { animation: hb-bgp-feixe 10s ease-in-out both; }
.hb-bgp.is-active .hb-bgp-fundo i:nth-child(2) { animation-duration: 12s; animation-direction: reverse; }
@keyframes hb-bgp-feixe { 0% { translate: -160px 0; } 100% { translate: 120px 0; } }

/* texto */
.hb-bgp-txt { position: absolute; left: 118px; top: 74px; width: 880px; z-index: 2; }
.hb-bgp-tag { font-size: 30px; font-weight: 400; letter-spacing: -.2px; }
.hb-bgp-tag b { font-weight: 800; }
.hb-bgp-tag .mais { color: var(--v); font-weight: 600; padding: 0 4px; display: inline-block; }
.hb-bgp h2 { font-size: 66px; line-height: .98; font-weight: 900; letter-spacing: -1.8px; margin-top: 8px; color: #fff; }
.hb-bgp h2 .p { display: inline-block; }
.hb-bgp h2 em { font-style: normal; color: var(--v); text-shadow: 0 0 28px rgba(255,42,31,.45); }
.hb-bgp-sub { font-size: 29px; font-weight: 500; margin-top: 12px; letter-spacing: -.3px; color: #f1e8e8; }
.hb-bgp-sub b { font-weight: 800; color: #fff; }

/* caixa da oferta */
.hb-bgp-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-bgp-oferta::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hb-bgp-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-bgp-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hb-bgp.is-active .hb-bgp-oferta::before { animation: hb-bgp-gira 4s linear infinite; }
@keyframes hb-bgp-gira { to { --hb-bgp-ang: 360deg; } }

.hb-bgp .col { display: flex; flex-direction: column; justify-content: center; }
.hb-bgp .mini { font-size: 11.5px; font-weight: 700; color: #fff; text-transform: uppercase; white-space: nowrap; width: max-content; line-height: 1.1; margin-bottom: 4px; }
.hb-bgp .mega { width: max-content; font-size: 64px; font-weight: 900; line-height: .86; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.hb-bgp .mega small { display: block; width: max-content; font-size: 33px; letter-spacing: 0; line-height: 1; margin-top: 4px; }
.hb-bgp .div { width: 1px; background: rgba(255,255,255,.6); margin: 4px 0; border-radius: 2px; }
.hb-bgp .gp { align-items: flex-start; gap: 6px; }
.hb-bgp .plus { font-size: 48px; font-weight: 900; color: var(--v); align-self: center; margin: 0; line-height: 1; }
.hb-bgp .marca { display: block; height: 66px; width: auto; filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); }
.hb-bgp .gp { align-items: flex-start; }
.hb-bgp .gp .l { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.hb-bgp .preco { flex-direction: row; align-items: center; gap: 6px; position: relative; }
.hb-bgp .por { color: var(--v); font-weight: 800; line-height: .95; display: flex; flex-direction: column; }
.hb-bgp .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-bgp .valor { font-size: 96px; font-weight: 900; letter-spacing: -4px; line-height: .8; padding: 4px 4px 2px 0; }
.hb-bgp .cent { display: flex; flex-direction: column; line-height: .95; }
.hb-bgp .cent b { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.hb-bgp .cent span { font-size: 22px; font-weight: 700; color: var(--v); margin-top: 9px; margin-left: 2px; }

/* ---- entrada do texto ---- */
.hb-bgp [data-e] { opacity: 0; }
.hb-bgp.is-active [data-e] { animation: hb-bgp-sobe .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 1ms); }
.hb-bgp.is-active [data-e="esq"] { animation-name: hb-bgp-esq; }
.hb-bgp.is-active [data-e="pop"] { animation-name: hb-bgp-pop; animation-duration: .7s; }
.hb-bgp.is-active [data-e="caixa"] { animation-name: hb-bgp-caixa; animation-duration: .9s; }
@keyframes hb-bgp-sobe { from { opacity: 0; transform: translateY(46px) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bgp-esq  { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-bgp-pop  { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hb-bgp-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); } }
.hb-bgp.is-active h2 em { animation: hb-bgp-sobe .8s cubic-bezier(.2, .8, .2, 1) both, hb-bgp-neon 2.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 900ms); }
@keyframes hb-bgp-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-bgp [data-e] { opacity: 1; }
  .hb-bgp *, .hb-bgp *::before, .hb-bgp *::after { animation: none !important; }
}


/* ---- pôsteres em carrossel 3D ---- */
.hb-bgp-palco .hb-bgp-cf { position: absolute; left: 1030px; top: 40px; width: 480px; height: 460px; perspective: 1300px; z-index: 1; }
.hb-bgp .pst { position: absolute; left: 125px; top: 20px; width: 230px; height: 340px; border-radius: 14px; overflow: visible;
  --a: 2; --o: 0; opacity: 0;
  transform: translateX(calc(var(--o) * 158px)) translateZ(calc(var(--a) * -110px)) rotateY(calc(var(--o) * -26deg));
  transition: transform .9s cubic-bezier(.3, .7, .2, 1), opacity .9s, filter .9s; filter: brightness(.55) saturate(.8); }
.hb-bgp .pst img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 22px 50px rgba(0,0,0,.7);
  -webkit-box-reflect: below 8px linear-gradient(transparent 62%, rgba(0,0,0,.28)); }
.hb-bgp .pst.on { filter: none; }
.hb-bgp .pst.on img { border-color: rgba(255,120,140,.9); box-shadow: 0 26px 60px rgba(0,0,0,.75), 0 0 38px rgba(251,2,52,.6); }
.hb-bgp .pst .brilho { position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 60%);
  background-size: 300% 100%; background-position: 120% 0; }
.hb-bgp .pst.on .brilho { animation: hb-bgp-vidro 1.1s .35s ease-in-out both; }
@keyframes hb-bgp-vidro { from { background-position: 120% 0; } to { background-position: -30% 0; } }
.hb-bgp.is-active .pst.vis { opacity: 1; }

/* entrada: os pôsteres chegam de longe, um atrás do outro */
.hb-bgp.is-active .pst.vis img { animation: hb-bgp-chega 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--n) * .12s); }
@keyframes hb-bgp-chega { from { opacity: 0; transform: translateY(40px) scale(.85); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hb-bgp-chao { position: absolute; left: 1000px; width: 520px; top: 392px; height: 60px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251,2,52,.55), rgba(251,2,52,0)); filter: blur(6px); z-index: 0; }
.hb-bgp-chao::before { content: ""; position: absolute; left: 14%; right: 14%; top: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(251,2,52,0), #ff4d6d 30%, #ffd7de 50%, #ff4d6d 70%, rgba(251,2,52,0)); box-shadow: 0 0 14px #fb0234; }
.hb-bgp .marca { display: block; height: 50px; width: auto; filter: drop-shadow(0 0 16px rgba(251,2,52,.35)); }
.hb-bgp .gp { justify-content: center; }

/* "Padrão com anúncio" embaixo do logo */
.hb-bgp .gp { align-items: center; gap: 4px; }
.hb-bgp .gp .l { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #f1e8e8; white-space: nowrap; }
