/* ===== SECCIÓN PRECISIÓN ===== */
.precision-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.precision-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vh;
}

/* Título de la sección */
.precision-title {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.precision-title-text {
    color: white;
    font-size: 4vh;
    font-weight: 700;
    margin-bottom: 2vh;
}

.precision-title-subtitle {
    max-width: 55vh;
    color: white;
    font-size: 2vh;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

/* Comparador de imágenes */
.precision-comparator {
    position: relative;
    width: 40%;
    height: 100vh;
}

/* Imágenes de fondo */
.comparator-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.comparator-left {
    z-index: 1;
}

.comparator-right {
    z-index: 2;
    clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
    transition: clip-path 0.05s ease-out, filter 0.1s ease-out;
    /* Agregar un filtro más distintivo para diferenciar las imágenes */
    filter: brightness(1.15) contrast(1.1) saturate(1.05) hue-rotate(5deg);
}

/* Línea divisoria */
.comparator-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.4vh;
    height: 100%;
    background: white;
    z-index: 5;
    transform: translateX(-50%);
    border-radius: 0.2vh;
    transition: left 0.05s ease-out;
}

/* Control deslizante */
.comparator-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: grab;
    transition: left 0.05s ease-out;
}

.comparator-slider:active {
    cursor: grabbing;
}

.slider-handle {
    width: 10vh;
    height: 10vh;
    background: var(--primary-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    transition: all 0.3s ease;
}

.slider-handle:hover {
    transform: scale(1.1);
}

.slider-handle i {
    color: #ffffff;
    font-size: 5vh;
    font-weight: 600;
}

/* Animaciones GSAP */
.precision-section .precision-title {
    opacity: 0;
    transform: translateY(3vh);
}

.precision-section .precision-comparator {
    opacity: 0;
    transform: translateY(5vh) scale(0.95);
}

.precision-comparator:hover .slider-handle {
    transform: scale(1.05);
} 


/* Responsive */
@media (max-width: 900px) {
    .precision-container {
        margin-top: 10vh;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .precision-comparator {
        width: 60%;
        height: 120vw;
    }

    .precision-title {
        width: 70%;
    }
}

@media (max-width: 576px) {
    .precision-title-text {
        font-size: 3.5vh;
    }
}

@media (max-width: 480px) {
    .slider-handle {
        width: 8vh;
        height: 8vh;
    }
    
    .slider-handle i {
        font-size: 3vh;
    }
}


