/* ========================================
   SERVICIOS.CSS - DPI del Perú
   Estilos para la sección de servicios
======================================== */

/* Sección Servicios */
.servicios-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 105vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.servicios-container {
    padding-top: 10vh;
}

/* Título principal fijo */
.servicios-title {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    text-align: center;
    font-size: 4vh;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}

/* Contenedor del carousel de servicios */
.servicios-carousel {
    position: relative;
    z-index: 2;
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 6.5vh 8vh 12.7vh;
}

/* Servicio individual */
.servicio-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    display: flex;
    align-items: center;
}

.servicio-item.active {
    opacity: 1;
    visibility: visible;
}

/* Imagen lateral izquierda */
.servicio-imagen {
    margin-top: 75vh;
}

.servicio-imagen img {
    width: 85vh;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3.2vh 6.5vh rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.servicio-item.active .servicio-imagen img {
    animation: slideInRight 0.8s ease forwards;
}

/* Información del servicio */
.servicio-info {
    width: 80%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    justify-content: center;
}

.servicio-item.active .servicio-info {
    animation: slideInRight 0.8s ease forwards;
}

/* Título del servicio como imagen */
.servicio-titulo img {
    max-height: 100%;
    height: 25vh;
    width: auto;
}

/* Descripción del servicio */
.servicio-descripcion {
    width: 50%;
    font-size: 2vh;
    line-height: 1.3;
    color: #ffffff;
}

.servicio-descripcion p {
    text-align: center;
    margin: 0;
}

/* Navegación siguiente */
.servicio-navegacion {
    position: absolute;
    z-index: 4;
    display: flex;
    gap: 30vw;
    justify-content: space-between;
}

.servicio-navegacion.btn-anterior,
.servicio-navegacion.btn-siguiente {
    width: 8vh;
    height: 8vh;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 0.4vh solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 3vh;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1.6vh);
}

.servicio-navegacion.btn-anterior:hover,
.servicio-navegacion.btn-siguiente:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Animaciones */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-16vh);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (min-width: 1281px) {
    .servicio-imagen {
        margin-left: -5vh;
    }

    .equipo-navegacion {
        width: 100%;
    }

    .preparacion-navegacion {
        width: 170%;
    }
}

@media (max-width: 1200px) {
    .servicios-carousel {
        padding: 6.5vh 5vh 12.7vh;
    }
}

@media (max-width: 900px) {
    .servicios-title {
        margin-bottom: 5vh;
    }

    .servicios-section {
        min-height: auto;
        height: auto;
    }
    
    .servicios-carousel {
        padding: 0;
        min-height: auto;
        height: auto;
        position: relative;
    }

    .servicio-item {
        flex-direction: column-reverse;
    }
    
    .servicio-item.active {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
    }
    
    .servicio-imagen {
        margin-top: 3.2vh !important;
    }
    
    .servicio-imagen img {
        width: 100vw;
        height: auto;
    }
    
    .servicio-imagen img {
        margin-bottom: -30vh;
    }

    .servicio-navegacion {
        top: 5vh;
        gap: 60vw;
    }

    .servicio-descripcion {
        width: 80%;
    }
}

@media (max-width: 450px) {
    .servicio-navegacion.btn-anterior,
    .servicio-navegacion.btn-siguiente {
        width: 6vh;
        height: 6vh;
    }

    .servicios-title {
        font-size: 3.5vh;
    }

    .servicio-titulo img {
        height: 20vh;
    }
}