/* Reset y configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezado */
header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Secciones generales */
section {
    background: white;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Información Personal */
.personal-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.personal-info li {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.personal-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.personal-info a:hover {
    text-decoration: underline;
}

/* Educación */
.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
}

.education-item h3 {
    color: #764ba2;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.institution {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.period {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.description {
    color: #777;
    line-height: 1.5;
}

/* Experiencia Laboral */
.experience-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.experience-item h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.experience-item ul {
    margin-top: 10px;
    margin-left: 20px;
}

.experience-item li {
    margin-bottom: 5px;
    color: #666;
}

/* Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
}

.skill-category h3 {
    color: #764ba2;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category strong {
    color: #667eea;
}

/* Idiomas */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.language-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: transform 0.2s ease;
}

.language-item:hover {
    transform: translateY(-2px);
    border-color: #667eea;
}

.language-item h3 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.level {
    color: #666;
    font-weight: 600;
}

/* Intereses */
.interests ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.interests li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #764ba2;
    color: #555;
    transition: transform 0.2s ease;
}

.interests li:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

/* Certificaciones */
.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
    color: #555;
}

.certifications strong {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 30px 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 20px;
    }
    
    .personal-info ul {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .interests ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones suaves */
section {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estilos para impresión */
@media print {
    body {
        background: white;
        max-width: none;
        padding: 0;
    }
    
    header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .skills-grid,
    .languages-grid,
    .interests ul {
        grid-template-columns: 1fr;
    }
}