/* WpLanding — «Barra de progreso acelerada» de los videos (23-nov-2026, pedido del dueño).
   Se activa por video en el editor (data-vbar="1", color en data-vbar-color). Va DEBAJO del video en su propia
   franja. Avanza MUY rápido al inicio y frena poco a poco (curva logarítmica en public/js/wpl-video-barra.js).
   Sin circulito en la punta: el movimiento se nota por las rayitas que corren dentro de la barra + un brillo suave. */
.wpl-vbar {
  --vb: #22c55e;
  position: relative; display: block; width: 100%; height: 14px; margin: 0; z-index: 2; pointer-events: none; box-sizing: border-box;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); overflow: hidden;
}
.wpl-vbar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; overflow: hidden; border-radius: 0 99px 99px 0;
  background-color: var(--vb);
  /* Rayitas diagonales que corren: se nota que la barra avanza. */
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .16) 0 10px, rgba(255, 255, 255, 0) 10px 20px),
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .18));
  background-size: 44px 100%, 100% 100%;
  box-shadow: 0 0 12px color-mix(in srgb, var(--vb) 65%, transparent);
  animation: wplVbRayas .9s linear infinite;
}
/* Brillo suave que recorre la barra. */
.wpl-vbar-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -90px; width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: wplVbBrillo 2.4s ease-in-out infinite;
}
.wpl-vbar.pausa .wpl-vbar-fill, .wpl-vbar.pausa .wpl-vbar-fill::after { animation-play-state: paused; }
@keyframes wplVbRayas { from { background-position: 0 0, 0 0; } to { background-position: 44px 0, 0 0; } }
@keyframes wplVbBrillo { 0% { left: -90px; } 70%, 100% { left: 100%; } }
@media (max-width: 600px) { .wpl-vbar { height: 11px; } }
@media (prefers-reduced-motion: reduce) { .wpl-vbar-fill, .wpl-vbar-fill::after { animation: none; } }
