.mobile-menu-hint[hidden] { display: none; }
.mobile-menu-hint { display: none; }
.back-to-top[hidden] { display: none; }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 94;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 5px 15px 5px 5px;
  border: 1px solid rgba(0, 62, 126, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #003e7e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  font: 700 12px/1 'Montserrat', sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.back-to-top-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #003e7e;
  color: #fff;
  font-size: 12px;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}
.back-to-top:focus-visible { outline: 3px solid #eab308; outline-offset: 3px; }

@media (max-width: 768px) {
  .back-to-top {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    min-height: 42px;
    padding-right: 12px;
    font-size: 11px;
  }
  .back-to-top-icon { width: 30px; height: 30px; font-size: 10px; }
  .mobile-bottom-item.whatsapp { color: #166534; }
  .mobile-bottom-item.whatsapp i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9f9ef;
    color: #15803d;
  }
  .mobile-bottom-item.whatsapp:focus-visible,
  .mobile-menu-hint a:focus-visible,
  .mobile-menu-hint button:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 3px;
  }
  .mobile-bottom-bar.is-inviting .whatsapp i {
    animation: whatsapp-menu-pulse 1.4s ease-out 3;
  }
  .mobile-menu-hint {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: calc(100% + 12px);
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
    background: #166534;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px #0f172a24;
    font-size: 12px;
    line-height: 1.5;
  }
  .mobile-menu-hint::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: #166534;
  }
  .mobile-menu-hint a { color: #fff; padding: 10px 4px 10px 12px; text-decoration: none; }
  .mobile-menu-hint button {
    border: 0;
    background: transparent;
    color: #fff;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
    cursor: pointer;
  }
}

@keyframes whatsapp-menu-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 #22c55e00; }
  25% { transform: scale(1.12); box-shadow: 0 0 0 5px #22c55e30; }
  65% { transform: scale(1); box-shadow: 0 0 0 12px #22c55e00; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-bar.is-inviting .whatsapp i { animation: none; }
}
