html {
  scrollbar-width: thin;
  scrollbar-color: var(--green-700) #dfe8e1;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #dfe8e1; }
::-webkit-scrollbar-thumb {
  border: 3px solid #dfe8e1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-700), var(--lime));
}
::-webkit-scrollbar-thumb:hover { background: var(--green-700); }

.whatsapp-float {
  position: fixed;
  z-index: 70;
  left: 26px;
  bottom: 28px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 13px 34px rgba(4,23,17,.28);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(37,211,102,.52);
  border-radius: inherit;
  animation: whatsappPulse 2.2s ease-out infinite;
}
.whatsapp-float img { width: 30px; height: 30px; }
.whatsapp-float span {
  position: absolute;
  left: 71px;
  width: max-content;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-950);
  box-shadow: 0 9px 25px rgba(4,23,17,.18);
  font-size: .76rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-7px);
  transition: opacity .2s ease, transform .2s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fbd59;
  box-shadow: 0 16px 38px rgba(37,211,102,.35);
  transform: translateY(-3px);
}
.whatsapp-float:hover span,
.whatsapp-float:focus-visible span { opacity: 1; transform: translateX(0); }
.whatsapp-float:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

@keyframes whatsappPulse {
  0% { opacity: .78; transform: scale(.88); }
  75%, 100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 820px) {
  .whatsapp-float { left: 16px; bottom: 87px; width: 54px; height: 54px; }
  .whatsapp-float img { width: 27px; height: 27px; }
  .whatsapp-float span { display: none; }
  html.menu-open, body.menu-open { overflow: hidden; overscroll-behavior: none; }
  .site-header, .site-header.scrolled { z-index: 60; overflow: visible; }
  .menu-open .site-header, .menu-open .site-header.scrolled { z-index: 100; }
  .nav-overlay { z-index: 80; }
  .nav-links { z-index: 102; height: 100vh; height: 100dvh; visibility: hidden; pointer-events: none; will-change: transform; }
  .menu-open .nav-links { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .menu-toggle { z-index: 103; -webkit-tap-highlight-color: transparent; }
  .menu-open .menu-toggle { z-index: 104; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none !important; }
}
