/* Estilos generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.profile-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.profile-img {
    width: 1204px;
    height: 512px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
        
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item a {
    color: white;
}

/* Secciones */
section {
    background: white;
    margin: 30px 0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Experiencia y Educación */
.timeline-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #3498db;
}

.timeline-item h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.date {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

/* Habilidades */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-category h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.skill-list {
    list-style-type: none;
}

.skill-list li {
    margin-bottom: 8px;
    padding: 8px 15px;
    background: #ecf0f1;
    border-radius: 20px;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-container, .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    section {
        padding: 20px;
    }
    
    .profile-img {
        width: 400px;
        height: 150px;
    }
}