:root {
    --color-secondary: #505f76;
    --color-surface-container: #eeeeee;
    --color-outline-variant: #c6c6c6;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-black: #000000;
    --color-white: #ffffff;
    --max-w-4xl: 56rem;
    --max-w-2xl: 42rem;
    --max-w-xl: 36rem;
}

html {
    scroll-behavior: smooth;
}

html.light,
html {
    color-scheme: light;
}

html.dark {
    color-scheme: dark;
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.025em;
}

html.dark body {
    background-color: var(--color-black);
    color: var(--color-white);
}

::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

html.dark ::selection {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Contenedor centrado (max-w-4xl mx-auto px-8) */
.container {
    width: 100%;
    max-width: var(--max-w-4xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Navegación */
.site-nav {
    width: 100%;
    border: none;
    background-color: var(--color-white);
    padding-top: 3rem;
    padding-bottom: 6rem;
}

html.dark .site-nav {
    background-color: var(--color-black);
}

.site-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.025em;
}

.site-nav__brand {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--color-black);
}

html.dark .site-nav__brand {
    color: var(--color-white);
}

.site-nav__links {
    display: flex;
    gap: 2rem;
}

.site-nav__link {
    color: var(--color-slate-500);
    text-decoration: none;
    opacity: 1;
    transition: opacity 0s, color 0.15s ease;
}

html.dark .site-nav__link {
    color: var(--color-slate-400);
}

.site-nav__link:hover {
    color: var(--color-black);
}

html.dark .site-nav__link:hover {
    color: var(--color-white);
}

.site-nav__link:active {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .site-nav__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .site-nav__links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

/* Main */
.site-main {
    max-width: var(--max-w-4xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Bloques de sección (mb-32) */
.section {
    margin-bottom: 8rem;
}

/* Hero */
.hero {
    margin-bottom: 8rem;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin: 0 0 1rem;
}

.hero__title {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0 0 2rem;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 6rem;
    }
}

.hero__lead {
    font-size: 1.25rem;
    line-height: 1.625;
    color: var(--color-secondary);
    max-width: var(--max-w-2xl);
    margin: 0;
}

@media (min-width: 768px) {
    .hero__lead {
        font-size: 1.5rem;
        line-height: 1.625;
    }
}

/* Títulos de sección (h2 estilo 01 / Sobre mí) */
.section__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin: 0 0 3rem;
}

.section__text {
    font-size: 1.5rem;
    line-height: 1.375;
    max-width: var(--max-w-2xl);
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.section__meta {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--color-secondary);
    margin: 0;
}

.section__meta strong {
    color: inherit;
    font-weight: 600;
}

/* Listas de experiencia / educación */
.stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stack__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stack__row {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .stack__row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.stack__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.stack__date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stack__body {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--color-secondary);
    max-width: var(--max-w-2xl);
    margin: 0;
}

.stack__note {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    color: inherit;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: var(--color-surface-container);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black);
}

html.dark .tag {
    background-color: #2a2a2a;
    color: var(--color-white);
}

/* Habilidades */
.skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills__group {
    margin: 0;
}

.skills__group-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin: 0 0 0.5rem;
}

.skills__group-text {
    font-size: 1.25rem;
    line-height: 1.625;
    margin: 0;
}

/* Proyectos */
.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.project__desc {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--color-secondary);
    max-width: var(--max-w-xl);
    margin: 0;
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project__links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.link-out {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: inherit;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.link-out:hover {
    opacity: 0.6;
}

/* Contacto */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    align-items: center;
}

.contact-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 8px;
    transition: opacity 0.15s ease;
}

.contact-links a:hover {
    opacity: 0.6;
}

.contact-sep {
    color: var(--color-outline-variant);
}

.contact-ref {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    width: 100%;
    border: none;
    background-color: var(--color-white);
    margin-top: 8rem;
    padding-bottom: 4rem;
}

html.dark .site-footer {
    background-color: var(--color-black);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: "Inter", system-ui, sans-serif;
}

@media (min-width: 768px) {
    .site-footer__inner {
        flex-direction: row;
        align-items: center;
    }
}

.site-footer__copy {
    color: var(--color-slate-500);
    margin: 0;
}

html.dark .site-footer__copy {
    color: var(--color-slate-400);
}

.site-footer__links {
    display: flex;
    gap: 2rem;
}

.site-footer__link {
    color: var(--color-slate-500);
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

html.dark .site-footer__link {
    color: var(--color-slate-400);
}

.site-footer__link:hover {
    color: var(--color-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

html.dark .site-footer__link:hover {
    color: var(--color-white);
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
