/* Free-product badges: translucent green with a restrained pulse and sheen. */
.guide-badge:not(.upcoming-badge) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #126538;
  background: linear-gradient(135deg, #25d36624, #25d36610);
  border: 1px solid #25b86065;
  box-shadow: inset 0 1px 0 #ffffffc0, 0 0 0 0 #25d36600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 800;
  animation: free-badge-pulse 4.8s ease-in-out infinite;
}
.guide-badge:not(.upcoming-badge)::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -40% -65%;
  background: linear-gradient(110deg, transparent 40%, #ffffff99 50%, transparent 60%);
  transform: translateX(-65%);
  animation: free-badge-sheen 4.8s ease-in-out infinite;
}
a.cta[href^="https://wa.me/"], a.floating-cta[href^="https://wa.me/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #285d47;
  background: linear-gradient(135deg, #ffffffa8, #d9eee185);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border: 1px solid #ffffffc0;
  box-shadow: inset 0 1px 0 #ffffffa8, 0 6px 18px #20384f0d;
  text-decoration: none;
  animation: whatsapp-halo 6.5s ease-in-out infinite;
  transition: background .2s ease, box-shadow .2s ease;
}
a.cta[href^="https://wa.me/"]::before, a.floating-cta[href^="https://wa.me/"]::before {
  content: "";
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #287a52;
  -webkit-mask: url('/images/whatsapp.svg') center / contain no-repeat;
  mask: url('/images/whatsapp.svg') center / contain no-repeat;
  animation: whatsapp-icon-pulse 6.5s ease-in-out infinite;
}
a.cta[href^="https://wa.me/"] > span[aria-hidden],
a.floating-cta[href^="https://wa.me/"] > .cta-ball { display: none; }
a.floating-cta[href^="https://wa.me/"] .floating-label,
a.floating-cta[href^="https://wa.me/"] .floating-label small { color: #285d47; }
a.floating-cta[href^="https://wa.me/"] .floating-label small { opacity: .85; }
a.cta[href^="https://wa.me/"]:hover, a.floating-cta[href^="https://wa.me/"]:hover {
  background: linear-gradient(135deg, #ffffffc2, #d5ebdda3);
  box-shadow: inset 0 1px 0 #ffffffc0, 0 8px 22px #20384f14;
}
a.cta[href^="https://wa.me/"]:focus-visible, a.floating-cta[href^="https://wa.me/"]:focus-visible {
  outline: 3px solid #075e36;
  outline-offset: 5px;
}
@keyframes free-badge-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 #ffffffc0, 0 0 0 0 #25d36600; }
  45% { box-shadow: inset 0 1px 0 #ffffffc0, 0 0 0 4px #25d3660d, 0 0 16px #25d36625; }
}
@keyframes free-badge-sheen { 0%, 58% { transform: translateX(-65%); } 90%, 100% { transform: translateX(65%); } }
@keyframes whatsapp-halo {
  0%, 100% { box-shadow: inset 0 1px 0 #ffffffa8, 0 6px 18px #20384f0d, 0 0 0 0 #65a88200; }
  50% { box-shadow: inset 0 1px 0 #ffffffc0, 0 6px 20px #20384f12, 0 0 0 2px #65a8820a; }
}
@keyframes whatsapp-icon-pulse { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.025); } 94% { transform: scale(1.01); } }
@media (prefers-reduced-motion: reduce) {
  .guide-badge:not(.upcoming-badge), .guide-badge:not(.upcoming-badge)::after,
  a.cta[href^="https://wa.me/"], a.floating-cta[href^="https://wa.me/"],
  a.cta[href^="https://wa.me/"]::before, a.floating-cta[href^="https://wa.me/"]::before { animation: none; transition: none; }
}
body:has(.static-story) .guide-badge:not(.upcoming-badge),
body:has(.static-story) .guide-badge:not(.upcoming-badge)::after,
body:has(.static-story) a.cta[href^="https://wa.me/"],
body:has(.static-story) a.floating-cta[href^="https://wa.me/"],
body:has(.static-story) a.cta[href^="https://wa.me/"]::before,
body:has(.static-story) a.floating-cta[href^="https://wa.me/"]::before { animation: none; transition: none; }
