.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.ba {
position: relative; --pos: 50%; aspect-ratio: 3 / 2; overflow: hidden;
border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--tinta); touch-action: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); } .ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.45); pointer-events: none; }
.ba__grip {
position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--tinta);
display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none;
}
.ba__label {
position: absolute; top: 12px; padding: 0.25rem 0.65rem; border-radius: 999px;
font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #fff;
background: rgba(30,25,20,.62); pointer-events: none; text-transform: uppercase;
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; } .ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible { outline: none; }
.ba__range:focus-visible ~ .ba__grip { box-shadow: 0 0 0 4px color-mix(in srgb, var(--oxido) 55%, transparent); }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-track { background: transparent; }