/* =====================================================
   PASALAVENTA
   MENÚ DE CATEGORÍAS
   DISEÑO LIMPIO
===================================================== */


/* =====================================================
   RESET LOCAL
===================================================== */

.categorias-menu-page,
.categorias-menu-page * {
    box-sizing: border-box;
}


/* =====================================================
   PÁGINA
===================================================== */

.categorias-menu-page {
    width: 100%;
    min-height: calc(100vh - 150px);

    background: #f5f5f5;

    padding: 45px 0 70px;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.categorias-menu-page .market-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =====================================================
   HERO
===================================================== */

.categorias-menu-hero {
    padding: 5px 0 35px;
}

.categorias-kicker {
    display: inline-block;

    margin-bottom: 8px;

    color: #d60000;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.categorias-menu-hero h1 {
    margin: 0;

    color: #111;

    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.categorias-menu-hero p {
    margin: 10px 0 0;

    color: #666;

    font-size: 15px;
    line-height: 1.5;
}


/* =====================================================
   SECCIÓN
===================================================== */

.categorias-menu-section {
    width: 100%;
}


/* =====================================================
   GRID
===================================================== */

.categorias-menu-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =====================================================
   TARJETA
===================================================== */

.categoria-menu-card {
    position: relative;

    display: block;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #fff;

    border-radius: 14px;

    border: 1px solid #e5e5e5;

    text-decoration: none;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


/* =====================================================
   HOVER TARJETA
===================================================== */

.categoria-menu-card:hover {
    transform: translateY(-4px);

    border-color: #d60000;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .12);
}


/* =====================================================
   IMAGEN
===================================================== */

.categoria-menu-imagen {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #eee;
}


/* =====================================================
   IMAGEN REAL
===================================================== */

.categoria-menu-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


/* =====================================================
   ZOOM
===================================================== */

.categoria-menu-card:hover
.categoria-menu-imagen img {
    transform: scale(1.06);
}


/* =====================================================
   OSCURECIMIENTO INFERIOR
   PARA QUE EL NOMBRE SE LEA BIEN
===================================================== */

.categoria-menu-imagen::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 42%;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .75),
            rgba(0, 0, 0, 0)
        );

    pointer-events: none;
}


/* =====================================================
   INFORMACIÓN
===================================================== */

.categoria-menu-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 22px 18px 17px;
}


/* =====================================================
   NOMBRE
===================================================== */

.categoria-menu-info h2 {
    margin: 0;

    color: #fff;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, .35);
}


/* =====================================================
   DESCRIPCIÓN
   OCULTA
===================================================== */

.categoria-menu-info span {
    display: none;
}


/* =====================================================
   FLECHA
===================================================== */

.categoria-menu-arrow {
    position: absolute;

    right: 16px;
    bottom: 14px;

    z-index: 3;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    background: rgba(214, 0, 0, .95);

    border-radius: 50%;

    transition:
        transform .2s ease,
        background .2s ease;
}

.categoria-menu-card:hover
.categoria-menu-arrow {
    transform: translateX(3px);

    background: #d60000;
}


/* =====================================================
   OCULTAR ELEMENTOS ANTIGUOS
   POR SI QUEDARON EN EL HTML
===================================================== */

.categoria-menu-info a {
    display: none;
}

.categoria-ver-todas {
    display: none !important;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .categorias-menu-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .categoria-menu-card {
        height: 205px;
    }

}


/* =====================================================
   TABLET PEQUEÑA
===================================================== */

@media (max-width: 750px) {

    .categorias-menu-page {
        padding-top: 35px;
    }

    .categorias-menu-page .market-container {
        width: min(
            100% - 30px,
            600px
        );
    }

    .categorias-menu-hero h1 {
        font-size: 29px;
    }

    .categorias-menu-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .categoria-menu-card {
        height: 190px;

        border-radius: 12px;
    }

    .categoria-menu-info {
        padding: 18px 14px 14px;
    }

    .categoria-menu-info h2 {
        font-size: 17px;
    }

    .categoria-menu-arrow {
        right: 12px;
        bottom: 11px;

        width: 27px;
        height: 27px;

        font-size: 18px;
    }

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 480px) {

    .categorias-menu-page {
        padding: 25px 0 45px;
    }

    .categorias-menu-page .market-container {
        width: calc(100% - 22px);
    }

    .categorias-menu-hero {
        padding-bottom: 25px;
    }

    .categorias-kicker {
        font-size: 11px;
    }

    .categorias-menu-hero h1 {
        font-size: 25px;
    }

    .categorias-menu-hero p {
        font-size: 14px;
    }

    .categorias-menu-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .categoria-menu-card {
        height: 155px;

        border-radius: 10px;
    }

    .categoria-menu-info {
        padding: 14px 11px 11px;
    }

    .categoria-menu-info h2 {
        font-size: 15px;
    }

    .categoria-menu-arrow {
        right: 8px;
        bottom: 8px;

        width: 24px;
        height: 24px;

        font-size: 16px;
    }

}


/* =====================================================
   CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 350px) {

    .categorias-menu-grid {
        grid-template-columns: 1fr;
    }

    .categoria-menu-card {
        height: 180px;
    }

}