body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.cv-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-image: url('images/fondo.jpg'); 
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat; 
    color: white; 
}

.perfil img {
    width: 130px;
    height: 160px;
    object-fit: cover; 
    border-radius: 5%; 
}

.header-info {
    flex: 1;
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

h2 {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: normal;
}

.container-columnas {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

.columnas {
    width: 42%;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #e4e4e4;
    margin: 5px 0;
    padding: 6px;
    border-radius: 5px;
}

.contacto p {
    margin: 5px 0;
    font-size: 16px;
}


/*Se usa media print para que al imprimir se conserven los detalles*/

@media print {
    .header-container {
        -webkit-print-color-adjust: exact; /* Chrome, Edge */
        print-color-adjust: exact; /* Estándar CSS */
        background-image: url('images/fondo.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    ul li {
        -webkit-print-color-adjust: exact; /* Chrome, Edge */
        print-color-adjust: exact; /* Estándar CSS */
        background: #e4e4e4 !important; /* Fuerza el color de fondo */
    }
}
