/*======================================
=            CATEGORÍAS
======================================*/

.categories{

    padding:90px 20px;

    background:#ffffff;

}

.categories .container{

    max-width:1200px;

    margin:auto;

}


/*======================================
=            TÍTULO
======================================*/

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;

    color:#111;

    margin-bottom:15px;

}

.section-title p{

    max-width:700px;

    margin:auto;

    color:#777;

    font-size:18px;

    line-height:1.7;

}


/*======================================
=            GRID
======================================*/

.categories-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}


/*======================================
=            TARJETAS
======================================*/

.category-card{

    position:relative;

    display:block;

    overflow:hidden;

    border-radius:18px;

    height:280px;

    text-decoration:none;

    box-shadow:0 12px 35px rgba(0,0,0,.12);

    transition:.35s;

}

.category-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.45s;

    will-change:transform;

}

.category-card:hover img{

    transform:scale(1.08);

}

.category-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(15,124,255,.18);

}


/*======================================
=            OVERLAY
======================================*/

.category-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.15),
        rgba(0,0,0,.75)
    );

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    transition:.35s;

}

.category-card:hover .category-overlay{

    background:linear-gradient(
        rgba(0,90,180,.20),
        rgba(0,60,130,.92)
    );

}

.category-overlay h3{

    color:#fff;

    font-size:28px;

    line-height:1.2;

    margin-bottom:10px;

}

.category-overlay span{

    color:#fff;

    font-size:16px;

    font-weight:600;

}


/*======================================
=            TABLET
======================================*/

@media (max-width:992px){

    .categories{

        padding:70px 20px;

    }

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:25px;

    }

    .category-card{

        height:240px;

    }

    .section-title h2{

        font-size:38px;

    }

}


/*======================================
=            CELULAR
======================================*/

@media (max-width:768px){

    .categories{

        padding:50px 12px;

    }

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:12px;

    }

    .category-card{

        height:175px;

        border-radius:14px;

    }

    .category-overlay{

        padding:15px;

    }

    .category-overlay h3{

        font-size:20px;

        margin-bottom:6px;

    }

    .category-overlay span{

        font-size:13px;

    }

    .section-title{

        margin-bottom:30px;

    }

    .section-title h2{

        font-size:30px;

        margin-bottom:10px;

    }

    .section-title p{

        font-size:15px;

        line-height:1.5;

    }

}


/*======================================
=        CELULARES PEQUEÑOS
======================================*/

@media (max-width:480px){

    .categories{

        padding:45px 10px;

    }

    .categories-grid{

        grid-template-columns:repeat(2,1fr);

        gap:10px;

    }

    .category-card{

        height:155px;

        border-radius:13px;

    }

    .category-overlay{

        padding:12px;

    }

    .category-overlay h3{

        font-size:17px;

        margin-bottom:5px;

    }

    .category-overlay span{

        font-size:12px;

    }

    .section-title{

        margin-bottom:25px;

    }

    .section-title h2{

        font-size:27px;

    }

    .section-title p{

        font-size:14px;

    }

}