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

/******HEADER*******/
header {
    width: 100%;
    height: auto;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
}

#logo {
    display: flex;
    align-items: center;
}

#imglogo {
    height: 60px;
    width: auto;
}

nav {
    background-color: rgb(217, 217, 217);
    border-radius: 30px;
    width: 30%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 10px;
}

a {
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    text-decoration: none;
    justify-content: center;
    font-weight: bold;
    align-items: center;
}

a:hover {
    color: rgb(255, 255, 255);
    text-decoration: overline;
}

/******CABECERA*******/
#introduccion,
#historia {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

#textointro, #textohist {
    border: 2px solid black;
    border-radius: 30px;
    width: 40%;
    min-width: 300px;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

#textohist a:hover{
    color: brown;
    text-decoration: none;

}

#textointro h2,
#textohist h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#fotointro,
#fotohist {
    width: 40%;
    min-width: 300px;
    max-height: 100%;
    margin: 10px;
    border-radius: 30px;
    box-shadow: 5px 5px 5px gray;
    overflow: hidden;
}

#fotointro img,
#fotohist img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 5px 5px 5px gray;
}

/******PARTES*******/
#partes {
    width: 100vw;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px;
    gap: 20px;
}

#textopart {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

#textopart h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#fotopart {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.subpart {
    border: 2px solid black;
    border-radius: 20px;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    background-color: white;
}

.subpart img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.subpart h3 {
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
    text-align: center;
}

.subpart:hover {
    transform: scale(1.1);
}

footer {
    background-color: rgb(232, 207, 255);
    width: 100%;
    height: auto;
    padding: 10px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

/******MEDIA QUERIES*******/
@media (max-width: 850px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }

    nav a {
        width: auto;
        margin: 0 10px;
    }

    #introduccion,
    #historia {
        flex-direction: column;
        align-items: center;
    }

    #textointro,
    #textohist,
    #fotointro,
    #fotohist {
        width: 90%;
    }

    #textopart {
        width: 100%;
        padding: 10px;
    }

    .subpart {
        width: 45%;
        height: auto;
    }

    #fotopart {
        gap: 15px;
    }
}
