/* Secciones v1: franjas de subcategoría (PC) y tarjetas 16:9 (celular).
   Solo afecta a #categoryGallery .vera-subcategory (subcategorías). No cambia las posiciones
   que guarda el editor de textos (esas reglas siguen en vera-text-layout-v2412.css). */

#categoryGallery .vera-subcategory-list{gap:14px!important;transition:opacity .5s ease}

#categoryGallery .vera-subcategory{
  aspect-ratio:2400/410;height:auto!important;min-height:0!important;
  border-radius:18px;margin:0;
  transition:transform .8s cubic-bezier(.22,1,.36,1),opacity .5s ease;
}

/* Foto de PC: cubre la franja (como estaba). */
#categoryGallery .vs-blur{display:none}

/* Animación al elegir: la elegida se acerca, las demás se desvanecen y la lista sale. */
#categoryGallery .vs-off{opacity:0!important;pointer-events:none}
#categoryGallery .vs-chosen{transform:scale(1.012)}
#categoryGallery .vs-chosen .vera-subcategory-cta{opacity:0;transition:opacity .3s ease}
#categoryGallery .vs-away{opacity:0}
#categoryGallery .vs-hide{display:none!important}

/* Barra de carga (dentro de la elegida). */
#categoryGallery .vs-loader{position:absolute;left:24px;right:24px;bottom:22px;z-index:3;color:#fff;opacity:0;transition:opacity .3s ease;pointer-events:none}
#categoryGallery .vs-loader span{display:block;font-size:13px;margin-bottom:10px;opacity:.9}
#categoryGallery .vs-bar{display:block;height:4px;border-radius:4px;background:rgba(255,255,255,.28);overflow:hidden}
#categoryGallery .vs-bar::after{content:"";display:block;height:100%;width:0;background:#fff;border-radius:4px}
#categoryGallery .vs-chosen .vs-loader{opacity:1;transition-delay:.3s}
#categoryGallery .vs-chosen .vs-bar::after{width:100%;transition:width var(--vs-carga,1000ms) linear .3s}

/* Celular: tarjetas 16:9 del mismo tamaño; la foto se ve completa y el fondo es la misma foto difuminada. */
@media (max-width:780px){
  #categoryGallery .vera-subcategory{aspect-ratio:16/9!important;height:auto!important;min-height:0!important;border-radius:16px}
  #categoryGallery .vera-subcategory picture img{object-fit:contain!important}
  #categoryGallery .vs-blur{display:block;position:absolute;inset:0;overflow:hidden;pointer-events:none}
  #categoryGallery .vs-blur picture,#categoryGallery .vs-blur img{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(18px) brightness(.55)}
  #categoryGallery .vs-loader{left:16px;right:16px;bottom:16px}
}

@media (prefers-reduced-motion:reduce){
  #categoryGallery .vera-subcategory,#categoryGallery .vs-bar::after,#categoryGallery .vs-loader{transition:none!important}
}
