* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1e2128;
    color: #cfd6e0;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
}

/* ── HEADER ── */

#main-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1.5px solid #3a6ea8;
    padding: 2.5rem 2rem 1.5rem;
    max-width: 860px;
    margin: 0 auto 2rem;
}

#profile-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #3a6ea8;
    overflow: hidden;
    flex-shrink: 0;
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transform-origin: 50% 80%;
}


#user-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7aaddc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.85rem;
    color: #6a8faa;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

#contact-info {
    font-size: 0.82rem;
    color: #8a9aaa;
}

#contact-info p {
    margin-bottom: 0.2rem;
}

.contact-link {
    color: #7aaddc;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.location-details {
    color: #6a8faa;
    font-style: italic;
}

/* ── MAIN ── */

#cv-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* ── SECCIONES ── */

.cv-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #7aaddc;
    border-bottom: 0.5px solid #3a6ea8;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

/* ── PERFIL ── */

.narrative-text {
    font-size: 0.92rem;
    color: #b0bcc8;
    line-height: 1.85;
}

/* ── EXPERIENCIA ── */

.experience-item {
    margin-bottom: 1.4rem;
}

.job-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #dce6f0;
    margin-bottom: 0.15rem;
}

.job-date {
    font-size: 0.82rem;
    color: #6a8faa;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.task-list {
    list-style: none;
    padding-left: 1rem;
}

.task-item {
    font-size: 0.88rem;
    color: #b0bcc8;
    line-height: 1.75;
    padding-left: 1.2rem;
    position: relative;
}

.task-item::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #3a6ea8;
}

/* ── FORMACIÓN ── */

.education-item {
    margin-bottom: 1rem;
}

.degree-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dce6f0;
    margin-bottom: 0.1rem;
}

.institution-info {
    font-size: 0.82rem;
    color: #6a8faa;
    font-style: italic;
}

/* ── HABILIDADES ── */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.skill-badge {
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    color: #7aaddc;
    border: 0.5px solid #3a6ea8;
    padding: 4px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    background: #252b35;
}

/* ── FOOTER ── */

footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 0.5px solid #2c3240;
    font-size: 0.75rem;
    color: #4a5a6a;
    max-width: 860px;
    margin: 0 auto;
}

/* ── RESPONSIVE ── */

@media (max-width: 600px) {
    #main-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.25rem 1.5rem;
    }

    #contact-info {
        text-align: center;
    }

    #cv-content {
        padding: 0 1.25rem 2rem;
    }

    #user-name {
        font-size: 1.4rem;
    }
}