/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--neutral);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}

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

.service-img {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Imágenes específicas para cada servicio */
.service-card:nth-child(1) .service-img {
    background-image: url('../../images/ciberseguridad.png');
}
.service-card:nth-child(2) .service-img {
    background-image: url('../../images/cloud.png');
}
.service-card:nth-child(3) .service-img {
    background-image: url('../../images/ia.png');
}
.service-card:nth-child(4) .service-img {
    background-image: url('../../images/software.png');
}

/* Ocultar iconos cuando hay imagen de fondo */
.service-img[style*="background-image"] i,
.service-card:nth-child(1) .service-img i,
.service-card:nth-child(2) .service-img i,
.service-card:nth-child(3) .service-img i,
.service-card:nth-child(4) .service-img i {
    display: none;
}

/* Overlay para mejorar contraste */
.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7);
    z-index: 1;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-claim {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }