:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.3);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: 0 auto;
    padding: 0; 
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: center;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.experience-item, .education-item {
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}

.experience-item::before, .education-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.job-title, .degree-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1em;
}

.company, .institution {
    color: var(--secondary-color);
    font-weight: 500;
}

.period {
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-color);
    display: inline-block;
    margin-top: 5px;
}

.skill-badge {
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.contact-item i {
    width: 25px;
    margin-right: 15px;
    z-index: 2;
}

.contact-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 40px; /* Ajusta según el ancho de tu ícono */
}

.cert-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}


.cert-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .header-section {
        padding: 40px 0;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo {
        width: 100%;
        height: 100%;
    }
}

.btn-download {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}