* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    border: none
}
body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--gris-davidGrau);
    font-size: 10px;
    font-weight: 400;
}

main {
    min-height: 400px;
}

*:focus {
    box-shadow: 0 0 0 0 rgba(255,255,255,0) !important;
    outline: 0px !important;
    border-color: transparent;
}

:root {
    --gris-claro: #f1f1f1;
    --gris-medio: #949494;
    --gris-davidGrau: #636b75;
    --negro: #33332c;
    --blanco: #ffffff;
    --rojo: rgb(203, 16, 16);
    --azul: rgb(16, 60, 203);
}

a {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}
a:active, a:focus,
.dropdown-item:focus, .dropdown-item:hover {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

.container {
    width: 100% !important;
    max-width: 1470px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

a:hover {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}
a.underline {
    text-decoration: underline;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

p, ul, li, form, label, input, .form-control, .form-select {
    font-size: 1.6rem;
}

.bold {
    font-weight: 700;
}

.modal-content {
    border-radius: 0;
}
.modal-body {
    border-radius: 0;
}

.success, .success-sel {
    /* background-color: #f3ffee;*/ 
}
.error, .error-sel {
    background-color: #ffeff0 !important;
}
.missat, .missatgi {
    color: var(--rojo);
    font-size: 1.3rem !important;
}
.missat-error {
    color: var(--rojo);
    font-size: 1.5rem !important;
}

.btn-davidGrau,
.btn-modal.btn-aceptar {
    border: 1px solid var(--gris-davidGrau);
    padding: 0.8rem 4rem;
    font-size: 1.5rem;
    background-color: transparent;
}
.btn-davidGrau:hover,
.btn-modal.btn-aceptar:hover {
    background-color: var(--gris-davidGrau);
    color: var(--blanco);
    transition: background .3s ease-in-out;
}
.btn-modal.btn-cerrar {
    border: 1px solid var(--gris-claro);
    background-color: var(--gris-claro);
    color: var(--gris-davidGrau);
    padding: 0.8rem 4rem;
    font-size: 1.5rem;
}

.scrollup {
    width: 40px;
    height: 40px;
    opacity: 0.3;
    position: fixed;
    bottom:20px;
    right:30px;
    display: none;
    text-indent: -9999px;
    background: url(../img/content/icon_top.png) no-repeat;
    background-size: 40px 40px;
}



/* CUSTOM CHECKBOXES */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 2rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.custom-checkbox a {
    font-weight: 700;
    text-decoration: underline;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    width: 2rem;
    border: 1px solid var(--negro);
    margin-top: 0.2rem;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #0075ff;
    border: 1px solid #0075ff;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}
.custom-checkbox .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/**/


/* HEADER */
header .headerWrapper {
    position: relative;
}
header .header-img {
    width: 100%;
}
header .headerContentWrapper {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 3rem;
    width: 100%;
}
.contact header .headerContentWrapper,
.politicas header .headerContentWrapper {
    position: relative;
}
header .openMenuIcon {
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
header .openMenuIcon span {
    height: 2px;
    width: 32px;
    background-color: var(--blanco);
}
.contact header .openMenuIcon span,
.politicas header .openMenuIcon span {
    background-color: var(--gris-davidGrau);
}
header .logo {
    text-align: right;
}
header .logo img {
    height: 5.5rem;
    filter: brightness(0) invert(1);
}
.contact header .logo img,
.politicas header .logo img {
    filter: none;
}
header .offcanvas {
    overflow: auto;
    background-color: rgba(255,255,255,0.9);
    padding: 4rem;
    width: fit-content;
    color: var(--gris-davidGrau);
}
header .offcanvas .btn-close {
    width: 2em;
    height: 2em;
    min-height: 2em;
    background-size: 2em auto;
    margin-bottom: 3rem;
    margin-left: -1rem;
}
header .offcanvas ul li a {
    font-size: 1.8rem;
    line-height: 3.5rem;
}
header .offcanvas li:not(.mainCat) + li.mainCat {
    margin-top: 3rem;
}
header .offcanvas .mainCat a {
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 5rem;
}
header .offcanvas ul li a:hover, header .offcanvas ul li a.active {
    font-weight: 600;
}
header .offcanvas ul li.languageHeader {
    margin-top: 2rem;
}


footer {
    background-color: var(--gris-davidGrau);
    color: var(--blanco);
    padding: 3rem 2rem;
    font-size: 2rem;
}
footer .footerLinks {
    text-align: center;
}
footer .footerLinks .d-flex {
    justify-content: center;
}
footer a {
    font-size: 1.4rem;
    line-height: 2.6rem;
}
footer .mainCat a {
    font-size: 1.6rem;
    line-height: 3rem;
    font-weight: 600;
}
footer img.logo {
    width: 12rem;
    margin-bottom: 3rem;
    filter: brightness(0) invert(1);
}
footer .legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--blanco);
    padding-top: 3rem;
    margin-top: 2rem;
}
footer .legal .kitDigital,
footer .legal .legalLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3rem;
    margin-bottom: 1.5rem;
}
footer .legal img {
    height: 3.5rem;
}
footer .legal a {
    font-size: 1.5rem;
}
footer .legal .numon img {
    height: 1.4rem;
}


main {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.home main .heading {
    text-align: center;
    color: var(--gris-davidGrau);
    margin-bottom: 4rem;
}
.home main .heading h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.home .homeCatLink {
    position: relative;
    display: block;
    margin-bottom: 1.5rem;
    background-color: var(--gris-davidGrau);
}
.home .homeCatLink img {
    width: 100%;
    transition: opacity .2s ease-in-out;
}
.home .homeCatLink:hover img {
    opacity: 0.3;
    transition: opacity .2s ease-in-out;
}
.home .homeCatLink span {
    position: absolute;
    top: 50%;
    left: 4rem;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    font-weight: 600;
    color: var(--blanco);
    z-index: 1;
    font-size: 2.5rem;
}


.products header .headerWrapper,
.about header .headerWrapper {
    display: flex;
    overflow: hidden;
    justify-content: center;
}
.products header .heading,
.about header .heading {
    display: none;
}
.products .heading,
.about .heading {
    text-align: center;
    color: var(--gris-davidGrau);
    margin: 3rem 0;
}
.products .heading h1,
.about .heading h1 {
    font-weight: 700;
    font-size: 3rem;
}
.products .productsList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}
.products .productsList li {
    flex-basis: calc(50% - .5rem);
}
.products .productsList li img,
.products .productsList li iframe {
    width: 100%;
    object-fit: cover;
    height: 100%;
}
.modal#productsModal {
    background-color: var(--gris-davidGrau);
}
.modal#productsModal .modal-content {
    background-color: transparent;
    border: 0;
}
.modal#productsModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
    margin-left: auto;
    margin-bottom: 1rem;
}
.modal#productsModal .modal-body {
    padding: 0;
}
.modal#productsModal .modal-body img {
    width: 100%;
}
.modal#productsModal .carousel-caption {
    position: initial;
}
.modal#productsModal .carousel-caption p {
    font-size: 1.8rem;
}
.modal#productsModal .carousel-caption small {
    font-size: 1.3rem;
    font-weight: 400;
}
.modal#productsModal .carousel-control-next-icon, .carousel-control-prev-icon {
    width: 3.5rem;
    height: 3.5rem;
}
.modal#productsModal .carousel-control-next,
.modal#productsModal .carousel-control-prev {
    padding-top: 0;
    opacity: 1;
    align-items: center;
}

