* {

    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: futura-pt, sans-serif;
}

p {
    font-weight: 400;
    font-style: normal;
    line-height: 1.3rem;
    padding: 0.5rem;
    color: #8FADBF;
    width: 80%;
    margin: 0 auto;
}

nav {
    display: flex;
    flex-direction: column;
    color: #384643;
    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: #384643;
}

#barratop > h2 {
    margin: auto;
    width: 100%;
    text-align: center;
    position: absolute;
    font-weight: 100;
}

#iconomenu {
    z-index: 1;
    padding: 0.5rem;
    cursor: pointer;
}


#iconomenu i {
    font-size: 20pt;
    color: #96a09f;
}

#iconomenu button {
    background-color: white;
    border-style: none;
}

#iconostop {
    display: flex;
    z-index: 1;
    max-height: 100%;
    justify-content: space-around;
    align-content: center;
    align-items: center;
}

#iconostop > a {
    height: 100%;
    width: 100%;
    display: flex;
    margin: 0.3rem;
    text-decoration: none;
    color: #96a09f;
}

#iconostop > a > i {
    font-size: 1.5rem;
}

#menu > ul {
    margin: auto;
    width: 100%;
    height: 92vh;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#menu > ul > li {
    padding: 1rem;
}

#menu > ul > li > a {
    text-decoration: none;
    color: white;
    font-size: 24pt;
}

#menu > ul > li > a:hover {
    text-decoration: underline;
}

#particles-js {
    background-color: #384643;
    height: calc(92vh);
    z-index: 1;
}

header {
    height: 92vh;
    background-image: url(../img/promocion.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;
    font-size: 14pt;
    background-color: #384643;
}

#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;
    }

}

.caja {
    display: flex;
    flex-direction: column;
    height: 40vh;
    overflow: hidden;
    padding: 1rem;
    cursor: pointer;
}

.caja > a {
    height: 90%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.caja > a > figure {
    height: 100%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

#dinamic-homes > a > figure > img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.caja > figure {
    height: 90%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.caja > figure > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.descripcion {
    border-style: solid;
    border-top-style: none;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
    border-style: solid;
    border-width: thin;
    border-color: #96A09F;
    border-radius: 0 0 15px 15px;
    color: #96A09F;
}

.descripcion > h3 {
    margin-top: 0.5rem;
    font-weight: 500;
}

.descripcion > h4,
h5 {
    font-weight: 100;
}

.cajacompleta {
    background-color: white;
    width: 100%;
    left: 0;
    bottom: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    height: 92vh;
}

.cajacompleta > div {
    height: 59vh;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: scroll;
}

.cajacompleta p {
    width: 90%;
}

.cajacompleta figure {
    height: 33vh;
    overflow: hidden;
}

.cajacompleta figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.cajacompleta h3 {
    text-align: center;
    font-size: 24pt;
    font-weight: 500;
    color: #4F5F73;
}

.cajacompleta h4 {
    text-align: center;
}

.cajacompleta h6 {
    text-align: center;
    font-size: 14pt;
    font-weight: 100;
    width: 80%;
    margin: 0 auto;
}

.cajacompleta a {
    text-decoration: none;
    border-style: solid;
    border-width: thin;
    border-color: #384643;
    padding: 0.5rem;
    border-radius: 25px;
    color: #384643;
}

.cajacompleta a:hover {
    background-color: #384643;
    color: white;
}

.cierracajacompleta {
    display: flex;
    font-size: 14pt;
    text-decoration: underline;
    font-weight: 100;
    color: #384643;
    border-style: none;
    cursor: pointer;
    position: absolute;
    margin-bottom: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(200, 200, 200, 0.4);
    height: 5vh;
    align-items: center;
    justify-content: center;
}

.cierracajacompleta:hover {
    font-weight: 500;
}

main {
    display: flex;
    flex-direction: column;
}

main > div:first-child {
    margin: 1rem auto;
}

body {
    display: flex;
    flex-direction: column;
}

#proyectosanteriores {
    color: #384643;
    text-decoration: none;
    text-align: center;
    border-style: solid;
    border-width: thin;
    border-radius: 25px;
    padding: 0.5rem;
    margin: auto;
}

#proyectosanteriores:hover {
    background-color: #384643;
    color: white;
}

#volver {
    display: flex;
    margin: 1rem;
}

#volver > a {
    margin: auto;
    font-size: 12pt;
    color: #96A09F;
}

footer {
    display: flex;
    border-top-style: solid;
    border-top-color: #384643;
    border-top-width: thin;
    padding: 0.3rem;
    justify-content: center;
    height: 3rem;
    align-items: center;
}

footer > a {
    font-size: 12pt;
    text-decoration: none;
    color: #96A09F;
}

@media(min-width: 600px) {


    main > div:nth-child(1) {
        width: 100%;
    }

    main {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 1300px;
        justify-content: center;
        margin: auto;
    }

    .caja {
        width: 25%;
        flex: 33%;
        max-width: 33%;
    }

    .cajacompleta > figure {
        width: 50%;
        height: 100%;
        position: absolute;
        right: 0;
    }

    .cajacompleta {
        justify-content: center;
    }

    .cajacompleta a,
    p {
        display: flex;
        margin: 1rem auto;
        width: 33%;
        justify-content: center;
    }

    .cajacompleta > div {
        width: 50%;
        max-height: 92vh;
        overflow: scroll;
        overflow-x: hidden;
    }

    .cierracajacompleta {
        position: absolute;
        margin-bottom: 0;
        bottom: 0;
        left: 0;
        width: 50%;
        background-color: rgba(200, 200, 200, 0.4);
        height: 5vh;
    }

    p {
        width: 66%;
        font-size: 16pt;
        font-weight: 100;
        line-height: 1.5rem;
    }


}