
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.center-member {
    grid-column: span 2;
    justify-self: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--light-color);
}

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

/* Memberships Section - 2 columnas siempre */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.membership-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.membership-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.membership-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.collaboration-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.collaboration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.collaboration-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: rgb(255, 169, 39);
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.convenio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convenio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.convenio-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: rgb(255, 206, 116);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: var(--light-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.research-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#proyectos-generales .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(244, 136, 86);
}

.project-icon {
    font-size: 3.5rem;
    color: var(--white);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .team-grid,
    .memberships-grid,
    .collaborations-grid,
    .convenios-grid {
        gap: 1rem;
    }
    
    .team-member,
    .membership-card,
    .collaboration-card,
    .convenio-card {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-map-container {
        order: 1;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .collaboration-icon,
    .convenio-icon {
        font-size: 2.5rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .research-projects .projects-grid,
    #proyectos-generales .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .team-grid,
    .memberships-grid,
    .collaborations-grid,
    .convenios-grid {
        gap: 0.75rem;
    }
    
    .team-member,
    .membership-card,
    .collaboration-card,
    .convenio-card {
        padding: 1rem;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
    }
    
    .membership-logo {
        width: 60px;
        height: 60px;
    }
    
    .collaboration-icon,
    .convenio-icon {
        font-size: 2rem;
    }
}

.team-member h3,
.membership-card h3,
.collaboration-card h3,
.convenio-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.team-member .member-position {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.membership-card p,
.collaboration-card p,
.convenio-card p {
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.membership-card small,
.convenio-card small {
    color: var(--primary-color);
    font-weight: 600;
}



.map-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-details h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.map-details p {
    color: var(--text-light);
    font-size: 0.9rem;
}