body {
  font-family: 'Montserrat', sans-serif;
  left: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.container {
  background-color: #F7F7F7;
  color: #5F5F5F;
  width: 300px;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.cont-split {
  width: 300px;
  height: 250px;
  position: relative;
}

.cont-enlace {
  width: 300px;
  height: 50px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0px;
}

.cont-enlace .enlace {
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  display: block;
  color: #fff;
  height: 0px;
  width: 0px;
  text-align: center;
  line-height: 28px;
  z-index: 1;
}

.bal-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
}

.bal-after {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bal-before {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Controlar la altura */
  z-index: 15;
  overflow: hidden;
}

.bal-before-inset, .bal-after-inset {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Asegurarse de que cubra todo */
}

.bal-after img, .bal-before img {
  object-fit: cover;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.beforeLabel, .afterLabel {
  position: absolute;
  opacity: 0;
  bottom: 0;
  margin: 10px 15px;
  font-size: 12px;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/* Handle y flechas */
.bal-handle {
  width: 40px;
  height: 40px; /* Ahora la altura es pequeña y el ancho grande */
  position: absolute;
  left: calc(50% - 20px);
  top: 50%; /* Centrar la barra verticalmente */
  pointer-events: auto;
  cursor: ns-resize;
  border: 2px solid #fff;
  border-radius: 1000px;
  z-index: 20;
  box-shadow: 0 0 10px rgb(12, 12, 12);
}

.bal-handle::before {
    content: "";
    display: block;
    width: 130px;
    background: #fff;
    position: absolute;
    height: 2px;
    left: -130px;
    top: 50%;
}
.bal-handle::after {
    content: "";
    display: block;
    width: 130px;
    background: #fff;
    position: absolute;
    height: 2px;
    left: 40px;
    top: 50%;
}

/* Flechas arriba y abajo */
.handle-left-arrow, .handle-right-arrow {
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute;
  left: 50%;
  margin-left: -6px; /* Centramos horizontalmente */
}

.handle-left-arrow {
  border-bottom: 6px solid #fff; /* Flecha hacia arriba */
  top: 0; /* Colocamos por encima del handle */
}

.handle-right-arrow {
  border-top: 6px solid #fff; /* Flecha hacia abajo */
  bottom: 0; /* Colocamos por debajo del handle */
}
