:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-dark: #333;
    --text-light: #ecf0f1;
    --bg-gray: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.print-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}


.btn-print {
    background-color: #ffffff20; 
    color: white;
    padding: 12px 25px;
    border: 2px solid white; 
    border-radius: 50px; 
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 80%; 
}

.btn-print:hover {
    background-color: white;
    color: #2c3e50; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-print i {
    font-size: 18px;
}


@media print {
   
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

   
    @page {
        size: auto;
        margin: 0mm;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: white !important;
    }

    
    .project-card, .exp-item, .edu-item, .skill-tag {
        page-break-inside: avoid;
        break-inside: avoid;
    }

   
    .print-container, .btn-print {
        display: none !important;
    }

   
    .container {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
    }
}


body {
    background-color: var(--bg-gray);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    background: white;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}


.sidebar {
    width: 35%;
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 40px 30px;
}

.sidebar a {
    color: inherit; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--accent-color);
}


.sidebar-section h3, 
.languages h3, 
.skills h3,
.Portafolio h3 {
    margin-top: 30px; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-light);
    text-transform: capitalize;
}


.btn-portfolio-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.btn-portfolio-sidebar:hover {
    color: var(--accent-color);
}

.btn-portfolio-sidebar i {
    color: var(--accent-color);
    font-size: 16px;
}

.avatar {
    width: 250px; 
    height: 250px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: bold;
}

.contact-info h3, .skills h3 {
    margin-top: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: var(--accent-color);
}

.languages h3 {
    margin-top: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-light);
}

.skill-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    margin: 4px 2px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.main-content {
    width: 65%;
    padding: 40px;
}

section {
    margin-bottom: 35px;
}

h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

h2 i {
    margin-right: 10px;
}

hr {
    border: none;
    height: 2px;
    background-color: var(--accent-color);
    width: 50px;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    color: var(--text-dark);
}

.project-card {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    background: #f9f9f9;
}

.project-card h3 {
    font-size: 18px;
    color: var(--primary-color);
}

.project-date {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 8px;
}

.edu-item h3 {
    font-size: 17px;
    
}

.edu-item p {
    margin-bottom: 20px;  
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar, .main-content {
        width: 100%;
    }
}


.exp-item {
    margin-bottom: 50px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.exp-date {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.company {
    color: var(--accent-color);
    font-weight: 600;
    margin: 5px 0;
}

.exp-details {
    list-style-type: none; 
    padding-left: 10px;
}

.exp-details li {
    font-size: 0.95rem;
    margin-bottom: 4px;
    position: relative;
    padding-left: 20px;
}


.exp-details li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.exp-item {
    margin-bottom: 50px; 
    padding-left: 10px;
    border-left: 2px solid transparent; 
    transition: border-left 0.3s ease;
}


.exp-item:hover {
    border-left: 2px solid var(--accent-color);
}


.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.exp-header h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.exp-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
    background: #f0f2f5;
    padding: 3px 12px;
    border-radius: 15px;
}


.company {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 8px 0;
}


.exp-details {
    list-style: none;
    padding-left: 5px;
    margin-top: 10px;
}

.exp-details li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}


.exp-details li::before {
    content: "✓"; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 0.8rem;
}