/* Barra de Iconos */
.icons-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 350px;
    margin: 30px auto 0px;
}

.box {
    width: calc(20% - 20px);
    text-align: center;
    margin-bottom: 2.5rem;
}

.box .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box .content span {
    margin-top: 5px;
    white-space: nowrap;
    font-size: 15px;
}

.box img {
    width: 100px;
    height: 50px;
}


/* Galleria de Imagenes */
.gallery-container {
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); */
    /* grid-auto-rows: 300px; */
    /* grid-gap: 18px; */
    /* width: 100%; */
    /* RSBM */
    display: flex;
    min-height: 100vh;
}

.gallery__item {
    position: relative;
    overflow: hidden;
}

.gallery__item:not(.no-hover) .gallery__img {
    filter: blur(0px) brightness(65%);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
    filter: none;
}

.no-hover {
    filter: none !important;
}

.gallery__img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.gallery__title {
    text-transform: uppercase;
    position: absolute;
    bottom: 0;
    color: white;
    background: linear-gradient(rgb(255 255 255 / 0%), rgb(0 0 0 / 79%));
    width: 100%;
    font-size: 1rem;
    margin: 0;
    padding: 10px;
    font-weight: 500;
}

.gallery__item:nth-child(1) {
    /* grid-column-start: span 2;  */
    grid-row-start: span 2;
}

.gallery__item:nth-child(4) {
    grid-column-start: span 2;
}

.gallery__item:nth-child(6) {
    grid-row-start: span 2;
}

.gallery__item:nth-child(8) {
    grid-row-start: span 1;
    grid-column-start: span 2;
}


@media(min-width:768px) {
    .icons-container {
        margin: 20px auto 0px;
        max-width: 900px;
    }

    .box img {
        height: 50px;
        /* Altura ajustada automáticamente */
    }

    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
    }

    .gallery__title {
        font-size: 1.95rem;
        -webkit-text-stroke: 1px #434343;
        /* Cambia el valor a tu gusto */
    }

    .gallery__item:nth-child(4) {
        grid-column-start: span 2;
    }

    .gallery__item:nth-child(6) {
        grid-column-start: span 2;
        grid-row-start: span 1;
    }

    .gallery__item:nth-child(7) {
        grid-column-start: span 2;
        /* grid-row-start: span 2;   */
    }

    .gallery__item:nth-child(8) {
        grid-column-start: span 1;
    }

}

@media(min-width:993px) {
    .box .content span {
        font-size: 17px;
    }

    .icons-container {
        margin: 25px auto 0px;
    }

    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
        margin: auto;
    }

    .gallery__item:nth-child(1) {
        grid-row-start: span 2;
    }

    .gallery__item:nth-child(3) {
        grid-column-start: span 2;
    }

    .gallery__item:nth-child(4) {
        grid-column-start: span 2;
    }

    .gallery__item:nth-child(6) {
        grid-column-start: span 2;
    }

    .gallery__item:nth-child(7) {
        grid-column-start: span 1;
    }

}

@media(min-width:1280px) {
    .icons-container {
        margin: 30px auto 0px;
    }

    .box img {
        height: 50px;
        /* Altura ajustada automáticamente */
    }

}

@media (min-width: 280px) and (max-width: 851px) {
    .box img {
        width: 50px;
        height: 30px;
    }

    .gallery-container {
        /* grid-auto-rows: 200px;
        grid-gap: 15px; */
        display: flex;
        margin-top: 115px;
    }
}

/* RSBM */

.contenedor_imagenes_home {
    max-width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    position: relative;
    top: 0px;
}

.gallery__item {
    position: relative;
    overflow: visible;
    z-index: 1;

}


.gallery__item:hover .gallery__img {
    transform: scale(1.1);
    transition: transform 1s ease;
    filter: none;
    z-index: 10;
    /* que flote sobre otros elementos */
    position: relative;
}

/* .gallery-container {
    min-height: 100vh;
} */

#background-header {
    box-shadow: none;
}

.header-nav {
    background-color: unset;
}


@media (min-width: 280px) and (max-width: 851px) {
    .contenedor_imagenes_home {
        top: -115px;
    }
}