/* HOW IT WORKS */
.how {
    width: 100%;
    height: 90vh;
    background-image: url(./../assets/back-how.png);
    
}

.how h1 {
    text-align: center;
    padding-top: 2vh;
    
}

.steps-grid {
    padding-top: 5vh;
    
    display: grid;
    grid-template-columns: repeat(3, 20%);
    grid-template-rows: repeat(2, 45%);
    grid-column-gap: 10%;
    grid-row-gap: 25%;
    margin-left: 15%;
}

.step {
    
    background: white;
    min-height: 150%;
    border-radius: 20px;
    box-shadow: 0px .5px 7px .5px rgba(47, 47, 47, 0.69);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    gap: 15px;

}
.step img{
    padding-top: 15px;
    width: 40%;
}
.step h4{
    font-size: small;
    justify-self: center;
}
.step p{
    font-size: small;
    text-align: center;
}

/* ============================
   RESPONSIVE - MAX WIDTH 600PX
   ============================ */
@media (max-width: 1100px) {

    .how {

        height: auto;
        
        padding-bottom: 5vh;
    }

    .how h1 {
        font-size: 1.6rem;
        padding-top: 3vh;
    }

    .steps-grid {
        padding-top: 4vh;
        margin-left: 0;
        width: 100%;
        display: grid;

        /* Pasamos de 3x2 a 1x6 */
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-row-gap: 25px;

        justify-items: center;
    }

    .step {
        width: 80%;
        min-height: auto;
        padding: 20px 10px;
        border-radius: 18px;
        gap: 10px;
    }

    .step img {
        width: 30%;      /* Menos grande para móvil */
        padding-top: 10px;
    }

    .step h4 {
        font-size: 1rem;
        text-align: center;
    }

    .step p {
        font-size: 0.9rem;
        line-height: 1.3rem;
        padding: 0 10px;
    }
}