/* MASONRY PRODS LIST */
.masonryList {
    columns: 3 300px;
    column-gap: 1.5rem;
}
.masonryList div {
    width: 150px;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin: 0 1.5rem 1.5rem 0;
}
.masonryList div img {
   width: 100%;
}
.masonryList div iframe {
    width: 100%;
    aspect-ratio: 16/9;
}
.masonryList + .modal#productsModal .modal-body img,
.masonryList + .modal#productsModal .modal-body iframe {
    width: unset;
    max-width: 100%;
    max-height: 80vh;
}
.masonryList + .modal#productsModal .modal-body .carousel-item {
    text-align: center;
}
.masonryList + .modal#productsModal .modal-body .carousel-item iframe {
    width: auto;
    height: 300px;
}


.about .subheading {
    margin-bottom: 1rem;
}
.about .subheading .subheadingWrapper {
    display: flex;
    align-items: center;
    height: 100%;
}
.about .subheading .subheadingWrapper h2 {
    font-size: 2.5rem;
    font-weight: 600;
}
.about .subheading p {
    font-weight: 2.2rem;
}
.about .imgs-about {
    margin-bottom: 2rem;
}
.about .imgs-about img {
    width: 100%;
    height: 100%;
    min-height: 215px;
    object-fit: cover;
}
.about .imgs-about iframe {
    min-height: 215px;
}
.about .imgs-about .col-lg-6 {
    margin-bottom: 2rem;
}


