.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}
.profile-card h6 {
    border-bottom: 1px solid black !important;
    font-size: 30px !important;
    line-height: 1 !important;
    padding-bottom: 10px !important;
}
.profile-card {
    background-color: #ffffff;
     border-radius: 0 !important; 
    border: 1px solid #131313 !important;
    padding: 25px 20px;
    width: 250px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    text-transform: capitalize;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50% !important;
    margin-bottom: 12px;
    border: 3px solid #0073e6;
    transition: transform 0.3s ease;
}

.profile-nombre {
    font-weight: 700;
    font-size: 1.1em;
    color: #222;
    margin-bottom: 4px;
}

.profile-puesto {
    font-style: italic;
    color: #555;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    color: black;
    background: #f0f4f8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-social a:hover {
    color:black;
    background: #f0f4f8;
}

.profile-extra {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}
.perfil-card h1 {
    margin-bottom: 8px;
    font-size: 24px;
    text-transform: capitalize;
}
.perfil-card p {
    font-size: 16px;
    color: #666;
    margin: 0;
    text-transform: capitalize;
}

@media(max-width:768px){
    .profile-img { width: 70px; height: 70px; }
    .profile-card { padding: 18px; }
}

@media(max-width:480px){
    .profile-img { width: 60px; height: 60px; }
    .profile-card { padding: 15px; }
}