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

/* Base */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background: #fbfdff;
}

.contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: text-decoration-color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.nav-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #111;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: inherit;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-btn:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Layout */
.base {
    width: 92%;
    margin-top: 12px;
    margin-bottom: 24px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Selection */
::selection {
    background: #111;
    color: #fff;
}

/* Headings */
h2 {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 1.3em;
    letter-spacing: -0.02em;
}

h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

h4 {
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Profile image */
.img-perfil {
    margin-top: 20px;
    width: 160px;
    height: 160px;
    border-radius: 100%;
    border: 1px solid black;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.img-perfil:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Grid layout */
.imagen-y-acerca-de-mi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Job entries */
.job-entry {
    padding: 12px;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.job-entry:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.job-entry + .job-entry {
    border-top: 1px solid #eee;
    margin-top: 24px;
    padding-top: 24px;
}

/* Lists inside .base */
.base ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 20px;
}

.base li {
    margin-bottom: 4px;
}

/* Inline icons */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.nav-btn .icon {
    width: 0.9em;
    height: 0.9em;
    margin-right: 4px;
}

/* Links page (linktree) */
.links-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.links-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.links-card .img-perfil {
    margin-top: 0;
    width: 110px;
    height: 110px;
}

.links-name {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.links-subtitle {
    font-size: 0.85em;
    color: #555;
    text-align: center;
    margin-top: -4px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.link-btn:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.link-btn .icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0;
}

.links-footer {
    margin-top: 8px;
    font-size: 0.75em;
    color: #aaa;
}

/* Contact paragraphs */
.contact-line {
    margin-bottom: 4px;
    word-break: break-word;
}

/* Tablets */
@media (min-width: 768px) {
    body { font-size: 18px; }

    .imagen-y-acerca-de-mi {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .base {
        width: 70%;
        margin-top: 20px;
        margin-bottom: 40px;
        padding: 28px;
    }

    h2 { font-size: 1.5em; }

    .nav-btn { font-size: 16px; }

    .img-perfil {
        margin-top: 20px;
        width: 220px;
        height: 220px;
    }

    .job-entry { padding: 20px; }
}

/* Desktop */
@media (min-width: 1200px) {
    body { font-size: 20px; }

    .imagen-y-acerca-de-mi {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .base {
        width: 50%;
        margin-top: 20px;
        margin-bottom: 40px;
        padding: 36px;
    }

    .nav-btn { font-size: 18px; }

    .img-perfil {
        margin-top: 20px;
        width: 280px;
        height: 280px;
    }
}

/* Print */
@media print {
    nav { display: none; }
    .base { width: 100%; }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
    .nav-btn::after { content: none; }
}
