/* Simple Academic Theme - Clean Two Column Layout */

/* Smooth scroll and anchor offset for sticky nav */
html {
    scroll-behavior: smooth;
}

.research-section[id] {
    scroll-margin-top: 5rem;
}

/* Base Styles */
.simple-academic {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-serif);
    background-color: var(--background-light);
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    background: white;
    color: var(--text-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.5rem 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column - Profile & Contact */
.left-column {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: sticky;
    /* Pegar justo bajo el nav para alinear con la columna de contenido */
    top: 5.5rem;
    /* Subir la columna lateral para alinearla con la de contenido */
    margin-top: -1.5rem;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-image-container {
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.profile-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.social-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.social-link {
    display: inline-block;
    padding: 0.25rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    text-align: center;
    border: none;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.8) contrast(1);
}

/* Right Column - Content */
.right-column {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-top: 0;
}

/* Alinear inicio del contenido: quitar margen superior del primer bloque */
.right-column .research-overview {
    margin-top: 0;
}

.right-column .research-overview > .research-section:first-child {
    margin-top: 0;
}

/* Listas generadas por Markdown en Teaching y Collaborations */
.teaching-list-wrapper ul,
.collaboration-list-wrapper ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0 0;
}

.teaching-list-wrapper li,
.collaboration-list-wrapper li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Error Page Styles */
.error-page {
    text-align: center;
    padding: 3rem 0;
}

.error-page h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.error-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .left-column {
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .left-column {
        position: static;
        order: 2;
    }
    
    .right-column {
        order: 1;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .nav-container,
    .content-container,
    .footer-container {
        padding: 0 1rem;
    }
    
    .left-column,
    .right-column {
        padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}
