/* HB Telecom · efeito nos ícones do autoatendimento
   - entrada: o ícone "nasce" com um pop logo depois do cartão;
   - brilho: um reflexo de luz atravessa o desenho do próprio ícone;
   - toque/mouse: pulinho com leve giro.
   --i (posição do cartão) desencontra os tempos entre os cartões. */
.hb-ic .hb-autoatendimento-card-icon {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.hb-ic .hb-autoatendimento-card-icon img {
  position: relative;
  z-index: 1;
  transform-origin: 50% 60%;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 60, 50, .55));
  animation: hb-ic-respira 3.6s ease-in-out calc(var(--i, 0) * -.45s) infinite;
}
/* brilho dentro do desenho do ícone (a máscara é a própria imagem) */
.hb-ic .hb-autoatendimento-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .95) 50%, rgba(255, 190, 180, .6) 54%, transparent 64%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-mask: var(--hb-ic-img) left top / contain no-repeat;
          mask: var(--hb-ic-img) left top / contain no-repeat;
  animation: hb-ic-brilho 4.8s ease-in-out calc(1.6s + var(--i, 0) * .3s) infinite;
}

/* entrada */
.hb-ic .hb-autoatendimento-card:not(.hb-ic-on) .hb-autoatendimento-card-icon img { opacity: 0; transform: scale(.3) rotate(-25deg); animation: none; }
.hb-ic .hb-autoatendimento-card.hb-ic-on .hb-autoatendimento-card-icon {
  animation: hb-ic-pop .75s cubic-bezier(.3, 1.6, .5, 1) calc(.35s + var(--i, 0) * .07s) both;
}

/* toque / mouse */
.hb-ic .hb-autoatendimento-card:hover .hb-autoatendimento-card-icon img,
.hb-ic .hb-autoatendimento-card:active .hb-autoatendimento-card-icon img,
.hb-ic .hb-autoatendimento-card.hb-ic-toque .hb-autoatendimento-card-icon img {
  animation: hb-ic-pulo .6s cubic-bezier(.3, 1.5, .5, 1);
}

@keyframes hb-ic-pop {
  0%   { transform: scale(.3) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate(6deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes hb-ic-respira {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 60, 50, .45)); }
  50%      { transform: translateY(-2px) scale(1.05); filter: brightness(0) invert(1) drop-shadow(0 0 11px rgba(255, 70, 60, .85)); }
}
@keyframes hb-ic-brilho {
  0%, 55% { background-position: 160% 0; }
  85%, 100% { background-position: -60% 0; }
}
@keyframes hb-ic-pulo {
  0%   { transform: none; }
  35%  { transform: translateY(-7px) scale(1.15) rotate(-8deg); }
  70%  { transform: translateY(1px) scale(.97) rotate(3deg); }
  100% { transform: none; }
}
/* opacity/transform do pop ficam no span, então o img precisa aparecer quando ligado */
.hb-ic .hb-autoatendimento-card.hb-ic-on .hb-autoatendimento-card-icon img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hb-ic .hb-autoatendimento-card-icon::after,
  .hb-ic .hb-autoatendimento-card-icon,
  .hb-ic .hb-autoatendimento-card-icon img { animation: none !important; }
  .hb-ic .hb-autoatendimento-card:not(.hb-ic-on) .hb-autoatendimento-card-icon img { opacity: 1; transform: none; }
}
