body{
    background-color: #fff;
}

/*---------PRODUCTOS---------*/
.portada:not(:first-child){
    margin: 0;
}

.section{
    padding-bottom: 0;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 100px;
    justify-content: center;
    margin: 10px 0;
    max-width: 1000px; /* opcional: para evitar que se estiren demasiado */
    margin-left: auto;
    margin-right: auto;
}


.producto a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    padding: 20px 0;
    cursor: pointer;
}
  
.producto:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5); /* Más translúcido */
}
  

.producto img{
    max-height: 300px;
    
}

.producto p{
    font-weight: 600;
    color: black;
    font-size: 20px;
    max-width: 300px;
    text-align: center;
}

.acciones{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


/*--------- BOTON ---------*/
.btn3{
    margin-bottom: 50px;
}


@media(max-width:1600px){
    .productos{
        gap: 70px;
    }
    .producto img{
        max-height: 250px;
        
    }
    .producto p{
        font-weight: 600;
        color: black;
        font-size: 20px;
        max-width: 250px;
        text-align: center;
    }
}

@media(max-width:1400px){
    .productos{
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .producto img{
        max-height: 200px;
        
    }
    .producto p{
        max-width: 200px;
    }
}

@media(max-width:760px){
    .productos{
        margin-top: 10px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .producto img{
        max-height: 250px;
        
    }
    .producto p{
        max-width: 250px;
    }

    /*--------- BOTON ---------*/
    .btn3{
        margin-bottom: 10px;
    }
}


@media(max-width:600px){
    .productos{
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .producto img{
        max-height: 200px;
        
    }
    .producto p{
        max-width: 200px;
        font-size: 13px;
    }
}

@media(max-width:500px){
    .productos{
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .producto img{
        max-height: 150px;
        
    }
    .producto p{
        max-width: 150px;
        font-size: 13px;
    }
}

