:root {
    --primary-color: #34495e;
    --secondary-color: #7f8c8d; 
    --text-color-dark: #2c3e50; 
    --background-color: #ecf0f1; 
    --font-family-primary: 'Lato', sans-serif;
    --font-family-headings: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color-dark);
}

main, .header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; 
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2); 
    object-fit: cover;
    margin-bottom: 20px;
}

.header h1 {
    font-family: var(--font-family-headings);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.header h2 {
    font-family: var(--font-family-primary);
    font-size: 1.2rem;
    font-weight: 300;
    margin: 10px 0 0;
    color: #bdc3c7;
}

.section {
    padding: 30px;
    background-color: #fff;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section h2 {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px dashed var(--secondary-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
}

.dates {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.9em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--secondary-color);
}

/* -- Habilidades (Diseño de etiquetas) -- */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.skills-list li:hover {
    background-color: var(--primary-color);
}

/* -- Footer -- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* -- Responsive -- */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2.2rem;
    }
    .section h2 {
        font-size: 1.5rem;
    }
    .section {
        padding: 20px;
    }
}
