:root {
    --bg: #f9fafb;
    --surface: #fff;
    --primary: #1e3a8a;
    --primary-soft: #3b82f6;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 20px 60px rgb(0 0 0 / 8%);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Montserrat, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-soft);
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.6px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text);
}

.nav-links a.active,
.nav-links a:hover {
    background: #eef2ff;
    color: var(--primary);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.profile-card {
    position: sticky;
    top: 100px;
    text-align: center;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid #e0e7ff;
}

.profile-name {
    margin: 8px 0 4px;
    font-size: 24px;
    font-weight: 700;
}

.profile-lastnames {
    white-space: nowrap;
}

.profile-role {
    color: var(--muted);
    margin-bottom: 12px;
}

.profile-company {
    display: block;
    color: var(--primary);
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 24px rgb(30 58 138 / 12%);
}

.section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #cbd5e1 0%, rgb(203 213 225 / 0%) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(30 58 138 / 8%);
}

.timeline-card {
    margin-left: 16px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #f3f4f6;
    padding: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
}

.badge.is-discontinued {
    background: #f3f4f6;
    color: var(--muted);
    border: 1px solid var(--border);
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.tag {
    background: #e5edff;
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 12px;
}

.role {
    margin-top: 12px;
}

.role-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.role-header h4 {
    margin: 0;
    font-size: 17px;
}

.muted {
    color: var(--muted);
    font-weight: 600;
}

ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.course-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.footer {
    margin: 40px 0 0;
    padding: 24px 20px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* stylelint-disable-next-line no-descending-specificity */
.footer a {
    color: var(--primary);
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project-thumb {
    position: relative;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.platform {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0ea5e9;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.project-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgb(30 58 138 / 18%);
}

.btn.ghost {
    background: #eef2ff;
    color: var(--primary);
    border-color: #e0e7ff;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgb(0 0 0 / 8%);
}

.meta {
    font-size: 14px;
    color: var(--muted);
}

.project-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgb(15 23 42 / 60%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20;
}

.modal.is-open {
    display: flex;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow);
}

.modal-media {
    background: #0b1224;
    position: relative;
    min-height: 320px;
}

.slider {
    position: relative;
    height: 100%;
}

.slides {
    height: 100%;
}

.slide {
    height: 100%;
    display: none;
}

.slide:first-child {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b1224;
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 16%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.slider button:hover {
    background: rgb(255 255 255 / 26%);
}

.slider .prev {
    left: 12px;
}

.slider .next {
    right: 12px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-body h3 {
    margin: 0 0 6px;
}

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 8px 0;
}

.list-inline span {
    background: #eef2ff;
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}

.detail-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgb(15 23 42 / 45%);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgb(0 0 0 / 12%);
    padding: 18px 20px;
    width: min(720px, calc(100% - 40px));
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    color: var(--text);
    font-size: 15px;
}

.cookie-text a {
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (width <= 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: relative;
        top: auto;
    }

    .modal-card {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }
}

@media (width <= 768px) {
    .shell {
        padding: 100px 16px 60px;
    }

    .topbar {
        height: 64px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item::before {
        left: -6px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
