.bal-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    cursor: grab;
    overflow: hidden;
    margin-top: 20px;
}

/* Capas principales */
.bal-before,
.bal-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bal-before {
    z-index: 15;
}

/* Imágenes */
.bal-before img,
.bal-after img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
}

/* Etiquetas */
.beforeLabel,
.afterLabel {
    position: absolute;
    bottom: 0;
    margin: 1rem;
    user-select: none;
    color: #003f5d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    padding: 8px 16px;
    background-color: #fff;
    pointer-events: none;
    border-radius: 2px;
}

.beforeLabel { left: 0; }
.afterLabel { right: 0; }

/* Controlador */
.bal-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 41px;
    height: 41px;
    margin: -20.5px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(12, 12, 12, 0.8);
    z-index: 20;
    pointer-events: none;
}

/* Flechas */
.handle-left-arrow,
.handle-right-arrow {
    position: absolute;
    top: 50%;
    margin-top: -6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.handle-left-arrow {
    border-right-color: #fff;
    left: 50%;
    margin-left: -17px;
}

.handle-right-arrow {
    border-left-color: #fff;
    right: 50%;
    margin-right: -17px;
}

/* Líneas verticales */
.bal-handle::before,
.bal-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    background: #fff;
    display: block;
    transform: translateX(-50%);
}

.bal-handle::before {
    bottom: 50%;
    height: 9999px;
    box-shadow: 0 0 10px rgba(12, 12, 12, 0.8);
}

.bal-handle::after {
    top: 50%;
    height: 9999px;
    box-shadow: 0 0 5px rgba(12, 12, 12, 0.8);
}

/* Accesibilidad y compatibilidad */
.bal-container:active {
    cursor: grabbing;
}