* {

    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    font-family: futura-pt, sans-serif;
}

p {
    font-weight: 400;
    font-style: normal;
    line-height: 1.3rem;
    padding: 0.8rem;
    color: #8FADBF;
}

nav {
    display: flex;
    flex-direction: column;
    color: #8FADBF;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 2;
}

#barratop {
    background-color: white;
    height: 8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-style: solid;
    border-bottom-width: thin;
    border-bottom-color: #8FADBF;
}

#barratop > h2 {
    margin: auto;
    width: 100%;
    text-align: center;
    position: absolute;
    font-weight: 100;
}

#iconomenu {
    z-index: 1;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    animation-name: parpadeomenu;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes parpadeomenu {
    from {
        opacity: 1
    }

    to {
        opacity: 0.5
    }
}

#iconomenu i {
    font-size: 20pt;
    color: #8FADBF;
    cursor: pointer;
}

#iconomenu button {
    background-color: white;
    border-style: none;
    cursor: pointer;
}

#iconostop {
    display: flex;
    z-index: 1;
    max-height: 100%;
    justify-content: space-around;
    align-content: center;
    align-items: center;
}

#iconostop > a {
    height: 100%;
    height: 100%;
    width: 100%;
    display: flex;
    margin: 0.3rem;
    text-decoration: none;
    color: #8FADBF;
}

#iconostop > a > img {
    height: 1.5rem;
}

#iconostop > a > i {
    font-size: 1.5rem;
}

#menu {
    height: 0;
    overflow: hidden;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

#menu > ul {
    margin: auto;
    overflow: hidden;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    list-style: none;
    z-index: 2;
}

#menu > ul > li {
    padding: 1rem;
}

#menu > ul > li > a {
    text-decoration: none;
    color: #8FADBF;
    font-size: 24pt;
}

#menu > ul > li > a:hover {
    text-decoration: underline;
}

#particles-js {
    background: white;
    height: calc(100vh - 3rem);
}

header {
    height: calc(100vh - 3rem);
    background-image: url(../img/header-press.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    flex-direction: column;
}

header > p {
    color: white;
    text-align: right;
    padding: 1rem;
    width: 75%;
    margin: auto;
    margin-right: 0;
    margin-bottom: 0;
}

#flecha {
    text-align: center;
    height: 10vh;
    display: flex;
    align-items: center;
    text-decoration: none;
}

#flecha > i {
    margin: 0 auto;
    font-size: 20pt;
    color: white;
    animation-name: flecha;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes flecha {

    from {
        margin-bottom: 0;
    }

    to {
        margin-bottom: 0.5rem;
    }

}

main {
    display: flex;
    flex-direction: column;
}

.caja {
    display: flex;
    flex-direction: column;
    min-height: 35vh;
    max-height: 48vh;
    overflow: hidden;
    padding: 1rem;
    cursor: pointer;
    position: relative;
}

.caja > figure {
    height: 60%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    border-style: solid;
    border-width: thin;
    border-color: #8FADBF;
    border-bottom-style: hidden;
}

.caja > figure > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.descripcion {
    border-style: solid;
    border-top-style: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    border-style: solid;
    border-width: thin;
    border-color: #8FADBF;
    border-radius: 0 0 15px 15px;
    color: #8FADBF;
    height: 40%;
}

.descripcion > h3 {
    margin-top: 0.5rem;
    font-weight: 500;
}

.descripcion > h4,
h5 {
    font-weight: 100;
    margin: 0.2rem 0;
}

.cajacompleta {
    background-color: white;
    width: 100%;
    height: 92vh;
    position: fixed;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    visibility: hidden;
}

.cajacompleta > div {
    overflow: hidden;
    display: flex;
    margin: auto;
    flex-direction: column;
    height: 60vh;
    overflow: scroll;
}

.cajacompleta > div > p {
    padding: 0.2rem 1rem;
    width: 90%;
    margin: 0 auto;
}


.cajacompleta > figure {
    height: 32vh;
    overflow: hidden;
    margin: 0 auto;

}

.cajacompleta > figure > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.cajacompleta h3 {
    font-size: 18pt;
    line-height: 1.3em;
    padding: 0 1rem;
    font-weight: 500;
    margin: 1rem;
    color: #4F5F73;
}


.cajacompleta h4 {
    text-align: center;
}

.leerpaper {
    font-size: 14pt;
    border-style: solid;
    border-width: thin;
    padding: 0.5rem;
    margin: 1rem auto;
    border-radius: 50px;
    text-decoration: none;
    color: #7790A6;
    font-weight: 500;
    width: 50%;
    text-align: center;
}

.leerpaper:hover {
    background-color: #7790A6;
    color: white;
    transition-duration: 0.5s;
}

.volverapapers {
    width: 100%;
    margin: auto;
    margin-bottom: 0;
    font-size: 14pt;
    text-decoration: underline;
    font-weight: 100;
    padding: 1rem;
    border-style: none;
    cursor: pointer;
    position: sticky;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.volverapapers:hover {
    font-weight: 500;
}

#volver {
    display: flex;
    margin: 1rem;
}

#volver > a {
    margin: auto;
    padding: 0.3rem;
    font-size: 12pt;
    color: #8FADBF;
    text-decoration: none;
}

footer {
    display: flex;
    border-top-style: solid;
    border-top-color: #8FADBF;
    border-top-width: thin;
    padding: 0.3rem;
    justify-content: center;
    height: 5vh;
    align-items: center;
    flex-direction: column;
}

footer > div {
    width: 100%;
    text-align: center;
    margin: 1rem 0;
}

footer > div > p {
    font-size: 11pt;
}

@media (min-width: 800px) {

    header {
        display: flex;
    }

    p {
        font-size: 14pt;
        line-height: 1.3em;
    }

    header {
        background-image: url(../img/header-press.jpg);
        background-size: cover;
        background-position: top;
    }

    header > p {
        margin: 25% auto;
        text-align: center;
        font-size: 30pt;
        text-transform: uppercase;
        background-color: rgba(143, 173, 191, 0.8);
        height: 10vh;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 900px;
    }

    main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        max-width: 1300px;
        margin: auto;
    }

    .caja {
        width: 33%;
    }

    .cajacompleta {
        flex-direction: row-reverse;
        overflow: hidden;
        overflow-y: hidden;
    }

    .cajacompleta > figure {
        height: 100%;
        width: 50%;
    }

    .cajacompleta > figure > img {
        object-fit: contain;
    }

    .cajacompleta > div {
        display: flex;
        flex-direction: column;
        margin: auto;
        width: 50%;
        height: 100%;
        justify-content: center;
        overflow: hidden;
    }

    .cajacompleta > div > h3 {
        margin: auto;
        margin-bottom: 2rem;
        width: 80%;
    }

    .cajacompleta > div > p {
        max-height: none;
        margin: 0 auto;
        width: 80%;
    }

    .cajacompleta > div > h4 {
        width: 80%;
    }

    .leerpaper {

        margin: 1rem auto;

    }
