/* =========================================================
   BETY'S ELEC
   CATEGORÍAS - HOME
========================================================= */


/* =========================================================
   SECCIÓN
========================================================= */

.categories-section {

    position: relative;

    padding:
        14px 0 28px;

    background:

        radial-gradient(
            ellipse at 50% 0%,
            rgba(242, 185, 39, 0.025),
            transparent 45%
        ),

        transparent;

    border-bottom:
        1px solid rgba(242, 185, 39, 0.08);

}


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

.section-heading {

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 12px;

}


.section-heading h2 {

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.2;

}


.heading-line {

    width: 35px;

    height: 2px;

    margin-top: 7px;

    background:
        var(--dorado);

    box-shadow:
        0 0 8px
        rgba(242, 185, 39, 0.25);

}


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

.categories-grid {

    display: grid;

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

    gap: 19px;

}


/* =========================================================
   TARJETA
========================================================= */

.category-card {

    position: relative;

    height: 245px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    align-items: center;

    border:
        1px solid
        rgba(242, 185, 39, 0.28);

    border-radius:
        11px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.008)
        );

    box-shadow:
        inset 0 0 30px
        rgba(0,0,0,0.25);

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

}


.category-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(242,185,39,0.65);

    box-shadow:

        0 10px 25px
        rgba(0,0,0,0.4),

        0 0 20px
        rgba(242,185,39,0.06);

}


/* =========================================================
   ZONA DE IMAGEN
========================================================= */

.category-image {

    position: relative;

    width: 100%;

    height: 145px;

    flex: 0 0 145px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}
/* =========================================================
   IMÁGENES DE CATEGORÍAS
========================================================= */

.category-image-product {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    pointer-events: none;
    user-select: none;

    filter:
        drop-shadow(
            0 8px 12px
            rgba(0,0,0,0.55)
        );

}

/* =========================================================
   CONTENIDO
========================================================= */

.category-content {

    position: relative;

    z-index: 2;

    width: 100%;

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding:
        0 10px 8px;

    text-align: center;

    box-sizing: border-box;

}


.category-content h3 {

    margin:
        0;

    color:
        #ffffff;

    font-size:
        14px;

    font-weight:
        700;

    line-height:
        1.25;

}


.category-content p {

    margin:
        7px 0 0;

    color:
        var(--dorado);

    font-size:
        11px;

    line-height:
        1.4;

}


.category-arrow {

    display: flex;

    width: 45px;

    height: 28px;

    margin: auto auto 0;

    align-items: center;

    justify-content: center;

    color:
        var(--dorado);

    font-size: 21px;

    background:
        radial-gradient(
            ellipse,
            rgba(242,185,39,0.10),
            transparent 70%
        );

    transition:
        transform 0.25s ease;

}


.category-card:hover .category-arrow {

    transform:
        translateX(5px);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .categories-grid {

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

    }

}


@media (max-width: 650px) {

    .categories-section {

        padding-top: 25px;

    }


    .categories-grid {

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

        gap: 12px;

    }


    .category-card {

        height: 245px;

    }

    .category-image {

    height: 135px;

    flex-basis: 135px;

}

}


@media (max-width: 420px) {

    .categories-grid {

        grid-template-columns: 1fr;

    }


    .category-card {

        height: 240px;

    }

    .category-image {

    height: 135px;

    flex-basis: 135px;

}

}