/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezado */
header {
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 5px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Navegación */
nav {
    margin: 30px 0;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: border-color 0.3s;
}

nav a:hover {
    border-bottom: 2px solid #3498db;
}

/* Contenido principal */
main {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Sección bio */
.bio {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.bio img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.bio-text {
    flex: 1;
}

/* Lista de publicaciones/proyectos */
.proyecto, .entrada-blog {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.proyecto:last-child, .entrada-blog:last-child {
    border-bottom: none;
}

.proyecto h3, .entrada-blog h3 {
    margin-top: 0;
}

.fecha {
    color: #7f8c8d;
    font-size: 0.9em;
    font-style: italic;
}

/* Enlaces */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    main {
        padding: 25px;
    }
    
    .bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .bio img {
        width: 150px;
        height: 150px;
    }
    
    nav a {
        display: inline-block;
        margin: 5px 10px;
    }
}