* {box-sizing: border-box;}

/*.comparative-animation-class {
  width: 100%;
  text-align: center;
  align-items: center;
}*/

.img-comp-container {
  position: relative;
  height: 300px; /*should be the same height as the images*/
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: auto;
  overflow: hidden;
}

.img-comp-img img {
  display: block;
  vertical-align: middle;
}

.img-comp-slider {
  position: absolute;
  z-index: 9;
  cursor: ew-resize;
  /*set the appearance of the slider:*/
  width: 40px;
  height: 40px;
  background-color: #fe7a0e;
  opacity: 0.9;
  border-radius: 50%;
}


/*--------------------------*/


.slider-animation{
  position: relative;
  height: 308px;
  width: 597px;
  overflow: hidden;
  background: #fe7a0e;
  /*border: 7px solid #fff;*/
  box-shadow: 0px 0px 15px rgba(0,0,0,0.15);
}
.slider-animation .images{
  height: 100%;
  width: 100%;
  display: flex;
}
.slider-animation .images .img-1{
  object-fit: cover;
  height: 100%;
  width: 100%;
  background: url("../img/antes-comparativa.webp") no-repeat;
  background-size: cover;
}
.slider-animation .images .img-2{
  object-fit: cover;
  position: absolute;
  height: 100%;
  width: 40%;
  background: url("../img/ahora-comparativa.webp") no-repeat;
  background-size: cover;
}
.slider-animation .slider{
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 99;
}
.slider-animation .slider input{
  width: 100%;
  outline: none;
  background: none;
  -webkit-appearance: none;
}
.slider input::-webkit-slider-thumb{
  height: 308px;
  width: 3px;
  background: none;
  -webkit-appearance: none;
  cursor: col-resize;
}
.slider .drag-line{
  width: 3px;
  height: 308px;
  position: absolute;
  left: 40%;
  pointer-events: none;
}
.slider .drag-line::before,
.slider .drag-line::after{
  z-index: -1;
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #fe7a0e;
}
.slider .drag-line::before{
  top: 0;
}
.slider .drag-line::after{
  bottom: 0;
}
.slider .drag-line span{
  height: 42px;
  width: 42px;
  background-color:  #fe7a0e;
  border: 2px solid #FFFFFF;
  position: absolute;
  top: 154px;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.slider .drag-line span::before,
.slider .drag-line span::after{
  position: absolute;
  content: "";
  top: 50%;
  border: 10px solid transparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.slider .drag-line span::before{
  left: 40%;
  border-left-color: #FFFFFF;
}
.slider .drag-line span::after{
  left: 60%;
  border-top-color: #FFFFFF;
}
