/* =========================================
                INVESTIGADORES
   ========================================= */

:root {
    --bg-body: #f4f6f8;       
    --primary-blue: #1565c0;  
    --primary-dark: #0d47a1;
    --accent-cyan: #00bcd4;   
    --text-main: #333;
    --text-light: #666;
}

body {
    background-color: var(--bg-body);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}


.dropbtn.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.team-hero {
    
    background-image: url('hero_equipo.jpeg');
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(13, 71, 161, 0.85); 
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    display: flex; align-items: center;
    padding-left: 8%;
}

.team-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}

.hero-content-detail { z-index: 2; max-width: 800px; color: white; }

.hero-content-detail h1 { 
    font-family: 'Merriweather', serif;
    font-size: 3rem; margin: 15px 0; font-weight: 700;
}
.hero-content-detail p { font-size: 1.1rem; color: #e3f2fd; font-weight: 400; }

.category-tag { 
    background: rgba(255,255,255,0.2); 
    color: white; padding: 5px 15px; border-radius: 20px; 
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}

/* =========================================
   2.PERFILES
   ========================================= */
.team-section {
    padding: 40px 20px 80px 20px;
    margin-top: 20px;
    position: relative; z-index: 5;
}

.team-grid {
    display: flex;
    
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 60px 40px; 
    max-width: 1200px;
    margin: 0 auto;
                    
    flex-wrap: wrap; 
    justify-content: center; 
    
    padding: 20px 10px
    

}

/* =========================================
   3. PERFIL estilos
   ========================================= */
.researcher-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.img-glow {
    width: 180px; height: 180px;
    position: relative;
    margin-bottom: 10px;
    border-radius: 50%;
    
   
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5), 
                0 0 5px rgba(0, 212, 255, 0.3) inset;
    
    background: white; 
    padding: 5px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-glow img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


.researcher-profile:hover .img-glow {
    transform: scale(1.05); 
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}


.researcher-profile h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.department {
    font-family: 'Montserrat', sans-serif;
    color: #546e7a; 
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.researcher-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.link-btn {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex; align-items: center; gap: 6px;
}


.link-btn.cti {
    background-color: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.link-btn.cti:hover {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
}


.link-btn.orcid {
    background-color: white;
    color: #a6ce39; 
    border-color: #a6ce39;
}
.link-btn.orcid:hover {
    background-color: #a6ce39;
    color: white;
    box-shadow: 0 4px 10px rgba(166, 206, 57, 0.3);
}
/* =========================================
   ESTILOS - COORDINADOR
   ========================================= */


.coordinator-badge {
    display: inline-block;
    color:  #333; 
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    margin-top: -1px; 
}


.profile-divider {
    width: 250px;       
    height: 2px;       
    background: #e0e0e0; 
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .team-hero { height: 250px; }
    .hero-content-detail h1 { font-size: 2rem; }
}

