/* ==================================================
   MODERN ACADEMIC STYLE — Final Consolidated
   ================================================== */

/* 1. ESTILOS BASE */
body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;    
    background-color: #ffffff;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 25px;
}


/* 2. NAVEGACIÓN */
.main-nav {
    display: flex;
    justify-content: center; 
    gap: 40px;               
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: #94a3b8; 
    text-decoration: none !important; 
    text-transform: uppercase;
    transition: color 0.3s ease;
    border: none !important;
}

.main-nav a:hover {
    color: #2563eb; 
}

/* 3. ESTRUCTURA DE COLUMNAS (Intro) */
.intro {
    display: flex;
    flex-direction: row;      
    align-items: flex-start;  
    gap: 50px;                
    margin-top: 20px;
}

.intro-text {
    flex: 1;                  
    display: flex;
    flex-direction: column;   
    order: 2 !important; 
}

.foto-perfil {
    width: 200px !important;  
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex-shrink: 0;           
    order: 1 !important; 
}

/* 4. TIPOGRAFÍA GENERAL */
/* --- NOMBRE EN HOME (Consistente con Headers) --- */
h1 {
    font-family: 'Source Sans 3', sans-serif; /* Cambiamos de Serif a Sans para igualar los headers */
    font-weight: 600; 
    font-size: 1.6rem;          /* Un poco más grande que los headers de sección */
    color: #111827;           /* El mismo tono oscuro profesional */
    text-transform: uppercase;
    letter-spacing: 1.3px;    /* Espaciado consistente */
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}


strong {
    color: #1f2937;
    font-weight: 600;
}

/* 5. SECCIÓN TEACHING */
.teaching-category h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}

.teaching-category ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.teaching-category li {
    font-size: 0.85rem !important; 
    line-height: 1.6;
    margin-bottom: 10px;
    color: #4b5563;
}

/* 6. SECCIÓN RESEARCH */
.section-heading {
    font-size: 1.35rem; 
    color: #111827;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0 !important;
    margin-bottom: 15px !important; 
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    width: 100%;
}

/* --- NÚMEROS DE LA LISTA: MÁS PEQUEÑOS Y DISCRETOS --- */
.pub-list li::marker {
    font-size: 0.80rem;    
    color: #334155 !important; /* El mismo color Slate 700 que definimos para el journal */
    font-weight: 400;          /* Un poco más de peso para que el color luzca */
}

/* Asegura que haya un espacio elegante entre el número y el texto */
.pub-list {
    padding-left: 25px;    /* Ajusta este valor si el número queda muy pegado o lejos */
}

.pub-item {
    margin-bottom: 30px; 
}

.pub-item p {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

.pub-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.95rem;
    color: #94a3b8 !important; 
    margin: 0 !important;
}

.coauthor-link {
    color: #94a3b8 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.coauthor-link:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.pub-journal {
    font-size: 0.95rem;
    color: #334155 !important; 
    font-weight: 400;
}

.pub-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pub-links a {
    font-size: 0.88rem;
    color: #2563eb !important;
    text-decoration: none !important;
}

.pub-links a:hover {
    text-decoration: underline !important;
}

/* Featured In: Estilo Mini solicitado */
.media-links {
    font-size: 0.85rem !important; 
    color: #94a3b8 !important;
    margin-left: 8px;
    font-weight: 400;
}

.media-links a {
    font-size: 0.85rem !important;
    color: #64748b !important;
    text-decoration: none !important;
}

.media-links a:hover {
    color: #2563eb !important;
}

.abstract-box {
    display: none;
    margin-top: 15px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4b5563;
    padding: 10px 0 10px 15px;
    border-left: 1px solid #e5e7eb;
}

/* 7. ICONOS SOCIALES Y BOTONES */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 25px;
}

.social-links a i {
    font-size: 1.6rem;
    color: #475569 !important; 
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #2563eb !important; 
}

.btn-calendly {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #475569; 
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-calendly:hover {
    background-color: #2563eb !important;
}

/* 8. FOOTER / COPYRIGHT */
.site-footer {
    clear: both;
    width: 100%;
    margin-top: 100px;
    padding-bottom: 30px;
    text-align: center;
}

.site-footer p {
    font-size: 0.65rem !important;
    color: #cbd5e1 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 !important;
    font-weight: 300;
}

/* 9. AJUSTES RESPONSIVOS */
@media (max-width: 768px) {
    .intro {
        flex-direction: column;   
        align-items: center;
        text-align: center;
    }
    .foto-perfil {
        order: -1 !important; 
        margin-bottom: 20px;
    }
    .pub-list { text-align: left; }
}