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

body {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #222;
    background: #fff;
    padding: 0 1.5rem;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 0 6rem;
}

/* Header */
.profile {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.profile-tagline {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 480px;
}

/* Secciones */
section {
    margin-bottom: 2.5rem;
}

hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 2rem;
}

h2 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 1.25rem;
}

/* Experiencia */
.exp-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
}

.exp-period {
    font-size: 0.85rem;
    color: #888;
    padding-top: 0.55rem;
    padding-right: 1.25rem;
    white-space: nowrap;
    text-align: right;
}

.exp-content {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid #e0e0e0;
}

.exp-content::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0.65rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #aaa;
}

.exp-content p {
    color: #333;
    font-size: 0.95rem;
}

.exp-content strong {
    color: #111;
}

/* Escritura */
.writing-list {
    list-style: none;
}

.writing-list li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.writing-list li span {
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Links */
a {
    color: #111;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration-color: #111;
}

/* Footer */
footer {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.85rem;
    color: #888;
}

footer a {
    color: #888;
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    border: 1px solid #e0e0e0;
    transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover {
    color: #111;
    border-color: #aaa;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 520px) {
    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    .exp-period {
        font-size: 0.8rem;
    }
}
