/* Comparador antes/después (F4.2) — compartido por backoffice, portal y web. */
.ba {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4 / 3; background: #1c1c20;
  --pos: 50%;
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.ba .ba-top { clip-path: inset(0 0 0 var(--pos)); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: #fff; transform: translateX(-1px);
  pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.5);
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 34px; height: 34px;
  border-radius: 50%; background: #fff; color: #1c1c20;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
}
.ba-tag {
  position: absolute; bottom: 10px; padding: .15rem .55rem;
  border-radius: 999px; font-size: .68rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; pointer-events: none;
}
.ba-tag-l { left: 10px; }
.ba-tag-r { right: 10px; }
.ba-caption { margin-top: .5rem; font-size: .85rem; color: inherit; opacity: .75; }
