.galeria-mamparas{
    padding:80px 20px;
    background:#f5f7fa;
}

.contenedor{
    width:100%;
    max-width:1200px;
    margin:auto;
}

/* TITULO */

.titulo-section{
    text-align:center;
    margin-bottom:50px;
}

.titulo-section h2{
    font-size:2.5rem;
    margin-bottom:15px;
    color:#111;
}

.titulo-section p{
    max-width:850px;
    margin:auto;
    line-height:1.8;
    color:#555;
}

/* GRID */

.grid-galeria{
    display:grid;

    /* IMPORTANTE */
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
    align-items:stretch;
}

/* CARD */

.card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    display:flex;
    flex-direction:column;

    transition:0.3s ease;

    height:100%;
}

.card:hover{
    transform:translateY(-8px);
}

/* IMAGEN */

.card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

/* CONTENIDO */

.contenido{
    padding:25px;
    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:center;

    flex:1;
}

.contenido h3{
    font-size:1.6rem;
    margin-bottom:15px;
    color:#111;
}

.contenido p{
    color:#666;
    line-height:1.8;
    font-size:1rem;
}

/* RESPONSIVE */

@media(max-width:768px){

    .grid-galeria{
        grid-template-columns:1fr;
    }

    .titulo-section h2{
        font-size:2rem;
    }

    .titulo-section p{
        font-size:1rem;
    }

    .card{
        max-width:400px;
        margin:auto;
    }

    .card img{
        height:220px;
    }

}