body {
    background-color: #e7d7f8;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
}

header {
    background-color: #a052c4;
    display: flex;
    justify-content: space-between;
    color: white;

    padding: 20px 2.5%;
    width: 100%;
    text-align: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;

    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 50px;

    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: white;
    color: #a052c4;
}


article {
    background-color: white;

    width: 95%;
    max-width: 1200px;

    margin: 60px auto;
    padding: 40px;

    border-radius: 40px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;

    gap: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
    text-wrap: pretty;
}

article img {
    width: 360px;
    height: 420px;
    object-fit: cover;
    border-radius: 30px;
    flex-shrink: 0;
}

.contenido-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.contenido-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #a052c4;
}

.contenido-texto p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000000;
}

.titulo-historial {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #a052c4;
    padding-bottom: 5px;
    align-self: flex-start;
    width: 100%;
}


.tarjeta-academica {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: 95%;


    display: flex;
    flex-direction: column;
    gap: 30px;
}

.titulo-historial {
    display: block;
    width: 100%;
    font-size: 2rem;
    color: #222;
    border-bottom: 3px solid #a052c4;
    padding-bottom: 10px;
    margin-bottom: 40px;
    text-align: left;
}


.columnas-años {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}


.tarjeta-año {
    background-color: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

    flex: 1;
    min-width: 220px;
    max-width: 250px;

    box-sizing: border-box;
}

.tarjeta-año h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0;
}

.tarjeta-año ul {
    font-size: 0.85rem;
    padding-left: 20px;
    margin: 0;
}

.seccion-equipo {
    width: 95%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: left;
}

.titulo-equipo {
    display: block;
    width: 100%;
    font-size: 2rem;
    color: #222;
    border-bottom: 3px solid #a052c4;
    padding-bottom: 10px;
    margin-bottom: 40px;
    text-align: left;
}

.contenedor-integrantes {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.tarjeta-integrante {
    background-color: white;
    flex: 1;
    max-width: 400px;
    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.tarjeta-integrante img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 20px;
}

.tarjeta-integrante h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;

}

.seccion-prototipo {
    width: 95%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: left;
}

.titulo-prototipo-webapp {
    font-size: 2rem;
    color: #222;
    border-bottom: 3px solid #a052c4;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.seccion-prototipo img {
    width: 80%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.seccion-datos {
    width: 95%;
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}


.titulo-datos-academicos {
    display: block;
    width: 100%;
    font-size: 2rem;
    color: #222;
    border-bottom: 3px solid #a052c4;
    padding-bottom: 10px;
    margin-bottom: 40px;
    text-align: left;
}

.seccion-datos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 95%;
    max-width: 1200px;
    margin: 60px auto;
}


.seccion-datos article {
    background-color: white;

    width: 320px;
    height: 430px;

    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    box-sizing: border-box;
    overflow: hidden;
}

.seccion-datos img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
}

.seccion-datos h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    min-height: 3em;
}

.seccion-datos ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #555;

    flex-grow: 1;
}

.seccion-datos li {
    margin-bottom: 8px;
}

footer {
    background-color: #a052c4;

    color: white;

    padding: 40px 20px;
    text-align: center;
    width: 100%;

    box-sizing: border-box;
    margin-top: 50px;
}

@media (max-width: 800px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
    }

    header img {
        width: 40px;
        height: auto;
        object-fit: contain;
    }


    article {
        flex-direction: column;
        padding: 20px;
    }

    article img {
        width: 100%;
        height: auto;
    }

    .columnas-años {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-año {
        width: 100%;
        max-width: 100%;
    }

    .contenedor-integrantes {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-integrante {
        width: 100%;
        max-width: 100%;
    }

    .seccion-datos article {
        width: 100%;
        max-width: 350px;
    }

    .contenido-texto h1 {
        font-size: 2rem;
    }

    .contenido-texto p {
        font-size: 1rem;
    }

    .seccion-prototipo img {
    width: 100%;
    max-width: 500px;
    height: auto;
}
}