/*
============================================
Estilos para la sección de Equipo
============================================
*/

.team-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.team-section .section-title h2 {
    color: var(--primary-color);
}

.team-section .section-title p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.team-card-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.team-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--corporate-color-1);
    flex-shrink: 0;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-intro h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.team-card-intro .member-title {
    margin: 0.25rem 0 0 0;
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
}

.team-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-card-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.5rem;
}

.team-card-specialties {
    margin-top: auto; /* Empuja las especialidades hacia abajo */
}

.team-card-specialties h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.specialties-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background-color: #eef2f7;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.team-card-footer {
    padding: 0 2rem 2rem 2rem;
    margin-top: 1.5rem;
}

.team-card .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 400px) {
    .team-card-header {
        flex-direction: column;
        text-align: center;
    }
}
