/*
----------------------------------------------------------------------------------------------------------
    CSS -> Business -> Services
----------------------------------------------------------------------------------------------------------
*/
.sect-services {
	margin-top: -50px;
	border-top: 5px solid var(--bs-primary);
	border-bottom: 15px solid #fff;
}

.sect-services {
    padding: 60px 0; 
    position: relative;
    background-size: cover; 
    background-attachment: fixed; 
}

/* Superposición oscura para mejorar el contraste sobre la imagen de fondo de la sección */
.sect-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* 60% de opacidad para buen contraste */
    z-index: 1;
}

.sect-services .container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la capa oscura */
}

/* Estilos de la Cabecera de la Sección */
.sect-services .section-header {
    text-align: center;
    padding-bottom: 30px;
}

.sect-services .section-header h3 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF; /* Texto blanco */
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: 5px;
}

.sect-services .section-header p {
    font-size: 16px;
    color: #DDDDDD; /* Gris claro */
    margin-bottom: 0;
}

/* Estilos de las Columnas de Servicio */
.sect-services .service-col {
    background: #FFFFFF; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px; 
    transition: all 0.3s ease-in-out;
    overflow: hidden; 
    text-align: center; 
}

.sect-services .service-col:hover {
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); 
}


.sect-services .service-col .img {
    height: 150px; 
    position: relative; 
    
    background-position: center center; 
    background-size: cover; 
    background-repeat: no-repeat; 
    
    border-radius: 8px 8px 0 0; 
    margin: -30px; 
    margin-bottom: 20px; 

    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    width: auto; 

}

/* Capa de superposición para el icono sobre la imagen de fondo del servicio */
.sect-services .service-col .img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Capa oscura semi-transparente */
    z-index: 1;
}

/* Estilo para el icono dentro del div .img */
.sect-services .service-col .img .icon {
    position: relative; 
    z-index: 2;
    background: var(--bs-primary); /* Color primario de Bootstrap */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FFFFFF; 
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

.sect-services .service-col:hover .img .icon {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

/* Estilos de Contenido (Títulos y Párrafos) */
.sect-services .service-col .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.sect-services .service-col .title a {
    color: #333333;
    transition: 0.3s;
    text-decoration: none;
}

.sect-services .service-col .title a:hover {
    color: var(--bs-primary); 
}

.sect-services .service-col p {
    line-height: 24px;
    font-size: 14px;
    text-align: center;
    color: #555555;
}

/* Media Query para ajustes en móvil */
@media (max-width: 767.98px) {
    .sect-services {
        padding: 40px 0;
    }
    .sect-services .service-col {
        padding: 20px;
    }
    .sect-services .service-col .img {
        /* Ajuste de margen en móvil si es necesario */
        margin: -20px -20px 20px -20px;
    }
}