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

:root {
    --primary: #7d4b5a;
    --accent: #c4788a;
    --light: #fdf6f7;
    --text: #3d2530;
    --muted: #9e7a82;
    --border: #e8d0d5;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: var(--primary);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.navbar ul a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.navbar ul a:hover { color: var(--white); }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-lang, .btn-download {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-lang { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-download { background: var(--accent); color: var(--white); }
.btn-lang:hover, .btn-download:hover { opacity: 0.85; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5f8a 100%);
    color: var(--white);
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.hero h2 { font-size: 1.3rem; font-weight: 400; opacity: 0.9; margin-bottom: 1rem; }
.hero-sub { font-size: 1rem; opacity: 0.75; margin-bottom: 1.5rem; }
.hero-foto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 1.25rem;
}
.hero-links { font-size: 0.95rem; opacity: 0.85; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.hero-links a { color: var(--white); }

/* SECTIONS */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--light); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.subsection-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}
.lead { font-size: 1.05rem; color: var(--text); max-width: 820px; }

/* SKILLS GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.skill-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent);
}
.skill-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.9rem; color: var(--muted); }

/* EXPERTISE LIST */
.expertise-list { display: flex; flex-direction: column; gap: 0.75rem; }
.expertise-item { display: flex; gap: 1rem; align-items: baseline; }
.level {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}
.expertise-item span:last-child { font-size: 0.92rem; color: var(--text); }

/* JOBS */
.job {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.job:last-child { border-bottom: none; }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.job-header h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.2rem; }
.company { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.period {
    font-size: 0.85rem;
    color: var(--white);
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
}
.job ul { padding-left: 1.25rem; }
.job ul li { margin-bottom: 0.4rem; font-size: 0.93rem; }

/* ACHIEVEMENTS */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.achievement {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.achievement-stat {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.achievement-label { font-size: 0.85rem; color: var(--muted); }

/* EDUCATION */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.edu-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}
.edu-item h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.3rem; }
.school { display: block; font-size: 0.9rem; color: var(--accent); margin-bottom: 0.2rem; }
.edu-item .period { background: none; color: var(--muted); padding: 0; font-size: 0.85rem; }

.cert-list { padding-left: 1.25rem; }
.cert-list li { margin-bottom: 0.4rem; font-size: 0.93rem; }

/* CONTACT */
.contact-container { text-align: center; }
.contact-items { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 1rem; }
.contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; text-decoration: none; color: var(--text); }
.contact-icon { font-size: 1.3rem; color: var(--accent); }

/* FOOTER */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .hero h1 { font-size: 2rem; }
    .navbar ul { gap: 0.75rem; }
    .nav-name { display: none; }
    .job-header { flex-direction: column; }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}
