/* HECHOapps · Galería de capturas · lupa real (solo vista de producto). */
.product-gallery{
  border-color:#e2eaf5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 36px rgba(15,23,42,.035);
}
.gallery-collection-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:2px 2px 13px;
}
.gallery-collection-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.045em;
  color:#506580;
}
.gallery-live-dot{
  display:inline-block;
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#2563eb;
  box-shadow:0 0 0 3px #e9f1ff;
}
.gallery-collection-count{
  flex:none;
  padding:5px 9px;
  border:1px solid #e3ebf6;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  color:#657792;
  background:#f8fbff;
}
.product-gallery .gallery-stage{
  border-color:#dbe5f3;
  border-radius:13px;
  background:linear-gradient(135deg,#eaf0fa,#f6f9fd);
}
.product-gallery .gallery-enlarge{
  position:relative;
  padding:12px;
  overflow:hidden;
  cursor:zoom-in;
  touch-action:pan-y;
}
.product-gallery .gallery-enlarge>img{
  width:100%;
  height:auto;
  max-width:100%;
  aspect-ratio:auto;
  display:block;
  object-fit:contain;
  transform:none!important;
  border-radius:7px;
  border:1px solid #e5ebf3;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.085);
}
.product-gallery .gallery-enlarge:hover>img,
.product-gallery .gallery-enlarge:focus-visible>img{
  transform:none!important;
  box-shadow:0 6px 18px rgba(15,23,42,.085);
}
.product-gallery .gallery-zoom-label{
  right:20px;
  bottom:20px;
  z-index:2;
  border:1px solid rgba(255,255,255,.15);
  border-radius:9px;
  padding:8px 11px;
  background:rgba(13,27,53,.86);
  color:#fff;
  backdrop-filter:blur(4px);
}
.product-gallery .gallery-enlarge:focus-visible{
  outline:3px solid #3b82f6;
  outline-offset:-3px;
  border-radius:10px;
}
.gallery-magnifier{
  position:absolute;
  left:0;
  top:0;
  z-index:4;
  display:block;
  width:178px;
  height:178px;
  box-sizing:border-box;
  border:4px solid #fff;
  border-radius:50%;
  background-repeat:no-repeat;
  background-color:#fff;
  box-shadow:0 8px 32px rgba(10,24,51,.25),0 0 0 1px #aec2dd;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,-50%);
  transition:opacity .12s ease;
  will-change:left,top,background-position;
}
.gallery-magnifier.is-visible{opacity:1;visibility:visible}
.gallery-strip-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:9px;
  padding:15px 2px 7px;
}
.gallery-strip-heading>span:first-child{
  font-size:11px;
  color:#334155;
  font-weight:800;
}
.gallery-strip-hint{
  font-size:10px;
  color:#7a8ca6;
}
.product-gallery .gallery-caption{
  padding:16px 2px 9px;
  gap:12px;
}
.product-gallery .gallery-caption strong{
  font-size:16px;
  letter-spacing:-.015em;
  line-height:1.3;
}
.product-gallery .gallery-caption p{
  font-size:12px;
  line-height:1.55;
  color:#667892;
  max-width:490px;
}
.product-gallery .gallery-counter{
  padding:5px 9px;
  border-radius:8px;
  background:#f1f6fc;
  color:#4d668c;
  font-variant-numeric:tabular-nums;
  font-size:11px;
}
.product-gallery .gallery-thumbnails{
  counter-reset:gallery;
  padding:5px 2px 15px;
  gap:11px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:#bfcbe0 #eef3fa;
}
.product-gallery .gallery-thumbnail{
  position:relative;
  flex:0 0 154px;
  width:154px;
  padding:7px;
  overflow:hidden;
  border:1px solid #e0e7f0;
  border-radius:11px;
  box-shadow:none;
  background:#fff;
  scroll-snap-align:start;
  transition:background .16s,border-color .16s,box-shadow .16s,transform .16s;
}
.product-gallery .gallery-thumbnail::before{
  counter-increment:gallery;
  content:counter(gallery,decimal-leading-zero);
  position:absolute;
  top:12px;
  left:12px;
  z-index:1;
  display:grid;
  place-items:center;
  width:22px;
  height:19px;
  border-radius:5px;
  background:rgba(15,23,42,.78);
  color:#fff;
  font-size:9px;
  font-weight:700;
  line-height:1;
}
.product-gallery .gallery-thumbnail img{
  display:block;
  width:100%;
  aspect-ratio:1.86;
  object-fit:contain;
  object-position:top center;
  border:1px solid #e8edf4;
  border-radius:6px;
  background:#f7fafd;
}
.product-gallery .gallery-thumbnail .gallery-thumb-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  width:100%;
  height:2.7em;
  min-height:2.7em;
  padding:8px 3px 0;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
  color:#42516b;
  white-space:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}
.product-gallery .gallery-thumbnail:hover{background:#f9fbff;border-color:#8aadee}
.product-gallery .gallery-thumbnail.is-selected,
.product-gallery .gallery-thumbnail[aria-pressed="true"]{
  border-color:#2563eb;
  background:#f6f9ff;
  box-shadow:0 0 0 2px rgba(37,99,235,.14);
}
.product-gallery .gallery-thumbnail.is-selected .gallery-thumb-title{color:#1d4ed8}
.product-gallery .gallery-stage-nav{
  width:37px;
  height:42px;
  border:1px solid #dce4ef;
  border-radius:11px;
  color:#112747;
  background:rgba(255,255,255,.96);
  box-shadow:0 5px 18px rgba(15,23,42,.11);
}
.product-gallery .gallery-stage-nav.is-prev{left:17px}
.product-gallery .gallery-stage-nav.is-next{right:17px}
.product-gallery .gallery-lightbox-view img{
  width:auto;
  max-width:100%;
  max-height:calc(100dvh - 185px);
  object-fit:contain;
}
@media(hover:none),(pointer:coarse){
  .product-gallery .gallery-magnifier{display:none!important}
  .product-gallery .gallery-enlarge{cursor:pointer}
}
@media(max-width:700px){
  .product-gallery{padding:11px}
  .gallery-collection-bar{padding:2px 1px 11px}
  .gallery-collection-kicker{font-size:9px;letter-spacing:.01em}
  .gallery-collection-count{font-size:9px;padding:4px 7px}
  .product-gallery .gallery-enlarge{padding:8px}
  .product-gallery .gallery-zoom-label{right:12px;bottom:12px;font-size:10px;padding:6px 8px}
  .product-gallery .gallery-caption{padding:13px 2px 6px}
  .product-gallery .gallery-caption strong{font-size:14px}
  .product-gallery .gallery-caption p{font-size:11px}
  .product-gallery .gallery-thumbnail{flex-basis:132px;width:132px;padding:6px}
  .product-gallery .gallery-thumbnail .gallery-thumb-title{font-size:10px}
  .gallery-strip-heading{padding-top:12px}
  .product-gallery .gallery-stage-nav{width:30px;height:36px;border-radius:9px}
  .product-gallery .gallery-stage-nav.is-prev{left:10px}
  .product-gallery .gallery-stage-nav.is-next{right:10px}
}
@media(prefers-reduced-motion:reduce){
  .gallery-magnifier,.product-gallery .gallery-thumbnail{transition:none!important}
}
