/* AM Fitness & Health — galería de fotos y ventana «Ver detalles» (tienda y brochure) */
.gal{position:relative;width:100%}
.pic > .gal{height:100%}
.gal-slides{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gal-slides::-webkit-scrollbar{display:none}
.gal-slides img{flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:start;display:block}
.gal-btn{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.55);color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer;z-index:2;transition:background .2s}
.gal-btn:hover{background:rgba(167,109,67,.92)}
.gal-btn:focus-visible{outline:2px solid #dfa375;outline-offset:2px}
.gal-prev{left:10px}.gal-next{right:10px}
.gal-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;z-index:2;pointer-events:none}
.gal-dots button{pointer-events:auto;width:8px;height:8px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.5);cursor:pointer;transition:all .2s}
.gal-dots button.on{background:#dfa375;width:18px;border-radius:4px}
.gal ~ span{z-index:3}

.ver-det{background:none;border:0;padding:0;margin:0;color:#dfa375;font:inherit;font-weight:700;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;align-self:flex-start;justify-self:start}
.ver-det:hover{color:#f0c097}

.det-fondo{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.det-fondo[hidden]{display:none!important}
.det-caja{position:relative;background:#111;border:1px solid #3f3f46;border-radius:18px;max-width:560px;width:100%;max-height:85vh;overflow:auto;padding:26px;color:#e4e4e7;text-align:left;box-shadow:0 20px 60px -20px rgba(167,109,67,.45)}
.det-caja h3{margin:0 44px 4px 0;color:#fff;font-size:21px;font-weight:800;line-height:1.2}
.det-sub{margin:0 0 6px;color:#71717a;font-size:13px}
.det-caja h4{margin:18px 0 6px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#dfa375;font-weight:800}
.det-caja p{margin:0;line-height:1.6;color:#d4d4d8;font-size:14.5px;white-space:pre-line}
.det-caja ul{margin:0;padding-left:20px;line-height:1.7;font-size:14.5px;color:#d4d4d8}
.det-adv{background:rgba(127,29,29,.25);border:1px solid rgba(248,113,113,.35);border-radius:10px;padding:12px 14px}
.det-adv p{color:#fecaca}
.det-x{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:1px solid #3f3f46;background:#18181b;color:#d4d4d8;font-size:20px;line-height:1;cursor:pointer}
.det-x:hover{background:#27272a;color:#fff}

/* Fotos en grande (clic en la foto del producto) */
.vis-zoom{cursor:zoom-in}
.vis-zoom:focus-visible{outline:2px solid #dfa375;outline-offset:-4px}
.vis-caja{position:relative;background:#111;border:1px solid #3f3f46;border-radius:18px;max-width:640px;width:100%;max-height:92vh;overflow:auto;padding:22px;color:#e4e4e7;box-shadow:0 20px 60px -20px rgba(167,109,67,.45)}
.vis-caja h3{margin:0 44px 14px 0;color:#fff;font-size:19px;font-weight:800;line-height:1.2;text-align:left}
.vis-foto{position:relative;width:100%;aspect-ratio:1/1;max-height:70vh;background:#000;border-radius:12px;overflow:hidden}
.vis-foto img{width:100%;height:100%;object-fit:contain;display:block;user-select:none}
.vis-prev{left:10px}.vis-next{right:10px}
.vis-num{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.6);color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
.vis-mini{display:flex;gap:8px;margin-top:12px;overflow-x:auto;padding-bottom:2px}
.vis-mini button{flex:0 0 64px;width:64px;height:64px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#000;cursor:pointer;opacity:.55;transition:all .2s}
.vis-mini button.on,.vis-mini button:hover{opacity:1;border-color:#dfa375}
.vis-mini img{width:100%;height:100%;object-fit:cover;display:block}
.vis-fondo.una .vis-prev,.vis-fondo.una .vis-next,.vis-fondo.una .vis-num{display:none}
@media (max-width:480px){.vis-caja{padding:16px}.vis-mini button{flex-basis:52px;width:52px;height:52px}}

/* Flechas y puntos de la tarjeta: solo al pasar el cursor (o al tocar la foto en el teléfono) */
.gal .gal-btn,.gal .gal-dots{opacity:0;transition:opacity .25s}
.gal .gal-btn,.gal .gal-dots button{pointer-events:none}
.gal.ver .gal-btn,.gal.ver .gal-dots{opacity:1}
.gal.ver .gal-btn,.gal.ver .gal-dots button{pointer-events:auto}
@media (hover:hover){
  .gal:hover .gal-btn,.gal:hover .gal-dots,.gal:has(:focus-visible) .gal-btn,.gal:has(:focus-visible) .gal-dots{opacity:1}
  .gal:hover .gal-btn,.gal:hover .gal-dots button,.gal:has(:focus-visible) .gal-btn,.gal:has(:focus-visible) .gal-dots button{pointer-events:auto}
}
