/* assets/css/before-after.css */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Medida estricta */
    height: 495px;    /* Medida estricta */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    user-select: none; 
    -webkit-user-select: none;
}

.ba-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-before {
    width: 400px; /* Debe coincidir con el max-width del contenedor */
    max-width: none;
    height: 100%;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--celeste);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ba-arrow {
    color: var(--celeste);
    font-size: 16px;
    transition: color 0.2s ease;
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif !important; /* Letra estándar */
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 4px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    pointer-events: none;
}

.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }
.ba-slider-container.show-labels .ba-label { opacity: 1; }