/* ==========================================================================
   Localmed — animations.css
   Keyframes + animações ao scroll (reveal)
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}
@keyframes shimmer {
  to { background-position: -135% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .8; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes badgePop {
  0% { transform: scale(.4); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ---------- Reveal ao scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

.reveal-scale { opacity: 0; transform: scale(.95); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ---------- Elementos animados ---------- */
.float { animation: float 5s ease-in-out infinite; }
.hero-badge.b1 { animation: float 6s ease-in-out infinite; }
.hero-badge.b2 { animation: float 6s ease-in-out infinite 1.5s; }
.badge.pop { animation: badgePop .35s var(--ease); }

/* ---------- Spinner ---------- */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Lazy image fade ---------- */
img.lazy { opacity: 0; transition: opacity .5s var(--ease); }
img.lazy.loaded { opacity: 1; }

/* ---------- Hover de link suave global ---------- */
.nav-link, .btn, .icon-btn, .pc-wish { -webkit-tap-highlight-color: transparent; }
