/* =========================================================
   ALBURGER · splash.css — Arranque animado de la app
   ---------------------------------------------------------
   Secuencia al abrir la app instalada (iOS y Android):
   1) El sistema muestra su splash: fondo crema + ícono AL
      (iOS: assets/img/splash/*, Android: manifest).
   2) Esta capa arranca IDÉNTICA (mismo fondo, mismo ícono,
      mismo tamaño y posición) → no se nota el cambio.
   3) El ícono AL rebota (solo el ícono, sin el logo completo).
   4) Un círculo vino crece desde el centro y se desvanece
      revelando el inicio (que también es vino) → transición
      continua; en ese momento arrancan las animaciones del hero.
   Se activa desde el <script> del <head> (solo app instalada,
   1 vez por sesión). Para verlo en el navegador: ?splash=1
   ========================================================= */
.splash{display:none}
html.splash-on{overflow:hidden}
html.splash-on .splash{
  display:block;position:fixed;inset:0;z-index:1000;overflow:hidden;
  background:var(--crema);
  animation:splash-out .45s var(--ease-out) 1.4s forwards;
}
.splash__icon{
  position:absolute;left:50%;top:50%;width:min(36vw,180px);height:auto;translate:-50% -50%;
  animation:
    splash-bounce .75s var(--ease-spring) .08s,
    splash-zoom .45s var(--ease-out) 1s forwards;
}
.splash__burst{
  position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;
  background:var(--vino);transform:scale(0);
  animation:splash-burst .6s cubic-bezier(.7,0,.3,1) .95s forwards;
}
.splash__dots{position:absolute;left:50%;bottom:calc(14vh + var(--safe-bottom));translate:-50% 0;display:flex;gap:8px;animation:splash-fade .2s ease .9s forwards}
.splash__dots i{width:9px;height:9px;border-radius:50%;background:var(--vino);opacity:.25;animation:splash-dot .6s ease-in-out infinite alternate}
.splash__dots i:nth-child(2){animation-delay:.15s}
.splash__dots i:nth-child(3){animation-delay:.3s}

@keyframes splash-bounce{
  0%{transform:scale(1)}
  25%{transform:scale(.86,.9)}
  55%{transform:scale(1.14) rotate(-4deg)}
  75%{transform:scale(.97) rotate(1deg)}
  100%{transform:scale(1)}
}
@keyframes splash-zoom{to{transform:scale(2.6);opacity:0}}
@keyframes splash-fade{to{opacity:0}}
@keyframes splash-burst{to{transform:scale(90)}}
@keyframes splash-dot{to{opacity:1;transform:translateY(-6px)}}
@keyframes splash-out{to{opacity:0;visibility:hidden}}
