/*PRODUCTOS mobile*/

/*PRODUCTOS*/
.backgroundProducts {
    width: 100%;
}

.backgroundProducts img {
    max-height: 300px;
    min-height: 200px;
}

.ourProducts {
    position: absolute;
    top: 150px;
    left: 15%;
    transform: translate(-10%, 0%);
    padding: 10px;
    text-align: center;
    background-color: var(--Lwhite);
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
    opacity: 0.85;
}

.ourProducts b {
    color: var(--red);
}

/*Productos - Detalles*/
.producto {
    position: relative;
    flex-direction: column;
    text-align: left;
    background-color: var(--Lwhite);
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
    padding: 10px 25px 20px;
}

.producto h2 {
    padding: 15px 5px 0 0;
    color: var(--red);
}

.producto h4 {
    padding: 5px 0 0 0;
}

.producto span {
    color: var(--red);
}

.producto .detalle {
    line-height: 25px;
}

.producto .bajada {
    padding: 5px 0 15px;
}

.detalle p, .detalle span {
    line-height: 30px;
}

.bwProduct {
    filter: grayscale(100%);
}


/*GRILLA*/
.grid-container {
    display: flex;
    flex-direction: column;
    place-items: center;
}

.grid-item {
    width: 90%;
}

/*FONDO*/
.grid-item:first-child {
    background-color: var(--Lgrey);
    order: 1;
}

/*Detalle modulo*/
.grid-item:nth-child(2) {
    margin-top: 180px;
    order: 2;
}

/*Foto modulo*/
.grid-item:nth-child(3) {
    order: 3;
}

/*Foto container*/
.grid-item:nth-child(4) {
    order: 5;
}

/*Detalle container*/
.grid-item:nth-child(5) {
    margin-top: 70px;
    order: 4;
}

/*Detalle otros*/
.grid-item:nth-child(6) {
    margin-top: 70px;
    order: 6;
}

/*Foto 1 otros*/
.grid-item:nth-child(7) {
    display: none;
}

/*Foto 2 otros*/
.grid-item:nth-child(8) {
    order: 7;
}

/*PRODUCTOS desktop*/
/*si es igual o mayor que 768px va a hacer esto*/
@media (min-width: 768px) {
    .backgroundProducts img {
        max-height: 400px;
        min-height: 300px;
    }

    .ourProducts {
        top: 250px;
        left: 50%;
        transform: translate(-50%, 0%);
        padding: 20px;
    }

    .producto .detalle {
        line-height: 30px;
    }

    .detalle p, .detalle span {
        line-height: 40px;
    }

    /*GRILLA*/
    .grid-container {
        display: grid;
        flex-direction: inherit;
        width: 100%;
        grid-template-columns: minmax(7%, 12%) repeat(7, 1fr) minmax(7%, 12%);
        grid-template-rows: repeat(12, minmax(120px, fit-content));
        place-content: center;
        place-items: inherit;
        row-gap: 25px;
    }

    .grid-item {
        width: 100%;
    }

    /*FONDO*/
    .grid-item:first-child {
        order: inherit;
        grid-column: 2/9;
        grid-row: 1/12;
    }

    /*Detalle modulo*/
    .grid-item:nth-child(2) {
        order: inherit;
        grid-column: 4/ span 3;
        grid-row: 1/ span 3;
        z-index: 3;
        margin-top: 100px;

    }

    /*Foto modulo*/
    .grid-item:nth-child(3) {
        order: inherit;
        grid-column: 6/10;
        grid-row: 2/ span 3;
    }

    /*Foto container*/
    .grid-item:nth-child(4) {
        order: inherit;
        grid-column: 1/5;
        grid-row: 5/ span 3;
    }

    /*Detalle container*/
    .grid-item:nth-child(5) {
        order: inherit;
        margin-top: inherit;
        grid-column: 4/span 3;
        grid-row: 5/ span 2;
    }

    /*Detalle otros*/
    .grid-item:nth-child(6) {
        order: inherit;
        margin-top: inherit;
        grid-column: 4/span 3;
        grid-row: 9/ span 2;
        z-index: 3;
    }

    /*Foto 1 otros*/
    .grid-item:nth-child(7) {
        display: inline;
        grid-column: 7/11;
        grid-row: 10/ span 3;
    }

    /*Foto 2 otros*/
    .grid-item:nth-child(8) {
        order: inherit;
        grid-column: 1/7;
        grid-row: 9/ span 3;
    }




}






















/*GALERIA FILTRADA II*/
.wrapper {
    margin: 100px auto;
    padding-top: 20px;
    max-width: 1100px;
    min-height: 500px;
}

.wrapperNav {
    max-width: 1200px;
    margin: 0 auto;
}

.wrapperNav .items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.items span {
    padding: 14px 14px 7px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--grey);
}

.items span.active,
.items span:hover {
    color: var(--red);
    border-bottom: 1px solid var(--red);
}

.items:active {
    background-color: #fff;
}

.wrapperGallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-bottom: 14px;
}

.wrapperGallery .image {
    width: calc(100% / 4);
    padding: 7px;
}

.wrapperGallery .image span {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.wrapperGallery .image img {
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.wrapperGallery .image:hover img {
    transform: scale(1.1);
}

.wrapperGallery .image.hide {
    display: none;
}

.wrapperGallery .image.show {
    animation: animate 0.4s ease;
}

@keyframes animate {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

.preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    max-width: 800px;
    width: 100%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
}

.preview-box.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
}

.preview-box .details {
    padding: 13px 15px 13px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
}


.details .title p {
    font-size: 18px;
    font-weight: 300;
}

.icon {
    color: var(--grey);
    font-weight: bolder;
    font-size: 18px;
    cursor: pointer;
    padding-right: 10px;
}

.details .icon:hover {
    color: var(--red);
}

.preview-box .image-box {
    width: 100%;
    display: flex;
}

.image-box img {
    width: 100%;
    border-radius: 0 0 3px 3px;
}

.shadow {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0, 0, 0, 0.9);
}

.shadow.show {
    display: block;
}

@media (max-width: 1000px) {
    .wrapperGallery .image {
        width: calc(100% / 3);
    }
}

@media (max-width: 800px) {
    .wrapperGallery .image {
        width: calc(100% / 2);
    }
}

@media (max-width: 700px) {
    .wrapperNav .items {
        max-width: 600px;
    }

    .wrapperNav .items span {
        padding: 7px 15px;
    }
}

@media (max-width: 600px) {
    .wrapper {
        margin: 30px auto;
    }

    .wrapperNav .items {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wrapperNav .items span {
        margin: 5px;
    }

    .wrapperGallery .image {
        width: 100%;
    }

    .items span {
        font-size: 14px;
    }
}


/*GALERIA FILTRADA* II/