/* ===================================================================
 * # services
 *
 * ------------------------------------------------------------------- */
 .s-services {
    padding-top: 8rem;
    padding-bottom: 13.2rem;
    color: #ffffff;
    position: relative;
    background-color: #000000b2;
}

.service-text p {
    font-weight: lighter; /* Hacer el texto menos bold */
    font-size: 16px; /* Tamaño de fuente */
    font-family: "Montserrat", sans-serif; /* Fuente del párrafo */
    margin-top: 0; /* Eliminar margen superior */
    margin-bottom: 1rem; /* Añadir margen inferior */
}

.fondofijado {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url(/images/divisiones/BACK.jpg);
    background-size: cover;
    background-position: center center;
    filter: blur(2px);
}

.service-text-tittle {
    color: #ce171e;
    font-weight: bold; /* Hacer el título más bold */
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Espacio entre tarjetas */
}

.service-item {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    max-width: 300px;
    flex: 1 1 calc(25% - 2rem); /* Cuatro tarjetas en una fila */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem; /* Añadir margen debajo del icono */
}

.service-icon {
    background-color: #ffffff; /* Fondo blanco para el icono */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    color: #ce171e;
    font-size: 4rem; /* Tamaño del icono */
}

.service-title {
    margin: 1rem 0; /* Márgenes superior e inferior */
    font-size: 2rem; /* Tamaño del título */
    min-height: 3.6rem; /* Altura mínima uniforme */
    font-weight: bold; /* Hacer el título más bold */
    font-family: 'Montserrat', sans-serif; /* Fuente del título */
}

.service-text {
    flex: 1; /* Permitir que el texto ocupe el espacio restante */
    margin-top: 1rem; /* Espacio entre el icono y el título */
    font-family: "Montserrat", sans-serif; /* Fuente del texto */
    line-height: 1.6; /* Interlineado */
}

/* Botones de Más info */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-info-card {
    position: relative;
    display: inline-block;
    background-color: #ce171e;
    border: 2px solid #ce171e;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 25px; /* Botón más redondeado */
    padding: 0.5rem 1rem; /* Ajuste de padding */
    overflow: hidden; /* Ocultar contenido desbordado */
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Añadido transform */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif; /* Fuente del botón */
}

.btn-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #000000;
    transition: left 0.3s ease-in-out;
    z-index: 0;
}

.btn-info-card:hover::before,
.btn-info-card:focus::before {
    left: 0;
}

.btn-info-card span {
    position: relative;
    z-index: 1;
}

.btn-info-card:hover,
.btn-info-card:focus {
    color: #ce171e;
    border-color: #ce171e;
    transform: scale(1.1); /* Añadido scale */
}

/* Responsive para dispositivos móviles */
@media only screen and (max-width: 600px) {
    .service-item {
        flex: 1 1 calc(100% - 2rem); /* Un elemento por fila */
        max-width: calc(100% - 2rem);
    }
}

.section-header.has-bottom-sep::before {
    content: "";
    display: inline-block;
    height: 2px;
    width: 50%;
    background-color: #ce171d79;
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    border-radius: 90px;
}