/* Esqueleto de carga (shimmer) para <img> y <video>.
   JS/skeleton.js agrega la clase "skeleton-loading" a cada imagen/video
   mientras su contenido todavía se está descargando, y la retira apenas
   termina de cargar. No se usan contenedores extra: el efecto se pinta
   como fondo del propio elemento, así no se altera el layout existente. */
img.skeleton-loading,
video.skeleton-loading {
  background-color: #e6e6e6;
  background-image: linear-gradient(
    100deg,
    #e6e6e6 30%,
    #f2f2f2 50%,
    #e6e6e6 70%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  img.skeleton-loading,
  video.skeleton-loading {
    animation: none;
  }
}
