.por-ambiente {
    box-sizing: border-box;
    display: grid;
    min-height: 100vh;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.por-ambiente .ambiente {

    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;

    display: grid;
    place-items: center;
}

.por-ambiente .ambiente img {
    opacity: .5;
    width: 100%;
    height: 100%;
    object-fit: cover !important; 
    /* transform: scale(1.5); */
    /* opacity: .5; */
}

.texto-intro-filtro-ambiente {
    transition: .5s;
    position: absolute;
    width: 80%;
    height: 80%;
    z-index: 5;
    transform: scale(.8);
    text-align: center;

}

.texto-intro-filtro-ambiente h2 {
    text-transform: uppercase;
    color: var(--verde-neon);

}

.texto-intro-filtro-ambiente small {
    display: block;
    color: #c6f8e9;
    font-weight: 500;
    font-size: 15px;
    padding: 15px;
}

.ambiente:hover .texto-intro-filtro-ambiente {
    transition: .5s;
    transform: scale(1);
    transition-delay: .1s;
}

.ambiente:hover img {
    transition: .5s;
    transform: scale(2.1);
    opacity: .8;
    filter: brightness(.2);
}

.ambiente:hover h2 {
    transform: scale(1.1);
    transition: .5s;
    transition-delay: .2s;
}

.ambiente button{
    transition: .4s;
    object-fit: cover;
    cursor: pointer;
    border: none;
    background-color: var(--verde-neon);
    width: 100%;
    height: 35px;
    border-radius: 15px;
    color: #053526;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 1000px){
    
    .texto-intro-filtro-ambiente h2{
        font-size: 1rem;    
    }

}




