{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f6f6f6;
}

/* Navbar fijo arriba */
nav {
    background-color: #3b5998;
    padding: 0.8em 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Estilo lista navegación */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1.5em;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2d5be3;
    text-decoration: underline;
}

/* Para que el contenido no quede tapado por el nav fijo */
body > *:not(nav) {
    margin-top: 60px;
}

/* Título principal */
h1 {
    background-color: #3b5998;
    color: white;
    margin: 0;
    padding: 1.2em 0;
    text-align: center;
    font-size: 2em;
    letter-spacing: 2px;
}

/* Imagen de perfil */
img.profile-img {
    display: block;
    margin: 1em auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #3b5998;
}

/* Texto general */
p {
    max-width: 800px;
    margin: 1em auto;
    padding: 0 1em;
    font-size: 1.1em;
}

/* Encabezados secundarios */
h2 {
    color: #3b5998;
    margin-top: 2em;
    margin-bottom: 0.5em;
    text-align: center;
    font-size: 1.4em;
}

/* Subtítulos experiencia laboral */
h3 {
    color: #444;
    margin: 1em auto 0.3em auto;
    text-align: center;
    font-size: 1.2em;
}

/* Listas */
ul,
ol {
    max-width: 800px;
    margin: 0.5em auto 1.5em auto;
    padding-left: 2.5em;
    font-size: 1.1em;
}

ul li,
ol li {
    margin-bottom: 0.6em;
}

/* Enlaces normales */
a {
    color: #2d5be3;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Secciones con estilo de tarjeta */
.section {
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.portfolio-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.portfolio-gallery img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
/* Footer */
footer {
    background-color: #3b5998;
    color: white;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    font-size: 0.9em;
    letter-spacing: 1px;
    margin-top: 2em;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5em 0;
    }

    img.profile-img {
        width: 100px;
        height: 100px;
    }

    .section {
        margin: 1rem;
        padding: 1rem;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.1em;
    }
}