.contact h1,
.politicas h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
        font-weight: 600;
        text-align: center;
}
.contact form {
    margin-top: 4rem;
    margin-bottom: 6rem;
}
.contact form input {
    height: 4rem;
    margin-bottom: 2rem;
}
.contact form textarea {
    margin-bottom: 2rem;
}
.contact form .d-flex {
    flex-direction: column;
    justify-content: space-between;
}
.contact .contactFooter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}
.contact .contactFooter a, .contact .contactFooter p {
    font-size: 1.5rem;
}
.contact .contactFooter a {
    display: block;
}


.politicas main {
    font-size: 1.6rem;
}
.politicas main h3 {
    font-size: 2.3rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.politicas main ul {
    margin-top: 0;
    margin-bottom: 9px;
    padding-left: 20px;
}
.politicas main ul li {
    list-style: disc;
}
.politicas main p {
    margin-bottom: 5px;
}
.politicas main hr {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0;
    border-top: #03b8dc;
}
.politicas main a:hover {
    text-decoration: underline;
}
.politicas main .table-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.politicas main .table {
    min-width: 900px;
}


/* MEDIA QUERIES */
@media (min-width: 576px) {
    header .logo img {
        height: 8rem;
    }

    .contact form .d-flex {
        flex-direction: row;
        justify-content: space-between;
    }
}
@media screen and (min-width:768px) {
    .scrollup{
        bottom: 50px;
        right: 160px;
    }

    footer .footerLinks {
        text-align: left;
    }
    footer .footerLinks .d-flex {
        justify-content: initial;
    }
    footer .legal {
        margin-top: 0;
    }

    .products header .headerWrapper,
    .about header .headerWrapper {
        height: auto;
    }
    .products header .header-img,
    .about header .header-img {
        width: 100%;
    }
    .products .productsList li {
        flex-basis: calc(50% - 8px);
    }
    .products .productsList {
        gap: 1.5rem;
    }
}
@media (min-width: 992px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    header .logo img {
        height: 10rem;
    }
    header .offcanvas {
        padding: 4rem 10rem;
    }

    main {
        margin-top: 6rem;
        margin-bottom: 4.5rem;
    }
    .home main .heading {
        margin-bottom: 6rem;
    }
    .home main .heading h1 {
        font-size: 4.5rem;
    }
    .home .homeCatLink span {
        left: 8rem;
        font-size: 3.5rem;
    }

    .modal#productsModal .carousel-control-prev {
        left: -5%;
        width: initial;
    }
    .modal#productsModal .carousel-control-next {
        right: -5%;
        width: initial;
        align-items: center;
        padding-top: 0;
    }

    .about .subheading .subheadingWrapper {
        padding: 0 20%;
        justify-content: center;
    }
    .about .subheading .subheadingWrapper h2 {
        font-size: 3.5rem;
    }
    .about .subheading p {
        padding-right: 20%;
    }

    .masonryList + .modal#productsModal .modal-body .carousel-item iframe {
        width: 800px;
        height: 500px;
    }
}
@media (min-width: 1200px) {
    header .headerWrapper {
        max-height: 100vh;
        overflow: hidden;
    }
    .products header .headerWrapper,
    .about header .headerWrapper {
        max-height: 80vh;
        display: block;
    }
    .products header .heading,
    .about header .heading {
        display: block;
    }
    .products main .heading,
    .about main .heading {
        display: none;
    }
    .products .heading,
    .about .heading {
        margin: 9rem 0;
        color: var(--blanco);
    }
    .products .heading h1,
    .about .heading h1{
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }
    .modal#productsModal .modal-dialog {
        max-width: 1100px;
        margin: 0 auto;
    }

    .about .subheading {
        order: 1;
        margin-bottom: 6rem;
    }
    .about .imgs-about {
        order: 2;
    }


    footer {
        padding: 5rem 0 3rem;
    }
    footer img.logo {
        width: 16rem;
    }
    footer a {
        font-size: 1.6rem;
        line-height: 3rem;
    }
    footer .legal {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
    footer .mainCat a {
        font-size: 1.9rem;
        line-height: 3.5rem;
    }
    footer .legal .numon {
        margin-left: auto;
    }
}
