/* General */
body {
    font-family: 'Volkhov', serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1;
}

.cv-container {
    max-width: 210mm; /* Ancho de A4 */
    margin: 10mm auto; /* Márgenes en milímetros */
    background: #fff;
    padding: 15mm; /* Espacio interno optimizado */
    border-radius: 5px; /* Esquinas menos redondeadas para documentos formales */
    box-shadow: none; /* Eliminar sombras para impresión */
}

/* Encabezado */
.cv-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}

.cv-header h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 5px 0;
    color: #000;
}

.cv-header h2 {
    font-size: 1.2em;
    color: #555;
    margin: 3px 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1em;
    color: #555;
    margin-top: 10px;
}

.contact-info i {
    margin-right: 5px;
}

.contact-info a {
    color: #0073b1;
    text-decoration: none;
    margin-right: 15px;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Secciones generales */
.cv-section {
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.cv-section h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Perfil Profesional */
.professional_profile p {
    margin: 5px 0;
    line-height: 1;
}

/* Habilidades */
.skills {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
    line-height: 1;
}

.skills li {
    margin-bottom: 5px;
}

/* Experiencia */
.job-header h3 {
    color: #555;
    font-size: 1em;
    margin: 0;
    font-weight: bold;
}

.job-header h4 {
    margin: 0px 0;
    font-size: 1em;
    color: #888;
}

.job p {
    margin: 0px 0;
}

/* Educación */
.education-header h3 {
    color: #555;
    font-size: 1em;
    margin: 0;
    font-weight: bold;
}

.education-header h4 {
    margin: 0px 0;
    font-size: 1em;
    color: #888;
}

.education p {
    margin: 5px 0;
}

/* Proyectos */
.project h3 {
    color: #555;
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: bold;
}

.project p {
    margin: 0px 0;
}

.project p strong {
    color: #555;
    font-weight: bold;
    margin: 0px 0;
}

.small-text {
    font-size: 0.9em;
    color: #555;
    line-height: 1;
}

/* Certificaciones */
.certifications-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
    line-height: 1;
}

.certifications-list li {
    margin-bottom: 5px;
}

/* Idiomas */
.cv-section p strong {
    color: grey;
    font-weight: bold;
}

@media print {
    body {
        background-color: white;
    }
    .cv-container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }

    @page:first {
        margin-top: 10mm; /* Mantiene el margen estándar en la primera página */
    }

    @page {
        margin-top: 30mm; /* Aumenta el margen superior en la segunda página en adelante */
    }
}