/* Logo de PlayUp ("Rebote") y sus animaciones.
   ARCHIVO GENERADO por tools/marca/generar.py: no editar a mano.

   Clases:
     .pu-logo              el svg (símbolo solo o logotipo con palabra)
     .pu-logo--intro       entrada: la pelota pica hasta su lugar (una vez)
     .pu-logo--loop        cargando: la entrada se repite
     .pu-logo--wink        al pasar el mouse, la pelota da un saltito
   Colores: --pu-f (pelota, puntos y palabra) y --pu-a (el play calado).
   Retraso opcional: --pu-delay. */

.pu-logo { overflow: visible; }
.pu-logo .pu-ball, .pu-logo .pu-tri, .pu-logo .pu-rec,
.pu-logo .pu-d1, .pu-logo .pu-d2, .pu-logo .pu-d3 { transform-box: fill-box; transform-origin: center; }
.pu-logo .pu-word { transform-box: fill-box; }
.pu-logo .pu-ball, .pu-logo .pu-word, .pu-logo .pu-d1, .pu-logo .pu-d2, .pu-logo .pu-d3 { fill: var(--pu-f, currentColor); }
.pu-logo .pu-tri { fill: var(--pu-a, #fff); stroke: var(--pu-a, #fff); }
.pu-logo .pu-rec { fill: #ff5a4f; }
.pu-loader { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; color: var(--muted, #5d6b72); font-size: .95rem; text-align: center; }

@keyframes pu-x-intro {
  0% { transform: translateX(-79px); animation-timing-function: linear; }
  11.856% { transform: translateX(-54px); animation-timing-function: linear; }
  23.711% { transform: translateX(-45px); animation-timing-function: linear; }
  36.598% { transform: translateX(-33px); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  60.825% { transform: translateX(0px); }
  100% { transform: translateX(0); }
}
@keyframes pu-y-intro {
  0% { transform: translateY(75px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  5.928% { transform: translateY(38px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  11.856% { transform: translateY(52px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  17.784% { transform: translateY(21px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  23.711% { transform: translateY(37px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  30.155% { transform: translateY(3px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  36.598% { transform: translateY(21px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  46.773% { transform: translateY(-26px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  60.825% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@keyframes pu-ball-intro {
  0% { opacity: 0; transform: scale(0.1); animation-timing-function: linear; }
  4.124% { opacity: 1; transform: scale(0.1); animation-timing-function: linear; }
  11.856% { opacity: 1; transform: scale(0.188, 0.112); animation-timing-function: linear; }
  17.784% { opacity: 1; transform: scale(0.161, 0.189); animation-timing-function: linear; }
  23.711% { opacity: 1; transform: scale(0.25, 0.15); animation-timing-function: linear; }
  30.155% { opacity: 1; transform: scale(0.215, 0.252); animation-timing-function: linear; }
  36.598% { opacity: 1; transform: scale(0.333, 0.2); animation-timing-function: linear; }
  60.825% { opacity: 1; transform: scale(1.16, .84); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  65.464% { opacity: 1; transform: scale(.94, 1.06); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  69.588% { opacity: 1; transform: scale(1.03, .97); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  73.711% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d1-intro {
  0% { opacity: 0; transform: scale(.4); }
  11.856% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  16.495% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  21.134% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d2-intro {
  0% { opacity: 0; transform: scale(.4); }
  23.711% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  28.351% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  32.99% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d3-intro {
  0% { opacity: 0; transform: scale(.4); }
  36.598% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  41.237% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  45.876% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-tri-intro {
  0% { opacity: 0; transform: scale(.5) rotate(-60deg); }
  63.918% { opacity: 0; transform: scale(.5) rotate(-60deg); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  76.289% { opacity: 1; transform: scale(1.1) rotate(6deg); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  81.443% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pu-rec-intro {
  0% { opacity: 0; transform: scale(.5); }
  73.196% { opacity: 0; transform: scale(.5); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  79.897% { opacity: 1; transform: scale(1); animation-timing-function: steps(1, end); }
  86.598% { opacity: 0.15; transform: scale(1); animation-timing-function: steps(1, end); }
  93.299% { opacity: 1; transform: scale(1); animation-timing-function: steps(1, end); }
  100% { opacity: 0.15; transform: scale(1); animation-timing-function: steps(1, end); }
  100% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-word-intro {
  0% { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); }
  68.041% { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  94.845% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}

@keyframes pu-x-loop {
  0% { transform: translateX(-79px); animation-timing-function: linear; }
  7.958% { transform: translateX(-54px); animation-timing-function: linear; }
  15.917% { transform: translateX(-45px); animation-timing-function: linear; }
  24.567% { transform: translateX(-33px); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  40.83% { transform: translateX(0px); }
  100% { transform: translateX(0); }
}
@keyframes pu-y-loop {
  0% { transform: translateY(75px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  3.979% { transform: translateY(38px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  7.958% { transform: translateY(52px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  11.938% { transform: translateY(21px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  15.917% { transform: translateY(37px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  20.242% { transform: translateY(3px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  24.567% { transform: translateY(21px); animation-timing-function: cubic-bezier(.33,.66,.66,1); }
  31.398% { transform: translateY(-26px); animation-timing-function: cubic-bezier(.33,0,.66,.33); }
  40.83% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@keyframes pu-ball-loop {
  0% { opacity: 0; transform: scale(0.1); animation-timing-function: linear; }
  2.768% { opacity: 1; transform: scale(0.1); animation-timing-function: linear; }
  7.958% { opacity: 1; transform: scale(0.188, 0.112); animation-timing-function: linear; }
  11.938% { opacity: 1; transform: scale(0.161, 0.189); animation-timing-function: linear; }
  15.917% { opacity: 1; transform: scale(0.25, 0.15); animation-timing-function: linear; }
  20.242% { opacity: 1; transform: scale(0.215, 0.252); animation-timing-function: linear; }
  24.567% { opacity: 1; transform: scale(0.333, 0.2); animation-timing-function: linear; }
  40.83% { opacity: 1; transform: scale(1.16, .84); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  43.945% { opacity: 1; transform: scale(.94, 1.06); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  46.713% { opacity: 1; transform: scale(1.03, .97); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  49.481% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d1-loop {
  0% { opacity: 0; transform: scale(.4); }
  7.958% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  11.073% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  14.187% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d2-loop {
  0% { opacity: 0; transform: scale(.4); }
  15.917% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  19.031% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  22.145% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-d3-loop {
  0% { opacity: 0; transform: scale(.4); }
  24.567% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  27.682% { opacity: 1; transform: scale(1.15); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  30.796% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-tri-loop {
  0% { opacity: 0; transform: scale(.5) rotate(-60deg); }
  42.907% { opacity: 0; transform: scale(.5) rotate(-60deg); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  51.211% { opacity: 1; transform: scale(1.1) rotate(6deg); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  54.671% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pu-rec-loop {
  0% { opacity: 0; transform: scale(.5); }
  49.135% { opacity: 0; transform: scale(.5); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  53.633% { opacity: 1; transform: scale(1); animation-timing-function: steps(1, end); }
  58.131% { opacity: 0.15; transform: scale(1); animation-timing-function: steps(1, end); }
  62.63% { opacity: 1; transform: scale(1); animation-timing-function: steps(1, end); }
  67.128% { opacity: 0.15; transform: scale(1); animation-timing-function: steps(1, end); }
  71.626% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pu-word-loop {
  0% { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); }
  45.675% { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  63.668% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}

@keyframes pu-fade-loop {
  0%, 91.349% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
.pu-logo--intro .pu-bx { animation: pu-x-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-by { animation: pu-y-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-ball { animation: pu-ball-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-d1 { animation: pu-d1-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-d2 { animation: pu-d2-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-d3 { animation: pu-d3-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-tri { animation: pu-tri-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-rec { animation: pu-rec-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--intro .pu-word { animation: pu-word-intro 1940ms var(--pu-delay, 0ms) 1 both; }
.pu-logo--loop .pu-bx { animation: pu-x-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-by { animation: pu-y-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-ball { animation: pu-ball-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-d1 { animation: pu-d1-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-d2 { animation: pu-d2-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-d3 { animation: pu-d3-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-tri { animation: pu-tri-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-rec { animation: pu-rec-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-word { animation: pu-word-loop 2890ms var(--pu-delay, 0ms) infinite both; }
.pu-logo--loop .pu-mark-g { animation: pu-fade-loop 2890ms var(--pu-delay, 0ms) infinite both; }
}

/* Movimiento reducido: sin desplazamientos. La entrada es un fundido y el
   "cargando" solo hace latir la luz de grabando. */
@keyframes pu-fade-in { from { opacity: 0; } }
@keyframes pu-latido { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .pu-logo--intro { animation: pu-fade-in 300ms var(--pu-delay, 0ms) both; }
  .pu-logo--loop .pu-rec { animation: pu-latido 1.2s ease-in-out infinite; }
}

/* Guiño: saltito de la pelota y vuelta del play. Solo con mouse. */
@keyframes pu-hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-9px); } }
@keyframes pu-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pu-logo--wink:hover .pu-by, a:hover > .pu-logo--wink .pu-by { animation: pu-hop 320ms cubic-bezier(.33,.66,.66,1) both; }
  .pu-logo--wink:hover .pu-tri, a:hover > .pu-logo--wink .pu-tri { animation: pu-spin 420ms cubic-bezier(.23,1,.32,1) both; }
}
