html, body {
    height: max-content;
}
#location-cont {
    width: 100%;
    box-sizing: border-box;
    height: calc(100vh - 3em);
    max-height: calc(100vw * 16 / 9);
    min-height: calc(100vw * 16 / 12);
    padding-top: 4em;
    position: relative;
}

.portada-cont {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100vh;
}

.portada {
    height: 100%;
    background-image: url(../images/portada.jpeg);
    background-size: cover;
}

.circlogo {
    width: 35%;
    margin: auto;
}

.circlogo img {
    width: 100%;
}

.bg-img {
    width: 100%;
    position: absolute;
    bottom: -4em;
    left: 0;
    z-index: -1;
    overflow: hidden;
    padding-left: 39px;
    box-sizing: border-box;
}

.bg-img img {
    width: 140%;
}
.skewed-blue {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 55%;
    background-color: #BBDEFB;
    transform: skew(-7deg);
    z-index: -1;
}
.skewed-blue:before {
    content:"";
    width: 20%;
    height: 100%;
    background-color: #BBDEFB;
    position: absolute;
    right: 0;
    transform: skew(7deg);
}

.container {
    color: #212121;
    width: 222px;
    margin: 2em auto;
    padding-right: 20%;
}

.container h1 {
    font-weight: 500;
    font-size: 38px;
    margin-bottom: 5px;
}

.container p {
    font-weight: 300;
    font-size: 20px;
    margin: 0 0 23px 0;
}

.prod-btn {
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    background-color: #cc3363;
    padding: 0.7em 1em;
    border-radius: 5px;
    font-weight: 400;
    font-size: 20px;
}

.prod-btn:hover {
    background-color: #1E88E5;
}

.prod-btn a {
    color: white;
    letter-spacing: 1.5px;
}

.prod-cont {
    height: calc(100vh - 7em);
    width: 100%;
    padding: 10% 5%;
    box-sizing: border-box;
    text-align: center;
    scroll-snap-align: start;
}
#invierno {
    background-color: #880E4F;
}
#invierno .cat-card {
    background-color: white;
}
#verano {
    background-color: #BBDEFB;
    padding-top: 0;
}
#bebe-fant, #telar-merc {
    height: calc(200vh - 14em);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 0;
}
#telar-merc{
    background-color: #F8BBD0;
}

.cat-card {
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}
.cat-card a {
    display: block;
    height: 100%;
    width: 100%;
}
.cat-name {
    margin: 0 40px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cat-name h1 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 50px;
}
.cat-name p {
    font-size: 20px;
    font-weight: 300;
    margin: 0.5em 0 0 0;
}
.cat-img {
    height: 65%;
}
.prod-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.halfcard {
    height: 47.5%;
}

.no-margin {
    margin: 0;
}
.shadow {
    box-shadow: 8px 8px 16px 0px rgba(0,0,0,0.15);
}
#pagefoot {
    scroll-snap-align: start;
}

@media only screen and (min-width: 563px) {
    #location-cont {
        height: calc(100vh - 2em);
    }
}

@media only screen and (min-width: 768px) {
    #location-cont {
        padding-top: 5em;
        width: 45%;
        min-height: unset;
    }
    .container {
        padding: 0;
        width: min-content;
        margin-top: calc((100vh - 7em) / 2);
        transform: translateY(-50%);
    }
    .container h1 {
        width: max-content;
        letter-spacing: 1px;
    }
    .container p {
        width: 100%;
        margin-top: 14px;
    }
    .prod-btn {
        width: max-content;
        background-color: #1E88E5;
        padding: 0.5em 0.7em;
    }
    .prod-btn:hover {
        background-color: #FFC107;
    }

    .prod-btn a:hover {
        color: #212121;
    }
    
}

@media only screen and (orientation: landscape) {
    .prod-cont {
        height: 100vh;
        max-height: calc(9 * 100vw / 16);
        padding: calc(7em + 5%) 15% 5% 15%;
    }
    .cat-card a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cat-name, .cat-img {
        width: 50%;
        height: 100%;
        margin: 0;
    }
    .cat-name h1 {
        font-size: 30px;
    }
    .cat-name p {
        font-size: 16px;
        margin: 1em 10%;
    }
    #verano {
        padding-top: calc(7em + 5%);
    }
    #bebe-fant, #telar-merc {
        flex-direction: row;
        padding-top: calc(7em + 2%);
    }
    .cat-card.halfcard{
        height: 100%;
    }
    .cat-card.halfcard a {
        flex-direction: column;
    }
    .halfcard .cat-name, .halfcard .cat-img {
        width: 80%;
    }
    .halfcard .cat-name {
        height: 35%;
    }
    .halfcard .cat-img {
        height: 65%;
    }
    .halfcard h1 {
        font-size: 25px;
    }
    .halfcard p {
        margin: 0 1em;
        font-size: 14px;
    }
}

@media only screen and (min-width: 1025px) {
    html {
        scroll-snap-type: y proximity;
        overflow-y: visible;
        overflow-x: hidden;
        scroll-snap-align: start;
    }
    .cat-name h1 {
        font-size: 50px;
    }
    .cat-name p {
        font-size: 20px;
        color: #424242;
    }
}

.invierno #topbar {
    background-color: #1E88E5;
}
.invierno .skewed-logo {
    background-color: #ffffff;
}
.verano #topbar {
    background-color: #1E88E5;
}
/* .bebe-fant .skewed-logo, .bebe-fant .nav-logo::before {
    background-color: #BBDEFB;
} */