.team-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

.team-card {
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.team-card-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.team-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 2px solid #ddd !important;
}

.team-info {
    flex: 1 !important;
}

.team-role {
    margin: 0 0 10px 0 !important;
    color: gray !important;
}

.team-name {
    margin: 0 0 12px 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}

.team-contact {
    margin: 5px 0 !important;
    font-size: 14px !important;
}

.email a {
    color: #d01d16 !important;
    text-decoration: none !important;
}

.email a:hover {
    color: #bbb !important;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
    .team-grid {
        gap: 20px !important;
    }

    .team-card {
        padding: 20px !important;
    }

    .team-name {
        font-size: 20px !important;
    }

    .team-img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .team-card {
        padding: 20px !important;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .team-grid {
        padding: 0 10px !important;
        gap: 15px !important;
    }

    .team-card {
        padding: 15px !important;
    }

    .team-card-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .team-img {
        width: 100px !important;
        height: 100px !important;
    }

    .team-name {
        font-size: 18px !important;
    }

    .team-contact {
        font-size: 13px !important;
    }
}