/* Carga de fotos: brillo suave mientras llega la foto, luego aparece con un fundido. Solo opacidad (liviano en celulares). */
@keyframes fotoBrillo{0%{background-position:-160% 0,0 0,0 0}100%{background-position:260% 0,0 0,0 0}}
html body .product-card[data-product-id] .product-image-area:not(.foto-ok),
html body .product-card[data-product-id] .product-image-area:not(.foto-ok):has(img.product-image[src]){
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 30%,#e3edff 50%,rgba(255,255,255,0) 70%),radial-gradient(120% 90% at 50% 8%,#ffffff 0%,#ffffff 58%,#eaf2ff 100%),linear-gradient(135deg,#22e6ff 0%,#3f7af5 38%,#a98bff 68%,#ffc21a 100%)!important;
  background-size:60% 100%,100% 100%,100% 100%!important;background-repeat:no-repeat!important;
  background-origin:border-box!important;background-clip:padding-box,padding-box,border-box!important;
  animation:fotoBrillo 1.2s linear infinite}
html body .product-card .product-image-area img.product-image{opacity:0;transition:opacity .35s ease}
html body .product-card .product-image-area.foto-ok img.product-image{opacity:1}
html body .product-card .product-image-area:not(.foto-ok)[data-cap]::before{opacity:0}
html body .product-card .product-image-area[data-cap]::before{transition:opacity .35s ease}
@media (prefers-reduced-motion:reduce){html body .product-card[data-product-id] .product-image-area:not(.foto-ok){animation:none}}
/* Las tarjetas fuera de pantalla solo se omiten en Android (en iPhone dejaban cuadros vacíos al bajar rápido). */
html:not(.es-android) body .product-card{content-visibility:visible!important}

html body .product-card[data-product-id] .product-image-area:not(.foto-ok):has(img.product-image[src$=".webp"]){background-image:linear-gradient(100deg,rgba(255,255,255,0) 30%,#e3edff 50%,rgba(255,255,255,0) 70%)!important;background-color:#fff!important;background-size:60% 100%!important;background-repeat:no-repeat!important;background-origin:padding-box!important;background-clip:padding-box!important;}
