/* Estilos generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    color: #343a40;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    flex-direction: column;
}

.sidebar {
    background: linear-gradient(to bottom, #2d4059, #4a69bd);
    color: white;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    flex: 1;
}

.sidebar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.sidebar h2 {
    margin-bottom: 15px;
}

.sidebar h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.sidebar p, .sidebar ul {
    text-align: left;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.skills ul {
    list-style-type: none;
    padding-left: 0;
}

.skills li {
    margin-bottom: 10px;
}

.skills li i {
    margin-right: 8px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-button {
    background-color: #4a69bd;
    color: white;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background-color: #2d4059;
    transform: scale(1.1);
}

.contact-button i {
    display: inline-block;
}

/* Estilos para el contenido principal */

.main-content {
    padding: 40px;
    width: 100%;
    flex: 2;
}

.main-content h3 {
    margin-bottom: 20px;
    color: #4a69bd;
    font-size: 1.4em;
    border-bottom: 2px solid #4a69bd;
    padding-bottom: 5px;
}

.main-content section {
    margin-bottom: 30px;
}

.main-content .job {
    margin-bottom: 20px;
}

.main-content .job h4 {
    color: #2d4059;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.main-content p {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Estilos para Portafolio y Proyectos */

.project {
    margin-bottom: 20px;
}

.project h4 {
    color: #2d4059;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.portfolio-button {
    background-color: #4a69bd;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-button:hover {
    background-color: #2d4059;
    transform: scale(1.05);
}

/* Media Queries para la capacidad de respuesta */

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .sidebar {
        width: 35%;
    }

    .main-content {
        width: 65%;
    }
}