* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 20px;
}

.action-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-btn, .contact-btn {
    background: white;
    border: 2px solid #2c3e50;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover, .contact-btn:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.contact-btn {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.contact-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 300px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 30px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f2f2f2;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.2);
    overflow: hidden;
    padding: 15px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.name {
    text-align: center;
    margin-bottom: 10px;
}

.name h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.name p {
    font-size: 13px;
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section {
    margin-top: 30px;
}

.section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.education-item {
    margin-bottom: 15px;
}

.education-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #3498db;
}

.education-item p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 3px;
}

.education-item .degree {
    font-weight: 600;
}

.education-item .date {
    color: #a8b2d1;
    font-style: italic;
}

.leadership-badge {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 11px;
    margin-bottom: 8px;
    display: inline-block;
    color: #3498db;
}

.skill-item {
    margin-bottom: 12px;
}

.skill-name {
    font-size: 13px;
    margin-bottom: 5px;
}

.skill-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 3px;
}

.cert-item {
    font-size: 12px;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.cert-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.main-content {
    padding: 40px;
}

.header {
    margin-bottom: 25px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
}

.header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.header .subtitle {
    font-size: 18px;
    color: #34495e;
    font-weight: 600;
    margin-bottom: 15px;
}

.header p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.leadership-highlights {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #2c3e50;
}

.leadership-highlights h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.leadership-highlights h3:before {
    content: "👥";
    margin-right: 8px;
    font-size: 20px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.highlight-item {
    font-size: 13px;
    color: #333;
    padding: 8px;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.highlight-item:before {
    content: "▸";
    color: #2c3e50;
    font-weight: bold;
    margin-right: 8px;
}

.experience {
    margin-bottom: 30px;
}

.exp-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
    border-left: 4px solid #2c3e50;
    padding-left: 15px;
    margin-bottom: 20px;
}

.job {
    margin-bottom: 25px;
    border-left: 2px solid #e0e0e0;
    padding-left: 20px;
    position: relative;
}

.job:before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2c3e50;
}

.job-header {
    margin-bottom: 10px;
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.company {
    font-size: 15px;
    color: #34495e;
    font-weight: 600;
    margin-top: 2px;
}

.job-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.job-description {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}

.job-description ul {
    margin-top: 8px;
    padding-left: 20px;
}

.job-description li {
    margin-bottom: 6px;
}

.management-tag {
    display: inline-block;
    background: #34495e;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.tech-stack {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

/* Modal de Contacto */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #2c3e50;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Control de idiomas */
[data-lang="en"] .lang-es,
[data-lang="es"] .lang-en {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .action-buttons {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn, .contact-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .sidebar {
        padding: 30px 20px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .name h1 {
        font-size: 20px;
    }
    
    .section {
        margin-top: 25px;
    }
    
    .section h3 {
        font-size: 13px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .header h2 {
        font-size: 24px;
    }
    
    .header .subtitle {
        font-size: 16px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .exp-title {
        font-size: 16px;
    }
    
    .job-title {
        font-size: 14px;
    }
    
    .company {
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
    
    .action-buttons,
    .modal {
        display: none !important;
    }
}