/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.resume-container {
    display: flex;
    max-width: 1200px; /* O el ancho que prefieras */
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

a {
    color: #fff; /* Color de enlaces en sidebar */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Sidebar (Columna Izquierda) */
.sidebar {
    background-color: #2A3045; /* Azul oscuro/morado del CV */
    color: #fff;
    padding: 30px 25px; /* Aumentado padding lateral */
    width: 35%; /* Ajusta según necesidad */
    box-sizing: border-box;
}

.profile-pic-container {
    text-align: center;
    margin-bottom: 25px;
}

.profile-pic {
    width: 150px; /* Ajusta el tamaño */
    height: 150px; /* Ajusta el tamaño */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4A90E2; /* Borde azul claro */
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #4A90E2; /* Azul claro para títulos */
    font-size: 1.3em;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid #4A90E2;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.sidebar-section h2 .icon {
    margin-right: 10px;
    font-size: 1.1em;
}

.contact-info p, .language-item p, .skill-item p, .reference-item p {
    margin-bottom: 8px;
    font-size: 0.95em;
}
.contact-info p .icon {
    margin-right: 8px;
    color: #4A90E2;
    width: 15px; /* Para alinear texto */
}

.progress-bar-container {
    background-color: #555;
    border-radius: 5px;
    height: 12px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: #4A90E2;
    height: 100%;
    border-radius: 5px 0 0 5px;
    text-align: right;
    padding-right: 5px;
    font-size: 0.7em;
    line-height: 12px;
    color: #fff;
    box-sizing: border-box;
}

.soft-skills ul {
    list-style: none;
    padding-left: 0;
}

.soft-skills li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95em;
}

.soft-skills li::before {
    content: '•';
    color: #4A90E2;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.reference-item {
    margin-bottom: 15px;
}
.reference-item p strong {
    display: block;
}


/* Main Content (Columna Derecha) */
.main-content {
    padding: 40px;
    width: 65%; /* Ajusta según necesidad */
    box-sizing: border-box;
}

.profile-header {
    margin-bottom: 40px;
}

.profile-header h1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #a71a09;; /* Morado del nombre */
    color: #fff;
    padding: 10px 20px;
    display: inline-block; /* Para que el fondo solo cubra el texto */
    font-size: 2.2em;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.profile-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.profile-header p {
    font-size: 0.95em;
    color: #555;
}

.timeline-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
}
.section-title .icon {
    margin-right: 12px;
    color: #2A3045; /* Color de iconos en la sección principal */
    font-size: 0.9em;
}

.timeline {
    position: relative;
    padding-left: 30px; /* Espacio para la línea y los puntos */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px; /* Centra la línea en los puntos */
    top: 10px; /* Alinea con el primer punto */
    bottom: 0;
    width: 3px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before { /* El punto en la línea de tiempo */
    content: '';
    position: absolute;
    left: -28px; /* (ancho del punto / 2) + padding-left de .timeline - (ancho linea / 2) */
    top: 8px; /* Ajusta para alinear con el texto */
    width: 16px;
    height: 16px;
    background-color: #a71a09; /* Azul de los puntos */
    border-radius: 50%;
    border: 3px solid #fff; /* Borde blanco para destacar sobre la línea */
    z-index: 1;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 5px;
    color: #2A3045;
}
.timeline-content h3 .role, .timeline-content h3 .status {
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
}

.timeline-content .date {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.timeline-content ul {
    padding-left: 20px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}
.timeline-content ul li {
    margin-bottom: 6px;
}
.timeline-content p {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .resume-container {
        flex-direction: column;
        margin: 0;
        box-shadow: none;
    }

    .sidebar, .main-content {
        width: 100%;
        padding: 20px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile-header h1 {
        font-size: 1.8em;
    }
    .profile-header h2 {
        font-size: 1.3em;
    }
    .section-title {
        font-size: 1.4em;
    }

    .timeline {
        padding-left: 20px;
    }
    .timeline-item::before {
        left: -20px; /* (dot_width/2) + padding-left of .timeline */
    }
}