/* Contenedor principal */
.ba-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    line-height: 0;
    cursor: ew-resize;
}

.ba-slider-container img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Imagen "Después" (fondo) */
.ba-image-after {
    width: 100%;
    position: relative;
}

/* Imagen "Antes" (superpuesta) */
.ba-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-image-before img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
}

/* Etiquetas */
.ba-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
    border-radius: 4px;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

/* Manejador */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 60px;
    margin-left: -30px;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    margin-left: -1.5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.ba-handle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
}

.ba-handle-arrow-left {
    border-width: 4px 6px 4px 0;
    border-color: transparent #fff transparent transparent;
}

.ba-handle-arrow-right {
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ba-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 15px;
    }

    .ba-label-before {
        left: 15px;
    }

    .ba-label-after {
        right: 15px;
    }

    .ba-handle-circle {
        width: 38px;
        height: 38px;
    }
}