/* --- Estilos generales --- */
body {
    font-family: sans-serif;
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* --- Encabezado estilo CV --- */
.header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.perfil {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #ddd;
    object-fit: cover;
}

.info h1 {
    margin: 0;
    font-size: 2.4rem;
}

.subtitle {
    margin-top: 5px;
    font-size: 1.2rem;
    color: #9e9e9e;
    font-weight: normal;
}

/* --- Navegación --- */
nav {
    margin-bottom: 40px;
}

nav a {
    margin-right: 20px;
    text-decoration: underline;
    color: #0070c9;
    font-weight: bold;
}

/* --- Títulos --- */
h1 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

/* --- RESPONSIVE DESIGN (móviles) --- */
@media (max-width: 600px) {

    body {
        margin: 40px auto;
        padding: 0 15px;
    }

    /* Encabezado en columna */
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Foto más pequeña */
    .perfil {
        width: 110px;
        height: 110px;
    }

    /* Título más cómodo */
    .info h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    /* Menú centrado y con más espacio táctil */
    nav {
        text-align: center;
    }

    nav a {
        display: inline-block;
        margin: 10px;
        font-size: 1.1rem;
    }
}