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

:root {
    --bg: #0c0c12;
    --bg-raised: #13131b;
    --text: #e2ded8;
    --text-muted: #908d88;
    --accent: #c4956a;
    --accent-dim: rgba(196, 149, 106, 0.15);
    --rule: rgba(255, 255, 255, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

nav .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: var(--accent);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 960px;
    width: 100%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-photo {
    width: 280px;
    height: 340px;
    background: var(--bg-raised);
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo .placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.hero-text .tagline {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.hero-text .intro {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.8;
}

/* --- SECTIONS --- */
section {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section + section {
    border-top: 1px solid var(--rule);
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text);
}

/* --- FORMACIÓN --- */
.education-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-year {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    padding-top: 0.15rem;
}

.education-detail h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.education-detail .institution {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ACTIVIDAD --- */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.activity-card {
    background: var(--bg-raised);
    border: 1px solid var(--rule);
    padding: 2rem;
}

.activity-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.activity-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- DOCENCIA --- */
.teaching-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.teaching-tag {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.teaching-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.8;
}

/* --- CONTACTO --- */
.contact-section {
    text-align: center;
    padding: 6rem 2rem;
}

.contact-section .section-title {
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--accent);
    transition: background 0.3s, color 0.3s;
}

.contact-email:hover {
    background: var(--accent);
    color: var(--bg);
}

.contact-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--rule);
    max-width: 960px;
    margin: 0 auto;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 7rem 1.5rem 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-photo {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text .intro {
        margin: 0 auto;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    nav .nav-links {
        gap: 1.2rem;
    }

    nav .nav-links a {
        font-size: 0.75rem;
    }

    .contact-email {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
