/* ==========================================================================
   Atempo Hero Shot — animaciones
   Los tiempos de la interfaz (160 / 130 / 460 / 420 / 400 ms) son los del
   portal real (ver animacion.md del paquete de referencias).
   El ritmo del recorrido (toques, pausas, scroll) lo gobierna js/hero-shot.js.
   ========================================================================== */

/* ---------- Teléfono flotante ---------- */
@keyframes hs-float {
  0%, 100% { transform: translate3d(0, 0, 0)      rotateX(3deg)   rotateY(-9deg) rotateZ(1.2deg); }
  50%      { transform: translate3d(0, -14px, 0)  rotateX(1.4deg) rotateY(-5deg) rotateZ(-.6deg); }
}
.hs-float { animation: hs-float 9s ease-in-out infinite; }

@keyframes hs-shadow {
  0%, 100% { transform: scale(1);   opacity: .95; }
  50%      { transform: scale(.86); opacity: .6; }
}
.hs-shadow { animation: hs-shadow 9s ease-in-out infinite; }

@keyframes hs-appear {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: none; }
}
.hs-device { animation: hs-appear 900ms cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Interfaz ---------- */
@keyframes hs-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
.hs-view.is-entering { animation: hs-in 320ms cubic-bezier(.2, .7, .2, 1) both; }

@keyframes hs-chip-in {
  from { opacity: 0; transform: translate3d(0, 6px, 0) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.hs-view.has-date .hs-chip { animation: hs-chip-in 260ms ease-out both; animation-delay: calc(var(--i, 0) * 36ms); }

@keyframes hs-flash {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.22); }
}
@keyframes hs-blink { 50% { opacity: 0; } }
@keyframes hs-ring {
  from { opacity: .55; transform: scale(.7); }
  to   { opacity: 0;   transform: scale(2); }
}

/* ---------- Confirmación (valores del portal real) ---------- */
@keyframes hs-pop {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes hs-draw { from { stroke-dashoffset: 54; } to { stroke-dashoffset: 0; } }
@keyframes hs-fade {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}
.hs-success-circle { animation: hs-pop 460ms cubic-bezier(.175, .885, .32, 1.275) both; }
.hs-success-circle path { stroke-dasharray: 54; stroke-dashoffset: 54; animation: hs-draw 420ms ease-out 220ms both; }
.hs-success-title, .hs-success-sub, .hs-detail, .hs-success-actions { animation: hs-fade 400ms ease-out 200ms both; }
.hs-detail { animation-delay: 320ms; }
.hs-success-actions { animation-delay: 460ms; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hs *, .hs *::before, .hs *::after {
    animation: none !important;
    transition: none !important;
  }
  .hs-success-circle path { stroke-dashoffset: 0; }
  .hs-float { transform: rotateX(2deg) rotateY(-7deg) rotateZ(.6deg); }
  .hs-note { opacity: 0; }
  .hs[data-note="b"] .hs-note--b { opacity: 1; translate: -50% 0; }
}
.hs.is-static *, .hs.is-static *::before, .hs.is-static *::after { animation: none !important; transition: none !important; }
.hs.is-static .hs-success-circle path { stroke-dashoffset: 0; }
