@font-face {
    font-family: "Switzer";
    src: url("fonts/switzer-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Switzer";
    src: url("fonts/switzer-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #F5F5F3;
    --text: rgba(26, 26, 26, .8);
    /* .62 en vez de .5: pasa WCAG AA (4.7:1) sobre --bg en textos de 12–14px */
    --muted: rgba(26, 26, 26, .62);
    --line: rgba(26, 26, 26, .1);
    color-scheme: light;
}

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

::selection {
    background: rgba(26, 26, 26, .12);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Switzer", system-ui, sans-serif;
    font-weight: 500;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 7fr 3fr;
    column-gap: 32px;
}

h1, h2 {
    color: var(--muted);
    font-size: 1em;
    font-weight: 500;
    margin-top: 56px;
    margin-bottom: 24px;
}

.main-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
}

ul {
    list-style: none;
}

p {
    margin-bottom: 4px;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: filter .5s;
}
a:hover {
    filter: blur(2px);
}
a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.section { margin-bottom: 20px; }
.list-long { margin-bottom: 48px; }
.list-short { margin-bottom: 12px; }

.empresa {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 12px;
}
.sub-fecha {
    color: var(--muted);
    font-size: 12px;
    margin-left: 4px;
}
.description-work {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.contact-section p:last-child {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 4px;
}

footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    color: var(--muted);
    font-size: 12px;
}
footer a { color: var(--muted); }

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    .main-title { margin-top: 32px; }
    .sidebar { margin-top: 20px; }
}

/* --- Entrada suave: solo si hay JS y el usuario no pide movimiento reducido --- */
@media (prefers-reduced-motion: no-preference) {
    .js .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .js.loaded .fade-in-up {
        opacity: 1;
        transform: none;
    }
    .delay-1 { transition-delay: .1s; }
    .delay-2 { transition-delay: .3s; }
    .delay-3 { transition-delay: .5s; }
    .delay-4 { transition-delay: .7s; }
    .delay-5 { transition-delay: .9s; }
}
