:root{
    --crema: #ded8bf;
    --azul: #1b1b27;
    --verde: #43822a;
    --rojo: #8f4322;
}

html{
    font-size: 62.5%;
    box-sizing: border-box;
    background-color: var(--crema);
    margin: 0rem 12rem;

    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--azul);
}

*, *:before, *:after{
    box-sizing: inherit;
}

h1, h2, h3, p{
    margin: 0;
    padding: 0;
}

nav, header{
    width: 74rem;
    justify-self: center;
}

/*Funciones*/

/*Header*/
.fondohead {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50rem;
    height: 50rem;
    z-index: 1;
}

.fondohead img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zanate1 {
    opacity: 1;
    z-index: 2;
}

.fondohead:hover .zanate1 {
    opacity: 0;
}

.zanate1:hover {
    opacity: 0;
}

.zanate2 {
    opacity: 1;
    z-index: 1;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30rem;
    height: 50rem;
}

header img{
    width: 100%;
    height: 100%;
}


.desaparecer:hover img{
    opacity: 0;
}

header h1{
    margin: 0;
    pointer-events: none;
    z-index: 3;
}

/*Navegación*/

nav {
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: repeat(4, 1fr);

    column-gap: 3rem;
    row-gap: 1rem;

    margin-top: 8rem;
    margin-bottom: 12rem;
}

nav div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav a{
    position: relative;
    align-items: center;

    text-decoration: none;
    color: var(--azul);
    font-weight: 700;
    font-size: 2rem;
    font-style: italic;
}

nav h2{
    position: relative;
    pointer-events: none;
    z-index: 2;
}

nav img{
    position: absolute;
    height: 10rem;
    width: 10rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 1;
}

nav img:hover{
    transform: translate(-50%, -50%) rotate(10deg);
}

/*Section 1*/
.div0, .div3 {
    display: flex;
    display: row;
    justify-content: space-between;
    color: var(--azul);
    font-weight: 700;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 0.5rem;

    width: 74rem;
    justify-self: center;
}

.div1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 4rem;
    width: 74rem;
    justify-self: center;
}

.div1 section{
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    align-items: center;
    padding-top: 2rem;

    border-style: solid;
    border-width: 0;
    border-color: var(--azul);

    text-decoration: none;
    color: #1b1b27;
    font-size: 1.5rem;

    width: 75.5rem;
    justify-self: center;
}

.div1 img{
    width: 70%;
}

.div1 p{
    font-size: 1.5rem;
    text-align: justify;
}

/*Secction 2*/
.section2 {
    position: relative;
}

.section2 img{
    position: absolute;
    height: 10rem;
    width: 10rem;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);

    z-index: 1;
}