/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Estilos del encabezado fijo */
header {
    background-color: #598392;
    color: white;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Asegurar una altura fija */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Asegurar que el contenido no quede debajo del header */
body {
    padding-top: 100px; /* Ajuste dinámico para evitar que el header oculte el contenido */
}

nav ul {
    list-style: none;
    padding: 0;
}

    nav ul li {
        display: inline;
        margin: 0 15px;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

/* Secciones */
section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cv-download {
    display: inline-block;
    padding: 10px 20px;
    background: #2a3b4f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

    .cv-download:hover {
        background: #1f2d40;
    }
/* Proyectos */
.proyecto {
    margin-bottom: 20px;
    text-align: center;
}

    .proyecto img {
        max-width: 100%;
        border-radius: 10px;
    }

    .proyecto h3 {
        margin: 10px 0;
    }

    .proyecto a {
        display: inline-block;
        padding: 10px 15px;
        background: #2a3b4f;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        margin-top: 10px;
    }

        .proyecto a:hover {
            background: #1f2d40;
        }
/* Formulario */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

    form label {
        margin: 10px 0 5px;
        font-weight: bold;
    }

    form input, form textarea {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 15px;
        font-family: 'Roboto', sans-serif;
    }

    form button {
        padding: 10px 20px;
        background: #2a3b4f;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        form button:hover {
            background: #1f2d40;
        }

/* Pie de página */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}
/* Contacto */
#contacto a {
    color: #f2f2f2;
    text-decoration: none;
    font-weight: bold;
}

    #contacto a:hover {
        text-decoration: underline;
    }