/* Seção Galeria */
.titilo_cliente_content {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    top: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
}

.Grid_galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 5rem;
    counter-reset: grid-counter;
    max-width: 130rem; 
    margin: 0 auto; 
}

.Grid_galeria article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.Grid_galeria h3 {
    font-size: 2rem;
    margin-top: 0.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.Grid_galeria h3::before {
    counter-increment: grid-counter;
    content: counter(grid-counter);
    position: absolute;
    font-size: 5rem;
    font-style: italic;
    top: -2.5rem;
    left: -1.5rem;
    transform: rotate(5deg);
    opacity: 0.1;
}

.gallery-img {
    width: 100%;
    max-width: 28rem; 
    max-height: 28rem;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-img img {
    width: 100%;
    height: auto;
    transition: all 300ms ease-in-out;
}

.gallery-img img:hover {
    transform: translate(-2%, 2%) scale(1.1) rotate(3deg);
}

/* MEDIA QUERY ESPECÍFICA DE GALERIA */
@media (max-width: 800px) {
    .Grid_galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 3rem 2rem;
    }
    .titilo_cliente_content {
        top: 0;
        padding: 2rem 2rem 4rem 2rem;
    }
    .Grid_galeria h3::before {
        font-size: 3rem;
        top: -1rem;
        left: 0;
    }
    .gallery-img {
        max-width: 100%;
        max-height: 100%;
    }
    .gallery-img img:hover {
        transform: none;
    }
}