/* ==============================> "BARRA LATERAL DE CATEGORIAS" */

.blc-contenedor {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
	margin-bottom: 12px;
}

.blc-contenedor:last-child {
	margin-bottom: 0;
}

/* -> Cabecera padre */

.blc-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px;
    background-color: var(--e-global-color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease, filter 0.2s ease;
    -webkit-transition: opacity 0.2s ease, filter 0.2s ease;
}

.blc-cabecera:hover {
    opacity: 0.92;
    filter: brightness(1.06);
    -webkit-filter: brightness(1.06);
    text-decoration: none;
}

.blc-cabecera .blc-icono {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px 0px 0px 0px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blc-cabecera .blc-icono img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
}

.blc-nombre-padre {
    padding: 6px 4px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* -> Lista nivel 1 */

.blc-lista {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

/* -> Ítem base */

.blc-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f2f2f2;
}

.blc-item:last-child {
    border-bottom: none;
}

.blc-item.blc-activa {
    background-color: #f5f9f5;
}

/* -> Enlace */

.blc-item .blc-enlace {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #3a3a3a;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
    -webkit-transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.blc-nivel-1 > .blc-enlace {
    padding: 11px 16px;
}

.blc-nivel-2 > .blc-enlace {
    padding: 9px 16px 9px 24px;
    font-size: 13px;
}

.blc-nivel-3 > .blc-enlace {
    padding: 8px 16px 8px 36px;
    font-size: 12px;
}

.blc-item .blc-enlace:hover,
.blc-item.blc-activa > .blc-enlace {
    color: var(--e-global-color-primary);
    background-color: #f0f7f0;
    text-decoration: none;
}

.blc-nivel-1 > .blc-enlace:hover {
    padding-left: 20px;
}

.blc-nivel-2 > .blc-enlace:hover {
    padding-left: 28px;
}

.blc-nivel-3 > .blc-enlace:hover {
    padding-left: 40px;
}

/* -> Icono */

.blc-item .blc-icono {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    -webkit-transition: transform 0.2s ease;
}

.blc-nivel-2 .blc-icono,
.blc-nivel-3 .blc-icono {
    width: 22px;
    height: 22px;
}

.blc-item .blc-icono img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
    transition: filter 0.2s ease;
    -webkit-transition: filter 0.2s ease;
}

.blc-item .blc-enlace:hover .blc-icono {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

/* -> Nombre */

.blc-item .blc-nombre {
    flex: 1;
    line-height: 1.3;
}

/* -> Flecha colapso (nivel 2+) */

.blc-flecha {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transition: border-color 0.25s ease, transform 0.25s ease;
    -webkit-transition: border-color 0.25s ease, transform 0.25s ease;
    margin-right: 2px;
}

.blc-flecha.blc-flecha-abierta {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.blc-item .blc-enlace:hover .blc-flecha,
.blc-item.blc-activa > .blc-enlace .blc-flecha {
    border-color: var(--e-global-color-primary);
}

/* -> Flecha simple (sin hijos, nivel 1) */

.blc-flecha-simple {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-right: 2px;
    transition: border-color 0.2s ease;
    -webkit-transition: border-color 0.2s ease;
}

.blc-item .blc-enlace:hover .blc-flecha-simple,
.blc-item.blc-activa > .blc-enlace .blc-flecha-simple {
    border-color: var(--e-global-color-primary);
}

/* -> Sub-lista colapsable (nivel 2+) */

.blc-sub-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #fafafa;
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease, border-color 0.3s ease;
    -webkit-transition: max-height 0.3s ease, border-color 0.3s ease;
    will-change: max-height;
}

.blc-nivel-1 > .blc-sub-lista {
    background-color: #f8f8f8;
}

.blc-nivel-2 > .blc-sub-lista {
    background-color: #f3f3f3;
}

.blc-sub-lista.blc-abierta {
    border-color: #efefef;
}

/* -> Separadores internos sub-lista */

.blc-sub-lista .blc-item {
    border-bottom: 1px solid #ececec;
}

.blc-sub-lista .blc-item:last-child {
    border-bottom: none;
}

/* -> Responsive móvil */

@media (max-width: 768px) {
    .blc-cabecera {
        padding: 13px 14px;
        gap: 10px;
    }

    .blc-cabecera .blc-icono {
        width: 32px;
        height: 32px;
    }

    .blc-nombre-padre {
        font-size: 13px;
    }

    .blc-nivel-1 > .blc-enlace {
        padding: 10px 14px;
        font-size: 13px;
    }

    .blc-nivel-2 > .blc-enlace {
        padding: 9px 14px 9px 22px;
        font-size: 12px;
    }

    .blc-item .blc-icono {
        width: 24px;
        height: 24px;
    }
}

/* -> Responsive tablet */

@media (min-width: 769px) and (max-width: 1024px) {
    .blc-nivel-1 > .blc-enlace {
        font-size: 13px;
        padding: 10px 15px;
    }

    .blc-cabecera .blc-icono {
        width: 34px;
        height: 34px;
    }
}