/* Variables para fácil personalización de colores */
:root {
    --primary-color: #0077B6; /* Azul de LinkedIn para un look profesional */
    --secondary-color: #f4f4f9; /* Fondo claro para las secciones */
    --text-color: #333;
    --light-text: #fff;
    --sidebar-bg: #2C3E50; /* Gris oscuro / Azul marino */
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #e9e9e9;
    padding: 20px;
}

.cv-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    box-shadow: var(--shadow);
    background-color: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
}

/* --- SIDEBAR (Columna Izquierda) --- */
.sidebar {
    width: 35%;
    background-color: var(--sidebar-bg);
    color: var(--light-text);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin: 0 auto 15px;
    display: block;
}

.name {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 5px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.title {
    font-size: 1.1em;
    text-align: center;
    font-weight: 300;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.sidebar h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--light-text);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.sidebar a {
    color: var(--light-text);
    text-decoration: none;
}

/* --- SECCIÓN DE HABILIDADES (Barras de Progreso) --- */
.skill-item p {
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bar {
    background-color: #555;
    height: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.skill-bar span {
    display: block;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* --- MAIN CONTENT (Columna Derecha) --- */
.main-content {
    width: 65%;
    padding: 40px;
}

.main-content section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.main-content section:last-child {
    border-bottom: none;
}

.main-content h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.main-content h2 i {
    margin-right: 10px;
}

/* --- EXPERIENCIA Y EDUCACIÓN --- */
.job-item, .edu-item, .project-item {
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.job-item h3, .edu-item h3, .project-item h3 {
    color: #444;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.date, .institution, .description {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.job-item ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.job-item ul li {
    margin-bottom: 5px;
}

.job-item ul li i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Media Query para hacerlo Responsive en Móviles */
@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
        margin: 10px;
    }

    .sidebar, .main-content {
        width: 100%;
        padding: 20px;
    }
}