@keyframes landingSocialPulse {
  0%, 68%, 88%, 100% { transform: scale(1); filter: brightness(1); }
  78% { transform: scale(1.13); filter: brightness(1.18); }
  82% { transform: scale(1.04); filter: brightness(1.08); }
}

@keyframes landingWhatsAppPulse {
  0%, 68%, 88%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
  78% { transform: scale(1.12); box-shadow: 0 12px 34px rgba(0,0,0,.28), 0 0 0 11px rgba(37,211,102,.2); }
  82% { transform: scale(1.05); box-shadow: 0 11px 32px rgba(0,0,0,.26), 0 0 0 5px rgba(37,211,102,.12); }
}

.floating-social {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(217,169,37,.48);
  border-radius: 32px;
  background: rgba(17,16,14,.95);
  box-shadow: 0 16px 42px rgba(17,16,14,.26);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.floating-social > a {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
  animation: landingSocialPulse 4.2s ease-in-out infinite;
  transition: transform .2s, filter .2s;
}

.floating-social > a:nth-child(2) { animation-delay: .28s; }
.floating-social > a:nth-child(3) { animation-delay: .56s; }
.floating-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.floating-social svg .fill { fill: currentColor; stroke: none; }
.floating-instagram { background: linear-gradient(135deg,#833ab4,#e1306c 55%,#fcb045); }
.floating-facebook { background: #1877f2; }
.floating-tiktok { background: #090909; box-shadow: 0 0 0 3px rgba(37,244,238,.17),0 7px 18px rgba(0,0,0,.24) !important; }

.floating-social > a::before,
.wa-float::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(100% + 12px);
  width: max-content;
  padding: 8px 12px;
  border-radius: 7px;
  background: #11100e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  content: attr(data-tooltip);
  font: 700 .67rem/1 var(--sans);
  opacity: 0;
  pointer-events: none;
  transform: translate(7px,-50%);
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
}

.floating-social > a::after,
.wa-float::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(100% + 5px);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #11100e;
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: translate(7px,-50%);
  transition: opacity .18s, transform .18s;
}

.floating-social > a:hover::before,
.floating-social > a:hover::after,
.floating-social > a:focus-visible::before,
.floating-social > a:focus-visible::after,
.wa-float:hover::before,
.wa-float:hover::after,
.wa-float:focus-visible::before,
.wa-float:focus-visible::after { opacity: 1; transform: translate(0,-50%); }
.floating-social > a:hover,
.floating-social > a:focus-visible { animation: none; transform: translateX(-6px) scale(1.1); filter: brightness(1.08); }
.floating-social-toggle { display: none; }
.wa-float { animation: landingWhatsAppPulse 4.2s .9s ease-in-out infinite; transition: transform .2s, filter .2s; }
.wa-float:hover,
.wa-float:focus-visible { animation: none; transform: scale(1.1); filter: brightness(1.06); }

@media (max-width: 720px) {
  .floating-social { top: auto; right: auto; bottom: 14px; left: 14px; display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; pointer-events: none; backdrop-filter: none; }
  .floating-social > a { visibility: hidden; width: 43px; height: 43px; opacity: 0; pointer-events: none; transform: translateY(12px) scale(.82); animation: none; transition: opacity .18s, visibility .18s, transform .18s; }
  .floating-social.open > a { visibility: visible; opacity: 1; pointer-events: auto; transform: none; animation: landingSocialPulse 4.2s ease-in-out infinite; }
  .floating-social > a::before,
  .floating-social > a::after,
  .wa-float::before,
  .wa-float::after { display: none; }
  .floating-social-toggle { width: 54px; height: 54px; padding: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(#11100e,#11100e) padding-box,conic-gradient(from 30deg,#25f4ee,#1877f2,#833ab4,#e1306c,#fcb045,#25f4ee) border-box; color: #fff; box-shadow: 0 10px 28px rgba(17,16,14,.3); cursor: pointer; pointer-events: auto; animation: landingSocialPulse 3.4s ease-in-out infinite; }
  .floating-social-toggle span { font-size: .45rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .floating-social-toggle b { font-size: 1.15rem; line-height: .8; transition: transform .2s; }
  .floating-social.open .floating-social-toggle { animation: none; }
  .floating-social.open .floating-social-toggle b { transform: rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-social > a,
  .floating-social-toggle,
  .wa-float { animation: none !important; }
}
