/* --- RESET Y TIPOGRAFÍA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- CLASES COMUNES --- */
.section-padded {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.bg-light { background-color: #f9f9f9; }
.bg-dark { background-color: #333; color: white; }

/* --- BOTONES INTERACTIVOS --- */
.btn-primary, .btn-secondary, .btn-contact {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 700;
}
.btn-primary {
    background-color: #007bff; /* Azul primario */
    color: white;
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Efecto interactivo al pasar el mouse */
}
.btn-secondary {
    background-color: #6c757d; /* Gris secundario */
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* --- HEADER / NAVEGACIÓN --- */
/* --- HEADER / NAVEGACIÓN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}
/* Estilo AÑADIDO para el logo como imagen */
.header-logo {
    height: 100px; /* Ajusta este valor si necesitas que el logo sea más grande o pequeño */
    width: auto;
    display: block;
}

header a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    transition: color 0.3s;
}
header a:hover {
    color: #007bff;
}

/* --- SECCIÓN HERO (INTRO) --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #e9ecef;
}
.hero h1 {
    font-size: 3em;
    color: #007bff;
}

/* --- SECCIÓN DE EXPERIENCIA (TIMELINE) y EDUCACIÓN --- */
.timeline {
    text-align: left;
    margin-top: 40px;
    border-left: 2px solid #ccc;
    padding-left: 20px;
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
}
/* Círculo decorativo del timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    border: 3px solid white;
}
.timeline-item h3 { color: #333; }
.timeline-item .company { font-style: italic; color: #666; }
.timeline-item .dates { font-size: 0.9em; color: #999; margin-bottom: 10px; }

/* --- SECCIÓN DE HABILIDADES (BARRAS INTERACTIVAS) --- */
.aptitudes-list {
    text-align: center;
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.aptitudes-list li {
    background: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}
.skill-bar {
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}
.skill-level {
    height: 25px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 25px;
    animation: fill-bar 1.5s ease-out forwards; /* Animación de llenado */
}
/* La animación hace que la barra se "llene" al cargar la página */
@keyframes fill-bar {
    0% { width: 0; }
    100% { /* El ancho final se define en el HTML inline style */ }
}

/* --- SECCIÓN DE LOGROS --- */
.achievements-list ul {
    text-align: left;
    margin: 40px auto;
    max-width: 800px;
    list-style: none;
}
.achievements-list ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

/* --- SECCIÓN DE CONTACTO Y FOOTER --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8em;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    header a {
        margin: 5px 10px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .section-padded {
        padding: 50px 5%;
    }
}