:root {
    --white: #ffffff;
    --offwhite: #f8efe1;
    --text1: #1d1e1f;
    --text2: #878688;
    --grey1: #f1f1f1;
    --grey2: #c3bbaf;
    --orange: #f4a524;

    --buttonpadding: 8px;
}

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

header {
    font-family: 'Times New Roman', Times, serif;
    display: grid;
    grid-template-columns: 2fr 7fr;
    height: 100px;
    padding: 20px;
    align-items: center
}

header>img {
    height: 50px;
}

header>ul {
    display: flex;
    justify-content: space-around
}

header li {
    list-style: none;
    display: inline;
    font-size: 1.3em;
}

header li>p {
    display: inline;
}

header a {
    text-decoration: none;
    color: var(--text1);
}

.orangetext {
    color: var(--orange);
}


/*-- Main --*/
main {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2em;
}

main>section {
    padding: 60px;
    margin-bottom: 40px;
    text-align: center;
}

/*Carrousel*/

main>section:nth-child(odd) {
    background-color: var(--grey1);
}

main>section:first-child {
    background-color: var(--offwhite);
    display: grid;
    grid-template-columns: auto 2fr 2fr auto;
    grid-template-areas: "back text image next"
        "buttons buttons buttons buttons";
    padding: 40px;
    color: var(--text1);
    align-items: center;
    justify-items: center;
    gap: 40px;
}

main>section:first-child img {
    grid-area: image;
    width: 100%;
    display: block;
}

#carrouselback {
    grid-area: back;
}

#carrouselnext {
    grid-area: next;
}

#carrouselback,
#carrouselnext {
    color: var(--text2);
    font-size: 2em;
    align-content: center;
    background-color: var(--white);
    height: 50px;
    width: 50px;
    border-radius: 100%;
}

#carrouseltxt {
    grid-area: text;
    color: (var(--text1));
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#carrouseltxt>h3 {
    font-size: 1.em;
    margin-bottom: 30px;
}

#carrouseltxt>ul {
    line-height: 1.8em;
    font-size: 1.1em;
}

#carrouselbtns {
    grid-area: buttons;
    display: flex;
    justify-content: center;
}

#carrouselbtns>div {
    background-color: var(--grey2);
    width: 50px;
    height: 6px;
    display: inline-block;
    margin: 5px;
}

#carrouselbtns>div:nth-child(3) {
    background-color: #f4a524;
}

/*Seccion 2*/
main>section:nth-child(2) {
    text-align: center;
    color: var(--text2);
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 20px;
    justify-items: center;
}

main>section:nth-child(2)>div {
    display: inline-flex;
    justify-content: center;
}

main>section:nth-child(2)>div * {
    margin-inline: 20px;
}

main>section:nth-child(2)>div>i {
    font-size: 1.5em;
    color: var(--orange);
}

main>section:nth-child(2)>div>p {
    margin-right: 50px;
}

/*Seccion 3*/

main>section:nth-child(3) {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
}

main>section:nth-child(3) div {
    width: 100%;
}


main>section:nth-child(3) article {
    background-color: var(--white);
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 30%;
    height: auto;
    max-height: 450px;
}

main>section:nth-child(3) article:hover {
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.76);
    -webkit-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.355);
}

main>section:nth-child(3) article>div {
    margin: 20px;
    display: grid;
    grid-template-rows: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

main>section:nth-child(3) article>img {
    display: block;
    object-fit: cover;
    max-height: 200px;
    width: 100%;
}

main>section:nth-child(3) article h3 {
    font-size: 1em;
}

main>section:nth-child(3) article p {
    color: var(--text2);
    font-size: 0.9em;
    overflow: auto;
}

main>section:nth-child(3) article button {
    border: 0px;
    background-color: var(--white);
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1em;
    color: var(--text2);
    width: fit-content;
}

/*Seccion 4*/
main>section:nth-child(4){
    color: var(--text2);
    display: grid;
    grid-template-columns: 60% 40%;
    padding-left: 100px;
    padding-right: 100px;
    line-height: 1.5em;
}

main>section:nth-child(4) div{
    text-align: left;
}

main>section:nth-child(4) img{
    width: 100%;
    padding: 40px;
    opacity: 80%;
}



/*Footer*/
footer {
    background-color: var(--offwhite);
    color: var(--text2);
}

footer>img{
    opacity: 30%;
}


/* Cosas comunes */
/*Todos los titulos de seccion*/
main>section h2 {
    font-weight: 300;
    font-size: 1.6em;
    color: var(--text1);
    text-align: center;
    padding: 20px;
}

main>section h1 {
    font-weight: 300;
    font-size: 2em;
    color: var(--text1);
    text-align: center;
    padding: 20px;
}

.orangebtn {
    background-color: var(--orange);
    color: var(--white);
    border: 0px;
    font-size: 1em;
    padding: var(--buttonpadding);
    margin-top: 50px;
}

.orangebtn2 {
    background-color: var(--white);
    color: var(--orange);
    border: 1px solid var(--orange);
    width: fit-content;
    font-size: 1em;
    padding: var(--buttonpadding);
    height: fit-content;
}