/*==================================================
CATEGORÍAS PREMIUM
Tecnología Israel v0.5
Archivo: assets/css/components/categories.css
==================================================*/

/*=========================================
SECCIÓN
=========================================*/

.categories{

    position:relative;

    padding:80px 0;

    background:#FAFBFE;

    overflow:hidden;

}

.categories::before{

    content:"";

    position:absolute;

    width:550px;

    height:550px;

    border-radius:50%;

    background:rgba(31,94,255,.03);

    top:-260px;

    right:-180px;

}

.categories::after{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    border-radius:50%;

    background:rgba(31,94,255,.02);

    bottom:-180px;

    left:-150px;

}

.categories .container{

    position:relative;

    z-index:2;

}

/*=========================================
ENCABEZADO
=========================================*/

.section-header{

    display:flex;

    justify-content:center;

    text-align:center;

    margin-bottom:55px;

}

.section-badge{

    display:inline-flex;

    align-items:center;

    padding:10px 20px;

    border-radius:40px;

    background:#EEF4FF;

    color:#1F5EFF;

    font-size:12px;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:18px;

}

.section-header h2{

    font-size:42px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:12px;

    color:#101828;

}

.section-header p{

    max-width:640px;

    margin:0 auto;

    color:#667085;

    font-size:18px;

    line-height:1.7;

}

/*=========================================
GRID
=========================================*/

.categories-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

/*=========================================
CARD
=========================================*/

.category-card{

    position:relative;

    background:#FFF;

    border-radius:28px;

    overflow:hidden;

    text-decoration:none;

    border:1px solid #EDF1F7;

    box-shadow:0 15px 40px rgba(0,0,0,.05);

    transition:.35s ease;

}

.category-card:hover{

    transform:translateY(-8px);

    border-color:rgba(31,94,255,.15);

    box-shadow:0 30px 60px rgba(0,0,0,.10);

}

/*=========================================
FLECHA ESQUINA PREMIUM
=========================================*/

.category-more{

    position:absolute;

    top:18px;

    right:18px;

    width:36px;

    height:36px;

    border-radius:50%;

    background:#F3F7FF;

    color:#1F5EFF;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:13px;

    z-index:5;

    transition:.35s ease;

    box-shadow:0 4px 12px rgba(31,94,255,.08);

}

.category-card:hover .category-more{

    background:#1F5EFF;

    color:#FFF;

    transform:translate(2px,-2px);

    box-shadow:0 10px 24px rgba(31,94,255,.25);

}

/*=========================================
IMAGEN
=========================================*/

.category-image{

    position:relative;

    height:300px;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    background:linear-gradient(180deg,#FFFFFF,#F7F9FD);

}

.category-image::before{

    content:"";

    position:absolute;

    width:240px;

    height:240px;

    border-radius:50%;

    background:rgba(31,94,255,.05);

}

.category-image img{

    position:relative;

    z-index:2;

    width:82%;

    max-height:240px;

    object-fit:contain;

    transition:.45s ease;

}

.category-card:hover .category-image img{

    transform:scale(1.05) translateY(-4px);

}

/*=========================================
INFO
=========================================*/

.category-info{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:16px;

    min-height:150px;

    padding:22px 28px;

}
/*=========================================
ICONO AZUL
=========================================*/

.category-icon{

    width:48px;

    height:48px;

    min-width:48px;

    border-radius:50%;

    background:linear-gradient(135deg,#1F5EFF,#0D47A1);

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 10px 24px rgba(31,94,255,.20);

    transition:.35s ease;

    flex-shrink:0;

}

.category-icon i{

    color:#FFF;

    font-size:16px;

    line-height:1;

}

.category-card:hover .category-icon{

    transform:scale(1.06);

    box-shadow:0 14px 30px rgba(31,94,255,.28);

}

/*=========================================
TEXTO
=========================================*/

.category-text{

    flex:1;

}

.category-text h3{

    margin:0 0 6px;

    font-size:23px;

    font-weight:700;

    line-height:1.2;

    color:#16213E;

}

.category-text p{

    margin:0;

    font-size:16px;

    line-height:1.55;

    color:#667085;

}

/*=========================================
RESPONSIVE
=========================================*/

/*==================================================
RESPONSIVE FINAL
4 columnas desktop / 2 tablet / 1 móvil
Pegar al FINAL de categories.css
==================================================*/

/* Desktop grande */
.categories-grid{
    grid-template-columns:repeat(4,1fr);
}

/* Tablet */
@media (max-width:992px){

    .section-header{
        display:block;
        text-align:center;
    }

    .section-header p{
        margin:0 auto;
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
        gap:24px;
    }

}

/* Móvil */
@media (max-width:576px){

    .categories{
        padding:60px 0;
    }

    .section-header{
        margin-bottom:35px;
    }

    .section-header h2{
        font-size:30px;
    }

    .categories-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .category-image{
        height:220px;
    }

    .category-info{
        padding:18px 22px 24px;
    }

}

@media (max-width:768px){

    .categories{

        padding:60px 0;

    }

    .section-header{

        margin-bottom:40px;

    }

    .section-header h2{

        font-size:34px;

    }

    .section-header p{

        font-size:16px;

    }

    .categories-grid{

        grid-template-columns:1fr;

        gap:22px;

    }

    .category-image{

        height:250px;

    }

    .category-image img{

        max-height:200px;

    }

    .category-info{

        padding:18px 22px 24px;

    }

    .category-text h3{

        font-size:22px;

    }

    .category-text p{

        font-size:15px;

    }

}