.ba-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: inherit;
}
.ba-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
}
.ba-before-img,
.ba-after-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba-clip-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, .85);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  pointer-events: none;
}
.ba-handle svg path {
  stroke: #fff;
}
.ba-label-antes,
.ba-label-despues {
  position: absolute;
  bottom: 18px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 40px;
  color: #fff;
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  pointer-events: none;
  transition: opacity .25s;
}
.ba-label-antes { left: 18px; }
.ba-label-despues { right: 18px; }

@media (max-width: 480px) {
  .ba-wrapper { border-radius: 9px; }
  .ba-label-antes, .ba-label-despues { bottom: 12px; padding: 5px 12px; }
  .ba-handle { width: 38px; height: 38px; }
}
