/* Asegúrate de que el comparador tome el tamaño del contenedor padre */
#comparison {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
}

#comparison figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    place-items: center;
}

#comparison figure>img,
#comparison figure>div>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#comparison figure>div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
}

#divisor {
    clip-path: inset(0 50% 0 0);
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
}

/* Asegúrate de que el slider se ajuste al tamaño del contenedor */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    width: 90%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:active {
    outline: none;
}

input[type=range]::-moz-range-track {
    -moz-appearance: none;
    height: 15px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type=range]::active {
    border: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 15px;
    background: #fff;
    border-radius: 0;
}

input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    width: 20px;
    height: 15px;
    background: #fff;
    border-radius: 0;
}

input[type=range]:focus::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.5);
}

input[type=range]:focus::-moz-range-thumb {
    background: rgba(255, 255, 255, 0.5);
}