/* =========================================================
   CASAS.CO.CR 2026
   CATEGORÍAS RÁPIDAS
========================================================= */

.categorias26 {
    width: 100%;

    padding: 12px 0 14px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fb 100%
        );

    
}


/* =========================================================
   CONTENEDOR
========================================================= */

.categorias26__contenedor {
    width: var(--anchoP);

    margin: 0 auto;
}


/* =========================================================
   LISTA
========================================================= */

.categorias26__lista {
    display: grid;

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

    gap: 16px;
}


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

.categorias26__card {
    min-width: 0;

    overflow: hidden;

    display: block;

    background: #fff;

    border: 1px solid #e0e6eb;

    border-radius: 8px;

    color: #072b5a;

    text-decoration: none;

    box-shadow:
        0 3px 10px rgba(0, 31, 67, .10);

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


.categorias26__card:hover {
    transform: translateY(-3px);

    border-color: #c9d5e1;

    box-shadow:
        0 8px 20px rgba(0, 31, 67, .16);
}


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

.categorias26__imagen {
    width: 100%;
    height: 120px;

    overflow: hidden;

    background: #e9eef3;
}


.categorias26__imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.categorias26__card:hover .categorias26__imagen img {
    transform: scale(1.04);
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.categorias26__info {
    min-height: 66px;

    padding: 8px 10px;

    display: grid;

    grid-template-columns:
        40px
        minmax(0, 1fr)
        20px;

    gap: 8px;

    align-items: center;
}


/* =========================================================
   ICONO
========================================================= */

.categorias26__icono {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #06366b;

    font-size: 25px;
    line-height: 1;
}


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

.categorias26__titulo {
    min-width: 0;

    color: #062b5b;

    font-size: 13px;
    line-height: 1.15;

    font-weight: 700;
}


.categorias26__titulo span {
    display: block;
}


/* =========================================================
   FLECHA
========================================================= */

.categorias26__flecha {
    color: #062b5b;

    font-size: 28px;
    line-height: 1;

    font-weight: 400;

    text-align: center;

    transition:
        transform .20s ease,
        color .20s ease;
}


.categorias26__card:hover .categorias26__flecha {
    transform: translateX(3px);

    color: #ed1724;
}


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

@media (max-width: 1100px) {

    .categorias26__lista {
        gap: 10px;
    }


    .categorias26__imagen {
        height: 78px;
    }


    .categorias26__info {
        grid-template-columns:
            34px
            minmax(0, 1fr)
            16px;

        gap: 5px;

        padding: 7px;
    }


    .categorias26__icono {
        width: 34px;

        font-size: 21px;
    }


    .categorias26__titulo {
        font-size: 11px;
    }

}


/* =========================================================
   MÓVIL / TABLET PEQUEÑA
   DESPLAZAMIENTO HORIZONTAL
========================================================= */

@media (max-width: 800px) {

    .categorias26 {
        padding: 10px 0 13px;
    }


    .categorias26__contenedor {
        width: 100%;
    }


    .categorias26__lista {
        display: flex;

        gap: 11px;

        padding:
            3px
            4%
            10px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }


    .categorias26__lista::-webkit-scrollbar {
        display: none;
    }


    .categorias26__card {
        flex:
            0
            0
            220px;

        scroll-snap-align: start;
    }


    .categorias26__imagen {
        height: 95px;
    }


    .categorias26__info {
        min-height: 64px;

        grid-template-columns:
            38px
            minmax(0, 1fr)
            18px;

        padding: 8px 9px;
    }


    .categorias26__icono {
        width: 38px;

        font-size: 24px;
    }


    .categorias26__titulo {
        font-size: 12px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .categorias26__card {
        flex-basis: 205px;
    }


    .categorias26__imagen {
        height: 88px;
    }

}