.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #f0f0f0;
}

.services {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.services h2 {
    margin-bottom: 30px;
    font-size: 2em;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #7700ff; /* Cambia este color al que prefieras */
    color: #fff; /* Cambia el color del texto al pasar el mouse */
}

.service-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #7700ff; /* Cambia este color al que prefieras */
    border-radius: 0 0 8px 8px;
}

.icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-card p {
    color: #777;
    font-size: 0.9em;
    line-height: 1.5;
}

.service-card:hover p,
.service-card:hover h3 {
    color: #fff; /* Cambia el color del texto del título y el párrafo al pasar el mouse */
}

@media (max-width: 768px) {
    .service-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 100%;
    }
}