/* 7/11/2026 (Enrique): carrusel de la «Foto del producto» en la ficha (bp_ficha_carrusel.php / .js).
   Ocupa el mismo hueco que la foto sola (.bpf-foto2 en bp_fichas.css). */
.bpf-carrusel { position: relative; flex: 0 0 auto; width: min(300px, 44%); margin: 16px 0; }
.bpf-car-pista {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    border-radius: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bpf-car-pista::-webkit-scrollbar { display: none; }
.bpf-car-pista:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bpf-car-img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: center; display: block; }
.bpf-car-flecha {
    position: absolute; top: calc(50% - 14px); transform: translateY(-50%); width: 32px; height: 32px; padding: 0;
    border: none; border-radius: 50%; background: rgba(20, 20, 22, .55); color: #fff; font-size: 22px; line-height: 30px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bpf-car-flecha:hover, .bpf-car-flecha:focus-visible { background: rgba(20, 20, 22, .8); }
.bpf-car-ant { left: 6px; }
.bpf-car-sig { right: 6px; }
.bpf-car-flecha[disabled] { opacity: .3; cursor: default; }
.bpf-car-puntos { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.bpf-car-punto { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: currentColor; opacity: .3; cursor: pointer; }
.bpf-car-punto[aria-current="true"] { opacity: .9; }
@media (max-width: 600px) {
    .bpf-carrusel { width: 42%; margin: 12px 0; }
    .bpf-car-pista { border-radius: 10px; }
    .bpf-car-flecha { width: 26px; height: 26px; font-size: 18px; }
}

/* 9/11/2026 (Enrique): zoom de las fotos de la ficha (bp_ficha_carrusel.js).
   Al pulsar una foto se abre a pantalla completa con las mismas fotos en carrusel. */
.bpf-car-img, img.bpf-foto2 { cursor: zoom-in; }
html.bpf-zoom-abierto, html.bpf-zoom-abierto body { overflow: hidden; }
.bpf-zoom { position: fixed; inset: 0; z-index: 100050; background: rgba(10, 10, 12, .94); display: flex; }
.bpf-zoom[hidden] { display: none; }
.bpf-zoom-pista {
    flex: 1 1 auto; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.bpf-zoom-pista::-webkit-scrollbar { display: none; }
.bpf-zoom-hoja {
    flex: 0 0 100%; width: 100%; height: 100%; box-sizing: border-box; padding: 60px 70px;
    display: flex; align-items: center; justify-content: center; scroll-snap-align: center; overflow: hidden;
}
.bpf-zoom-hoja img {
    display: block; width: min(100%, calc(100vh - 120px), 900px); height: auto; max-height: 100%; object-fit: contain;
    border-radius: 10px; cursor: zoom-in; touch-action: pan-x pinch-zoom; user-select: none; -webkit-user-select: none;
    -webkit-user-drag: none; transition: transform .25s ease; transform-origin: center center;
}
.bpf-zoom.bpf-zoom-ampliada .bpf-zoom-pista { overflow: hidden; }
.bpf-zoom.bpf-zoom-ampliada .bpf-zoom-hoja img { cursor: grab; touch-action: none; }
.bpf-zoom.bpf-zoom-arrastrando .bpf-zoom-hoja img { cursor: grabbing; transition: none; }
.bpf-zoom-cerrar, .bpf-zoom-flecha {
    position: absolute; border: none; border-radius: 50%; padding: 0; background: rgba(255, 255, 255, .14); color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.bpf-zoom-cerrar:hover, .bpf-zoom-cerrar:focus-visible, .bpf-zoom-flecha:hover, .bpf-zoom-flecha:focus-visible { background: rgba(255, 255, 255, .26); }
.bpf-zoom-cerrar { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 30px; z-index: 2; }
.bpf-zoom-flecha { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 32px; transition: opacity .2s; }
.bpf-zoom-ant { left: 12px; }
.bpf-zoom-sig { right: 12px; }
.bpf-zoom-flecha[disabled] { opacity: .25; cursor: default; }
.bpf-zoom-cuenta { position: absolute; top: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; pointer-events: none; }
.bpf-zoom-ayuda {
    position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75);
    font-size: 13px; pointer-events: none; transition: opacity .2s;
}
.bpf-zoom.bpf-zoom-ampliada .bpf-zoom-ayuda, .bpf-zoom.bpf-zoom-ampliada .bpf-zoom-flecha { opacity: 0; pointer-events: none; }
.bpf-zoom-uno .bpf-zoom-flecha, .bpf-zoom-uno .bpf-zoom-cuenta { display: none; }
@media (max-width: 600px) {
    .bpf-zoom-hoja { padding: 60px 8px; }
    .bpf-zoom-flecha { display: none; }
}
