@charset "UTF-8";

/* =====================================================
   SECCION CATEGORIAS
===================================================== */

.categories{

    padding:40px 0;

    position:relative;
}

/* =====================================================
   TITULO
===================================================== */

.section-title{

    font-size:30px;

    font-weight:700;

    margin-bottom:28px;

    color:#0f172a;

    text-align:center;

    position:relative;

    line-height:1.3;
}

/* LINEA */

.section-title::after{

    content:"";

    width:60px;
    height:4px;

    background:
        linear-gradient(
            90deg,
            #1e5cc8,
            #60a5fa
        );

    display:block;

    margin:12px auto 0;

    border-radius:10px;
}

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

.categories-row{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px,1fr)
        );

    gap:24px;

    align-items:stretch;
}

/* =====================================================
   CARD
===================================================== */

.cat-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:20px;

    padding:18px;

    text-align:center;

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

    cursor:pointer;

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    min-height:100%;

    box-shadow:
        0 6px 18px rgba(0,0,0,.05);
}

/* =====================================================
   EFECTO SUPERIOR
===================================================== */

.cat-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:
        linear-gradient(
            90deg,
            #1e5cc8,
            #60a5fa
        );

    opacity:0;

    transition:.28s ease;
}

/* =====================================================
   HOVER
===================================================== */

.cat-card:hover{

    transform:translateY(-6px);

    border-color:#d6e4ff;

    box-shadow:
        0 18px 35px rgba(0,0,0,.10);
}

.cat-card:hover::before{

    opacity:1;
}

/* =====================================================
   IMAGEN
===================================================== */

.cat-card img{

    width:100%;

    height:210px;

    object-fit:contain;

    border-radius:12px;

    margin-bottom:16px;

    transition:transform .32s ease;

    background:#fff;
}

/* ZOOM */

.cat-card:hover img{

    transform:scale(1.04);
}

/* =====================================================
   TITULO CARD
===================================================== */

.cat-card h3{

    font-size:16px;

    font-weight:700;

    margin:0;

    color:#0f172a;

    line-height:1.45;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* =====================================================
   MONITORES GRANDES
   24" / 27"
===================================================== */

@media (min-width:1600px){

    .categories{

        padding:60px 0;
    }

    .section-title{

        font-size:42px;

        margin-bottom:40px;
    }

    .section-title::after{

        width:80px;
        height:5px;
    }

    .categories-row{

        gap:34px;
    }

    .cat-card{

        border-radius:24px;

        padding:24px;
    }

    .cat-card img{

        height:290px;
    }

    .cat-card h3{

        font-size:20px;
    }
}

/* =====================================================
   LAPTOPS 14"
===================================================== */

@media (max-width:1200px){

    .categories-row{

        grid-template-columns:
            repeat(auto-fill,minmax(200px,1fr));

        gap:20px;
    }

    .cat-card img{

        height:190px;
    }
}

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

@media (max-width:992px){

    .categories{

        padding:34px 0;
    }

    .section-title{

        font-size:26px;

        margin-bottom:24px;
    }

    .categories-row{

        grid-template-columns:
            repeat(auto-fill,minmax(190px,1fr));

        gap:18px;
    }

    .cat-card{

        border-radius:18px;

        padding:16px;
    }

    .cat-card img{

        height:170px;
    }

    .cat-card h3{

        font-size:15px;
    }
}

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

@media (max-width:768px){

    .categories{

        padding:28px 0;
    }

    .section-title{

        font-size:22px;

        margin-bottom:20px;
    }

    .section-title::after{

        width:52px;
        height:4px;
    }

    .categories-row{

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

        gap:16px;
    }

    .cat-card{

        border-radius:16px;

        padding:14px;
    }

    .cat-card img{

        height:150px;

        margin-bottom:12px;
    }

    .cat-card h3{

        font-size:14px;
    }
}

/* =====================================================
   TELEFONOS GRANDES
===================================================== */

@media (max-width:580px){

    .categories{

        padding:24px 0;
    }

    .section-title{

        font-size:20px;
    }

    .categories-row{

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

        gap:12px;
    }

    .cat-card{

        border-radius:14px;

        padding:12px;
    }

    .cat-card img{

        height:125px;

        margin-bottom:10px;
    }

    .cat-card h3{

        font-size:13px;
    }
}

/* =====================================================
   TELEFONOS PEQUEÑOS
===================================================== */

@media (max-width:420px){

    .section-title{

        font-size:18px;
    }

    .categories-row{

        grid-template-columns:1fr;
    }

    .cat-card{

        padding:14px;
    }

    .cat-card img{

        height:190px;
    }

    .cat-card h3{

        font-size:14px;
    }
}