/* 
    DERECHOS RESERVADOS: LUMIERES ADS.

    DESARROLLADORES:
        - FULL-STACK: ING. GABRIEL ALEGRÍA.
        - FRONT-END: MTS. ING. RAÚL PORTILLO.

    RECURSO: CONFIGURACIÓN GLOBAL, ESTILOS, LETRA, COLORES PARA EL SITIO WEB (HOME-OUR_SERVICES
    ).

    PROHÍBIDO LA DISTRIBUCIÓN DE ESTE APLICATIVO O SOLUCIONES CÓDIFICADAS.
*/

/* Estilos generales */
.services-section {
    padding: 30px 0;
    background-color: #ffffff;
    text-align: center;
}

.services-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    overflow-x: unset;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 3.4em;
    background-image: linear-gradient(90deg, rgba(196, 60, 117, 1) 47%, rgba(26, 63, 122, 1) 78%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
}

/* Estilos de las tarjetas */
.service-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-title {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 1.5em;
    color: var(--primary-color-blue);
    margin-bottom: 8px;
}

.service-description {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
    text-align: justify;
}

.more-info {
    color: var(--primary-color-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95em;
}

.more-info:hover {
    background-image: linear-gradient(90deg, rgba(196, 60, 117, 1) 0%, rgba(26, 63, 122, 1) 54%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
}

/* --- Responsive Design optimizado para scroll horizontal --- */

/* Laptops y Desktops (1024px y más grandes) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        overflow-x: unset;
    }

    .section-title {
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
        font-size: 3em;
    }
}

/* Tablets (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-section .container {
        padding: 0;
    }

    .section-title {
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
        font-size: 2.6em;
    }

    .services-grid {
        /* Configuración de scroll horizontal */
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding: 0 15px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid::-webkit-scrollbar {
        height: 8px;
    }

    .services-grid::-webkit-scrollbar-thumb {
        background: rgba(54, 80, 122, 0.7);
        border-radius: 92px;
    }

    .services-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 92px;
    }

    .service-card {
        /* Ancho para que se visualicen 2 tarjetas con scroll */
        flex: 0 0 calc(50vw - 25px);
        /* 50vw para 2 tarjetas, -25px para el gap */
        scroll-snap-align: start;
        padding: 18px;
    }
}

/* Smartphones (hasta 767px) */
@media (max-width: 767px) {
    .services-section .container {
        padding: 0;
    }

    .section-title {
        font-weight: bold;
        font-size: 2.2em;
    }

    .services-grid {
        /* Configuración de scroll horizontal */
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding: 0 10px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid::-webkit-scrollbar {
        height: 8px;
    }

    .services-grid::-webkit-scrollbar-thumb {
        background: rgba(26, 63, 122, 0.7);
        border-radius: 92px;
    }

    .services-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 92px;
    }

    .service-card {
        /* Ancho para que se visualice 1 tarjeta con scroll */
        flex: 0 0 calc(100vw - 30px);
        /* 100vw para 1 tarjeta, -30px para el padding y gap */
        scroll-snap-align: start;
        padding: 15px;
    }
}